@epic-web/workshop-mcp 6.89.2 → 6.89.3
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/utils.js +2 -2
- package/package.json +2 -2
package/dist/utils.js
CHANGED
|
@@ -4,7 +4,7 @@ import { getWorkshopRoot, init as initApps, } from '@epic-web/workshop-utils/app
|
|
|
4
4
|
import { z } from 'zod/v3';
|
|
5
5
|
export const workshopDirectoryInputSchema = z
|
|
6
6
|
.string()
|
|
7
|
-
.describe('Absolute path to the workshop root directory. Passing a /playground path is allowed and will be normalized to the workshop root.');
|
|
7
|
+
.describe('Absolute or relative path to the workshop root directory. Relative paths are resolved from the current working directory. Passing a /playground path is allowed and will be normalized to the workshop root.');
|
|
8
8
|
async function isWorkshopDirectory(workshopDirectory) {
|
|
9
9
|
console.error('isWorkshopDirectory', workshopDirectory);
|
|
10
10
|
const packageJson = await safeReadFile(path.join(workshopDirectory, 'package.json'));
|
|
@@ -28,7 +28,7 @@ export async function handleWorkshopDirectory(workshopDirectory) {
|
|
|
28
28
|
if (!workshopDirectory)
|
|
29
29
|
throw new Error('The workshop directory is required');
|
|
30
30
|
if (!path.isAbsolute(workshopDirectory)) {
|
|
31
|
-
|
|
31
|
+
workshopDirectory = path.resolve(process.cwd(), workshopDirectory);
|
|
32
32
|
}
|
|
33
33
|
if (workshopDirectory.endsWith(`${path.sep}playground`)) {
|
|
34
34
|
workshopDirectory = path.join(workshopDirectory, '..');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epic-web/workshop-mcp",
|
|
3
|
-
"version": "6.89.
|
|
3
|
+
"version": "6.89.3",
|
|
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.89.
|
|
42
|
+
"@epic-web/workshop-utils": "6.89.3",
|
|
43
43
|
"@mcp-ui/server": "^6.0.1",
|
|
44
44
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
45
45
|
"@sentry/node": "^10.38.0",
|