Repository navigation
D5: Decommission MCP — delete packages/mcp + agent-tools, shims shell the CLI, write ADR-035 - #1270
Conversation
… the CLI (closes #1265) - Delete packages/mcp/ (npm MCP server: server, tools, install, tests) - Delete packages/agent-tools/ (gRPC client used by the shims) - Delete .github/workflows/publish-mcp.yml - Remove test:mcp, test:agent-tools from test:all/test:all:db; remove both packages from quality:fix/quality:check in root package.json - Rewrite all four shims (claude-code, codex, gemini, opencode) to shell the nodespace CLI via execFile('nodespace', ['--json', ...]) with the same NodespaceCLIError surface — no npm dependency - Delete phantom "nodespace mcp" Claude Desktop registration from: scripts/install.sh, scripts/uninstall.sh, packages/cli uninstall.rs (drop prompt_remove_mcp), packages/desktop-app onboarding.rs (drop configure_mcp Tauri command + MCP fields from structs), and onboarding-wizard.svelte (remove MCP step + summary entry) - Remove from Tauri invoke handler in lib.rs - Remove MCP Setup section from README.md - Remove agent-tools publish steps from release.yml; skill publish remains - Update context_assembly.rs doc comments to reference packages/skill/shims/ - All 133 frontend tests + 17 skill tests + 877 Rust tests pass Co-Authored-By: Claude <[email protected]>
|
Review Type: Initial Review Code Review SummaryThis is a well-executed, focused decommission PR that removes two dead packages and brings the codebase to a single, coherent agent-integration surface. The diff is clean, the deletion scope matches the issue specification exactly, and the ADR is thorough and accurate. This is a net positive change that eliminates a broken phantom MCP path (the One [Improvement] item on the shim DRY violation and one [Nit] on the Gemini error format. Neither blocks merge. Requirements Check
Note on ADR cross-repo scope: The issue says two PRs (core + docs). The ADR landed in Code Review FindingsSuggested Improvements[Improvement] The The constraint is that shims must be executable without an npm install step (they are copied verbatim into session temp dirs by Minimum suggested action: add a one-line comment above NitpicksNit: The old code was Nit: Line: This pre-existed on RecommendationAPPROVE The PR meets all acceptance criteria. The |
…TOOL] prefix - Add comment above runCLI in all 4 shims explaining intentional copy-paste: shims are deployed as standalone scripts into agent session temp dirs with no npm context, so imports are unavailable at runtime - Restore [UNKNOWN_TOOL] prefix in gemini handler's default-case error message (regression from agent-tools removal) Skipped: pre-existing quality:check calls quality:fix on packages/skill — tracked as a separate issue, not introduced by this PR. Co-Authored-By: Claude <[email protected]>
Review Addressed✅ Addressed 2 recommendations: 🟡 runCLI inlining rationale — Added a 4-line comment above 🟢 ⏭️ Skipped 1 recommendation: 🟢 |
… the CLI, write ADR-035 (#1270) * D5: Decommission MCP — delete packages/mcp + agent-tools, shims shell the CLI (closes #1265) - Delete packages/mcp/ (npm MCP server: server, tools, install, tests) - Delete packages/agent-tools/ (gRPC client used by the shims) - Delete .github/workflows/publish-mcp.yml - Remove test:mcp, test:agent-tools from test:all/test:all:db; remove both packages from quality:fix/quality:check in root package.json - Rewrite all four shims (claude-code, codex, gemini, opencode) to shell the nodespace CLI via execFile('nodespace', ['--json', ...]) with the same NodespaceCLIError surface — no npm dependency - Delete phantom "nodespace mcp" Claude Desktop registration from: scripts/install.sh, scripts/uninstall.sh, packages/cli uninstall.rs (drop prompt_remove_mcp), packages/desktop-app onboarding.rs (drop configure_mcp Tauri command + MCP fields from structs), and onboarding-wizard.svelte (remove MCP step + summary entry) - Remove from Tauri invoke handler in lib.rs - Remove MCP Setup section from README.md - Remove agent-tools publish steps from release.yml; skill publish remains - Update context_assembly.rs doc comments to reference packages/skill/shims/ - All 133 frontend tests + 17 skill tests + 877 Rust tests pass Co-Authored-By: Claude <[email protected]> * Address review: document runCLI inlining rationale, restore [UNKNOWN_TOOL] prefix - Add comment above runCLI in all 4 shims explaining intentional copy-paste: shims are deployed as standalone scripts into agent session temp dirs with no npm context, so imports are unavailable at runtime - Restore [UNKNOWN_TOOL] prefix in gemini handler's default-case error message (regression from agent-tools removal) Skipped: pre-existing quality:check calls quality:fix on packages/skill — tracked as a separate issue, not introduced by this PR. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude <[email protected]>
Closes #1265