Repository navigation
feat(mcp): list the coding surface by default and move maintenance tools into opt-in toolsets - #1442
Merged
Merged
Conversation
Contributor
SCIP oracle — resolution reportHeuristic→compiler edge resolution per corpus. Δ compares resolved-after to the
resolved = |
Contributor
|
| Project | rag-rat |
| Branch | feat/mcp-toolsets |
| Testbed | hetzner-bigmem |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
- Estimated Cycles (cycles)
- LL Hits (hits)
- RAM Hits (hits)
- L1 Hits (hits)
- Instructions (instructions)
- Total read+write (reads/writes)
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Estimated Cycles | cycles x 1e6 | Instructions | instructions x 1e6 | L1 Hits | hits x 1e6 | LL Hits | hits x 1e6 | RAM Hits | hits x 1e3 | Total read+write | reads/writes x 1e6 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| rag_pipeline::pipeline::index cargo_resolver:resolver_config() | 📈 view plot | 1,920.91 x 1e6 | 📈 view plot | 1,203.35 x 1e6 | 📈 view plot | 1,681.19 x 1e6 | 📈 view plot | 38.78 x 1e6 | 📈 view plot | 1,309.79 x 1e3 | 📈 view plot | 1,721.27 x 1e6 |
| rag_pipeline::pipeline::query_cold cargo_resolver:resolver_built_config() | 📈 view plot | 316.43 x 1e6 | 📈 view plot | 210.44 x 1e6 | 📈 view plot | 299.40 x 1e6 | 📈 view plot | 3.16 x 1e6 | 📈 view plot | 34.73 x 1e3 | 📈 view plot | 302.60 x 1e6 |
| rag_pipeline::pipeline::query_warm cargo_resolver:resolver_index() | 📈 view plot | 238.35 x 1e6 | 📈 view plot | 157.22 x 1e6 | 📈 view plot | 224.24 x 1e6 | 📈 view plot | 2.60 x 1e6 | 📈 view plot | 31.04 x 1e3 | 📈 view plot | 226.88 x 1e6 |
Contributor
|
| Project | rag-rat |
| Branch | feat/mcp-toolsets |
| Testbed | hetzner-bigmem |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result seconds (s) (Result Δ%) | Upper Boundary seconds (s) (Limit %) |
|---|---|---|---|
| index_time/full_rebuild_cargo | 📈 view plot 🚷 view threshold | 5.62 s(-8.63%)Baseline: 6.15 s | 7.20 s (77.97%) |
This was referenced Sep 23, 2026
…or_symbol's real arguments (#1441) Refs #1440 (slice 1: schema hygiene, no renames). - The `worktree` parameter description is repeated in every worktree-scoped tool's schema, so its 331 bytes were paid dozens of times in the tool list an agent loads. It is one sentence now; the full contract, including that an unknown path is ignored without error, is in docs/mcp-tools.md. - `docs_for_symbol` advertised `resolution`, `include` and `edge_kinds` that its handler never read. It now takes the symbol selector (and `lang`, honoured like the other symbol tools), and its default limit matches them. The schema test had pinned the false arguments. - The flattened symbol selector fields (`symbol`, `ref`, `id`, `allow_ambiguous`) carry one-line descriptions, so what a `sym_<hex>` handle is no longer lives only in prose. The tool list drops from about 54.7 KB to 49.4 KB.
…ols into opt-in toolsets Refs #1440 (slice 2). Every tool in the list costs context in every agent that loads it, and about a third of rag-rat's are maintenance or diagnostics an agent rarely calls while coding. Two optional toolsets now carry them: - admin: heal_index, memory_validate, memory_doctor, dream, dream_review, compare_graph_to_text, compare_graph_to_scip, check_library_usage, ffi_surface, llm_status, papertrail_sync_status; - graph: memory_edge_add, memory_edge_remove, memory_edges. Toolsets decide listing only: every tool stays callable and reachable through `rag-rat tools`. They are enabled per repo with `[mcp] toolsets = [...]` (unknown names fail config load) or per launch with RAG_RAT_TOOLSETS, the only switch a dormant server has. index_status, which stays listed, gains `include: ["embeddings"]` to fold in the llm_status report; it already carries the papertrail cache block papertrail_sync_status returns, so that tool was a duplicate. The dream-review skill tells the user how to enable the admin toolset when its tools are not listed.
skakri
force-pushed
the
feat/mcp-toolsets
branch
from
September 23, 2026 20:09
a7b2e11 to
2e5cddb
Compare
Merged
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.
Second slice of #1440. Stacked on #1441.
Why. Every listed tool costs context in every agent that loads the list, and about a third of rag-rat's are maintenance or diagnostics an agent rarely calls while coding.
Toolsets (listing only — every tool stays callable and reachable through
rag-rat tools):admin:heal_index,memory_validate,memory_doctor,dream,dream_review,compare_graph_to_text,compare_graph_to_scip,check_library_usage,ffi_surface,llm_status,papertrail_sync_status.graph:memory_edge_add,memory_edge_remove,memory_edges.[mcp] toolsets = [...](unknown names fail config load) or per launch withRAG_RAT_TOOLSETS— the only switch a dormant server has, and one a plugin launch can set.index_status(stays listed) gainsinclude: ["embeddings"], folding in thellm_statusreport. It already carried the papertrail blockpapertrail_sync_statusreturns — both callpapertrail_status()— so that tool was a duplicate.The
dream-reviewskill tells the user how to enableadminwhen its tools aren't listed.docs/mcp-tools.mdand the config reference document the toolsets.Effect: the default list drops from 47 tools / 49.4 KB (after #1441) to 33 tools / 38.0 KB.
Tests (each mutation-checked): the default list excludes exactly the toolset tools and each toolset brings its own back; a real in-process
tools/listis filtered; env and config toolsets merge, unknown env names skipped;[mcp]parsing dedupes and rejects unknown names;index_statusincludes embeddings only on request. MCP, CLI, base and core suites pass; clippy clean.