Skip to content

Cursor MCP host: export fails with "Failed to fetch"; Edit/Open in Excalidraw broken without fallbacks #79 - #80

Open
Mashfooq wants to merge 1 commit into
excalidraw:mainfrom
Mashfooq:fix/cursor-host-export-and-copy-fallbacks
Open

Mashfooq wants to merge 1 commit into
excalidraw:mainfrom
Mashfooq:fix/cursor-host-export-and-copy-fallbacks

Conversation

@Mashfooq

@Mashfooq Mashfooq commented Jun 15, 2026 •

Copy link
Copy Markdown

Summary

  • Allow widget fetch to json.excalidraw.com via CSP connectDomains
  • Retry export_to_excalidraw server tool before browser upload fallback
  • Fallback openLink with window.open / anchor click when host blocks links
  • Local fullscreen overlay when requestDisplayMode is unsupported (e.g. Cursor)
  • Add toolbar Copy and modal Copy diagram / Copy link (works even when upload fails)
  • Extract shared export-to-excalidraw.ts used by server and widget

Motivation

Cursor’s MCP App host has partial ext-apps support: callServerTool, openLink, and requestDisplayMode are unreliable. Users saw Failed to fetch on export and non-functional Edit/Open buttons.

Test plan

  • npm run build passes
  • In Cursor: draw diagram → Copy copies JSON to clipboard
  • Open in Excalidraw succeeds or shows Copy link / Copy diagram on failure
  • Edit opens editor (local fullscreen fallback if host lacks fullscreen)
  • Verify in Claude Desktop / basic-host that existing behavior still works

Related issue

Closes #79

@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Excalidraw Team on Vercel.

A member of the Team first needs to authorize it.

@Mashfooq Mashfooq changed the title Cursor MCP host: export fails with "Failed to fetch"; Edit/Open in Ex… Jun 15, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant