smithery.yaml•1.48 kB
# 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:
- frontappApiKey
- webhookSecret
- webhookBaseUrl
properties:
frontappApiKey:
type: string
description: Your Frontapp API key.
webhookSecret:
type: string
description: Secret for verifying webhook signatures.
webhookBaseUrl:
type: string
description: Base URL for receiving webhooks.
port:
type: number
default: 3000
description: Port on which the MCP server will run.
logLevel:
type: string
default: info
description: Logging level (e.g., info, debug).
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: 'node',
args: ['dist/index.js'],
env: {
FRONTAPP_API_KEY: config.frontappApiKey,
WEBHOOK_SECRET: config.webhookSecret,
WEBHOOK_BASE_URL: config.webhookBaseUrl,
PORT: config.port ? String(config.port) : '3000',
LOG_LEVEL: config.logLevel || 'info'
}
})
exampleConfig:
frontappApiKey: dummy_frontapp_api_key
webhookSecret: dummy_webhook_secret
webhookBaseUrl: https://example.com/webhooks
port: 3000
logLevel: info