Skip to main content
Glama
tonypan2

Minesweeper MCP Server

by tonypan2

flag

Mark a specific cell on the Minesweeper board as a potential mine by specifying its row and column coordinates using this tool.

Instructions

Place a flag at a cell on the Minesweeper board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
colYes
rowYes

Implementation Reference

  • Handler logic for executing the 'flag' tool: sets the game server URL parameters to place a flag at the given row and column.
    } else if (request.params.name === "flag") {
      url.searchParams.set("flag", "1");
      url.searchParams.set("pos", `${row},${col}`);
  • Input schema for the 'flag' tool, requiring row and col as numbers.
    inputSchema: {
      type: "object",
      properties: {
        row: { type: "number" },
        col: { type: "number" },
      },
      required: ["row", "col"],
    },
  • src/index.ts:47-58 (registration)
    Registration of the 'flag' tool in the ListToolsRequestSchema response.
    {
      name: "flag",
      description: "Place a flag at a cell on the Minesweeper board",
      inputSchema: {
        type: "object",
        properties: {
          row: { type: "number" },
          col: { type: "number" },
        },
        required: ["row", "col"],
      },
    },
Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tonypan2/minesweeper-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server