@digipair/skill-client-mcp 0.104.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +19980 -0
- package/index.d.ts +1 -0
- package/index.esm.js +19963 -0
- package/libs/skill-client-mcp/src/index.d.ts +1 -0
- package/libs/skill-client-mcp/src/lib/skill-client-mcp.d.ts +34 -0
- package/package.json +9 -0
- package/schema.fr.json +622 -0
- package/schema.json +622 -0
package/schema.json
ADDED
|
@@ -0,0 +1,622 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "@digipair/skill-client-mcp",
|
|
5
|
+
"summary": "Model Context Protocol client",
|
|
6
|
+
"description": "This skill provides functions to connect and interact with MCP (Model Context Protocol) servers.",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"x-icon": "🔗"
|
|
9
|
+
},
|
|
10
|
+
"paths": {
|
|
11
|
+
"/connect": {
|
|
12
|
+
"post": {
|
|
13
|
+
"tags": [
|
|
14
|
+
"service"
|
|
15
|
+
],
|
|
16
|
+
"summary": "Connects to an MCP server",
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"name": "url",
|
|
20
|
+
"summary": "Server URL",
|
|
21
|
+
"required": true,
|
|
22
|
+
"description": "URL of the MCP server to connect to",
|
|
23
|
+
"schema": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "name",
|
|
29
|
+
"summary": "Client name",
|
|
30
|
+
"required": false,
|
|
31
|
+
"description": "Name of the MCP client (default: digipair-mcp-client)",
|
|
32
|
+
"schema": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "version",
|
|
38
|
+
"summary": "Client version",
|
|
39
|
+
"required": false,
|
|
40
|
+
"description": "Version of the MCP client (default: 1.0.0)",
|
|
41
|
+
"schema": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "options",
|
|
47
|
+
"summary": "Transport options",
|
|
48
|
+
"required": false,
|
|
49
|
+
"description": "Additional transport options",
|
|
50
|
+
"schema": {
|
|
51
|
+
"type": "object"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"x-events": [],
|
|
56
|
+
"responses": {
|
|
57
|
+
"200": {
|
|
58
|
+
"description": "Successfully connected to MCP server",
|
|
59
|
+
"content": {
|
|
60
|
+
"application/json": {
|
|
61
|
+
"schema": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"description": "MCP client instance"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"/disconnect": {
|
|
72
|
+
"post": {
|
|
73
|
+
"tags": [
|
|
74
|
+
"service"
|
|
75
|
+
],
|
|
76
|
+
"summary": "Disconnects from an MCP server",
|
|
77
|
+
"parameters": [
|
|
78
|
+
{
|
|
79
|
+
"name": "client",
|
|
80
|
+
"summary": "MCP client",
|
|
81
|
+
"required": true,
|
|
82
|
+
"description": "The MCP client instance to disconnect",
|
|
83
|
+
"schema": {
|
|
84
|
+
"type": "object"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"x-events": [],
|
|
89
|
+
"responses": {
|
|
90
|
+
"200": {
|
|
91
|
+
"description": "Successfully disconnected from MCP server",
|
|
92
|
+
"content": {
|
|
93
|
+
"application/json": {
|
|
94
|
+
"schema": {
|
|
95
|
+
"type": "null"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"/listResources": {
|
|
104
|
+
"post": {
|
|
105
|
+
"tags": [
|
|
106
|
+
"service"
|
|
107
|
+
],
|
|
108
|
+
"summary": "Lists available resources",
|
|
109
|
+
"parameters": [
|
|
110
|
+
{
|
|
111
|
+
"name": "client",
|
|
112
|
+
"summary": "MCP client",
|
|
113
|
+
"required": true,
|
|
114
|
+
"description": "The MCP client instance",
|
|
115
|
+
"schema": {
|
|
116
|
+
"type": "object"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"x-events": [],
|
|
121
|
+
"responses": {
|
|
122
|
+
"200": {
|
|
123
|
+
"description": "List of available resources",
|
|
124
|
+
"content": {
|
|
125
|
+
"application/json": {
|
|
126
|
+
"schema": {
|
|
127
|
+
"type": "object",
|
|
128
|
+
"properties": {
|
|
129
|
+
"resources": {
|
|
130
|
+
"type": "array",
|
|
131
|
+
"items": {
|
|
132
|
+
"$ref": "#/components/schemas/Resource"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"/readResource": {
|
|
144
|
+
"post": {
|
|
145
|
+
"tags": [
|
|
146
|
+
"service"
|
|
147
|
+
],
|
|
148
|
+
"summary": "Reads a specific resource",
|
|
149
|
+
"parameters": [
|
|
150
|
+
{
|
|
151
|
+
"name": "client",
|
|
152
|
+
"summary": "MCP client",
|
|
153
|
+
"required": true,
|
|
154
|
+
"description": "The MCP client instance",
|
|
155
|
+
"schema": {
|
|
156
|
+
"type": "object"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "uri",
|
|
161
|
+
"summary": "Resource URI",
|
|
162
|
+
"required": true,
|
|
163
|
+
"description": "URI of the resource to read",
|
|
164
|
+
"schema": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
"x-events": [],
|
|
170
|
+
"responses": {
|
|
171
|
+
"200": {
|
|
172
|
+
"description": "Resource content",
|
|
173
|
+
"content": {
|
|
174
|
+
"application/json": {
|
|
175
|
+
"schema": {
|
|
176
|
+
"type": "object",
|
|
177
|
+
"properties": {
|
|
178
|
+
"contents": {
|
|
179
|
+
"type": "array",
|
|
180
|
+
"items": {
|
|
181
|
+
"$ref": "#/components/schemas/ResourceContent"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"/listTools": {
|
|
193
|
+
"post": {
|
|
194
|
+
"tags": [
|
|
195
|
+
"service"
|
|
196
|
+
],
|
|
197
|
+
"summary": "Lists available tools",
|
|
198
|
+
"parameters": [
|
|
199
|
+
{
|
|
200
|
+
"name": "client",
|
|
201
|
+
"summary": "MCP client",
|
|
202
|
+
"required": true,
|
|
203
|
+
"description": "The MCP client instance",
|
|
204
|
+
"schema": {
|
|
205
|
+
"type": "object"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"x-events": [],
|
|
210
|
+
"responses": {
|
|
211
|
+
"200": {
|
|
212
|
+
"description": "List of available tools",
|
|
213
|
+
"content": {
|
|
214
|
+
"application/json": {
|
|
215
|
+
"schema": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"properties": {
|
|
218
|
+
"tools": {
|
|
219
|
+
"type": "array",
|
|
220
|
+
"items": {
|
|
221
|
+
"$ref": "#/components/schemas/Tool"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"/callTool": {
|
|
233
|
+
"post": {
|
|
234
|
+
"tags": [
|
|
235
|
+
"service"
|
|
236
|
+
],
|
|
237
|
+
"summary": "Calls a specific tool",
|
|
238
|
+
"parameters": [
|
|
239
|
+
{
|
|
240
|
+
"name": "client",
|
|
241
|
+
"summary": "MCP client",
|
|
242
|
+
"required": true,
|
|
243
|
+
"description": "The MCP client instance",
|
|
244
|
+
"schema": {
|
|
245
|
+
"type": "object"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "name",
|
|
250
|
+
"summary": "Tool name",
|
|
251
|
+
"required": true,
|
|
252
|
+
"description": "Name of the tool to call",
|
|
253
|
+
"schema": {
|
|
254
|
+
"type": "string"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "arguments",
|
|
259
|
+
"summary": "Tool arguments",
|
|
260
|
+
"required": false,
|
|
261
|
+
"description": "Arguments to pass to the tool",
|
|
262
|
+
"schema": {
|
|
263
|
+
"type": "object"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"x-events": [],
|
|
268
|
+
"responses": {
|
|
269
|
+
"200": {
|
|
270
|
+
"description": "Tool execution result",
|
|
271
|
+
"content": {
|
|
272
|
+
"application/json": {
|
|
273
|
+
"schema": {
|
|
274
|
+
"type": "object",
|
|
275
|
+
"properties": {
|
|
276
|
+
"content": {
|
|
277
|
+
"type": "array",
|
|
278
|
+
"items": {
|
|
279
|
+
"$ref": "#/components/schemas/ToolResult"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
"/listPrompts": {
|
|
291
|
+
"post": {
|
|
292
|
+
"tags": [
|
|
293
|
+
"service"
|
|
294
|
+
],
|
|
295
|
+
"summary": "Lists available prompts",
|
|
296
|
+
"parameters": [
|
|
297
|
+
{
|
|
298
|
+
"name": "client",
|
|
299
|
+
"summary": "MCP client",
|
|
300
|
+
"required": true,
|
|
301
|
+
"description": "The MCP client instance",
|
|
302
|
+
"schema": {
|
|
303
|
+
"type": "object"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
],
|
|
307
|
+
"x-events": [],
|
|
308
|
+
"responses": {
|
|
309
|
+
"200": {
|
|
310
|
+
"description": "List of available prompts",
|
|
311
|
+
"content": {
|
|
312
|
+
"application/json": {
|
|
313
|
+
"schema": {
|
|
314
|
+
"type": "object",
|
|
315
|
+
"properties": {
|
|
316
|
+
"prompts": {
|
|
317
|
+
"type": "array",
|
|
318
|
+
"items": {
|
|
319
|
+
"$ref": "#/components/schemas/Prompt"
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"/getPrompt": {
|
|
331
|
+
"post": {
|
|
332
|
+
"tags": [
|
|
333
|
+
"service"
|
|
334
|
+
],
|
|
335
|
+
"summary": "Gets a specific prompt",
|
|
336
|
+
"parameters": [
|
|
337
|
+
{
|
|
338
|
+
"name": "client",
|
|
339
|
+
"summary": "MCP client",
|
|
340
|
+
"required": true,
|
|
341
|
+
"description": "The MCP client instance",
|
|
342
|
+
"schema": {
|
|
343
|
+
"type": "object"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "name",
|
|
348
|
+
"summary": "Prompt name",
|
|
349
|
+
"required": true,
|
|
350
|
+
"description": "Name of the prompt to get",
|
|
351
|
+
"schema": {
|
|
352
|
+
"type": "string"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"name": "arguments",
|
|
357
|
+
"summary": "Prompt arguments",
|
|
358
|
+
"required": false,
|
|
359
|
+
"description": "Arguments to pass to the prompt",
|
|
360
|
+
"schema": {
|
|
361
|
+
"type": "object"
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
],
|
|
365
|
+
"x-events": [],
|
|
366
|
+
"responses": {
|
|
367
|
+
"200": {
|
|
368
|
+
"description": "Prompt content",
|
|
369
|
+
"content": {
|
|
370
|
+
"application/json": {
|
|
371
|
+
"schema": {
|
|
372
|
+
"type": "object",
|
|
373
|
+
"properties": {
|
|
374
|
+
"description": {
|
|
375
|
+
"type": "string"
|
|
376
|
+
},
|
|
377
|
+
"messages": {
|
|
378
|
+
"type": "array",
|
|
379
|
+
"items": {
|
|
380
|
+
"$ref": "#/components/schemas/PromptMessage"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
"/getServerCapabilities": {
|
|
392
|
+
"post": {
|
|
393
|
+
"tags": [
|
|
394
|
+
"service"
|
|
395
|
+
],
|
|
396
|
+
"summary": "Gets server capabilities",
|
|
397
|
+
"parameters": [
|
|
398
|
+
{
|
|
399
|
+
"name": "client",
|
|
400
|
+
"summary": "MCP client",
|
|
401
|
+
"required": true,
|
|
402
|
+
"description": "The MCP client instance",
|
|
403
|
+
"schema": {
|
|
404
|
+
"type": "object"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"x-events": [],
|
|
409
|
+
"responses": {
|
|
410
|
+
"200": {
|
|
411
|
+
"description": "Server capabilities",
|
|
412
|
+
"content": {
|
|
413
|
+
"application/json": {
|
|
414
|
+
"schema": {
|
|
415
|
+
"$ref": "#/components/schemas/ServerCapabilities"
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"/getServerInfo": {
|
|
424
|
+
"post": {
|
|
425
|
+
"tags": [
|
|
426
|
+
"service"
|
|
427
|
+
],
|
|
428
|
+
"summary": "Gets server information",
|
|
429
|
+
"parameters": [
|
|
430
|
+
{
|
|
431
|
+
"name": "client",
|
|
432
|
+
"summary": "MCP client",
|
|
433
|
+
"required": true,
|
|
434
|
+
"description": "The MCP client instance",
|
|
435
|
+
"schema": {
|
|
436
|
+
"type": "object"
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
],
|
|
440
|
+
"x-events": [],
|
|
441
|
+
"responses": {
|
|
442
|
+
"200": {
|
|
443
|
+
"description": "Server information",
|
|
444
|
+
"content": {
|
|
445
|
+
"application/json": {
|
|
446
|
+
"schema": {
|
|
447
|
+
"$ref": "#/components/schemas/ServerInfo"
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"components": {
|
|
457
|
+
"schemas": {
|
|
458
|
+
"Resource": {
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {
|
|
461
|
+
"uri": {
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
"name": {
|
|
465
|
+
"type": "string"
|
|
466
|
+
},
|
|
467
|
+
"description": {
|
|
468
|
+
"type": "string"
|
|
469
|
+
},
|
|
470
|
+
"mimeType": {
|
|
471
|
+
"type": "string"
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"ResourceContent": {
|
|
476
|
+
"type": "object",
|
|
477
|
+
"properties": {
|
|
478
|
+
"uri": {
|
|
479
|
+
"type": "string"
|
|
480
|
+
},
|
|
481
|
+
"mimeType": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"text": {
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
"blob": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"format": "base64"
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"Tool": {
|
|
494
|
+
"type": "object",
|
|
495
|
+
"properties": {
|
|
496
|
+
"name": {
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
499
|
+
"description": {
|
|
500
|
+
"type": "string"
|
|
501
|
+
},
|
|
502
|
+
"inputSchema": {
|
|
503
|
+
"type": "object"
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"ToolResult": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"properties": {
|
|
510
|
+
"type": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"text": {
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
"data": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"format": "base64"
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"Prompt": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"name": {
|
|
526
|
+
"type": "string"
|
|
527
|
+
},
|
|
528
|
+
"description": {
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
531
|
+
"arguments": {
|
|
532
|
+
"type": "array",
|
|
533
|
+
"items": {
|
|
534
|
+
"$ref": "#/components/schemas/PromptArgument"
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"PromptArgument": {
|
|
540
|
+
"type": "object",
|
|
541
|
+
"properties": {
|
|
542
|
+
"name": {
|
|
543
|
+
"type": "string"
|
|
544
|
+
},
|
|
545
|
+
"description": {
|
|
546
|
+
"type": "string"
|
|
547
|
+
},
|
|
548
|
+
"required": {
|
|
549
|
+
"type": "boolean"
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"PromptMessage": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"properties": {
|
|
556
|
+
"role": {
|
|
557
|
+
"type": "string"
|
|
558
|
+
},
|
|
559
|
+
"content": {
|
|
560
|
+
"type": "object"
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"ServerCapabilities": {
|
|
565
|
+
"type": "object",
|
|
566
|
+
"properties": {
|
|
567
|
+
"experimental": {
|
|
568
|
+
"type": "object"
|
|
569
|
+
},
|
|
570
|
+
"sampling": {
|
|
571
|
+
"type": "object"
|
|
572
|
+
},
|
|
573
|
+
"logging": {
|
|
574
|
+
"type": "object"
|
|
575
|
+
},
|
|
576
|
+
"prompts": {
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"listChanged": {
|
|
580
|
+
"type": "boolean"
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
},
|
|
584
|
+
"resources": {
|
|
585
|
+
"type": "object",
|
|
586
|
+
"properties": {
|
|
587
|
+
"subscribe": {
|
|
588
|
+
"type": "boolean"
|
|
589
|
+
},
|
|
590
|
+
"listChanged": {
|
|
591
|
+
"type": "boolean"
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"tools": {
|
|
596
|
+
"type": "object",
|
|
597
|
+
"properties": {
|
|
598
|
+
"listChanged": {
|
|
599
|
+
"type": "boolean"
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"ServerInfo": {
|
|
606
|
+
"type": "object",
|
|
607
|
+
"properties": {
|
|
608
|
+
"name": {
|
|
609
|
+
"type": "string"
|
|
610
|
+
},
|
|
611
|
+
"version": {
|
|
612
|
+
"type": "string"
|
|
613
|
+
},
|
|
614
|
+
"protocolVersion": {
|
|
615
|
+
"type": "string"
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
"x-scene-blocks": {}
|
|
622
|
+
}
|