# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
  type: stdio
  configSchema:
    # JSON Schema defining the configuration options for the MCP.
    type: object
    required: []
    properties:
      debug:
        type: boolean
        default: false
        description: Enable debug logging
      ipapiApiToken:
        type: string
        default: ""
        description: API token for the IP API service
  commandFunction:
    # A JS function that produces the CLI command based on the given config to start the MCP on stdio.
    |-
    (config) => {
      // Setup environment variables based on provided config
      const env = Object.assign({}, process.env);
      if (config.debug) {
        env.DEBUG = 'true';
      }
      if (config.ipapiApiToken) {
        env.IPAPI_API_TOKEN = config.ipapiApiToken;
      }
      return { command: 'node', args: ['dist/index.js'], env };
    }
  exampleConfig:
    debug: true
    ipapiApiToken: YOUR_API_TOKEN
