-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.schema.json
More file actions
85 lines (85 loc) · 3.58 KB
/
Copy pathconfig.schema.json
File metadata and controls
85 lines (85 loc) · 3.58 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/izumin5210/any-script-mcp/main/config.schema.json",
"title": "Any Script MCP Configuration",
"description": "Configuration schema for any-script-mcp - MCP server that exposes arbitrary CLI tools and shell scripts as MCP Tools via YAML configuration",
"$ref": "#/definitions/AnyScriptMCPConfig",
"definitions": {
"AnyScriptMCPConfig": {
"type": "object",
"properties": {
"tools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Unique identifier for the tool. Must contain only alphanumeric characters, underscores, and hyphens"
},
"description": {
"type": "string",
"description": "Comprehensive description for AI to understand when and how to use this tool"
},
"inputs": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["string", "number", "boolean"],
"description": "Data type of the input parameter"
},
"description": {
"type": "string",
"description": "Clear description for AI to understand the parameter's purpose and expected values"
},
"required": {
"type": "boolean",
"default": true,
"description": "Whether this input parameter is required. Defaults to true"
},
"default": {
"description": "Default value if the input is not provided"
}
},
"required": ["type", "description"],
"additionalProperties": false,
"description": "Input parameter definition for a tool"
},
"propertyNames": {
"pattern": "^[a-zA-Z0-9_-]+$"
},
"default": {},
"description": "Input parameters for the tool. Keys must contain only alphanumeric characters, underscores, and hyphens"
},
"run": {
"type": "string",
"description": "Shell script to execute when the tool is invoked"
},
"shell": {
"type": "string",
"default": "bash -e {0}",
"description": "Shell command to execute the script. '{0}' will be replaced with the script file path. Defaults to 'bash -e {0}'. Examples: 'python {0}', 'node {0}', 'deno run {0}'"
},
"timeout": {
"type": "number",
"default": 300000,
"description": "Maximum execution time in milliseconds. Defaults to 300000 (5 minutes)"
}
},
"required": ["name", "description", "run"],
"additionalProperties": false,
"description": "Configuration for a single tool"
},
"description": "List of tools to expose via MCP"
}
},
"required": ["tools"],
"additionalProperties": false,
"description": "Root configuration schema for any-script-mcp"
}
}
}