@digipair/skill-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,2 @@
1
+ export * from './lib/engine';
2
+ export * from './lib/pins-settings.interface';
@@ -0,0 +1,9 @@
1
+ export interface Alias {
2
+ name: string;
3
+ library: string;
4
+ element: string;
5
+ properties: {
6
+ library: string;
7
+ element: string;
8
+ };
9
+ }
@@ -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
+ }
@@ -0,0 +1 @@
1
+ export * from './lib/skill-mcp';
@@ -0,0 +1,2 @@
1
+ import { PinsSettings } from '@digipair/engine';
2
+ export declare const createServer: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
package/package.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@digipair/skill-mcp",
3
+ "version": "0.104.0",
4
+ "dependencies": {},
5
+ "main": "./index.cjs.js",
6
+ "module": "./index.esm.js"
7
+ }
package/schema.fr.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-mcp",
5
+ "summary": "Serveur Model Context Protocol",
6
+ "description": "Cette compétence fournit des fonctions pour créer et gérer des serveurs MCP (Model Context Protocol) utilisant le transport StreamableHTTP.",
7
+ "version": "0.1.0",
8
+ "x-icon": "🖥️"
9
+ },
10
+ "paths": {
11
+ "/createServer": {
12
+ "post": {
13
+ "tags": [
14
+ "service"
15
+ ],
16
+ "summary": "Créer un serveur MCP",
17
+ "parameters": [
18
+ {
19
+ "name": "name",
20
+ "summary": "Nom",
21
+ "required": false,
22
+ "description": "Nom du serveur MCP (par défaut: digipair-mcp-server)",
23
+ "schema": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ {
28
+ "name": "version",
29
+ "summary": "Version",
30
+ "required": false,
31
+ "description": "Version du serveur MCP (par défaut: 1.0.0)",
32
+ "schema": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ {
37
+ "name": "tools",
38
+ "summary": "Outils",
39
+ "required": false,
40
+ "description": "Tableau des outils à enregistrer sur le serveur",
41
+ "schema": {
42
+ "type": "array",
43
+ "items": {
44
+ "$ref": "#/components/schemas/ServerTool"
45
+ }
46
+ }
47
+ }
48
+ ],
49
+ "x-events": [],
50
+ "responses": {
51
+ "200": {
52
+ "description": "Serveur MCP créé avec succès et requête traitée",
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "type": "null"
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ },
65
+ "components": {
66
+ "schemas": {
67
+ "ServerTool": {
68
+ "type": "object",
69
+ "properties": {
70
+ "name": {
71
+ "type": "string",
72
+ "description": "Nom de l'outil"
73
+ },
74
+ "title": {
75
+ "type": "string",
76
+ "description": "Titre de l'outil"
77
+ },
78
+ "description": {
79
+ "type": "string",
80
+ "description": "Description de ce que fait l'outil"
81
+ },
82
+ "inputSchema": {
83
+ "type": "object",
84
+ "description": "Schéma JSON pour les paramètres d'entrée de l'outil"
85
+ },
86
+ "outputSchema": {
87
+ "type": "object",
88
+ "description": "Schéma JSON pour la sortie de l'outil"
89
+ },
90
+ "execute": {
91
+ "type": "array",
92
+ "description": "Liste d'exécution PINS pour la fonctionnalité de l'outil",
93
+ "items": {
94
+ "type": "object"
95
+ }
96
+ }
97
+ },
98
+ "required": [
99
+ "name",
100
+ "description",
101
+ "execute"
102
+ ]
103
+ }
104
+ }
105
+ },
106
+ "x-scene-blocks": {}
107
+ }
package/schema.json ADDED
@@ -0,0 +1,107 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-mcp",
5
+ "summary": "Model Context Protocol server",
6
+ "description": "This skill provides functions to create and manage MCP (Model Context Protocol) servers using StreamableHTTP transport.",
7
+ "version": "0.1.0",
8
+ "x-icon": "🖥️"
9
+ },
10
+ "paths": {
11
+ "/createServer": {
12
+ "post": {
13
+ "tags": [
14
+ "service"
15
+ ],
16
+ "summary": "Creates an MCP server",
17
+ "parameters": [
18
+ {
19
+ "name": "name",
20
+ "summary": "Name",
21
+ "required": false,
22
+ "description": "Name of the MCP server (default: digipair-mcp-server)",
23
+ "schema": {
24
+ "type": "string"
25
+ }
26
+ },
27
+ {
28
+ "name": "version",
29
+ "summary": "Version",
30
+ "required": false,
31
+ "description": "Version of the MCP server (default: 1.0.0)",
32
+ "schema": {
33
+ "type": "string"
34
+ }
35
+ },
36
+ {
37
+ "name": "tools",
38
+ "summary": "Tools",
39
+ "required": false,
40
+ "description": "Array of tools to register on the server",
41
+ "schema": {
42
+ "type": "array",
43
+ "items": {
44
+ "$ref": "#/components/schemas/ServerTool"
45
+ }
46
+ }
47
+ }
48
+ ],
49
+ "x-events": [],
50
+ "responses": {
51
+ "200": {
52
+ "description": "Successfully created MCP server and handled request",
53
+ "content": {
54
+ "application/json": {
55
+ "schema": {
56
+ "type": "null"
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ },
65
+ "components": {
66
+ "schemas": {
67
+ "ServerTool": {
68
+ "type": "object",
69
+ "properties": {
70
+ "name": {
71
+ "type": "string",
72
+ "description": "Name of the tool"
73
+ },
74
+ "title": {
75
+ "type": "string",
76
+ "description": "Title of the tool"
77
+ },
78
+ "description": {
79
+ "type": "string",
80
+ "description": "Description of what the tool does"
81
+ },
82
+ "inputSchema": {
83
+ "type": "object",
84
+ "description": "JSON Schema for tool input parameters"
85
+ },
86
+ "outputSchema": {
87
+ "type": "object",
88
+ "description": "JSON Schema for tool output"
89
+ },
90
+ "execute": {
91
+ "type": "array",
92
+ "description": "PINS execution list for the tool functionality",
93
+ "items": {
94
+ "type": "object"
95
+ }
96
+ }
97
+ },
98
+ "required": [
99
+ "name",
100
+ "description",
101
+ "execute"
102
+ ]
103
+ }
104
+ }
105
+ },
106
+ "x-scene-blocks": {}
107
+ }