Fetching from the wire…
Top 5 · 2026-04-30 · source-backed
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 definitions. Their solution uses exactly two tools: search() and execute(). Total token footprint: roughly 1,000. That's a 99.9% reduction.
Here's how it works. The search() tool lets an agent query the OpenAPI spec by product area without loading the entire spec into context. The agent finds the endpoints it needs. Then execute() runs agent-generated JavaScript inside a V8 isolate, handling pagination and chained API calls in a single cycle. The agent writes code against a TypeScript API rather than making sequential tool calls.
The key insight, and this is the part I want every builder to internalize: converting MCP tool definitions into a typed API and asking the LLM to write code against it consistently outperforms sequential tool calling. Cloudflare's benchmarks show 81-99.9% token reduction depending on the API surface.
I've been struggling with this exact problem. I have a FastAPI backend with 120+ endpoints, and exposing them all via MCP is absurd. The context window fills up with tool schemas before the agent even starts thinking about your actual request. Cloudflare just showed us the pattern: search over the spec, execute code against a typed SDK.
This approach is portable to any API with an OpenAPI spec. You don't need Cloudflare's infrastructure. Generate a TypeScript client from your spec, expose search and execute as MCP tools, and let the agent write code. I'm planning to try this on my own API this week.
The 99.9% token reduction also matters for cost. If you're running agents that interact with large APIs, your token bills are dominated by tool definitions the agent may never use. Two tools that dynamically discover what's available fixes the economics.
Each link below shares sources, entities, or timing with this story.
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...
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...
Stripe published Part 2 of its Minions engineering blog, and it's the most detailed production agent architecture I've read from any company this year. The numbers alone are worth the read: 1,300+ weekly merged PRs from coding agents. But the architecture decisions matter more...
Instead of sending every tool's full schema to the LLM each turn, Code Mode reduces toolsets to two meta-commands: search and execute. Significant context window savings when running dozens of MCP servers.
Lasso Security published research demonstrating that Claude Code's --dangerously-skip-permissions flag enables indirect prompt injection via poisoned READMEs, documentation files, and MCP responses. Then they did something unusual: they released the defense alongside the attac...
MindPattern daily
One email a day at 7 AM. Sources and a take on every story. Unsubscribe anytime.