Skip to content

chore(mcp): drop 24 narrow tools from user-facing MCP surface#142

Merged
aksOps merged 1 commit into
mainfrom
chore/remove-deprecated-mcp-tools
May 13, 2026
Merged

chore(mcp): drop 24 narrow tools from user-facing MCP surface#142
aksOps merged 1 commit into
mainfrom
chore/remove-deprecated-mcp-tools

Conversation

@aksOps
Copy link
Copy Markdown
Contributor

@aksOps aksOps commented May 13, 2026

Summary

  • MCP user surface drops 34 → 10. The 24 narrow tools the consolidated layer subsumes are no longer registered as user-facing MCP tools.
  • Surviving 10: 6 consolidated (`graph_summary`, `find_in_graph`, `inspect_node`, `trace_relationships`, `analyze_impact`, `topology_view`) + `run_cypher` + `read_file` + `generate_flow` + `review_changes`.
  • Greenfield project — no pinned consumers, no back-compat shim needed.

Architectural note

The narrow `toolXxx(d) Tool` builder funcs in `tools_graph.go` / `tools_intelligence.go` / `tools_topology.go` stay because `tools_consolidated.go` delegates to them at the Go-API level for mode dispatch. `RegisterGraph` / `RegisterIntelligence` / `RegisterTopology` remain available for unit tests that exercise narrow tool behavior directly; only the production cli wiring switches to the slim `RegisterGraphUserFacing` helper (run_cypher + read_file only).

Test plan

  • `go test ./internal/mcp/... -count=1` — 78 pass
  • `go test ./... -count=1` — 829 pass
  • `go test -tags integration ./internal/mcp/... -run TestMCPServerInitializeAndListTools` — confirms exactly 10 tools via real binary boot
  • Docs swept: CLAUDE.md, README.md, PROJECT_SUMMARY.md

Coordination

Part of the parallel backlog cleanup (PRs #139, #140, #141, this one). #139 touches `tools_consolidated_test.go`, this PR touches `tools_graph.go` / `tools_graph_test.go` — minor rebase only at merge time.

The v0.3.0 release exposed 34 MCP tools — 6 consolidated mode-driven
plus 28 narrow tools (20 graph + 9 topology + 4 intelligence,
minus run_cypher / read_file / generate_flow / review_changes which
stay). Greenfield project, no pinned consumers — drop the 24 narrow
tools that the consolidated layer subsumes from the MCP surface.

Surface drops 34 -> 10:
- 6 consolidated (graph_summary, find_in_graph, inspect_node,
  trace_relationships, analyze_impact, topology_view)
- 4 first-class (run_cypher, read_file, generate_flow, review_changes)

Implementation: keep all toolXxx(d) Tool builder functions in
tools_graph.go / tools_intelligence.go / tools_topology.go because
tools_consolidated.go delegates to them at the Go-API level for mode
dispatch. RegisterGraph / RegisterIntelligence / RegisterTopology
remain available for unit tests that exercise narrow tool behavior
directly. Production cli wiring (registerAllTools) now calls a new
RegisterGraphUserFacing that registers only run_cypher + read_file.

Doc sweep: CLAUDE.md, README.md, PROJECT_SUMMARY.md updated to
reflect the 10-tool surface; integration_test.go updated to assert
10 and spot-check the consolidated names.
@aksOps aksOps merged commit d2853dd into main May 13, 2026
13 checks passed
@aksOps aksOps deleted the chore/remove-deprecated-mcp-tools branch May 13, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant