Repository navigation
Description
Spun off from the architectural audit (#1228, finding D5). The strategic direction set 2026-05-29: NodeSpace moves off MCP entirely toward the published NodeSpace skill + shims that shell the nodespace CLI → nodespaced gRPC. D2 (#1230) deleted the in-core HTTP MCP transport; D3/#1227 closed the CLI coverage gap; D4 (#1232) cleaned SKILL.md. The skills+CLI path is now proven and complete. This issue is the actual teardown of the now-redundant MCP surfaces and the second tool client (agent-tools), plus the ADR that records the decision.
Spans two repos: code in nodespace-core, ADR in nodespace-docs. Two PRs, one logical change.
Decision: delete @nodespaceai/agent-tools, shims shell the CLI
The audit left agent-tools' fate open — keep only if a skill needs gRPC streaming/tight loops. It doesn't. Evidence:
packages/agent-tools/src/client.ts/tools.tsexpose only unary request/response calls (UnaryMethod,promisifyof single callbacks). No streaming, no persistent loop, no live events.- All four shims (
packages/skill/shims/{claude-code,gemini,codex,opencode}/…) import and call the same five one-shot functions:searchSemantic, getNode, createNode, updateNode, getChildren. - The CLI already covers all five 1:1:
search,node get,node create,node update,node children. packages/mcp/src/tools.tsalready proves theexecFile('nodespace', ['--json', …])pattern works.
So we collapse to one client, one catalog: the CLI. agent-tools is deleted; the shims shell the CLI directly.
Latent-bug note that further supports deletion: the shims import
@nodespace/agent-tools(singular) but the package is@nodespaceai/agent-tools— the published gRPC path would fail to resolve. Moot once agent-tools is deleted.
Surfaces to delete (every one verified present)
nodespace-core — npm MCP server
- Delete
packages/mcp/(entire package:src/{server,tools,install}.ts, tests,package.jsonwithbin: nodespace-mcp, README). - Delete
.github/workflows/publish-mcp.yml(publishes@nodespaceai/mcp). - Remove
test:mcpscript and&& bun run test:mcpfromtest:allin rootpackage.json. - Remove
packages/mcpfromquality:fixandquality:checkin rootpackage.json.
nodespace-core — phantom nodespace mcp Claude Desktop registration
The CLI has no
Mcpsubcommand (packages/cli/src/lib.rsenum = Node/Search/Diagnostics/Import/Mention/Schema/Session/Uninstall). The installer and onboarding wizard register Claude Desktop to launchnodespace mcp, which would fail. Rip it out.
-
scripts/install.sh: delete the── MCP (Claude Desktop) ──block (themcpServers/"args": ["mcp"]writer). -
scripts/uninstall.sh: delete themcpServersremoval block. -
packages/cli/src/commands/uninstall.rs: deleteprompt_remove_mcp()(lines ~93–140) and its call site (~line 33). -
packages/desktop-app/src-tauri/src/commands/onboarding.rs: delete theconfigure_mcp()Tauri command (~143–190) and unregister it from the invoke handler. -
packages/desktop-app/src/lib/components/onboarding/onboarding-wizard.svelte: remove the "Add NodeSpace to Claude Desktop (MCP)" step and theclaude_desktop_config.jsonsuccess banner (~line 254). -
README.md: delete the## MCP Setupsection (incl. the stale"type": "http", "url": "http://localhost:3100/mcp"block — that HTTP transport was already removed in D2/Audit & cleanup: finish daemon + SQLite migrations (purge dead HTTP MCP / SurrealDB / RocksDB from code and docs) #1230).
nodespace-core — second tool client
- Delete
packages/agent-tools/(entire package). -
.github/workflows/release.yml: delete the@nodespaceai/agent-toolsbuild+publish steps. Keep the@nodespaceai/skillpublish. - Remove
test:agent-toolsscript and its entry intest:all/test:all:dbin rootpackage.json. - Remove
packages/agent-toolsfromquality:fix/quality:check. -
packages/agent/src/acp/context_assembly.rs: update the two doc comments (~212, ~248) that reference@nodespace/agent-tools/shims/to point atpackages/skill/shims/.
Shim migration (replace gRPC client with CLI subprocess)
Add a small runCLI helper (lift from packages/mcp/src/tools.ts) and rewrite each shim's five handlers to shell the CLI instead of importing @nodespace/agent-tools. Behavior and tool names stay identical.
-
packages/skill/shims/claude-code/nodespace-hook.ts -
packages/skill/shims/codex/nodespace-plugin.ts -
packages/skill/shims/gemini/nodespace-handler.ts -
packages/skill/shims/opencode/nodespace-plugin.ts - Each: replace
import { … } from '@nodespace/agent-tools'with a localrunCLI(args)(execFile('nodespace', ['--json', ...args]), ENOENT → friendly "CLI not on $PATH" error mirroring the existingNodespaceCLIError). - Map:
searchSemantic→['search', query, '--limit', N];getNode→['node', 'get', id];createNode→['node', 'create', '--type', t, '--content', c, ('--parent', p)?];updateNode→['node', 'update', id, '--content', c];getChildren→['node', 'children', id]. - Preserve the
ToolError-style error surface each agent runtime expects. -
packages/skill/package.json: confirmdependenciesstays{}(shims shell a binary, no npm dep).
ADR (write in nodespace-docs)
- Create
nodespace-docs/decisions/035-skills-replace-mcp.md. - Status: Accepted. Supersedes: the MCP-as-integration-surface framing of ADR-021. Updates: ADR-034 surface 1 (agents reach the graph via the skill/CLI, not MCP). Related: ADR-030 (skill node), ADR-031 (daemon-client), ADR-032 (PTY mechanics).
- Content outline:
- Context: MCP was the original external-agent integration surface (ADR-021). After ADR-031 (daemon-client) + the NodeSpace skill + CLI coverage (CLI coverage gap: surface remaining knowledge-graph operations so skills+scripts can replace MCP #1227), MCP is redundant — agents reach the graph through the published skill shims that shell the
nodespaceCLI →nodespacedgRPC. Maintaining MCP (npm server + phantomnodespace mcpregistration + a second gRPC client in agent-tools) is duplicate surface with no capability the skill lacks. - Decision: MCP is removed as an integration surface. One client (the CLI), one catalog (the skill shims). agent-tools deleted; shims shell the CLI.
- Consequences: simpler install (skill only), one place to add tools, no npm runtime dep for agents. Trade-off: third-party MCP-only clients (Cline, Cursor MCP) lose the off-the-shelf entry — acceptable pre-release with no users; reintroducible later as a thin CLI-shelling stdio server (like the deleted
packages/mcpalready was). - Note Architectural audit (post-daemon + post-SQLite): structural findings & improvement plan #1228/D5; supersedes the MCP-server framing referenced in Install the NodeSpace skill into AI agents on first launch #1199/Settings: Integrations panel for PATH and skill configuration #1181.
- Context: MCP was the original external-agent integration surface (ADR-021). After ADR-031 (daemon-client) + the NodeSpace skill + CLI coverage (CLI coverage gap: surface remaining knowledge-graph operations so skills+scripts can replace MCP #1227), MCP is redundant — agents reach the graph through the published skill shims that shell the
Affected open issues
- Install the NodeSpace skill into AI agents on first launch #1199 (install skill on first launch): confirm it no longer assumes
configure_mcp()/nodespace mcp(the onboarding MCP step is deleted here). - Settings: Integrations panel for PATH and skill configuration #1181 (Settings → Integrations): remove any "MCP / Claude Desktop" integration row from its scope; the only integration surface is the skill installer. Comment linking this issue.
Acceptance criteria
-
packages/mcp/andpackages/agent-tools/no longer exist. - No dangling MCP references anywhere — code, docs, installer, CI:
grep -rIn -e "packages/mcp" -e "@nodespaceai/mcp" -e "agent-tools" -e "configure_mcp" -e "prompt_remove_mcp" -e "mcpServers" --exclude-dir=node_modules --exclude-dir=.git --exclude-dir=target --exclude-dir=.claude .returns nothing. -
.github/workflows/publish-mcp.ymldeleted;release.ymlno longer publishesagent-tools;@nodespaceai/skillstill publishes. - Root
package.jsonhas notest:mcp/test:agent-tools;test:all,test:all:db,quality:fix,quality:checkupdated and green. - All four shims shell the CLI; none import
@nodespace/agent-tools. -
README.mdMCP Setup section removed. - Onboarding wizard no longer offers the Claude Desktop MCP step.
-
nodespace-docs/decisions/035-skills-replace-mcp.mdexists; ADR-021 header points at 035; ADR-034 surface-1 wording corrected.
Testing
-
bun run test:all(frontend + skill + Rust) green, no new failures vs baseline. -
bun run quality:fixclean (runscargo fmt --all—git status+ revert unrelated reformats before committing). -
cargo test -p nodespace-cliand-p nodespace-desktopgreen after removingprompt_remove_mcp/configure_mcp. - End-to-end skill install still works: build
packages/skill, run the installer into a temp HOME with.claude/.codex/.gemini/.opencodedirs; confirm shims copy and a shimmed tool call resolves through the CLI against a runningnodespaced(or fails with the friendly "CLI not on $PATH" message when absent). - Manual: run the onboarding wizard; confirm no MCP/Claude-Desktop step and no
claude_desktop_config.jsonis written.
Risks
- External npm consumers of
@nodespaceai/mcp/@nodespaceai/agent-toolsbreak. Pre-release, zero users — acceptable per greenfield. Optionallynpm deprecatethe published versions (out of scope for the code change). - Third-party MCP clients (Cline, Cursor MCP) lose the integration. Documented as an accepted trade-off in ADR-035; reintroducible later.
- Two-repo coordination: land the ADR PR (nodespace-docs, branch prefix
doc/) alongside the code PR; cross-link both.
Standard NodeSpace startup / PR sequence
git status + git pull origin main, EnterWorktree({name: "issue-<N>-decommission-mcp"}), bun install, bun run test baseline, gh:comment/gh:assign/gh:status. createLogger not console.*; bun run test not bun test. The ADR is a separate PR in nodespace-docs (doc/ branch). Final: bun run test:all, bun run quality:fix + commit, bun run gh:pr <N>, /pragmatic-code-review before merge. Spans two repos — open and cross-link both PRs.
Spun off from #1228 (architectural audit), finding D5.
Activity
malibio commentedon May 30, 2026
Frontend baseline: 133 test files, 3866 tests passed
malibio commentedon May 30, 2026
Two PRs open for this issue:
All acceptance criteria met:
D5: Decommission MCP — delete packages/mcp + agent-tools, shims shell…
D5: Decommission MCP — delete packages/mcp + agent-tools, shims shell…