How Octri Cut Their MCP Server's Context Usage by Up to 267x
Cool-Click1253 · reddit · 2026-11-28
Octri published an engineering write-up on reducing their MCP server's context window usage by up to 267x. The core problem: their GitHub MCP server registered every operation as a tool, with tool definitions loaded upfront costing 403,011 tokens. The fix was a "search mode" — instead of stuffing all tool schemas into context, operations are retrieved on demand, cutting upfront usage to 1,508 tokens. The post covers implementation details and trade-offs, highly relevant for anyone building MCP servers or wiring tools into agents while fighting context costs.
More from coding & agent
- usb-rea reverse-engineers Windows-only USB gadgets and auto-generates Linux drivers — jedisct1 · 2026-11-28
- DavidKPiano nails the agent workflow joke: 'That report is for you, Claude, not me' — DavidKPiano · 2026-11-28
- MCP server context usage cut by up to 267x, devs share how — Cool-Click1253 · 2026-11-28
- After Anthropic ported Messages API to Rust: AI may rewrite everything in low-level code — bendee983 · 2026-11-28
- LlamaIndex Open-Sources OCRia-1 Weights, 4B SOTA OCR Model Runs on a Mac mini — llama_index · 2026-11-28
- Designer builds a full custom WoW UI with Claude Code — eighthree · 2026-11-28