@epic-web/workshop-mcp 6.85.5 → 6.87.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/dist/resources.d.ts +2 -0
- package/dist/tools.js +15 -3
- package/package.json +2 -2
package/dist/resources.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function getWorkshopContext({ workshopDirectory, }: InputSchemaTy
|
|
|
15
15
|
epicLessonUrl: string;
|
|
16
16
|
epicLessonSlug: string;
|
|
17
17
|
epicCompletedAt: string | null;
|
|
18
|
+
syncStatus: "synced" | "pending";
|
|
18
19
|
} & {
|
|
19
20
|
type: "instructions";
|
|
20
21
|
exerciseNumber: number;
|
|
@@ -26,6 +27,7 @@ export declare function getWorkshopContext({ workshopDirectory, }: InputSchemaTy
|
|
|
26
27
|
epicLessonUrl: string;
|
|
27
28
|
epicLessonSlug: string;
|
|
28
29
|
epicCompletedAt: string | null;
|
|
30
|
+
syncStatus: "synced" | "pending";
|
|
29
31
|
} & {
|
|
30
32
|
type: "finished";
|
|
31
33
|
exerciseNumber: number;
|
package/dist/tools.js
CHANGED
|
@@ -412,11 +412,23 @@ export function initTools(server) {
|
|
|
412
412
|
.describe('Mark complete or incomplete (default: true).'),
|
|
413
413
|
}, async ({ workshopDirectory, epicLessonSlug, complete }) => {
|
|
414
414
|
await handleWorkshopDirectory(workshopDirectory);
|
|
415
|
-
await updateProgress({
|
|
415
|
+
const result = await updateProgress({
|
|
416
|
+
lessonSlug: epicLessonSlug,
|
|
417
|
+
complete,
|
|
418
|
+
});
|
|
419
|
+
if (result.status === 'error') {
|
|
420
|
+
throw new Error(result.error);
|
|
421
|
+
}
|
|
416
422
|
return createToolResponse({
|
|
417
423
|
toolName: 'update_progress',
|
|
418
|
-
summary:
|
|
419
|
-
|
|
424
|
+
summary: result.status === 'queued'
|
|
425
|
+
? `Lesson "${epicLessonSlug}" saved locally and queued to sync when online.`
|
|
426
|
+
: `Lesson "${epicLessonSlug}" marked as ${complete ? 'complete' : 'incomplete'}.`,
|
|
427
|
+
structuredContent: {
|
|
428
|
+
epicLessonSlug,
|
|
429
|
+
complete,
|
|
430
|
+
status: result.status,
|
|
431
|
+
},
|
|
420
432
|
});
|
|
421
433
|
});
|
|
422
434
|
// TODO: add a tool to run the dev/test script for the given app
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epic-web/workshop-mcp",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.87.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@epic-web/invariant": "^1.0.0",
|
|
42
|
-
"@epic-web/workshop-utils": "6.
|
|
42
|
+
"@epic-web/workshop-utils": "6.87.0",
|
|
43
43
|
"@mcp-ui/server": "^6.0.1",
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
45
45
|
"@sentry/node": "^10.38.0",
|