Fetching from the wire…
Top 5 · 2026-04-19 · source-backed
Cloudflare shipped Code Mode MCP this week, and the numbers are hard to ignore. They replaced per-endpoint tool definitions with exactly two tools: search() and execute(). That's it. The result? Their own API surface, all 2,500+ endpoints, went from 1.17 million tokens of tool definitions down to roughly 1,000 tokens. That's a 99.9% reduction. One enterprise deployment collapsed 52 tools across four MCP servers (9,400 tokens) into 2 portal tools at 600 tokens.
I've been building MCP integrations for months, and every time I wire up a new API, the tool definition bloat is the first thing that burns me. You define 40 endpoints, and half your context window is gone before the model does anything useful. Cloudflare's approach sidesteps this entirely. The search() tool lets the agent discover available endpoints by querying the OpenAPI spec. The execute() tool runs generated code against that spec inside a V8 isolate sandbox. The agent writes the API call as code, the sandbox executes it, and you get results back. Pagination, conditional logic, chained calls. All in a single cycle.
What makes this genuinely interesting and not just a Cloudflare marketing play is that the pattern is completely reusable. If you have any large API surface exposed via MCP, you can adopt this same architecture. Stop defining one tool per endpoint. Expose a spec search and a code execution sandbox. Let the model figure out which endpoints to call and compose them programmatically. The token savings alone justify the refactor, but the real win is that your agent can handle API combinations you never explicitly defined as tools.
I've already started sketching this pattern into my own MCP servers. If you're running anything with more than 10 MCP tools, you should be looking at this approach today. The era of hand-crafted per-endpoint tool definitions is over.
What to do now: Read the Cloudflare blog post, then audit your own MCP tool count. If you're above 15 tools, prototype a search-plus-execute pattern against your OpenAPI spec. The token budget you free up will make your agents meaningfully smarter.
Each link below shares sources, entities, or timing with this story.
This is the most immediately useful pattern I've seen this month. Cloudflare shipped Code Mode MCP, and the numbers are hard to argue with. Their API has 2,500+ endpoints. Exposing each one as a separate MCP tool would consume 1.17 million tokens of context just for tool defin...
Cloudflare published Code Mode for MCP, and the numbers are the kind that change how you architect things. Instead of exposing MCP tools individually to an LLM (each tool call requires a round trip through the model), Code Mode converts your entire MCP server into a typed Type...
If you wrote an MCP server before July, it's on a protocol shape the maintainers have already removed. Not deprecated-with-a-migration-window. Removed from the spec. MCP lead maintainers David Soria Parra and Den Delimarsky published an updated roadmap on August 22, and the re...
OneMCP posted to Show HN on August 23, unifying 20+ MCP servers behind one portal endpoint exposing only search, describe and execute, letting the model script against tools in code rather than reading every schema. The page credits Cloudflare's Code Mode portal pattern as pri...
Cloudflare's WebMCP developer preview uses HTMLRewriter at the edge to inject a bridge script tag into every HTML response, registering MCP tools on document.modelContext (the browser surface shipping experimentally in Chrome 146). Tools arrive as opt-in packs declared via a d...
Cloudflare released @cloudflare/computer on August 3 as day two of Agents Week, and the motivation in the engineering post is the part that should change your architecture thinking. Not speed. Capacity. (Cloudflare Blog) Their stated position: across every hyperscaler, there i...
MindPattern daily
One email a day at 7 AM. Sources and a take on every story. Unsubscribe anytime.