-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsmithery.yaml
More file actions
112 lines (105 loc) · 2.68 KB
/
Copy pathsmithery.yaml
File metadata and controls
112 lines (105 loc) · 2.68 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Smithery.ai configuration
startCommand:
type: stdio
configSchema:
type: object
properties:
port:
type: integer
default: 5000
description: "Port to run the server on"
openai_api_key:
type: string
description: "OpenAI API Key for model access"
debug:
type: boolean
default: false
description: "Enable debug mode"
required: ["openai_api_key"]
commandFunction: |-
(config) => ({
command: "python",
args: [
"-m",
"flask",
"run",
"--host=0.0.0.0",
`--port=${config.port}`
],
env: {
"FLASK_APP": "dvmcp.app:app",
"FLASK_ENV": config.debug ? "development" : "production",
"OPENAI_API_KEY": config.openai_api_key
}
})
build:
dockerfile: Dockerfile
dockerBuildPath: .
mcp:
version: "1.0"
endpoints:
- name: tools/list
method: POST
path: /mcp
requestSchema:
type: object
properties:
jsonrpc: { type: string, const: "2.0" }
method: { type: string, const: "tools_list" }
id: { type: string }
- name: tools/call
method: POST
path: /mcp
requestSchema:
type: object
properties:
jsonrpc: { type: string, const: "2.0" }
method: { type: string, const: "tools_call" }
params: {
type: object,
properties: {
tool_name: { type: string }
parameters: { type: object }
}
}
id: { type: string }
- name: resources/list
method: POST
path: /mcp
requestSchema:
type: object
properties:
jsonrpc: { type: string, const: "2.0" }
method: { type: string, const: "resources_list" }
id: { type: string }
- name: resources/get
method: POST
path: /mcp
requestSchema:
type: object
properties:
jsonrpc: { type: string, const: "2.0" }
method: { type: string, const: "resources_get" }
params: {
type: object,
properties: {
resource_id: { type: string }
}
}
id: { type: string }
- name: prompts/generate
method: POST
path: /mcp
requestSchema:
type: object
properties:
jsonrpc: { type: string, const: "2.0" }
method: { type: string, const: "prompts_generate" }
params: {
type: object,
properties: {
prompt: { type: string }
model: { type: string }
}
}
id: { type: string }