Commit df68978
feat(mcp): consolidated 6 mode-driven tools alongside deprecated 34
Plan Phase 2 — collapse the MCP surface so agents see a navigable set
instead of 34 narrow tools.
New tools (all read-only, all delegate to existing handlers — surface
change only, no query-layer rewrite):
graph_summary overview | categories | capabilities | provenance
find_in_graph nodes | edges | text | fuzzy | by_file | by_endpoint
inspect_node neighbors | ego | evidence | source
trace_relationships callers | consumers | producers | dependencies |
dependents | shortest_path
analyze_impact blast_radius | trace | cycles | circular_deps |
dead_code | dead_services | bottlenecks
topology_view summary | service | service_deps |
service_dependents | flow
run_cypher stays as the escape hatch (unchanged).
review_changes lands in Phase 3.
The 34 deprecated tools remain wired for one release for back-compat
with agents pinned to old names. Each consolidated handler delegates
to the deprecated tool's handler via a synthesized params object, so
behavior stays in lockstep — no logic forks.
Tests:
- TestRegisterConsolidated_AllSixToolsLand
- TestConsolidatedTool_UnknownModeRejected (all 6 reject bogus mode
with INVALID_INPUT envelope)
- TestGraphSummary_DefaultModeIsOverview
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ee27181 commit df68978
2 files changed
Lines changed: 77 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments