Number Guessing Game
Demonstrates a Model Context Protocol (MCP) server showcasing dynamic tools and resources through a number guessing game.
About
This TypeScript-based project serves as a practical demonstration of a Model Context Protocol (MCP) server with dynamic tool and resource management. It implements a simple number guessing game to showcase stateful HTTP sessions, dynamic tool availability based on game state, and the use of the `@modelcontextprotocol/sdk`. The architecture employs the State, Command, and EventEmitter patterns for a clean and maintainable design, making it an excellent learning resource for building dynamic MCP applications.
Key Features
- Stateful HTTP sessions maintain individual game states.
- Demonstrates JSON resource formatting with Base64 encoding.
- Dynamic MCP tools adjust availability and schema based on game state.
- 1 GitHub stars
- Uses State, Command, and EventEmitter architectural patterns.
- Dynamic MCP resources appear and update based on game events.
Use Cases
- Demonstrating dynamic tool and resource management in MCP.
- Learning and understanding MCP server implementation.
- Implementing stateful services over HTTP.