-
Notifications
You must be signed in to change notification settings - Fork 67
examples: add MCP Apps arcade server #346
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
base: main
Are you sure you want to change the base?
Conversation
@modelcontextprotocol/ext-apps
@modelcontextprotocol/server-basic-react
@modelcontextprotocol/server-basic-vanillajs
@modelcontextprotocol/server-budget-allocator
@modelcontextprotocol/server-cohort-heatmap
@modelcontextprotocol/server-customer-segmentation
@modelcontextprotocol/server-map
@modelcontextprotocol/server-pdf
@modelcontextprotocol/server-scenario-modeler
@modelcontextprotocol/server-shadertoy
@modelcontextprotocol/server-sheet-music
@modelcontextprotocol/server-system-monitor
@modelcontextprotocol/server-threejs
@modelcontextprotocol/server-transcript
@modelcontextprotocol/server-video-resource
@modelcontextprotocol/server-wiki-explorer
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new MCP Apps arcade server example that demonstrates serving external HTML content from archive.org as an MCP App resource. The server allows users to browse and play classic arcade games directly in an MCP-enabled host.
Changes:
- Added a new arcade-server example demonstrating external HTML processing and embedding
- Implemented archive.org game search functionality with smart fallbacks for search terms
- Created server-side HTML processing to work around srcdoc iframe limitations with ES modules
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| package-lock.json | Added arcade-server package dependencies and resolved peer dependencies |
| examples/arcade-server/tsconfig.json | TypeScript configuration for Node.js server compilation |
| examples/arcade-server/server.ts | Main MCP server with game search and loading tools |
| examples/arcade-server/search.ts | Archive.org search API integration with fallback strategies |
| examples/arcade-server/index.ts | HTTP server entry point with Express and MCP transport setup |
| examples/arcade-server/game-processor.ts | HTML processing logic to rewrite ES modules for iframe compatibility |
| examples/arcade-server/README.md | Documentation explaining the server architecture and usage |
| examples/arcade-server/.gitignore | Standard Node.js gitignore for dist and node_modules |
| examples/arcade-server/package.json | Package configuration with dependencies and scripts |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Initial plan * Add whitespace validation to validateGameId function Co-authored-by: idosal <18148989+idosal@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: idosal <18148989+idosal@users.noreply.github.com>
MCP Apps can run DOOM!
Code.-.Insiders.mp4
It demonstrates a technique for rendering external URLs with the standard
text/html;profile=mcp-appprofile. It utilizes the newbaseUriDomainsCSP meta.Demo video on VSCode (@connor4312)