Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Create and send invitations and letters in a sealed envelope, one personal link per guest.
Jump to setup instructionsUse the publisher endpoint below to connect directly. This snippet does not include provider authentication; complete any required credentials or OAuth in your client. A platform key does not authorize an external MCP.
Editor
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "https://magic-envelope.com/api/mcp"
}
}
}Merge the entry into your existing mcpServers object. Restart Cursor after saving.
Config available Settings can be generated; we haven’t run them.
Fetched from the repository for this visit.
Free invitations and letters: birthdays, weddings, parties, dinners, letters… Pick a ready-made template or build one from typed blocks. Send a link and the guest opens a sealed envelope.
Not an editor. Everything is typed and modular.
pnpm install
pnpm dev # http://localhost:3000
Locally, without any keys, published cards and uploaded images are saved under .data/. Only AI images need a key.
After a deploy that changes public pages, node scripts/indexnow.mjs tells Bing and the other IndexNow engines.
What people do (letters from the app vs. agents, guest names, RSVPs, ratings per week) comes from the store, not from analytics: node --env-file=.env.production.local scripts/funnel.mjs (pull the file with vercel env pull .env.production.local --environment=production).
Everything the app does is available without a browser:
https://magic-envelope.com/api/mcp (tools: get_catalog, create_letter, get_letter, update_letter)POST /api/v1/letters, GET|PATCH /api/v1/letters/:id (Authorization: Bearer <editKey>), GET /api/v1/catalog/api/v1/openapi.json, /api/v1/schema, /llms.txt, docs at /developersThe REST and MCP adapters share one service layer (src/lib/api.server.ts) and validate with the same Zod schemas as the editor.
The iOS/Android apps are thin shells around the hosted web app (it needs API routes, so no static export).
capacitor.config.ts points the WebView at CAP_SERVER_URL (default https://magic-envelope.com); native-shell/ is only the offline page.
pnpm dev:lan # dev server reachable from your phone
CAP_SERVER_URL=http://192.168.1.20:3000 pnpm cap:android # or cap:ios (opens Android Studio / Xcode)
src/lib/native.ts is the single bridge: each function uses the Capacitor plugin in the app and the web API in the browser.
| Function | Native | Browser |
|---|---|---|
share() | system share sheet | Web Share, falls back to copying the link |
haptic() | Taptic/vibration | navigator.vibrate |
copy() | native clipboard | Clipboard API |
pickPhoto() | camera / photo library | file input (capture opens the camera on mobile) |
saveFile() | write to cache, then share (Files, Calendar…) | download |
onBack() | Android back button closes sheets / wizard steps | – |
| deep links | appUrlOpen opens /c/… inside the app | – |
| Variable | Purpose |
|---|---|
AI_GATEWAY_API_KEY | AI image generation via Vercel AI Gateway (on Vercel, OIDC works without it) |
BLOB_READ_WRITE_TOKEN | Vercel Blob store for published cards (private) and images (public) |
NEXT_PUBLIC_SITE_URL | Canonical URL, e.g. https://magic-envelope.com (QR codes, OG images) |
IMAGE_MODEL | Optional override, default bfl/flux-2-klein-4b (cheap and fast) |
src/lib/model.ts Zod schemas: Card, 15 Block types, kinds, themes, languages
src/lib/blocks.ts block registry (icons, palette, factories) + 24 templates (8 kinds × 3)
src/lib/ui.ts app UI copy (always English)
src/lib/styles.ts letter styles = design-system tokens (fonts, colors, background, frame, control shape, envelope) + per-letter overrides
src/lib/i18n.ts letter languages es · en · fr · pt · it · de (guest-facing copy + presets)
src/lib/fields.ts field kinds (phone, email, url, date…): one validator for editor + renderer
src/lib/craft.ts seal shapes/marks & envelope geometry/palettes (shared by app and OG image)
src/lib/color.ts opaque shading helpers
src/lib/themes.ts 6 themes (parchment, midnight, rose, forest, sky, ink)
src/lib/actions.ts calendar (.ics / Google), maps, RSVP deep links, music embeds
src/lib/drafts.ts drafts in localStorage (no account needed)
src/lib/store.server.ts Vercel Blob storage, or .data/ in local dev
src/components/sketch.tsx Excalidraw-style rough.js frames and buttons
src/components/card/blocks.tsx renderer per block type
src/components/craft.tsx wax seal, envelope art, envelope opener
src/components/editor/ tap-a-block editor, "+" palette, theme, share sheet
src/components/wizard.tsx language → kind → template
/ home (drafts)
/new wizard (?kind=wedding jumps to templates)
/edit/[id] editor (local draft)
/c/[id] public envelope (+ OG image for WhatsApp/iMessage previews)
/e/[id]#key "edit on another device": imports the card into local drafts
/api/publish save/overwrite a card (id + secret edit key)
/api/upload image upload (resized client-side)
/api/imagine AI image → stored → URL
/api/card/[id] card JSON for holders of the edit key
src/lib/personalize.ts {name} token: resolution and fallbacks
src/lib/mail.ts envelope slots (fixed block types), stamps, per-style envelope defaults
src/components/editor/envelope-editor.tsx envelope canvas + slot/seal editors
src/components/export-stage.tsx flat PNG/ZIP rendering (fonts embedded per style)
src/components/editor/guests-panel.tsx, send-panel.tsx
lib/model.ts and include it in the Block union (add a migration there if you change an existing shape).lib/blocks.ts, and its label in lib/ui.ts.isEmpty rule in components/card/blocks.tsx.components/editor/block-editor.tsx, using Field with the right field kind.lib/i18n.ts.TypeScript's exhaustive switches flag every step you missed.
{name} in any text addresses each guest
/c/<id>?g=<guest>) — only their name is ever sent to their browsernoindex; each card can be re-published from the device that created itLoading reviews...
GitHub freshness not yet checked. Recently viewed repositories target hourly refresh.
For maintainers
Send GitHub readers straight to setup instructions for their client. Copy the Markdown into your README; no account required.
[](https://www.mcpchannel.ai/discover/magic-envelope?via=readme-badge#setup)