-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathsmithery.yaml
More file actions
64 lines (63 loc) · 1.74 KB
/
smithery.yaml
File metadata and controls
64 lines (63 loc) · 1.74 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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:
- trinoHost
- trinoPort
- trinoUser
properties:
trinoHost:
type: string
default: localhost
description: Trino server hostname
trinoPort:
type: number
default: 8080
description: Trino server port
trinoUser:
type: string
default: trino
description: Trino username
trinoCatalog:
type: string
default: ""
description: Default Trino catalog (optional)
trinoSchema:
type: string
default: ""
description: Default Trino schema (optional)
trinoHttpScheme:
type: string
default: http
description: HTTP scheme, e.g., http or https
trinoPassword:
type: string
default: ""
description: Trino password for authentication (optional)
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => ({
command: 'python',
args: ['src/server.py'],
env: {
TRINO_HOST: config.trinoHost,
TRINO_PORT: config.trinoPort.toString(),
TRINO_USER: config.trinoUser,
TRINO_CATALOG: config.trinoCatalog,
TRINO_SCHEMA: config.trinoSchema,
TRINO_HTTP_SCHEME: config.trinoHttpScheme,
TRINO_PASSWORD: config.trinoPassword
}
})
exampleConfig:
trinoHost: localhost
trinoPort: 8080
trinoUser: trino
trinoCatalog: hive
trinoSchema: default
trinoHttpScheme: http
trinoPassword: ""