
tonypan2/minesweeper-mcp-server
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
tonypan2/minesweeper-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/tonypan2/minesweeper-mcp-server.
Обзор
tonypan2/minesweeper-mcp-server — это кандидат на MCP-сервер, импортированный из https://github.com/tonypan2/minesweeper-mcp-server.
Обзор (машинный перевод)
Это сервер Model Context Protocol, который позволяет агентам MCP-клиента играть в Minesweeper>). Он предназначен для работы вместе с игровым сервером Minesweeper.
Посмотрите полное видео-демо по адресу https://youtu.be/CXXMafVtlEQ (ускорение 16x).
Начало
- Следуйте инструкциям игрового сервера для локального запуска.
- Постройте сервер MCP:
-
Настройте ваш MCP-клиент для добавления инструмента. Например, вот как добавить инструмент в Claude Desktop на Windows
claude_desktop_config.json(поиск файла), если вы клонировали репозиторий по адресуC:\path\to\repo\minesweeper-mcp-server: -
Claude Desktop: Перезапустите Claude Desktop, чтобы он мог получить инструменты. Обязательно выходите из иконки меню лотка, а не из приложения (которое просто скрывает окно). Если нажать на значок Tools, должны появиться новые инструменты:
Пример запроса
Пример взаимодействия
Сам разговор очень длинный. Вот несколько фрагментов:
Начало игры
Ставить флаг не в том месте
Сдаваться после нескольких попыток
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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 atC:\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
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"mcp-server": {
"command": "node",
"args": ["C:\\path\\to\\repo\\minesweeper-mcp-server\\build\\index.js"],
"env": {
"DEBUG": "*"
}
}
}
}