-
Notifications
You must be signed in to change notification settings - Fork 833
Expand file tree
/
Copy pathmcp_server_config.schema.json
More file actions
68 lines (68 loc) · 2.02 KB
/
mcp_server_config.schema.json
File metadata and controls
68 lines (68 loc) · 2.02 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
65
66
67
68
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MCP Server Configuration",
"description": "Configuration for a single MCP server.",
"type": "object",
"properties": {
"transport": {
"description": "Transport type. Auto-detected from 'command' (stdio) or 'url' (sse) if omitted.",
"type": "string",
"enum": ["stdio", "sse", "streamable-http"]
},
"command": {
"description": "Command to run for stdio transport.",
"type": "string"
},
"args": {
"description": "Arguments for the stdio command.",
"type": "array",
"items": { "type": "string" },
"default": []
},
"env": {
"description": "Environment variables for the stdio command.",
"type": "object",
"additionalProperties": { "type": "string" }
},
"cwd": {
"description": "Working directory for the stdio command.",
"type": "string"
},
"url": {
"description": "URL for sse or streamable-http transport.",
"type": "string"
},
"headers": {
"description": "HTTP headers for sse or streamable-http transport.",
"type": "object",
"additionalProperties": { "type": "string" }
},
"prefix": {
"description": "Prefix to apply to tool names from this server.",
"type": "string"
},
"startup_timeout": {
"description": "Timeout in seconds for server initialization. Defaults to 30.",
"type": "integer",
"default": 30
},
"tool_filters": {
"description": "Filters for controlling which tools are loaded.",
"type": "object",
"properties": {
"allowed": {
"description": "List of regex patterns for tools to include.",
"type": "array",
"items": { "type": "string" }
},
"rejected": {
"description": "List of regex patterns for tools to exclude.",
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}