smithery.yaml•1.16 kB
# Smithery.ai configuration
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
properties:
MYSQL_HOST:
type: string
description: MySQL server address
MYSQL_PORT:
type: string
description: MySQL server port
MYSQL_USER:
type: string
description: MySQL username
MYSQL_PASSWORD:
type: string
description: MySQL password
MYSQL_DATABASE:
type: string
description: Initial database
MYSQL_READONLY:
type: boolean
description: Read-only mode, set true to enable
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({
"command": "node",
"args": [
"dist/index.js"
],
"env": {
MYSQL_HOST: config.MYSQL_HOST,
MYSQL_PORT: config.MYSQL_PORT,
MYSQL_USER: config.MYSQL_USER,
MYSQL_PASSWORD: config.MYSQL_PASSWORD,
MYSQL_DATABASE: config.MYSQL_DATABASE,
MYSQL_READONLY: config.MYSQL_READONLY.toString()
}
})