MUD MCP 有状态服务器
概览
一个令人兴奋的多用户地下城(MUD)服务器,由模型上下文协议(MCP)驱动——旨在展示动态工具和提示通知的神奇,用于教育目的! MUD-MCP实现了,在引人入胜的游戏环境中展示了所有主要协议功能: - 游戏提供上下文相关工具,根据当前情况出现或消失。工具包括查看、移动、物品栏、夺取、战斗和对话。每个工具都使用正确的输入模式和注释,有些工具仅在相关时可用(如战斗时有怪物出现)。这展示了MCP工具如何创建真正动态的用户界面,适应应用状态。 - 服务器提供动态提示,如room_description、quest_prompt、battle_prompt和inventory_prompt,这些提示会根据你的游戏状态变化。
概述(AI 翻译)
一款由模型上下文协议(MCP)驱动的激动人心的多用户地下城(MUD)服务器——旨在展示动态工具和提示通知的神奇功能,用于教育目的!
🚀 支持的MCP功能
MUD-MCP实现了完整的MCP 2025-03-26规范,在引人入胜的游戏环境中展示了所有主要协议特性:
🛠️ 动态工具
完整MCP工具实现 - 游戏提供上下文相关工具,根据当前情况出现或消失。工具包括look、move、inventory、take、battle和talk。每个工具都使用正确的输入模式和注释,有些工具仅在相关时可用(如battle在怪物出现时)。这展示了MCP工具如何创建真正动态的用户界面,适应应用状态。
📝 上下文提示
带参数的高级提示 - 服务器提供动态提示,如room_description、quest_prompt、battle_prompt和inventory_prompt,根据你的游戏状态变化。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MUD-MCP: The Ultimate AI Adventure Experience! 🏰⚔️🤖
A thrilling Multi-User Dungeon (MUD) server powered by the Model Context Protocol (MCP) - designed to showcase the magic of dynamic tools and prompt notifications for educational purposes!
🚀 Supported MCP Features
MUD-MCP implements the complete MCP 2025-03-26 specification, showcasing every major protocol feature in an engaging gaming context:
🛠️ Dynamic Tools
Full MCP Tools Implementation - The game provides context-sensitive tools that appear and disappear based on your current situation. Tools include look, move, inventory, take, battle, and talk. Each tool uses proper input schemas and annotations, with some tools only becoming available when relevant (like battle when monsters are present). This demonstrates how MCP tools can create truly dynamic user interfaces that adapt to application state.
📝 Contextual Prompts
Advanced Prompts with Arguments - The server offers dynamic prompts like room_description, quest_prompt, battle_prompt, and inventory_prompt that change based on your game state. Prompts support arguments for customization and automatically appear/disappear based on context (quest prompts only show when quests are available). This showcases how MCP prompts can provide intelligent, state-aware information templates.
📊 Rich Resources
Complete Resource System - Access game data through structured resources like mud://world (world map), mud://room/current (current location), mud://player/inventory (your items), and mud://help (game guide). Resources support subscriptions and change notifications, demonstrating how MCP can expose complex application data in a standardized way.
🔔 Real-time Notifications
Full Notification Support - The server sends tools/list_changed, prompts/list_changed, and resources/changed notifications as your game state evolves. When you move rooms, defeat monsters, or pick up items, the available tools and prompts automatically update. This demonstrates MCP’s reactive capabilities for creating responsive user experiences.
🤖 AI-Powered Sampling
Cutting-edge Sampling Integration - The server uses MCP sampling to request AI assistance for dynamic content generation. NPCs, monsters, and mystical entities respond with contextual, AI-generated dialogue that considers your current game state. This showcases the newest MCP capability for collaborative AI content creation.
🎮 Play with VS Code Agent Mode
Experience the future of AI-powered adventures! VS Code’s Agent Mode provides the perfect environment for AI assistants to play MUD-MCP:
Setting Up Agent Mode
- Install VS Code with the latest updates
- Enable Agent Mode in VS Code settings
- Connect your AI assistant (Claude, GPT-4, etc.) to VS Code
- Install MUD-MCP as an MCP server in your configuration
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →