# 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:
- mysqlHost
- mysqlPort
- mysqlUser
properties:
mysqlHost:
type: string
description: The host address of the MySQL database.
mysqlPort:
type: string
description: The port number for connecting to MySQL.
mysqlUser:
type: string
description: The username for MySQL authentication.
mysqlPass:
type: string
description: The password for the specified MySQL user.
mysqlDb:
type: string
description: The database name to connect to. If left blank, retrieves all
databases.
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.mysqlHost, MYSQL_PORT: config.mysqlPort, MYSQL_USER: config.mysqlUser, MYSQL_PASS: config.mysqlPass, MYSQL_DB: config.mysqlDb}})