feat(mcp): expose plan / verify on wizard-mcp-server#285
Merged
Conversation
Contributor
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
5 tasks
This was referenced Apr 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resurrects #258 onto current
main. Exposes two new tools on the externalwizard-mcp-server(the stdio MCP server invoked viaamplitude-wizard mcp serve):plan_setup— wrapsrunPlanfromagent-ops.ts. Detects framework, builds a structuredWizardPlan(framework, sdk, intended file changes), persists it to disk under a freshplanId. Read-only; no files touched. The returnedplanIdcan be passed toapply(CLI:amplitude-wizard apply --plan-id <id> --yes) within 24h.verify_setup— wrapsrunVerify. Cheap, no-network check that the project has the SDK installed, an API key configured, and a detectable framework. Returns{ outcome: "pass" | "fail", failures: [...] }.Both wrap pure functions already on
main(landed via #269, which includes thepath.resolvefix).What changed vs. #258
#258 also shipped
list_projects, but that tool depended onrunProjectsList/ProjectsListResultfrom #257 — which was closed, not merged. Rather than block on resurrecting #257, this PR dropslist_projectsfrom scope. It can be re-added once #257 is resurrected (path A).plan_setupandverify_setupare otherwise unchanged from the original commit (8e31b67fonkelsonpw/wizard-mcp-plan-verify-list).Test plan
pnpm vitest run src/lib/__tests__/wizard-mcp-server.test.ts— 15 tests pass (5 new forplan_setup+verify_setup, no regressions on the 4 pre-existing tools)pnpm tsc --noEmitcleanpnpm lintclean (only the pre-existingagent-interface.tswarning, unrelated)amplitude-wizard mcp servelistsplan_setup+verify_setupover stdioCloses #258.
Note
Medium Risk
Adds new externally callable MCP tools that can create persisted setup plans and report verification failures; while intended to be read-only, it expands the agent-facing surface area and could impact how automation drives project setup flows.
Overview
Exposes two new MCP tools on
wizard-mcp-server:plan_setup(wrapsrunPlan) andverify_setup(wrapsrunVerify), both accepting optionalinstallDir(defaulting toprocess.cwd()) and returning JSON-wrapped results.Updates unit tests to expect six registered tools and adds coverage that the new tool handlers forward arguments correctly, default
installDiras expected, and thatplan_setup’s description explicitly signals read-only / no file writes.Reviewed by Cursor Bugbot for commit 6fc3d68. Bugbot is set up for automated code reviews on this repo. Configure here.