This repository was archived by the owner on Apr 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient-methods.json
More file actions
324 lines (324 loc) · 11.6 KB
/
client-methods.json
File metadata and controls
324 lines (324 loc) · 11.6 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MCP Client Methods",
"description": "List of all client-to-server method calls in the Model Context Protocol",
"type": "object",
"properties": {
"methods": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the method"
},
"description": {
"type": "string",
"description": "Description of what the method does"
},
"params": {
"type": "object",
"description": "Parameters accepted by the method"
}
}
}
}
},
"methods": [
{
"name": "initialize",
"description": "Sent from the client to the server when it first connects, asking it to begin initialization",
"params": {
"capabilities": {
"type": "object",
"description": "Capabilities that the client supports"
},
"clientInfo": {
"type": "object",
"description": "Information about the client implementation",
"properties": {
"name": {
"type": "string",
"description": "Name of the client implementation"
},
"version": {
"type": "string",
"description": "Version of the client implementation"
}
}
},
"protocolVersion": {
"type": "string",
"description": "The latest version of the Model Context Protocol that the client supports"
}
}
},
{
"name": "ping",
"description": "A ping to check that the server is still alive",
"params": {
"_meta": {
"type": "object",
"properties": {
"progressToken": {
"type": [
"string",
"integer"
],
"description": "Token for progress notifications"
}
}
}
}
},
{
"name": "prompts/list",
"description": "Request a list of prompts and prompt templates from the server",
"params": {
"cursor": {
"type": "string",
"description": "An opaque token for pagination"
}
}
},
{
"name": "prompts/get",
"description": "Used by the client to get a prompt provided by the server",
"params": {
"name": {
"type": "string",
"description": "The name of the prompt or prompt template"
},
"arguments": {
"type": "object",
"description": "Arguments to use for templating the prompt",
"additionalProperties": {
"type": "string"
}
}
}
},
{
"name": "resources/templates/list",
"description": "Request a list of resource templates from the server",
"params": {
"cursor": {
"type": "string",
"description": "An opaque token for pagination"
}
}
},
{
"name": "resources/list",
"description": "Request a list of resources from the server",
"params": {
"cursor": {
"type": "string",
"description": "An opaque token for pagination"
}
}
},
{
"name": "resources/read",
"description": "Sent from the client to the server, to read a specific resource URI",
"params": {
"uri": {
"type": "string",
"format": "uri",
"description": "The URI of the resource to read"
}
}
},
{
"name": "resources/subscribe",
"description": "Request resources/updated notifications from the server whenever a particular resource changes",
"params": {
"uri": {
"type": "string",
"format": "uri",
"description": "The URI of the resource to subscribe to"
}
}
},
{
"name": "resources/unsubscribe",
"description": "Request cancellation of resources/updated notifications from the server",
"params": {
"uri": {
"type": "string",
"format": "uri",
"description": "The URI of the resource to unsubscribe from"
}
}
},
{
"name": "roots/list",
"description": "Request a list of root URIs from the client",
"params": {
"_meta": {
"type": "object",
"properties": {
"progressToken": {
"type": [
"string",
"integer"
],
"description": "Token for progress notifications"
}
}
}
}
},
{
"name": "tools/call",
"description": "Request the server to execute a tool",
"params": {
"name": {
"type": "string",
"description": "The name of the tool to call"
},
"arguments": {
"type": "object",
"description": "The parameters to pass to the tool",
"additionalProperties": true
}
}
},
{
"name": "tools/list",
"description": "Request a list of available tools from the server",
"params": {
"cursor": {
"type": "string",
"description": "An opaque token for pagination"
}
}
},
{
"name": "logging/setLevel",
"description": "A request from the client to the server, to enable or adjust logging",
"params": {
"level": {
"type": "string",
"enum": [
"alert",
"critical",
"debug",
"emergency",
"error",
"info",
"notice",
"warning"
],
"description": "The level of logging that the client wants to receive from the server"
}
}
},
{
"name": "completion/complete",
"description": "A request from the client to the server, to ask for completion options",
"params": {
"argument": {
"type": "object",
"description": "The argument's information",
"properties": {
"name": {
"type": "string",
"description": "The name of the argument"
},
"value": {
"type": "string",
"description": "The value of the argument to use for completion matching"
}
}
},
"ref": {
"type": "object",
"description": "Reference to a prompt or resource",
"oneOf": [
{
"properties": {
"type": {
"const": "ref/prompt"
},
"name": {
"type": "string"
}
}
},
{
"properties": {
"type": {
"const": "ref/resource"
},
"uri": {
"type": "string",
"format": "uri-template"
}
}
}
]
}
}
},
{
"name": "notifications/initialized",
"description": "Notification sent from the client to the server after initialization has finished",
"params": {
"_meta": {
"type": "object",
"description": "Additional metadata for the notification"
}
}
},
{
"name": "notifications/cancelled",
"description": "Notification sent by either side to indicate that it is cancelling a previously-issued request",
"params": {
"requestId": {
"type": [
"string",
"integer"
],
"description": "The ID of the request to cancel"
},
"reason": {
"type": "string",
"description": "An optional string describing the reason for the cancellation"
}
}
},
{
"name": "notifications/progress",
"description": "An out-of-band notification used to inform the receiver of a progress update for a long-running request",
"params": {
"progress": {
"type": "number",
"description": "The progress thus far"
},
"progressToken": {
"type": [
"string",
"integer"
],
"description": "The progress token which was given in the initial request"
},
"total": {
"type": "number",
"description": "Total number of items to process, if known"
}
}
},
{
"name": "notifications/roots/list_changed",
"description": "A notification from the client to the server, informing it that the list of roots has changed",
"params": {
"_meta": {
"type": "object",
"description": "Additional metadata for the notification"
}
}
}
]
}