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.

Related event: MCP Server Context Usage Cut by Up to 267x, Developers Share Slimming Practices(2 posts)→

Original post →

More from coding & agent

coding & agent channel →