# tonypan2
## 基本信息
- Slug: `tonypan2-minesweeper-mcp-server`
- Source: modelscope
- Publisher: @tonypan2/minesweeper-mcp-server
- Categories: games-and-gamification / autonomous-agents
- Hosted: No
- License: Unknown
- Source URL: https://www.modelscope.cn/mcp/servers/@tonypan2/minesweeper-mcp-server
## 简介
暂无描述。
## MCP Server 详情

# 扫雷 MCP 服务器

这是一个 [Model Context Protocol 服务器](https://github.com/modelcontextprotocol/servers)，允许 MCP 客户端代理玩 [扫雷](<https://en.wikipedia.org/wiki/Minesweeper_(video_game)>) 游戏。它应该与 [扫雷游戏服务器](https://github.com/tonypan2/minesweeper-server) 一起运行。

![屏幕截图](static/screen_recording.gif?raw=true)
在 https://youtu.be/CXXMafVtlEQ 查看完整的视频演示（16倍速）。

## 开始使用

- 按照 [游戏服务器的说明](https://github.com/tonypan2/minesweeper-server) 在本地启动它。

* 构建 MCP 服务器：

bash
npm install
npm run build


- 配置您的 MCP 客户端以添加工具。例如，以下是如何将工具添加到 Windows 上的 Claude Desktop 的 `claude_desktop_config.json` 中（[定位文件](https://gist.github.com/feveromo/7a340d7795fca1ccd535a5802b976e1f#3-configure-claude-desktop)），假设您将仓库克隆到了 `C:\path\to\repo\minesweeper-mcp-server`：

JSON
{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": ["C:\\path\\to\\repo\\minesweeper-mcp-server\\build\\index.js"],
      "env": {
        "DEBUG": "*"
      }
    }
  }
}


- Claude Desktop：重启 Claude Desktop 以使其加载工具。请确保从托盘菜单图标退出，而不是从应用程序中退出（这只会隐藏窗口）。如果您点击工具图标，它应该会显示新的工具：

  ![Claude Desktop 主页截图](static/claude_home.png?raw=true)

  ![新工具截图](static/claude_tools.png?raw=true)

## 示例提示


开始一个新的扫雷游戏。尽你最大的努力继续玩，直到标记所有的地雷。记住坐标是从0开始索引的。


## 示例交互

实际对话非常长。这里是一些片段：

## 游戏开始

![游戏开始](static/game-start.png)

## 在错误的位置放置旗帜

![Claude 在错误的位置放置旗帜](static/wrong-flag.png)

## 多次尝试后放弃

![Claude 放弃](static/gave-up.png)

