Skip to content

Strip MCP server to a 3-tool warm-start set#99

Merged
Byggarepop merged 1 commit into
mainfrom
strip-to-warm-start
Jun 16, 2026
Merged

Strip MCP server to a 3-tool warm-start set#99
Byggarepop merged 1 commit into
mainfrom
strip-to-warm-start

Conversation

@Byggarepop

Copy link
Copy Markdown
Owner

Reduces the advertised MCP tool surface from 11 tools to 3 and reframes the project as a structural warm start for AI coding agents.

Tools

Keeps OutlineCSharpFile (warm-start primitive), MinifyFile (whole-file, all languages), and TraceDiRegistrations (DI wiring — the one discovery a text search can't do cleanly). The focus/trace family (FocusMethod, FocusMultipleMethods, FocusMethodsAcrossFiles, FocusType, FocusCallers, TraceCallers, TraceImplementors, MapProject) is demoted from MCP tools to internal API — the test suite still covers it, so nothing is lost and they're trivially restorable.

Also deletes a legacy FocusedEmissionTool that was registering a duplicate focus_method tool, and drops the Markdown emitter.

Overhead

ServerInstructions rewritten for the 3-tool set; fixed per-session overhead drops 4,134 → 1,415 tokens (−66%). On a real Sonnet task this flips the session ledger from net −402 to net +1,460.

Why

A controlled A/B (outline-only vs full toolset vs no-MCP) showed the focus/trace tools added no measured token value on scoped tasks — the durable win is a cheap structural warm start, after which Grep + a narrow Read of the outline's line-ranges does the rest. Measured end-to-end saving scales inversely with model capability: ~1% top-tier, ~5–7% mid-tier, ~8% on cheaper models; large files save the most per read.

Docs

README, NuGet readme, viewer pages, and llms.txt reframed around the warm start — biggest win on smaller/cheaper models and large files. The "30–95% for everyone" framing is dropped; the copy is explicit that it does not make a top model meaningfully cheaper and does not change the code the model writes.

170/170 tests pass; tools/list confirms exactly 3 tools over the wire.

Reduce the advertised tool surface from 11 to 3 (OutlineCSharpFile,
MinifyFile, TraceDiRegistrations) and reframe the project as a structural
warm start for coding agents.

- Demote the focus/trace family (FocusMethod, FocusMultipleMethods,
  FocusMethodsAcrossFiles, FocusType, FocusCallers, TraceCallers,
  TraceImplementors, MapProject) from MCP tools to internal API; the test
  suite still exercises them.
- Delete legacy duplicate FocusedEmissionTool, which registered a second
  focus_method tool.
- Drop the Markdown emitter.
- Rewrite ServerInstructions for the 3-tool set; fixed per-session overhead
  drops 4,134 -> 1,415 tokens.
- Reframe README, NuGet readme, viewer pages, and llms.txt around the warm
  start: it curbs wasteful reading, with the biggest win on smaller/cheaper
  models and large files; drop the "30-95% for everyone" framing.

170/170 tests pass; tools/list confirms 3 tools.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@Byggarepop
Byggarepop merged commit 44d1fc0 into main Jun 16, 2026
1 check passed
Byggarepop added a commit that referenced this pull request Jun 19, 2026
The 3-tool strip (#99) left the live MinifyFile and OutlineCSharpFile
descriptions and the runtime low-saving nudge pointing at focus_method, and
TraceDiRegistrations referencing trace_implementors -- none of which are exposed
tools anymore. A model that follows that guidance reaches for a tool that does
not exist and falls back to a whole-file Read.

Repoint them to outline_c_sharp_file plus a narrow Read, and lead the two
single-file tools with an imperative trigger so the host model picks them up
before reading a large C#/VB file. Descriptions only; no behavior change.


Claude-Session: https://claude.ai/code/session_0158rjCdskesQmgaVnW8x6yi

Co-authored-by: Claude Opus 4.8 <[email protected]>
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