🔌 MCP Integration

🤖 Model Context Protocol

This server supports the Model Context Protocol (MCP)! Connect AI assistants to play Minesweeper using natural language.

MCP Endpoint

SSE Transport: https://minesweeper.rest/mcp/sse

Windsurf IDE Configuration

{
  "mcpServers": {
    "minesweeper": {
      "serverUrl": "https://minesweeper.rest/mcp/sse"
    }
  }
}

🎮 Available MCP Tools

These tools are automatically available when connected via MCP:

POST createGame
Create a new Minesweeper game with custom dimensions and bomb percentage
GET getGameState
Get the current state of a specific game
POST revealCell
Reveal a cell at the specified row and column
POST flagCell
Flag or unflag a cell at the specified position
POST quitGame
End the current game session gracefully
POST executeCommand
Execute text commands like "reveal A1" or "flag B3"
GET getHealth
Check server health and status
GET listGames
List all active game sessions (admin only)

🎮 GIF Demo

See the Minesweeper MCP tools in action:

Minesweeper MCP Demo

🤖 AI Assistant Examples

Once connected via MCP, you can use natural language:

🔗 Useful Links