-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsmithery.yaml
33 lines (32 loc) · 1.13 KB
/
smithery.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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
- mysqlPass
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}})