Nokia-style Snake as an MCP App, with SQLite high scores and a leaderboard.
{ "mcpServers": { "snake": { "url": "https://alexmcroberts--28d29b367c8711f18ed61607ee4eb77e.web.val.run/mcp" } } }
Or with Claude Code:
claude mcp add --transport http snake https://alexmcroberts--28d29b367c8711f18ed61607ee4eb77e.web.val.run/mcp
Then ask: play snake or show the leaderboard.
| Tool | Who | What |
|---|---|---|
play_snake | model | Opens the Snake MCP App |
get_leaderboard | model | Shows top scores (MCP App UI) |
submit_score | app only | Saves name + score after a crash |
Rendering mermaid diagram...
play_snake and renders the MCP App from ui://snake/mcp-app.html.submit_score.main.ts — Hono HTTP + Streamable MCP transportmcp.ts — tools + MCP App resourcesdb.ts — SQLite schema / leaderboard helperssnake-app.html — Snake UI (@modelcontextprotocol/ext-apps)index.html — landing page
Dummy OAuth: GET /authorize, POST /token, static Bearer snake-dummy-token.