loading…
Search for a command to run...
loading…
A stdio-based MCP server that enables users to play and manage Minesweeper games through a Rails 8 REST API. It provides tools to start games, track states, and
A stdio-based MCP server that enables users to play and manage Minesweeper games through a Rails 8 REST API. It provides tools to start games, track states, and perform actions like opening cells and flagging mines.
Rails 8 で動く Minesweeper Web/API を操作する stdio MCP server です。
Claude Code / Claude Desktop などの MCP Host からツールとして呼び出します。
npx minesweeper-mcp(公開後)start/open/flag/chord/end を呼ぶAPI: minesweeper-for-ai
MINESWEEPER_BASE_URL (必須): https://example.com(末尾スラッシュなし推奨)MINESWEEPER_BEARER_TOKEN(操作系に必須): Rails 側で発行した token例:
export MINESWEEPER_BASE_URL="https://example.com"
export MINESWEEPER_BEARER_TOKEN="xxxxxx"
npm install
npm run build
node dist/index.js
詳細: docs/development.md
MCP Host(Claude Desktop / Claude Code など)の設定ファイルに、stdioサーバとして登録します。
ローカルで動かす場合は dist/index.js を指定し、環境変数を渡してください。
{
"mcpServers": {
"minesweeper": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/minesweeper-mcp/dist/index.js"],
"env": {
"MINESWEEPER_BASE_URL": "http://localhost:3000",
"MINESWEEPER_BEARER_TOKEN": "YOUR_TOKEN"
}
}
}
}
{
"mcpServers": {
"minesweeper": {
"command": "npx",
"args": ["-y", "github:geeknees/minesweeper-mcp"],
"env": {
"MINESWEEPER_BASE_URL": "https://example.com",
"MINESWEEPER_BEARER_TOKEN": "YOUR_TOKEN"
}
}
}
}
設定ファイルの場所や再読み込み方法は、使用しているMCP Hostのドキュメントに従ってください。
docs/tools.mddocs/development.mddocs/api.mddocs/minesweeper-mcp-article.mdMIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"minesweeper-mcp": {
"command": "npx",
"args": []
}
}
}