Repository navigation
feat: modernize Excalidraw MCP for 0.4.0 - #96
Open
ChrisMcKee1 wants to merge 1 commit into
Open
ChrisMcKee1 wants to merge 1 commit into
ChrisMcKee1 wants to merge 1 commit into
Conversation
Serve current MCP requests with isolated transports and explicit legacy compatibility. Preserve complete revisioned scenes, image downloads, and recoverable edits across widget and storage lifecycles. Add regression coverage, align runtime assets and documentation, and include the updated Excalidraw authoring skill.
|
Someone is attempting to deploy a commit to the Excalidraw Team on Vercel. A member of the Team first needs to authorize it. |
|
greate |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernize the server for MCP 2026-07-28, preserve explicit 2025-11-25 compatibility, and fix scene persistence and widget lifecycle issues identified during an audit of the MCP specification and nested Excalidraw developer documentation.
The previous server disabled session IDs, but that alone did not implement the current protocol or make checkpoint state reliable across requests and server instances. This PR addresses those gaps while retaining the streamed SVG preview and fullscreen Excalidraw editor architecture.
Changes
MCP transports and interoperability
Scene validation and persistence
elementsoperation array or completesceneinput tocreate_view.Widget correctness and recovery
.excalidrawdownloads. Block external image sharing rather than returning links that omit image assets; shape/text sharing remains user-confirmed.Packaging and documentation
Upgrade notes
EXCALIDRAW_STORAGE=memoryexplicitly selects an ephemeral demo./mcpand/api/mcpremain available. The old/sseand/messageroutes are removed; HTTP GET/DELETE return 405 because session operations are not provided.Validation
Executed successfully:
This covers 114 source tests, TypeScript/declaration checks, the production build, and 2 bundled-CLI tests for modern and legacy stdio.
Regression coverage includes concurrent request-ID isolation, protocol/header errors, checkpoint conflicts and migration, cross-process file writes, image preservation, unsaved-edit/reload races, cancellation, startup replay, downloads, arrow bindings, and freehand conversion. Independent code review findings were reproduced and addressed with focused follow-up tests.
Coverage limits: widget lifecycle fixtures execute actual component handlers with browser dependencies mocked; converter fixtures use the installed Excalidraw implementation. Live Redis/Vercel deployment, production CDN cold loading, and end-to-end behavior across MCP Apps hosts remain separate deployment acceptance checks.
References