TokenMS v2: open-source local MCP server claims 40-50% token savings for coding agents
nexxismyname · reddit · 2026-12-05
A Reddit developer released TokenMS v2, an open-source local MCP server that filters codebase noise before it reaches the LLM, reporting 40-50% quota burn reduction in daily use with Antigravity, Cursor, and Claude Desktop.
Key techniques:
- Prefix-stable context assembly: deterministic sorted static prefix (repo map + outlines) plus append-only suffix to keep provider KV/prompt caches warm
- Minimal core tool surface: only 7 default tools, secondary tools routed on-demand via discovertools + dispatch
- SQLite delta ledger & loop guard: avoids resending unchanged symbols, detects stuck retry loops
- Compact wire format: TOON notation for tabular data plus minified JSON
- Async job runner & log distiller: distills raw test/build logs into <400-token failure summaries
- Multi-project isolation with one global server handling multiple local repos
Related event: Open-source MCP server TokenMS cuts coding agent token use by ~half(3 posts)→
More from coding & agent
- A developer's 2025 terminal stack: Rex shines, OpenCode still tops terminal agents — intellectronica · 2026-12-05
- Herdr turns any coding agent into a hosted desktop app you control from your phone — rudrank · 2026-12-05
- Knuth now programs with Claude; preview of new Art of Computer Programming chapter leaks — IanArawjo · 2026-12-05
- gemini-cli PR: Git Quoted Paths Silently Skipped Sensitive-Keyword Linting — HermanGrondahl · 2026-12-05
- One engineer spent 8 years writing 600K lines: KUDA rival runs LLMs across NVIDIA and Qualcomm — IgorCarron · 2026-12-05
- Agentic shopping in practice: Grokbot as a personal shopper that negotiates — xkonjin · 2026-12-05