You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(pluggable-widgets-mcp): extract shared sandbox utility and add project context to startup
Extracts duplicated path-allowlist logic into shared isPathAllowed() in
sandbox.ts. Adds project directory logging on HTTP/STDIO startup and
exposes projectDir in /health endpoint for observability.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
"[OPTIONAL] Directory where widget will be created. Defaults to ./generations/ in the current working directory. For desktop clients without a clear working directory, ask the user for their preferred location."
27
+
"[OPTIONAL] Directory where widget will be created. Defaults to ./generations/ in the current working directory. Leave unset in most cases — the server manages the output location."
26
28
)
27
29
});
28
30
@@ -45,9 +47,11 @@ OPTIONAL (with defaults):
45
47
• programmingLanguage: "typescript" or "javascript" (default: "${DEFAULT_WIDGET_OPTIONS.programmingLanguage}")
46
48
• unitTests: Include Jest test setup (default: ${DEFAULT_WIDGET_OPTIONS.unitTests})
47
49
• e2eTests: Include Playwright E2E tests (default: ${DEFAULT_WIDGET_OPTIONS.e2eTests})
48
-
• outputPath: Directory where widget will be created (default: ./generations/)
50
+
• outputPath: Directory where widget will be created (default: ./generations/). Leave unset in most cases.
49
51
50
-
Ask the user if they want to customize any options before proceeding.`;
52
+
Ask the user if they want to customize any options before proceeding.
53
+
54
+
After scaffolding, use build-widget to compile, then deploy-widget to copy the .mpk to the Mendix project.`;
51
55
52
56
/**
53
57
* Registers scaffolding-related tools for widget creation and management.
@@ -60,36 +64,29 @@ Ask the user if they want to customize any options before proceeding.`;
60
64
*
61
65
* @see AGENTS.md Roadmap Context section for planned additions
0 commit comments