@digipair/skill-client-mcp 0.105.3 → 0.106.1
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.js +31577 -2487
- package/index.esm.js +31558 -2490
- package/libs/engine/src/index.d.ts +2 -0
- package/libs/engine/src/lib/alias.interface.d.ts +9 -0
- package/libs/engine/src/lib/engine.d.ts +13 -0
- package/libs/engine/src/lib/pins-settings.interface.d.ts +15 -0
- package/libs/skill-client-mcp/src/lib/skill-client-mcp.d.ts +24 -2
- package/package.json +6 -1
- package/schema.fr.json +96 -26
- package/schema.json +110 -40
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PinsSettings } from './pins-settings.interface';
|
|
2
|
+
type CONFIG_KEY = 'BASE_URL' | 'LIBRARIES' | 'ALIAS' | 'LOGGER';
|
|
3
|
+
export declare const config: {
|
|
4
|
+
set: (key: CONFIG_KEY, value: any) => void;
|
|
5
|
+
log: (level: string, path: string, message: string, context: any, data?: any) => any;
|
|
6
|
+
};
|
|
7
|
+
export declare const applyTemplate: (value: any, context: any) => any;
|
|
8
|
+
export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, path?: string) => Promise<any>;
|
|
9
|
+
export declare const generateElementFromPins: (pinsSettings: PinsSettings, parent: Element, context: any, document?: Document, options?: {
|
|
10
|
+
import: boolean;
|
|
11
|
+
}) => Promise<Element | void>;
|
|
12
|
+
export declare const preparePinsSettings: (settings: PinsSettings, context: any) => PinsSettings;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface PinsSettings {
|
|
2
|
+
library: string;
|
|
3
|
+
element: string;
|
|
4
|
+
properties?: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
conditions?: {
|
|
8
|
+
if?: boolean;
|
|
9
|
+
each?: any[];
|
|
10
|
+
};
|
|
11
|
+
pins?: PinsSettings[];
|
|
12
|
+
events?: {
|
|
13
|
+
[key: string]: PinsSettings[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
import { PinsSettings } from '@digipair/engine';
|
|
2
2
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const StreamableHTTPClient: (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 StdioClient: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<Client<{
|
|
4
27
|
method: string;
|
|
5
28
|
params?: {
|
|
6
29
|
[x: string]: unknown;
|
|
@@ -23,7 +46,6 @@ export declare const connect: (params: any, pinsSettingsList: PinsSettings[], co
|
|
|
23
46
|
[x: string]: unknown;
|
|
24
47
|
} | undefined;
|
|
25
48
|
}>>;
|
|
26
|
-
export declare const disconnect: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
|
|
27
49
|
export declare const listResources: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
28
50
|
export declare const readResource: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
|
29
51
|
export declare const listTools: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any>;
|
package/package.json
CHANGED
package/schema.fr.json
CHANGED
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"x-icon": "🔗"
|
|
9
9
|
},
|
|
10
10
|
"paths": {
|
|
11
|
-
"/
|
|
11
|
+
"/StreamableHTTPClient": {
|
|
12
12
|
"post": {
|
|
13
13
|
"tags": [
|
|
14
14
|
"service"
|
|
15
15
|
],
|
|
16
|
-
"summary": "
|
|
16
|
+
"summary": "Client MCP HTTP",
|
|
17
17
|
"parameters": [
|
|
18
18
|
{
|
|
19
19
|
"name": "url",
|
|
@@ -68,18 +68,36 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
"/
|
|
71
|
+
"/StdioClient": {
|
|
72
72
|
"post": {
|
|
73
73
|
"tags": [
|
|
74
74
|
"service"
|
|
75
75
|
],
|
|
76
|
-
"summary": "
|
|
76
|
+
"summary": "Client MCP STDIO",
|
|
77
77
|
"parameters": [
|
|
78
78
|
{
|
|
79
|
-
"name": "
|
|
80
|
-
"summary": "
|
|
81
|
-
"required":
|
|
82
|
-
"description": "
|
|
79
|
+
"name": "name",
|
|
80
|
+
"summary": "Nom du client",
|
|
81
|
+
"required": false,
|
|
82
|
+
"description": "Nom du client MCP (par défaut: digipair-mcp-client)",
|
|
83
|
+
"schema": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "version",
|
|
89
|
+
"summary": "Version du client",
|
|
90
|
+
"required": false,
|
|
91
|
+
"description": "Version du client MCP (par défaut: 1.0.0)",
|
|
92
|
+
"schema": {
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "options",
|
|
98
|
+
"summary": "Options de transport",
|
|
99
|
+
"required": false,
|
|
100
|
+
"description": "Options de transport supplémentaires",
|
|
83
101
|
"schema": {
|
|
84
102
|
"type": "object"
|
|
85
103
|
}
|
|
@@ -88,11 +106,12 @@
|
|
|
88
106
|
"x-events": [],
|
|
89
107
|
"responses": {
|
|
90
108
|
"200": {
|
|
91
|
-
"description": "
|
|
109
|
+
"description": "Connexion réussie au serveur MCP",
|
|
92
110
|
"content": {
|
|
93
111
|
"application/json": {
|
|
94
112
|
"schema": {
|
|
95
|
-
"type": "
|
|
113
|
+
"type": "object",
|
|
114
|
+
"description": "Instance du client MCP"
|
|
96
115
|
}
|
|
97
116
|
}
|
|
98
117
|
}
|
|
@@ -111,9 +130,12 @@
|
|
|
111
130
|
"name": "client",
|
|
112
131
|
"summary": "Client MCP",
|
|
113
132
|
"required": true,
|
|
114
|
-
"description": "
|
|
133
|
+
"description": "Instance du client MCP",
|
|
115
134
|
"schema": {
|
|
116
|
-
"type": "
|
|
135
|
+
"type": "array",
|
|
136
|
+
"items": {
|
|
137
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
138
|
+
}
|
|
117
139
|
}
|
|
118
140
|
}
|
|
119
141
|
],
|
|
@@ -151,9 +173,12 @@
|
|
|
151
173
|
"name": "client",
|
|
152
174
|
"summary": "Client MCP",
|
|
153
175
|
"required": true,
|
|
154
|
-
"description": "
|
|
176
|
+
"description": "Instance du client MCP",
|
|
155
177
|
"schema": {
|
|
156
|
-
"type": "
|
|
178
|
+
"type": "array",
|
|
179
|
+
"items": {
|
|
180
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
181
|
+
}
|
|
157
182
|
}
|
|
158
183
|
},
|
|
159
184
|
{
|
|
@@ -200,9 +225,12 @@
|
|
|
200
225
|
"name": "client",
|
|
201
226
|
"summary": "Client MCP",
|
|
202
227
|
"required": true,
|
|
203
|
-
"description": "
|
|
228
|
+
"description": "Instance du client MCP",
|
|
204
229
|
"schema": {
|
|
205
|
-
"type": "
|
|
230
|
+
"type": "array",
|
|
231
|
+
"items": {
|
|
232
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
233
|
+
}
|
|
206
234
|
}
|
|
207
235
|
}
|
|
208
236
|
],
|
|
@@ -240,9 +268,12 @@
|
|
|
240
268
|
"name": "client",
|
|
241
269
|
"summary": "Client MCP",
|
|
242
270
|
"required": true,
|
|
243
|
-
"description": "
|
|
271
|
+
"description": "Instance du client MCP",
|
|
244
272
|
"schema": {
|
|
245
|
-
"type": "
|
|
273
|
+
"type": "array",
|
|
274
|
+
"items": {
|
|
275
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
276
|
+
}
|
|
246
277
|
}
|
|
247
278
|
},
|
|
248
279
|
{
|
|
@@ -298,9 +329,12 @@
|
|
|
298
329
|
"name": "client",
|
|
299
330
|
"summary": "Client MCP",
|
|
300
331
|
"required": true,
|
|
301
|
-
"description": "
|
|
332
|
+
"description": "Instance du client MCP",
|
|
302
333
|
"schema": {
|
|
303
|
-
"type": "
|
|
334
|
+
"type": "array",
|
|
335
|
+
"items": {
|
|
336
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
337
|
+
}
|
|
304
338
|
}
|
|
305
339
|
}
|
|
306
340
|
],
|
|
@@ -338,9 +372,12 @@
|
|
|
338
372
|
"name": "client",
|
|
339
373
|
"summary": "Client MCP",
|
|
340
374
|
"required": true,
|
|
341
|
-
"description": "
|
|
375
|
+
"description": "Instance du client MCP",
|
|
342
376
|
"schema": {
|
|
343
|
-
"type": "
|
|
377
|
+
"type": "array",
|
|
378
|
+
"items": {
|
|
379
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
380
|
+
}
|
|
344
381
|
}
|
|
345
382
|
},
|
|
346
383
|
{
|
|
@@ -399,9 +436,12 @@
|
|
|
399
436
|
"name": "client",
|
|
400
437
|
"summary": "Client MCP",
|
|
401
438
|
"required": true,
|
|
402
|
-
"description": "
|
|
439
|
+
"description": "Instance du client MCP",
|
|
403
440
|
"schema": {
|
|
404
|
-
"type": "
|
|
441
|
+
"type": "array",
|
|
442
|
+
"items": {
|
|
443
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
444
|
+
}
|
|
405
445
|
}
|
|
406
446
|
}
|
|
407
447
|
],
|
|
@@ -431,9 +471,12 @@
|
|
|
431
471
|
"name": "client",
|
|
432
472
|
"summary": "Client MCP",
|
|
433
473
|
"required": true,
|
|
434
|
-
"description": "
|
|
474
|
+
"description": "Instance du client MCP",
|
|
435
475
|
"schema": {
|
|
436
|
-
"type": "
|
|
476
|
+
"type": "array",
|
|
477
|
+
"items": {
|
|
478
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
|
479
|
+
}
|
|
437
480
|
}
|
|
438
481
|
}
|
|
439
482
|
],
|
|
@@ -456,6 +499,9 @@
|
|
|
456
499
|
"components": {
|
|
457
500
|
"schemas": {
|
|
458
501
|
"Resource": {
|
|
502
|
+
"tags": [
|
|
503
|
+
"service"
|
|
504
|
+
],
|
|
459
505
|
"type": "object",
|
|
460
506
|
"properties": {
|
|
461
507
|
"uri": {
|
|
@@ -473,6 +519,9 @@
|
|
|
473
519
|
}
|
|
474
520
|
},
|
|
475
521
|
"ResourceContent": {
|
|
522
|
+
"tags": [
|
|
523
|
+
"service"
|
|
524
|
+
],
|
|
476
525
|
"type": "object",
|
|
477
526
|
"properties": {
|
|
478
527
|
"uri": {
|
|
@@ -491,6 +540,9 @@
|
|
|
491
540
|
}
|
|
492
541
|
},
|
|
493
542
|
"Tool": {
|
|
543
|
+
"tags": [
|
|
544
|
+
"service"
|
|
545
|
+
],
|
|
494
546
|
"type": "object",
|
|
495
547
|
"properties": {
|
|
496
548
|
"name": {
|
|
@@ -505,6 +557,9 @@
|
|
|
505
557
|
}
|
|
506
558
|
},
|
|
507
559
|
"ToolResult": {
|
|
560
|
+
"tags": [
|
|
561
|
+
"service"
|
|
562
|
+
],
|
|
508
563
|
"type": "object",
|
|
509
564
|
"properties": {
|
|
510
565
|
"type": {
|
|
@@ -520,6 +575,9 @@
|
|
|
520
575
|
}
|
|
521
576
|
},
|
|
522
577
|
"Prompt": {
|
|
578
|
+
"tags": [
|
|
579
|
+
"service"
|
|
580
|
+
],
|
|
523
581
|
"type": "object",
|
|
524
582
|
"properties": {
|
|
525
583
|
"name": {
|
|
@@ -537,6 +595,9 @@
|
|
|
537
595
|
}
|
|
538
596
|
},
|
|
539
597
|
"PromptArgument": {
|
|
598
|
+
"tags": [
|
|
599
|
+
"service"
|
|
600
|
+
],
|
|
540
601
|
"type": "object",
|
|
541
602
|
"properties": {
|
|
542
603
|
"name": {
|
|
@@ -551,6 +612,9 @@
|
|
|
551
612
|
}
|
|
552
613
|
},
|
|
553
614
|
"PromptMessage": {
|
|
615
|
+
"tags": [
|
|
616
|
+
"service"
|
|
617
|
+
],
|
|
554
618
|
"type": "object",
|
|
555
619
|
"properties": {
|
|
556
620
|
"role": {
|
|
@@ -562,6 +626,9 @@
|
|
|
562
626
|
}
|
|
563
627
|
},
|
|
564
628
|
"ServerCapabilities": {
|
|
629
|
+
"tags": [
|
|
630
|
+
"service"
|
|
631
|
+
],
|
|
565
632
|
"type": "object",
|
|
566
633
|
"properties": {
|
|
567
634
|
"experimental": {
|
|
@@ -603,6 +670,9 @@
|
|
|
603
670
|
}
|
|
604
671
|
},
|
|
605
672
|
"ServerInfo": {
|
|
673
|
+
"tags": [
|
|
674
|
+
"service"
|
|
675
|
+
],
|
|
606
676
|
"type": "object",
|
|
607
677
|
"properties": {
|
|
608
678
|
"name": {
|