扫雷 MCP 服务器
这是一个模型上下文协议服务器,允许 MCP 客户端代理玩扫雷游戏。它旨在与扫雷游戏服务器一起运行。
观看完整视频演示,请访问https://youtu.be/CXXMafVtlEQ (加速 16 倍)。
入门
按照游戏服务器的指示在本地启动它。
构建 MCP 服务器:
npm install
npm run build
配置你的 MCP 客户端以添加该工具。例如,假设你将仓库克隆到
C:\path\to\repo\minesweeper-mcp-server
,以下是如何将该工具添加到 Windows 系统 Claude Desktop 的claude_desktop_config.json
( 找到该文件)中:
{
"mcpServers": {
"mcp-server": {
"command": "node",
"args": ["C:\\path\\to\\repo\\minesweeper-mcp-server\\build\\index.js"],
"env": {
"DEBUG": "*"
}
}
}
}
Claude Desktop:重新启动 Claude Desktop 以使其获取工具。请务必从托盘菜单图标退出,而不是从应用程序退出(应用程序只会隐藏窗口)。点击“工具”图标,应该会显示新的工具:
示例提示
Start a new game of Minesweeper. Try your best to keep playing until you have flagged all mines. Remember that the coordinates are 0-indexed.
交互示例
实际对话很长。以下是一些片段:
游戏开始
将旗帜放置在错误的位置
多次尝试后放弃
local-only server
The server can only run on the client's local machine because it depends on local resources.
MCP 服务器使 Claude 等 AI 代理能够通过自然语言交互玩扫雷游戏,并连接到单独的扫雷游戏服务器。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.Last updated -15265MIT License
- -securityFlicense-qualityAn MCP server that allows AI assistants like Claude to execute terminal commands on the user's computer and return the output, functioning like a terminal through AI.Last updated -57
- AsecurityAlicenseAqualityA Minecraft MCP Server powered by Mineflayer API. It allows to control a Minecraft character in real-time, allowing AI assistants to build structures, explore the world, and interact with the game environment through natural language instructionLast updated -167332Apache 2.0
- AsecurityFlicenseAqualityAn MCP server that allows Claude to interact with Discord by providing tools for sending/reading messages and managing server resources through Discord's API.Last updated -1929