TM

tonypan2/minesweeper-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

106 stars 6 forks 质量 53 趋势 0

tonypan2/minesweeper-mcp-server 是从 https://github.com/tonypan2/minesweeper-mcp-server. 导入的 MCP 服务器候选

概览

tonypan2/minesweeper-mcp-server 是从 https://github.com/tonypan2/minesweeper-mcp-server. 导入的 MCP 服务器候选

概述(AI 翻译)

这是一个模型上下文协议服务器,允许MCP客户端代理进行扫雷游戏>)。它旨在与扫雷游戏服务器并运行。

请在https://youtu.be/CXXMafVtlEQ观看完整视频演示(16倍加速)。

开始

  • 按照游戏服务器的指示在本地启动游戏。
  • 构建MCP服务器:
  • 配置你的MCP客户端添加该工具。例如,假设你在C:\path\to\repo\minesweeper-mcp-server克隆了仓库,这里是如何将该工具添加到Windows的claude_desktop_config.json的Claude桌面版(定位文件):

  • Claude Desktop:重启 Claude Desktop,让它能获取这些工具。请务必从托盘菜单图标退出,而不是从应用中退出(应用只是隐藏窗口)。点击工具图标,应该会显示新工具:

示例提示

示例交互

实际对话非常长。以下是一些片段:

比赛开始

把旗子插错地方

多次尝试后放弃

本页由 AI 翻译,技术细节请以原文为准。

README

Minesweeper MCP Server

This is an Model Context Protocol server that allows an MCP client agents to play a game of Minesweeper. It is intended to be run alongside the Minesweeper game server.

View the entire video demo at https://youtu.be/CXXMafVtlEQ (16x speedup).

Getting started

  • Follow the instructions of the game server to start it locally.
  • Build the MCP server:
npm install
npm run build
  • Configure your MCP client to add the tool. For example, here is how to add the tool to Claude Desktop on Windows’s claude_desktop_config.json (locating the file), assuming you cloned the repo at C:\path\to\repo\minesweeper-mcp-server:
{
  "mcpServers": {
    "mcp-server": {
      "command": "node",
      "args": ["C:\\path\\to\\repo\\minesweeper-mcp-server\\build\\index.js"],
      "env": {
        "DEBUG": "*"
      }
    }
  }
}

  • Claude Desktop : Restart Claude Desktop to let it pick up the tools. Be sure to quit from the tray menu icon, not from the app (which simply hides the window). If you click the Tools icon, it should show the new tools:

Example prompt

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.

Example interaction

The actual conversation is very long. Here are some snippets:

Game start

Placing flag at the wrong place

Giving up after several attempts

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

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