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.

45
/ 100
Emerging

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.

No Package No Dependents
Maintenance 10 / 25
Adoption 7 / 25
Maturity 9 / 25
Community 19 / 25

How are scores calculated?

Stars

26

Forks

18

Language

TypeScript

License

MIT

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.