-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmithery.yaml
More file actions
32 lines (31 loc) · 985 Bytes
/
smithery.yaml
File metadata and controls
32 lines (31 loc) · 985 Bytes
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
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml
startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
properties:
timeout:
type: number
description: Timeout in seconds for JavaScript execution (default: 30)
default: 30
maxMemory:
type: number
description: Maximum memory usage in MB for JavaScript execution (default: 128)
default: 128
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => {
const args = [];
if (config.timeout) {
args.push('--timeout', config.timeout.toString());
}
if (config.maxMemory) {
args.push('--max-memory', config.maxMemory.toString());
}
return { command: './server', args: args };
}
exampleConfig:
timeout: 30
maxMemory: 128