refactor(mcp)!: consolidate tool surface 52 → 27 (v0.5.0) - #468
Open
Disentinel wants to merge 3 commits into
Open
refactor(mcp)!: consolidate tool surface 52 → 27 (v0.5.0)#468Disentinel wants to merge 3 commits into
Disentinel wants to merge 3 commits into
Conversation
BREAKING CHANGE: MCP tool surface consolidated from 52 to 27 tools for coherence.
- get_node{detail,format} absorbs get_neighbors/get_context/describe/get_file_overview/
get_function_details/get_shape
- trace{along} absorbs trace_dataflow/trace_calls/trace_effects/trace_alias/traverse_graph
- explain_datalog{mode} absorbs explain_fact/explain_gap/sim_datalog
- query_graphql/check_invariant -> query_graph; get_schema -> get_stats; drop explain
- assert is batch-native (covers remember/add_assertion/supersede via relation);
retract for deletes; recall covers semantic_search; enox_ prefix dropped
- code & knowledge graphs unified via graph:code|knowledge param (one RFDB engine)
- snake_case param canon; old names kept as hidden deprecated dispatch aliases (1 minor)
Docs, _ai/intents, .claude skills, CLI parity and CHANGELOG updated.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump all packages 0.4.1 -> 0.5.0 (minor; breaking MCP tool-contract change, pre-1.0 semver). CHANGELOG [0.5.0] section + README version banner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Regenerated via the grafema mcp:tool enrichers + export --as docs-md. 27 tools, old/renamed names removed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What & why
Consolidates the grafema MCP tool surface from 52 → 27 tools to improve coherence (Glama scored the old surface C: too many near-duplicate tools an agent must disambiguate). Every merge is a genuine usability win — fewer near-synonym tools, one naming scheme, one mental model.
The consolidation
get_node{detail: record|neighbors|context|full, format: json|dsl}absorbsget_neighbors/get_context/describe/get_file_overview/get_function_details/get_shape.trace{along: data|calls|effects|alias|edges}absorbstrace_dataflow/trace_calls/trace_effects/trace_alias/traverse_graph.explain_datalog{mode: fact|gap|sim}.query_graphql/check_invariant→query_graph(language/rule);get_schema→get_stats;explaindropped (returned a prompt, not data).assertis batch-native ({assertions:[…]}; coversremember/add_assertion/supersedevia relation type);retractfor deletes;recallcoverssemantic_search.enox_prefix dropped — Enox is a protocol grafema supports, not a tool namespace.graph: "code"|"knowledge"param (one RFDB engine, two DB namespaces).graph,max_depth,edge_types,context_lines).Compatibility
All old names are kept as hidden deprecated dispatch aliases (arg-translated, with a deprecation log) for one minor — they still work but are not advertised in
tools/list. New integrations should use the 27.Verification
tools/listreturns exactly 27 tools, 0enox_, 0 dupes.tscclean, eslint clean, 116/117 tests pass (1 pre-existing skip).Release & docs
[0.5.0]with old→new mapping; README banner._ai/intents/mcp-tool/*,.claudeskills, CLI parity updated;docs/mcp-reference.mdregenerated (27 tools); site updated separately (grafema-cloud).While regenerating the autogenerated reference,
grafema analyzeof this monorepo fails: the derive engine overflowsmax_intermediate_results=100000on@stdlib/js_local_refs(~120k–140k results) → orchestrator never exits 0 → the JS enrichers (incl.enrichMcpToolDefinitions) are skipped. The reference was regenerated by invoking the real enrichers directly. grafema cannot currently analyze its own codebase — worth a follow-up (raise the cap / chunk the rule pack).🤖 Generated with Claude Code