Number Guessing Game MCP Server
@portal-labs-infrastructure
About Number Guessing Game MCP Server
A demonstration Model Context Protocol (MCP) server implemented in TypeScript, showcasing dynamic tool and resource management, stateful HTTP sessions, and clean architectural patterns.
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Number Guessing Game MCP Server?
A demonstration Model Context Protocol (MCP) server built in TypeScript that hosts a simple number guessing game. It showcases a dynamic, session-based architecture where each connecting user receives their own isolated set of tools and resources managed by a central Express.js controller. Designed as a learning resource and practical example for building dynamic, multi-user MCP applications.
How to use Number Guessing Game MCP Server?
Run the server locally via npm run dev (development) or npm start (production). Clients must support OAuth2 with dynamic client registration, tool notifications, and resource notifications. The live server is accessible at https://mcp.number-guessing-game.portal.one/mcp. For local access, use http://localhost:8083/mcp or expose with ngrok.
Key features of Number Guessing Game MCP Server
- True multi‑user sessions with isolated game state per user.
- Dynamic MCP tools (
start_game,guess_number,give_up) enabled/disabled per user based on game state. - Dynamic MCP resource (
game_state) created and destroyed per session. - Firestore integration for persistent game state and high scores.
- Clean, scalable architecture with state pattern (Lobby, Playing) and lifecycle management.
Use cases of Number Guessing Game MCP Server
- Learning how to build dynamic, session‑scoped MCP servers with TypeScript.
- Demonstrating stateful user sessions over a stateless HTTP transport.
- Showcasing Firestore‑backed MCP tools and resources that scale horizontally.
FAQ from Number Guessing Game MCP Server
What clients support this server?
Clients must support OAuth2 (with dynamic client registration), tool notifications, and resource notifications. The Portal One web client and MCP Inspector are mentioned as compatible options.
What runtime does the server require?
Node.js v18.x or later, with npm or yarn. Google Cloud Firestore access is needed for state persistence.
How are tools and resources managed per user?
A central Express.js controller creates a unique set of MCP tools and resources for each user upon session initialization and destroys them on close, using transport lifecycle hooks (onsessioninitialized, onclose).
Where is game state stored?
Game state and high scores are persisted in Google Cloud Firestore, making the server stateless and horizontally scalable.
What transport does the server use?
It uses StreamableHTTPServerTransport to handle incoming requests at the /mcp endpoint.
More Media & Design MCP servers
Image-Gen-Server
fengin一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口
KiCAD MCP: AI-Assisted PCB Design
mixelpixxKiCAD MCP is a Model Context Protocol (MCP) implementation that enables Large Language Models (LLMs) like Claude to directly interact with KiCAD for printed circuit board design.
Vibe Design System
mondaycom🎨 Vibe Design System - Official monday.com UI resources for application development in React.js
Figma MCP Server
TimHoldenModel Context Protocol server implementation for Figma API
MCP Google Map Server
cablateA powerful Model Context Protocol (MCP) server providing comprehensive Google Maps API integration with LLM processing capabilities.
Comments