-
Notifications
You must be signed in to change notification settings - Fork 5
Enable MCP servers to send intermediate canvas updates, system messages, and artifacts during execution #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
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
- Enhanced notify_tool_progress to parse structured updates via MCP_UPDATE: prefix - Added _handle_structured_progress_update for canvas, system messages, and artifacts - Updated frontend to handle system_message and progress_artifacts update types - Created progress_updates_demo MCP server with three demo tools - Supports canvas updates, rich system messages, and progressive artifacts Co-authored-by: garland3 <1162675+garland3@users.noreply.github.com>
- Added comprehensive section in Developer Guide - Includes examples for canvas updates, system messages, and artifacts - Documents the MCP_UPDATE: protocol - References the demo server Co-authored-by: garland3 <1162675+garland3@users.noreply.github.com>
- Tests regular progress notifications - Tests canvas update, system message, and artifact updates - Tests error handling for invalid JSON - Tests percentage calculations Co-authored-by: garland3 <1162675+garland3@users.noreply.github.com>
- Comprehensive examples for all three update types - Setup instructions - Troubleshooting section - Reference documentation Co-authored-by: garland3 <1162675+garland3@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Allow MCP servers to send viewable updates to the frontend
Enable MCP servers to send intermediate canvas updates, system messages, and artifacts during execution
Nov 15, 2025
Copilot finished work on behalf of
garland3
November 15, 2025 19:03
🔒 Security Scan ResultsSecurity Scan SummaryScan ResultsPython SAST (Bandit)Recommendations
|
Updated the progress updates demo to send HTML progress pages as base64-encoded artifacts instead of canvas updates, allowing them to be rendered in the HTML viewer with proper visualization. Also removed unused Mock import in tests and significantly simplified MCP config by removing multiple tool definitions. This improves progress reporting granularity and cleans up the codebase.
🔒 Security Scan ResultsSecurity Scan SummaryScan ResultsPython SAST (Bandit)Recommendations
|
🔒 Security Scan ResultsSecurity Scan SummaryScan ResultsPython SAST (Bandit)Recommendations
|
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.
Long-running MCP tools can now send viewable updates to the frontend during execution via structured progress messages. Enables real-time visual feedback, status messages in chat history, and progressive artifact display.
Implementation
Backend (
notification_utils.py)MCP_UPDATE:{json}prefix in progress messagescanvas_update,system_message,artifactsFrontend (
websocketHandlers.js)system_messageintermediate updates (adds to chat history)progress_artifacts(displays files with display hints)Protocol
Artifacts
backend/mcp/progress_updates_demo/with 3 working examplesdocs/03_developer_guide.mdbackend/tests/test_mcp_progress_updates.pyUpdate Types
canvas_updatesystem_messageartifactsBackward compatible - existing tools unaffected. CodeQL clean.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.