Repository navigation
examples: add MCP Apps arcade server - #346
Merged
Merged
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: |
Contributor
There was a problem hiding this comment.
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 <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Contributor
* Initial plan * Add whitespace validation to validateGameId function Co-authored-by: idosal <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: idosal <[email protected]>
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.
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)