MCP on Code Mode (Interview)
Get the full intelligence
Search transcripts, export clips, track mentions, and explore all topics from “MCP on Code Mode (Interview)” inside PodZeus.
AI agents don’t need more tools—they need the ability to write and run code on demand, and Cloudflare’s Model Context Protocol (MCP) has cracked the code by turning agents into full-stack developers through server-side TypeScript execution. Matt Carey, Cloudflare’s MCP engineer, reveals how his team bypassed the crippling limitations of traditional tool calling by shifting to a dynamic code execution model: agents now write code that runs securely in isolated Cloudflare Workers, exposing all 2,500+ APIs with just 1,000 tokens of context—no more context bloat, no more rigid tool catalogs. This breakthrough, born from a Tuesday epiphany, enables agents to deploy a full Next.js app in a single prompt, with zero local code storage. But the real game-changer isn’t just the tech—it’s the mindset. Carey argues that true AI mastery comes not from chasing cloud APIs, but from building and testing in a home lab: Raspberry Pis, Proxmox servers, and self-hosted Linux environments. He envisions a self-learning DNS server, 'DNS Hole,' that uses a tiny local AI model to detect threats in real time—responding in under 10 seconds by analyzing domain patterns and escalating to deeper analysis, all without relying on outdated blocklists. This shift from reactive to proactive, agent-native infrastructure is the future of secure, scalable development. To unlock this future, developers must redesign their tools from the ground up.
Use server-side code execution via TypeScript in isolated Cloudflare Workers to expose 2,500+ APIs with just 1,000 tokens of context.
Replace rigid tool calling with dynamic code generation: agents write code that runs securely on the server, eliminating context bloat.
Implement a three-step planning loop—plan, review for blind spots, then fix—to dramatically improve agent reliability and reduce sabotage.
Build memory systems as provider-agnostic APIs that support search, compaction, and continual learning across storage backends like Durable Objects or DuckDB.
Use DuckDB + Parquet for lightning-fast local data analysis—ideal for querying telemetry, book content, or agent logs without complex setup.
…and 3 more takeaways available in PodZeus
Welcome to the Pod: Cloudflare's Agent Revolution
Adam introduces Matt Carey from Cloudflare, setting the stage for a deep dive into Code Mode and MCP. The episode kicks off with sponsor reads for Coder.com and Tailscale, highlighting secure cloud development environments and mesh networking.
The Problem with Local Machines and Tool Calling
Matt explains why local developer machines are a security and consistency nightmare—leading to 'it works on my machine' issues, supply chain risks like the Shai Halud virus, and long onboarding times. He contrasts this with cloud development environments that enable instant recovery and enforced security.
Demystifying MCP: From Local Tools to Server-Side Code
Matt breaks down MCP (Model Context Protocol) as a standardized way for agents to access tools, prompts, and resources. He critiques the traditional one-to-one tool mapping that limits scalability and introduces Code Mode as a paradigm shift: letting models write code to interact with APIs dynamically.
The Breakthrough: Server-Side Code Mode at Cloudflare
“We have that massively reduced context window allowance and we can use it to enable our MCP server to access the whole of the Cloudflare platform.”
The Workflow: From Idea to Deployment in Minutes
Matt describes his personal workflow: using Claude Opus 4.6 with a custom Git wrapper for safety, avoiding one-on-one prompting to prevent sabotage, and relying on a structured planning loop to generate robust, reviewable plans before execution.
“I kind of wanted to work at Cloudflare about midway through this podcast. You know, I feel like I can make a dent there.”
“I can unleash my agents. I can build something, deploy it to that, and battle test it in almost real time on my own hardware.”
“drink the Cloudflare Kool -Aid too long, man. Get your own VM, get your own Linux, play with your own keys, with your own rules, with your own sudo and feel the metal, man. Feel the metal.”
Hosts
Guest
Cloudflare
organization
Matt Carey
person
Claude
product
Proxmox
product
DuckDB
product
agent
other
CLI
other
Raspberry Pi
product
Pi.dev
product
Opus 4.6
product
Get the full intelligence
Search transcripts, export clips, track mentions, and explore all topics from “MCP on Code Mode (Interview)” inside PodZeus.
Start discovering podcast insights today
Start with a 7-day trial and explore a growing catalog of popular podcasts. No credit card required.
No credit card required • 7-day trial • Cancel anytime
