github-samples/turn-based-game-mcp
A turn-based games app built with Next.js and TypeScript that features Tic-Tac-Toe and Rock Paper Scissors games with AI opponents powered by the Model Context Protocol (MCP), offering three difficulty levels.
Implements a monorepo architecture with shared game logic across a Next.js frontend and a separate MCP server communicating via stdio, enabling AI opponents to interface through standardized protocol tools like `create_tic_tac_toe_game` and `play_tic_tac_toe`. The codebase emphasizes educational value with comprehensive TypeScript strict mode compliance, 90%+ test coverage on core logic, and extensible patterns for adding new games through standardized workflows across shared utilities, UI components, API routes, and AI implementations.
Stars
26
Forks
18
Language
TypeScript
License
MIT
Category
Last pushed
Mar 04, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/mcp/github-samples/turn-based-game-mcp"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
PrefectHQ/fastmcp
🚀 The fast, Pythonic way to build MCP servers and clients.
datalayer/jupyter-mcp-server
🪐 🔧 Model Context Protocol (MCP) Server for Jupyter.
tadata-org/fastapi_mcp
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
samuelgursky/davinci-resolve-mcp
MCP server integration for DaVinci Resolve
alondmnt/joplin-mcp
MCP server for the Joplin note taking app