Token-efficient C#, Razor, and .NET file views for AI assistants. 50-95% token reduction via Roslyn.
Connect TokenSaver to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Token-efficient C#, Razor, and .NET file views for AI assistants. 50-95% token reduction via Roslyn. The tokensaver mcp server is what makes that connection.
A structural warm start for AI coding agents in .NET. Instead of loading whole files into your assistant, TokenSaver hands it a cheap map of your code — every type and member as a signature, each tagged with its line range — so the model reads only the slice it needs instead of slurping the file. Built on the Roslyn compiler platform.
Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.
The toolset is worth reading before you wire it up, because it tells you what the integration is really for:
OutlineCSharpFile — Signatures of every type and member — no bodies. Best for "what's in this file?"MinifyFile — Lossless minify of an entire file — strips comments and whitespace, logic unchanged. Auto-dispatches by extension (C#, Razor, JS/TS, Python, HTMLTraceDiRegistrations — Finds every Dependency-Injection registration referencing a type (interface or concrete) and returns a compact table of file:line, methodPlenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. TokenSaver's toolset — OutlineCSharpFile, MinifyFile, TraceDiRegistrations — is a fair guide to whether it matches your workflow. It is maintained by Byggarepop; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| OutlineCSharpFile | Signatures of every type and member — no bodies. Best for "what's in this file?" |
| MinifyFile | Lossless minify of an entire file — strips comments and whitespace, logic unchanged. Auto-dispatches by extension (C#, Razor, JS/TS, Python, HTML, CSS, JSON, YAML, XML, C, C++, X++, VB.NET). |
| TraceDiRegistrations | Finds every Dependency-Injection registration referencing a type (interface or concrete) and returns a compact table of file:line, method, ServiceType -> ImplType, and key. Answers "where is IFoo wired, and to what?" |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.