@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.
@@ -0,0 +1 @@
1
+ export * from './lib/skill-client-mcp';
@@ -0,0 +1,34 @@
1
+ import { PinsSettings } from '@digipair/engine';
2
+ import { Client } from '@modelcontextprotocol/sdk/client/index.js';
3
+ export declare const connect: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<Client<{
4
+ method: string;
5
+ params?: {
6
+ [x: string]: unknown;
7
+ _meta?: {
8
+ [x: string]: unknown;
9
+ progressToken?: string | number | undefined;
10
+ } | undefined;
11
+ } | undefined;
12
+ }, {
13
+ method: string;
14
+ params?: {
15
+ [x: string]: unknown;
16
+ _meta?: {
17
+ [x: string]: unknown;
18
+ } | undefined;
19
+ } | undefined;
20
+ }, {
21
+ [x: string]: unknown;
22
+ _meta?: {
23
+ [x: string]: unknown;
24
+ } | undefined;
25
+ }>>;
26
+ export declare const disconnect: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
27
+ export declare const listResources: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
28
+ export declare const readResource: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
29
+ export declare const listTools: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
30
+ export declare const callTool: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
31
+ export declare const listPrompts: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
32
+ export declare const getPrompt: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
33
+ export declare const getServerCapabilities: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
34
+ export declare const getServerInfo: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
package/package.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@digipair/skill-client-mcp",
3
+ "version": "0.104.0",
4
+ "dependencies": {
5
+ "@modelcontextprotocol/sdk": "^1.18.2"
6
+ },
7
+ "main": "./index.cjs.js",
8
+ "module": "./index.esm.js"
9
+ }
package/schema.fr.json ADDED
@@ -0,0 +1,622 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-client-mcp",
5
+ "summary": "Client Model Context Protocol",
6
+ "description": "Cette compétence fournit des fonctions pour se connecter et interagir avec les serveurs MCP (Model Context Protocol).",
7
+ "version": "0.1.0",
8
+ "x-icon": "đź”—"
9
+ },
10
+ "paths": {
11
+ "/connect": {
12
+ "post": {
13
+ "tags": [
14
+ "service"
15
+ ],
16
+ "summary": "Se connecter Ă  un serveur MCP",
17
+ "parameters": [
18
+ {
19
+ "name": "url",
20
+ "summary": "URL du serveur",
21
+ "required": true,
22
+ "description": "URL du serveur MCP auquel se connecter",
23
+ "schema": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ {
28
+ "name": "name",
29
+ "summary": "Nom du client",
30
+ "required": false,
31
+ "description": "Nom du client MCP (par défaut: digipair-mcp-client)",
32
+ "schema": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ {
37
+ "name": "version",
38
+ "summary": "Version du client",
39
+ "required": false,
40
+ "description": "Version du client MCP (par défaut: 1.0.0)",
41
+ "schema": {
42
+ "type": "string"
43
+ }
44
+ },
45
+ {
46
+ "name": "options",
47
+ "summary": "Options de transport",
48
+ "required": false,
49
+ "description": "Options de transport supplémentaires",
50
+ "schema": {
51
+ "type": "object"
52
+ }
53
+ }
54
+ ],
55
+ "x-events": [],
56
+ "responses": {
57
+ "200": {
58
+ "description": "Connexion réussie au serveur MCP",
59
+ "content": {
60
+ "application/json": {
61
+ "schema": {
62
+ "type": "object",
63
+ "description": "Instance du client MCP"
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "/disconnect": {
72
+ "post": {
73
+ "tags": [
74
+ "service"
75
+ ],
76
+ "summary": "Se déconnecter d'un serveur MCP",
77
+ "parameters": [
78
+ {
79
+ "name": "client",
80
+ "summary": "Client MCP",
81
+ "required": true,
82
+ "description": "L'instance du client MCP à déconnecter",
83
+ "schema": {
84
+ "type": "object"
85
+ }
86
+ }
87
+ ],
88
+ "x-events": [],
89
+ "responses": {
90
+ "200": {
91
+ "description": "Déconnexion réussie du serveur MCP",
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": "Lister les ressources disponibles",
109
+ "parameters": [
110
+ {
111
+ "name": "client",
112
+ "summary": "Client MCP",
113
+ "required": true,
114
+ "description": "L'instance du client MCP",
115
+ "schema": {
116
+ "type": "object"
117
+ }
118
+ }
119
+ ],
120
+ "x-events": [],
121
+ "responses": {
122
+ "200": {
123
+ "description": "Liste des ressources disponibles",
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": "Lire une ressource spécifique",
149
+ "parameters": [
150
+ {
151
+ "name": "client",
152
+ "summary": "Client MCP",
153
+ "required": true,
154
+ "description": "L'instance du client MCP",
155
+ "schema": {
156
+ "type": "object"
157
+ }
158
+ },
159
+ {
160
+ "name": "uri",
161
+ "summary": "URI de la ressource",
162
+ "required": true,
163
+ "description": "URI de la ressource Ă  lire",
164
+ "schema": {
165
+ "type": "string"
166
+ }
167
+ }
168
+ ],
169
+ "x-events": [],
170
+ "responses": {
171
+ "200": {
172
+ "description": "Contenu de la ressource",
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": "Lister les outils disponibles",
198
+ "parameters": [
199
+ {
200
+ "name": "client",
201
+ "summary": "Client MCP",
202
+ "required": true,
203
+ "description": "L'instance du client MCP",
204
+ "schema": {
205
+ "type": "object"
206
+ }
207
+ }
208
+ ],
209
+ "x-events": [],
210
+ "responses": {
211
+ "200": {
212
+ "description": "Liste des outils disponibles",
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": "Appeler un outil spécifique",
238
+ "parameters": [
239
+ {
240
+ "name": "client",
241
+ "summary": "Client MCP",
242
+ "required": true,
243
+ "description": "L'instance du client MCP",
244
+ "schema": {
245
+ "type": "object"
246
+ }
247
+ },
248
+ {
249
+ "name": "name",
250
+ "summary": "Nom de l'outil",
251
+ "required": true,
252
+ "description": "Nom de l'outil Ă  appeler",
253
+ "schema": {
254
+ "type": "string"
255
+ }
256
+ },
257
+ {
258
+ "name": "arguments",
259
+ "summary": "Arguments de l'outil",
260
+ "required": false,
261
+ "description": "Arguments Ă  passer Ă  l'outil",
262
+ "schema": {
263
+ "type": "object"
264
+ }
265
+ }
266
+ ],
267
+ "x-events": [],
268
+ "responses": {
269
+ "200": {
270
+ "description": "Résultat de l'exécution de l'outil",
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": "Lister les invites disponibles",
296
+ "parameters": [
297
+ {
298
+ "name": "client",
299
+ "summary": "Client MCP",
300
+ "required": true,
301
+ "description": "L'instance du client MCP",
302
+ "schema": {
303
+ "type": "object"
304
+ }
305
+ }
306
+ ],
307
+ "x-events": [],
308
+ "responses": {
309
+ "200": {
310
+ "description": "Liste des invites disponibles",
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": "Obtenir une invite spécifique",
336
+ "parameters": [
337
+ {
338
+ "name": "client",
339
+ "summary": "Client MCP",
340
+ "required": true,
341
+ "description": "L'instance du client MCP",
342
+ "schema": {
343
+ "type": "object"
344
+ }
345
+ },
346
+ {
347
+ "name": "name",
348
+ "summary": "Nom de l'invite",
349
+ "required": true,
350
+ "description": "Nom de l'invite Ă  obtenir",
351
+ "schema": {
352
+ "type": "string"
353
+ }
354
+ },
355
+ {
356
+ "name": "arguments",
357
+ "summary": "Arguments de l'invite",
358
+ "required": false,
359
+ "description": "Arguments Ă  passer Ă  l'invite",
360
+ "schema": {
361
+ "type": "object"
362
+ }
363
+ }
364
+ ],
365
+ "x-events": [],
366
+ "responses": {
367
+ "200": {
368
+ "description": "Contenu de l'invite",
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": "Obtenir les capacités du serveur",
397
+ "parameters": [
398
+ {
399
+ "name": "client",
400
+ "summary": "Client MCP",
401
+ "required": true,
402
+ "description": "L'instance du client MCP",
403
+ "schema": {
404
+ "type": "object"
405
+ }
406
+ }
407
+ ],
408
+ "x-events": [],
409
+ "responses": {
410
+ "200": {
411
+ "description": "Capacités du serveur",
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": "Obtenir les informations du serveur",
429
+ "parameters": [
430
+ {
431
+ "name": "client",
432
+ "summary": "Client MCP",
433
+ "required": true,
434
+ "description": "L'instance du client MCP",
435
+ "schema": {
436
+ "type": "object"
437
+ }
438
+ }
439
+ ],
440
+ "x-events": [],
441
+ "responses": {
442
+ "200": {
443
+ "description": "Informations du serveur",
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
+ }