Executor talk shows 10,000-tool Code Mode
In a Cloudflare Connect 2026 talk, Executor founder Rhys Sullivan breaks down how his open-source MCP gateway handles 10,000-tool catalogs without blowing up LLM context windows. Instead of injecting massive JSON schemas upfront, agents search the catalog on demand and write TypeScript executed inside sandboxed Cloudflare Isolates.
Raw MCP tool-calling hits a wall well before enterprise scale — dumping thousands of API schemas into a system prompt burns tokens and degrades reasoning before an agent even starts. Cloudflare's Code Mode pattern paired with a unified gateway like Executor makes a strong case that typed code generation should replace chatty JSON tool loops.
- –Context stays flat at scale: collapsing OpenAPI, GraphQL, and MCP catalogs into search and execute primitives keeps prompt overhead around ~1,000 tokens whether an agent has 10 tools or 10,000.
- –Intermediate payloads stay out of the model context: agents write short TypeScript scripts to loop, filter, and chain multi-step API calls inside isolated V8 sandboxes, returning only distilled results.
- –Credentials stay isolated from generated code: Executor manages OAuth tokens and multi-account connections on the host side, injecting auth behind the scenes while supporting per-tool human approval policies.
- –Reflects broader convergence in agent infrastructure: alongside Cloudflare's `@cloudflare/codemode` package and Anthropic's programmatic tool calling, code-first execution is emerging as the standard fix for MCP bloat and gives open-source gateways like Executor a sharp wedge against managed connector platforms like Composio.
DISCOVERED
33m ago
2026-12-04
PUBLISHED
50m ago
2026-12-04
RELEVANCE
AUTHOR
CloudflareDev
