Trim fixed MCP context overhead#94
Merged
Merged
Conversation
…e-line result banners ServerInstructions drops from 2,207 to 1,583 tokens with no rule removed: selection rules are tightened to terse form and moved ahead of the supported-types table so clients that truncate long instructions keep the behavior-critical part. Emitter banner notes collapse from 2-5 lines to one line per result, and the session header line shortens to "session: N calls - saved X - net Y after Z overhead". Header examples in mcp/README.md and copilot-instructions.md updated to match; test parsers for the session and repeat-view lines updated.
Byggarepop
added a commit
that referenced
this pull request
Jun 11, 2026
…own banner (#96) * Never downgrade a newer version pin in self-update; single-line Markdown banner SetPinnedVersion now refuses to lower an existing --version pin when the pinned version is newer than the target (core-version comparison via IsNewer, prerelease suffixes ignored). This stops the background self-update from stomping a deliberately pinned local dev build (e.g. 9.9.9-dev from a local feed) with the latest stable from nuget.org — which previously left the entry pointing at a version the configured --source doesn't have, so the server failed to launch. Stale-config re-pinning and the manual self-update path (#68) are unaffected: older pins still upgrade. MarkdownEmitter's banner note collapses from two lines to one, matching the other emitters after #94 (it was the only emitter missed in that pass). * Add PR number to CHANGELOG entries
Byggarepop
added a commit
that referenced
this pull request
Jun 11, 2026
Co-authored-by: Claude Fable 5 <[email protected]>
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.
The /usage breakdown attributes most session context to the tokensaver MCP server. Most of that share is tool results doing their job (they replace larger raw reads), but the fixed per-session overhead was genuinely trimmable. This PR cuts it without removing any behavior rule.
print-overhead). Selection rules are tightened to terse form and reordered ahead of the supported-types table, so MCP clients that truncate long server instructions (Claude Code cuts off around 3K characters) keep the behavior-critical rules.session: N calls / saved X / net Y after Z overhead, and the repeat-view line trimmed. TheTokens without toolfirst-view marker is unchanged.mcp/README.mdand.github/copilot-instructions.mdsynced; test parsers for the session and repeat-view lines updated.No tool descriptions or schemas change, and no version bump. 172/172 tests pass.