-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsmithery.yaml
26 lines (25 loc) · 1.03 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
# 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:
- allowedDirectory
properties:
allowedDirectory:
type: string
description: The absolute path to an allowed directory for the filesystem
server. For example, in the Docker container '/app' is a good default.
additionalDirectories:
type: array
items:
type: string
description: Optional additional allowed directories.
commandFunction:
# A JS function that produces the CLI command based on the given config to start the MCP on stdio.
|-
(config) => { const args = [config.allowedDirectory]; if (config.additionalDirectories && Array.isArray(config.additionalDirectories)) { args.push(...config.additionalDirectories); } return { command: './server', args: args }; }
exampleConfig:
allowedDirectory: /app
additionalDirectories: []