# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
# GridStamp: Spatial proof-of-presence SDK for autonomous robots and drones — tamper-evident spatial receipts.

startCommand:
  type: stdio
  configSchema:
    # JSON Schema defining the configuration options for the MCP.
    type: object
    required:
      - robotId
    properties:
      robotId:
        type: string
        default: "mcp-robot"
        description: Robot/drone identifier. Each robot gets its own spatial memory, verification proofs, and settlement history.
      persistDir:
        type: string
        description: Directory for file-based persistence. Defaults to ~/.gridstamp if not set.
      debug:
        type: boolean
        default: false
        description: Enable debug logging.
  commandFunction:
    # A function that produces the CLI command to start the MCP on stdio.
    |-
    (config) => ({
      command: 'npx',
      args: ['-y', 'gridstamp'],
      env: {
        GRIDSTAMP_ROBOT_ID: config.robotId || 'mcp-robot',
        ...(config.persistDir ? { GRIDSTAMP_PERSIST_DIR: config.persistDir } : {}),
        ...(config.debug ? { DEBUG: 'true' } : {})
      }
    })
