# 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:
- googleClientId
- googleClientSecret
- tokenEncryptionKey
properties:
googleClientId:
type: string
description: Your Google OAuth Client ID.
googleClientSecret:
type: string
description: Your Google OAuth Client Secret.
tokenEncryptionKey:
type: string
description: A key used to encrypt tokens.
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: './.venv/bin/mcp',
args: ['run', 'gmail_mcp/main.py:mcp'],
env: {
PYTHONPATH: '.',
CONFIG_FILE_PATH: 'config.yaml',
GOOGLE_CLIENT_ID: config.googleClientId,
GOOGLE_CLIENT_SECRET: config.googleClientSecret,
TOKEN_ENCRYPTION_KEY: config.tokenEncryptionKey
}
})
exampleConfig:
googleClientId: your-google-client-id
googleClientSecret: your-google-client-secret
tokenEncryptionKey: generate-a-random-key