@lyrra/mcp-server 1.0.1 → 1.1.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/Dockerfile +16 -0
- package/README.md +59 -4
- package/dist/client.d.ts +7 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -5
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/http-server.d.ts +8 -0
- package/dist/http-server.d.ts.map +1 -0
- package/dist/http-server.js +466 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.js +3 -69
- package/dist/index.js.map +1 -1
- package/dist/server-factory.d.ts +8 -0
- package/dist/server-factory.d.ts.map +1 -0
- package/dist/server-factory.js +82 -0
- package/dist/server-factory.js.map +1 -0
- package/dist/tools/admin.d.ts +132 -0
- package/dist/tools/admin.d.ts.map +1 -1
- package/dist/tools/admin.js +105 -101
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/ai-designer.d.ts +148 -0
- package/dist/tools/ai-designer.d.ts.map +1 -1
- package/dist/tools/ai-designer.js +80 -76
- package/dist/tools/ai-designer.js.map +1 -1
- package/dist/tools/analytics.d.ts +47 -0
- package/dist/tools/analytics.d.ts.map +1 -1
- package/dist/tools/analytics.js +38 -34
- package/dist/tools/analytics.js.map +1 -1
- package/dist/tools/auth.d.ts +30 -0
- package/dist/tools/auth.d.ts.map +1 -1
- package/dist/tools/auth.js +31 -27
- package/dist/tools/auth.js.map +1 -1
- package/dist/tools/blocks.d.ts +200 -0
- package/dist/tools/blocks.d.ts.map +1 -1
- package/dist/tools/blocks.js +154 -150
- package/dist/tools/blocks.js.map +1 -1
- package/dist/tools/connections.d.ts +86 -0
- package/dist/tools/connections.d.ts.map +1 -1
- package/dist/tools/connections.js +70 -66
- package/dist/tools/connections.js.map +1 -1
- package/dist/tools/eduflow.d.ts +223 -0
- package/dist/tools/eduflow.d.ts.map +1 -1
- package/dist/tools/eduflow.js +114 -93
- package/dist/tools/eduflow.js.map +1 -1
- package/dist/tools/participants.d.ts +110 -0
- package/dist/tools/participants.d.ts.map +1 -1
- package/dist/tools/participants.js +62 -58
- package/dist/tools/participants.js.map +1 -1
- package/dist/tools/presentation.d.ts +116 -0
- package/dist/tools/presentation.d.ts.map +1 -1
- package/dist/tools/presentation.js +51 -47
- package/dist/tools/presentation.js.map +1 -1
- package/dist/tools/projects.d.ts +65 -0
- package/dist/tools/projects.d.ts.map +1 -1
- package/dist/tools/projects.js +48 -44
- package/dist/tools/projects.js.map +1 -1
- package/dist/tools/resources.d.ts +46 -0
- package/dist/tools/resources.d.ts.map +1 -1
- package/dist/tools/resources.js +32 -28
- package/dist/tools/resources.js.map +1 -1
- package/dist/tools/store.d.ts +62 -0
- package/dist/tools/store.d.ts.map +1 -1
- package/dist/tools/store.js +59 -55
- package/dist/tools/store.js.map +1 -1
- package/mcp-config.example.json +4 -5
- package/package.json +7 -2
- package/src/client.ts +12 -5
- package/src/config.ts +1 -0
- package/src/http-server.ts +573 -0
- package/src/index.ts +3 -94
- package/src/server-factory.ts +109 -0
- package/src/tools/admin.ts +20 -14
- package/src/tools/ai-designer.ts +16 -10
- package/src/tools/analytics.ts +13 -7
- package/src/tools/auth.ts +32 -26
- package/src/tools/blocks.ts +18 -12
- package/src/tools/connections.ts +14 -8
- package/src/tools/eduflow.ts +36 -12
- package/src/tools/participants.ts +15 -9
- package/src/tools/presentation.ts +12 -6
- package/src/tools/projects.ts +14 -8
- package/src/tools/resources.ts +12 -6
- package/src/tools/store.ts +14 -8
|
@@ -1,4 +1,120 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { LyrraClient } from '../client.js';
|
|
3
|
+
export declare function createPresentationTools(c: LyrraClient): {
|
|
4
|
+
presentation_get: {
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
flowId: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
flowId: string;
|
|
10
|
+
}, {
|
|
11
|
+
flowId: string;
|
|
12
|
+
}>;
|
|
13
|
+
handler: ({ flowId }: {
|
|
14
|
+
flowId: string;
|
|
15
|
+
}) => Promise<{
|
|
16
|
+
presentationEnabled: any;
|
|
17
|
+
presentationData: any;
|
|
18
|
+
objectives: any;
|
|
19
|
+
title: any;
|
|
20
|
+
description: any;
|
|
21
|
+
}>;
|
|
22
|
+
};
|
|
23
|
+
presentation_update: {
|
|
24
|
+
description: string;
|
|
25
|
+
inputSchema: z.ZodObject<{
|
|
26
|
+
flowId: z.ZodString;
|
|
27
|
+
presentationData: z.ZodObject<{
|
|
28
|
+
heroTitle: z.ZodOptional<z.ZodString>;
|
|
29
|
+
heroSubtitle: z.ZodOptional<z.ZodString>;
|
|
30
|
+
heroImage: z.ZodOptional<z.ZodString>;
|
|
31
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
32
|
+
type: z.ZodString;
|
|
33
|
+
title: z.ZodString;
|
|
34
|
+
content: z.ZodAny;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
type: string;
|
|
37
|
+
title: string;
|
|
38
|
+
content?: any;
|
|
39
|
+
}, {
|
|
40
|
+
type: string;
|
|
41
|
+
title: string;
|
|
42
|
+
content?: any;
|
|
43
|
+
}>, "many">>;
|
|
44
|
+
ctaText: z.ZodOptional<z.ZodString>;
|
|
45
|
+
ctaUrl: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
heroTitle?: string | undefined;
|
|
48
|
+
heroSubtitle?: string | undefined;
|
|
49
|
+
heroImage?: string | undefined;
|
|
50
|
+
sections?: {
|
|
51
|
+
type: string;
|
|
52
|
+
title: string;
|
|
53
|
+
content?: any;
|
|
54
|
+
}[] | undefined;
|
|
55
|
+
ctaText?: string | undefined;
|
|
56
|
+
ctaUrl?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
heroTitle?: string | undefined;
|
|
59
|
+
heroSubtitle?: string | undefined;
|
|
60
|
+
heroImage?: string | undefined;
|
|
61
|
+
sections?: {
|
|
62
|
+
type: string;
|
|
63
|
+
title: string;
|
|
64
|
+
content?: any;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
ctaText?: string | undefined;
|
|
67
|
+
ctaUrl?: string | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
flowId: string;
|
|
71
|
+
presentationData: {
|
|
72
|
+
heroTitle?: string | undefined;
|
|
73
|
+
heroSubtitle?: string | undefined;
|
|
74
|
+
heroImage?: string | undefined;
|
|
75
|
+
sections?: {
|
|
76
|
+
type: string;
|
|
77
|
+
title: string;
|
|
78
|
+
content?: any;
|
|
79
|
+
}[] | undefined;
|
|
80
|
+
ctaText?: string | undefined;
|
|
81
|
+
ctaUrl?: string | undefined;
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
flowId: string;
|
|
85
|
+
presentationData: {
|
|
86
|
+
heroTitle?: string | undefined;
|
|
87
|
+
heroSubtitle?: string | undefined;
|
|
88
|
+
heroImage?: string | undefined;
|
|
89
|
+
sections?: {
|
|
90
|
+
type: string;
|
|
91
|
+
title: string;
|
|
92
|
+
content?: any;
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
ctaText?: string | undefined;
|
|
95
|
+
ctaUrl?: string | undefined;
|
|
96
|
+
};
|
|
97
|
+
}>;
|
|
98
|
+
handler: ({ flowId, presentationData }: any) => Promise<any>;
|
|
99
|
+
};
|
|
100
|
+
presentation_toggle: {
|
|
101
|
+
description: string;
|
|
102
|
+
inputSchema: z.ZodObject<{
|
|
103
|
+
flowId: z.ZodString;
|
|
104
|
+
enabled: z.ZodBoolean;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
flowId: string;
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
}, {
|
|
109
|
+
flowId: string;
|
|
110
|
+
enabled: boolean;
|
|
111
|
+
}>;
|
|
112
|
+
handler: ({ flowId, enabled }: {
|
|
113
|
+
flowId: string;
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
}) => Promise<any>;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
2
118
|
export declare const presentationTools: {
|
|
3
119
|
presentation_get: {
|
|
4
120
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../src/tools/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"presentation.d.ts","sourceRoot":"","sources":["../../src/tools/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,WAAW;;;;;;;;;;8BAOtB;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA8BA,GAAG;;;;;;;;;;;;;;uCAWZ;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,OAAO,CAAA;SAAE;;EAK5E;AAGD,eAAO,MAAM,iBAAiB;;;;;;;;;;8BAjDE;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDA8BA,GAAG;;;;;;;;;;;;;;uCAWZ;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,OAAO,CAAA;SAAE;;CAQN,CAAC"}
|
|
@@ -1,53 +1,57 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { client } from '../client.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
import { client as defaultClient } from '../client.js';
|
|
3
|
+
export function createPresentationTools(c) {
|
|
4
|
+
return {
|
|
5
|
+
presentation_get: {
|
|
6
|
+
description: 'Récupérer la page de présentation d\'un parcours EduFlow (description, objectifs, image de couverture, structure affichée).',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
flowId: z.string().uuid().describe('ID du parcours'),
|
|
9
|
+
}),
|
|
10
|
+
handler: async ({ flowId }) => {
|
|
11
|
+
const flow = await c.get(`/flows/${flowId}`, 'eduflow');
|
|
12
|
+
return {
|
|
13
|
+
presentationEnabled: flow.presentationEnabled,
|
|
14
|
+
presentationData: flow.presentationData,
|
|
15
|
+
objectives: flow.objectives,
|
|
16
|
+
title: flow.title,
|
|
17
|
+
description: flow.description,
|
|
18
|
+
};
|
|
19
|
+
},
|
|
18
20
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
description: `Mettre à jour la page de présentation d'un parcours. La présentation est la page publique visible par les futurs participants.
|
|
21
|
+
presentation_update: {
|
|
22
|
+
description: `Mettre à jour la page de présentation d'un parcours. La présentation est la page publique visible par les futurs participants.
|
|
22
23
|
Structure de presentationData : { heroTitle, heroSubtitle, heroImage, sections[{ type, title, content }], ctaText, ctaUrl }`,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
inputSchema: z.object({
|
|
25
|
+
flowId: z.string().uuid().describe('ID du parcours'),
|
|
26
|
+
presentationData: z.object({
|
|
27
|
+
heroTitle: z.string().optional().describe('Titre principal de la page'),
|
|
28
|
+
heroSubtitle: z.string().optional().describe('Sous-titre'),
|
|
29
|
+
heroImage: z.string().optional().describe('URL de l\'image de couverture'),
|
|
30
|
+
sections: z.array(z.object({
|
|
31
|
+
type: z.string().describe('Type de section (text, objectives, structure, testimonials)'),
|
|
32
|
+
title: z.string().describe('Titre de la section'),
|
|
33
|
+
content: z.any().describe('Contenu de la section'),
|
|
34
|
+
})).optional().describe('Sections de la page'),
|
|
35
|
+
ctaText: z.string().optional().describe('Texte du bouton d\'action'),
|
|
36
|
+
ctaUrl: z.string().optional().describe('URL du bouton d\'action'),
|
|
37
|
+
}).describe('Données de la page de présentation'),
|
|
38
|
+
}),
|
|
39
|
+
handler: async ({ flowId, presentationData }) => {
|
|
40
|
+
return c.put(`/flows/${flowId}`, { presentationData }, 'eduflow');
|
|
41
|
+
},
|
|
40
42
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
43
|
+
presentation_toggle: {
|
|
44
|
+
description: 'Activer ou désactiver la page de présentation publique d\'un parcours.',
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
flowId: z.string().uuid().describe('ID du parcours'),
|
|
47
|
+
enabled: z.boolean().describe('true pour activer, false pour désactiver'),
|
|
48
|
+
}),
|
|
49
|
+
handler: async ({ flowId, enabled }) => {
|
|
50
|
+
return c.put(`/flows/${flowId}`, { presentationEnabled: enabled }, 'eduflow');
|
|
51
|
+
},
|
|
50
52
|
},
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
// Backward compatibility for stdio mode
|
|
56
|
+
export const presentationTools = createPresentationTools(defaultClient);
|
|
53
57
|
//# sourceMappingURL=presentation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../src/tools/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"presentation.js","sourceRoot":"","sources":["../../src/tools/presentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,UAAU,uBAAuB,CAAC,CAAc;IACpD,OAAO;QACP,gBAAgB,EAAE;YAChB,WAAW,EAAE,6HAA6H;YAC1I,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;gBACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;aACrD,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAsB,EAAE,EAAE;gBAChD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,EAAE,SAAS,CAAC,CAAC;gBACxD,OAAO;oBACL,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;oBAC7C,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;oBACvC,UAAU,EAAE,IAAI,CAAC,UAAU;oBAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;oBACjB,WAAW,EAAE,IAAI,CAAC,WAAW;iBAC9B,CAAC;YACJ,CAAC;SACF;QAED,mBAAmB,EAAE;YACnB,WAAW,EAAE;4HAC2G;YACxH,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;gBACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBACpD,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC;oBACzB,SAAS,EAAE,CAAC,CA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AAC,QAAQ,CAAC,gBAAgB,CAAC;gBACpD,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;aAC1E,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAwC,EAAE,EAAE;gBAC3E,OAAO,CAAC,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,EAAE,EAAE,mBAAmB,EAAE,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC;YAChF,CAAC;SACF;KACA,CAAC;AACJ,CAAC;AAED,wCAAwC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,uBAAuB,CAAC,aAAa,CAAC,CAAC"}
|
package/dist/tools/projects.d.ts
CHANGED
|
@@ -1,4 +1,69 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { LyrraClient } from '../client.js';
|
|
3
|
+
export declare function createProjectsTools(c: LyrraClient): {
|
|
4
|
+
project_list: {
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
7
|
+
handler: () => Promise<any>;
|
|
8
|
+
};
|
|
9
|
+
project_get: {
|
|
10
|
+
description: string;
|
|
11
|
+
inputSchema: z.ZodObject<{
|
|
12
|
+
projectId: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
projectId: string;
|
|
15
|
+
}, {
|
|
16
|
+
projectId: string;
|
|
17
|
+
}>;
|
|
18
|
+
handler: ({ projectId }: {
|
|
19
|
+
projectId: string;
|
|
20
|
+
}) => Promise<any>;
|
|
21
|
+
};
|
|
22
|
+
project_create: {
|
|
23
|
+
description: string;
|
|
24
|
+
inputSchema: z.ZodObject<{
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
description: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
title: string;
|
|
29
|
+
description?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
title: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
handler: (data: any) => Promise<any>;
|
|
35
|
+
};
|
|
36
|
+
project_update: {
|
|
37
|
+
description: string;
|
|
38
|
+
inputSchema: z.ZodObject<{
|
|
39
|
+
projectId: z.ZodString;
|
|
40
|
+
title: z.ZodOptional<z.ZodString>;
|
|
41
|
+
description: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
projectId: string;
|
|
44
|
+
title?: string | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
projectId: string;
|
|
48
|
+
title?: string | undefined;
|
|
49
|
+
description?: string | undefined;
|
|
50
|
+
}>;
|
|
51
|
+
handler: ({ projectId, ...data }: any) => Promise<any>;
|
|
52
|
+
};
|
|
53
|
+
project_delete: {
|
|
54
|
+
description: string;
|
|
55
|
+
inputSchema: z.ZodObject<{
|
|
56
|
+
projectId: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
projectId: string;
|
|
59
|
+
}, {
|
|
60
|
+
projectId: string;
|
|
61
|
+
}>;
|
|
62
|
+
handler: ({ projectId }: {
|
|
63
|
+
projectId: string;
|
|
64
|
+
}) => Promise<any>;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
2
67
|
export declare const projectsTools: {
|
|
3
68
|
project_list: {
|
|
4
69
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW;;;;;;;;;;;;;;;iCAef;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;wBAW9B,GAAG;;;;;;;;;;;;;;;;;0CAYe,GAAG;;;;;;;;;;;iCAUZ;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE;;EAKvD;AAGD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;iCAzCS;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;wBAW9B,GAAG;;;;;;;;;;;;;;;;;0CAYe,GAAG;;;;;;;;;;;iCAUZ;YAAE,SAAS,EAAE,MAAM,CAAA;SAAE;;CAQO,CAAC"}
|
package/dist/tools/projects.js
CHANGED
|
@@ -1,51 +1,55 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { client } from '../client.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { client as defaultClient } from '../client.js';
|
|
3
|
+
export function createProjectsTools(c) {
|
|
4
|
+
return {
|
|
5
|
+
project_list: {
|
|
6
|
+
description: 'Lister tous les projets audio de l\'utilisateur (PDF convertis en audio).',
|
|
7
|
+
inputSchema: z.object({}),
|
|
8
|
+
handler: async () => {
|
|
9
|
+
return c.get('/projects');
|
|
10
|
+
},
|
|
9
11
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
project_get: {
|
|
13
|
+
description: 'Détails d\'un projet audio : titre, chapitres, voix, durée, statut, fichiers générés.',
|
|
14
|
+
inputSchema: z.object({
|
|
15
|
+
projectId: z.string().uuid().describe('ID du projet'),
|
|
16
|
+
}),
|
|
17
|
+
handler: async ({ projectId }) => {
|
|
18
|
+
return c.get(`/projects/${projectId}`);
|
|
19
|
+
},
|
|
18
20
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
project_create: {
|
|
22
|
+
description: 'Créer un nouveau projet audio.',
|
|
23
|
+
inputSchema: z.object({
|
|
24
|
+
title: z.string().describe('Titre du projet'),
|
|
25
|
+
description: z.string().optional().describe('Description'),
|
|
26
|
+
}),
|
|
27
|
+
handler: async (data) => {
|
|
28
|
+
return c.post('/projects', data);
|
|
29
|
+
},
|
|
28
30
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
project_update: {
|
|
32
|
+
description: 'Mettre à jour un projet audio (titre, description, paramètres de voix).',
|
|
33
|
+
inputSchema: z.object({
|
|
34
|
+
projectId: z.string().uuid().describe('ID du projet'),
|
|
35
|
+
title: z.string().optional().describe('Nouveau titre'),
|
|
36
|
+
description: z.string().optional().describe('Nouvelle description'),
|
|
37
|
+
}),
|
|
38
|
+
handler: async ({ projectId, ...data }) => {
|
|
39
|
+
return c.put(`/projects/${projectId}`, data);
|
|
40
|
+
},
|
|
39
41
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
project_delete: {
|
|
43
|
+
description: 'Supprimer un projet audio et tous ses fichiers associés.',
|
|
44
|
+
inputSchema: z.object({
|
|
45
|
+
projectId: z.string().uuid().describe('ID du projet à supprimer'),
|
|
46
|
+
}),
|
|
47
|
+
handler: async ({ projectId }) => {
|
|
48
|
+
return c.delete(`/projects/${projectId}`);
|
|
49
|
+
},
|
|
48
50
|
},
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
// Backward compatibility for stdio mode
|
|
54
|
+
export const projectsTools = createProjectsTools(defaultClient);
|
|
51
55
|
//# sourceMappingURL=projects.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,UAAU,mBAAmB,CAAC,CAAc;IAChD,OAAO;QACP,YAAY,EAAE;YACZ,WAAW,EAAE,2EAA2E;YACxF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;YACzB,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,OAAO,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YAC5B,CAAC;SACF;QAED,WAAW,EAAE;YACX,WAAW,EAAE,uFAAuF;YACpG,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;gBACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC;aACtD,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,EAAE,SAAS,EAAyB,EAAE,EAAE;gBACtD,OAAO,CAAC,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,CAAC,CAAC;YACzC,CAAC;SACF;QAED,cAAc,EAAE;YACd,WAAW,EAAE,gCAAgC;YAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;gBACpB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iBAAiB,CAAC;gBAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,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
|
|
2
|
+
import { LyrraClient } from '../client.js';
|
|
3
|
+
export declare function createResourcesTools(c: LyrraClient): {
|
|
4
|
+
resource_list: {
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
type: z.ZodEnum<["images", "documents", "sounds", "videos"]>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
type: "images" | "documents" | "sounds" | "videos";
|
|
10
|
+
}, {
|
|
11
|
+
type: "images" | "documents" | "sounds" | "videos";
|
|
12
|
+
}>;
|
|
13
|
+
handler: ({ type }: {
|
|
14
|
+
type: string;
|
|
15
|
+
}) => Promise<any>;
|
|
16
|
+
};
|
|
17
|
+
resource_delete: {
|
|
18
|
+
description: string;
|
|
19
|
+
inputSchema: z.ZodObject<{
|
|
20
|
+
type: z.ZodEnum<["images", "documents", "sounds", "videos"]>;
|
|
21
|
+
resourceId: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
type: "images" | "documents" | "sounds" | "videos";
|
|
24
|
+
resourceId: string;
|
|
25
|
+
}, {
|
|
26
|
+
type: "images" | "documents" | "sounds" | "videos";
|
|
27
|
+
resourceId: string;
|
|
28
|
+
}>;
|
|
29
|
+
handler: ({ type, resourceId }: {
|
|
30
|
+
type: string;
|
|
31
|
+
resourceId: string;
|
|
32
|
+
}) => Promise<any>;
|
|
33
|
+
};
|
|
34
|
+
resource_list_categories: {
|
|
35
|
+
description: string;
|
|
36
|
+
inputSchema: z.ZodObject<{
|
|
37
|
+
type: z.ZodEnum<["images", "documents", "sounds", "videos"]>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
type: "images" | "documents" | "sounds" | "videos";
|
|
40
|
+
}, {
|
|
41
|
+
type: "images" | "documents" | "sounds" | "videos";
|
|
42
|
+
}>;
|
|
43
|
+
handler: ({ type }: {
|
|
44
|
+
type: string;
|
|
45
|
+
}) => Promise<any>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
2
48
|
export declare const resourcesTools: {
|
|
3
49
|
resource_list: {
|
|
4
50
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/tools/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../src/tools/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,WAAW;;;;;;;;;;4BAOrB;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;wCAWJ;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;4BAUhD;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE;;EAK7C;AAGD,eAAO,MAAM,cAAc;;;;;;;;;;4BA7BG;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;wCAWJ;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;4BAUhD;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE;;CAQmB,CAAC"}
|
package/dist/tools/resources.js
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { client } from '../client.js';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import { client as defaultClient } from '../client.js';
|
|
3
|
+
export function createResourcesTools(c) {
|
|
4
|
+
return {
|
|
5
|
+
resource_list: {
|
|
6
|
+
description: 'Lister les ressources de l\'utilisateur (images, documents, sons, vidéos) avec pagination.',
|
|
7
|
+
inputSchema: z.object({
|
|
8
|
+
type: z.enum(['images', 'documents', 'sounds', 'videos']).describe('Type de ressource'),
|
|
9
|
+
}),
|
|
10
|
+
handler: async ({ type }) => {
|
|
11
|
+
return c.get(`/user-resources/${type}`);
|
|
12
|
+
},
|
|
11
13
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
resource_delete: {
|
|
15
|
+
description: 'Supprimer une ressource uploadée.',
|
|
16
|
+
inputSchema: z.object({
|
|
17
|
+
type: z.enum(['images', 'documents', 'sounds', 'videos']).describe('Type de ressource'),
|
|
18
|
+
resourceId: z.string().uuid().describe('ID de la ressource'),
|
|
19
|
+
}),
|
|
20
|
+
handler: async ({ type, resourceId }) => {
|
|
21
|
+
return c.delete(`/user-resources/${type}/${resourceId}`);
|
|
22
|
+
},
|
|
21
23
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
resource_list_categories: {
|
|
25
|
+
description: 'Lister les catégories disponibles pour un type de ressource.',
|
|
26
|
+
inputSchema: z.object({
|
|
27
|
+
type: z.enum(['images', 'documents', 'sounds', 'videos']).describe('Type de ressource'),
|
|
28
|
+
}),
|
|
29
|
+
handler: async ({ type }) => {
|
|
30
|
+
return c.get(`/categories/${type}`);
|
|
31
|
+
},
|
|
30
32
|
},
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
// Backward compatibility for stdio mode
|
|
36
|
+
export const resourcesTools = createResourcesTools(defaultClient);
|
|
33
37
|
//# sourceMappingURL=resources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../src/tools/resources.ts"],"names":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;YAC3E,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;gBACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;aACxF,CAAC;YACF,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAoB,EAAE,EAAE;gBAC5C,OAAO,CAAC,CAAC,GAAG,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC;YACtC,CAAC;SACF;KACA,CAAC;AACJ,CAAC;AAED,wCAAwC;AACxC,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC"}
|
package/dist/tools/store.d.ts
CHANGED
|
@@ -1,4 +1,66 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { LyrraClient } from '../client.js';
|
|
3
|
+
export declare function createStoreTools(c: LyrraClient): {
|
|
4
|
+
store_list_audiobooks: {
|
|
5
|
+
description: string;
|
|
6
|
+
inputSchema: z.ZodObject<{
|
|
7
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
search: z.ZodOptional<z.ZodString>;
|
|
10
|
+
category: z.ZodOptional<z.ZodString>;
|
|
11
|
+
featured: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
page?: number | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
search?: string | undefined;
|
|
16
|
+
category?: string | undefined;
|
|
17
|
+
featured?: boolean | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
page?: number | undefined;
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
search?: string | undefined;
|
|
22
|
+
category?: string | undefined;
|
|
23
|
+
featured?: boolean | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
handler: ({ page, limit, search, category, featured }: any) => Promise<any>;
|
|
26
|
+
};
|
|
27
|
+
store_get_audiobook: {
|
|
28
|
+
description: string;
|
|
29
|
+
inputSchema: z.ZodObject<{
|
|
30
|
+
audiobookId: z.ZodString;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
audiobookId: string;
|
|
33
|
+
}, {
|
|
34
|
+
audiobookId: string;
|
|
35
|
+
}>;
|
|
36
|
+
handler: ({ audiobookId }: {
|
|
37
|
+
audiobookId: string;
|
|
38
|
+
}) => Promise<any>;
|
|
39
|
+
};
|
|
40
|
+
store_list_authors: {
|
|
41
|
+
description: string;
|
|
42
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
43
|
+
handler: () => Promise<any>;
|
|
44
|
+
};
|
|
45
|
+
store_my_library: {
|
|
46
|
+
description: string;
|
|
47
|
+
inputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
48
|
+
handler: () => Promise<any>;
|
|
49
|
+
};
|
|
50
|
+
store_search: {
|
|
51
|
+
description: string;
|
|
52
|
+
inputSchema: z.ZodObject<{
|
|
53
|
+
query: z.ZodString;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
query: string;
|
|
56
|
+
}, {
|
|
57
|
+
query: string;
|
|
58
|
+
}>;
|
|
59
|
+
handler: ({ query }: {
|
|
60
|
+
query: string;
|
|
61
|
+
}) => Promise<any>;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
2
64
|
export declare const storeTools: {
|
|
3
65
|
store_list_audiobooks: {
|
|
4
66
|
description: string;
|