More The Changelog: Software Development, Open Source episodes

MCP on Code Mode (Interview) thumbnail

MCP on Code Mode (Interview)

Published 15 May 2026

Duration: 1:54:52

The Field CTO role focuses on data-driven product alignment with customer needs, advocating secure cloud environments, the Model Context Protocol for agent interactions, and balancing automation with security in AI-driven development workflows.

Episode Description

This week I'm talking with Matt Carey about Code Mode and how most of us have been thinking about MCP all wrong. Matt works on the Agents SDK and MCP...

Overview

The podcast explores the evolving role of a Field CTO in bridging customer needs with product development, emphasizing alignment with actual user requirements rather than assumptions. It delves into challenges in cloud development environments, such as inconsistencies in local setups, security risks from supply chain vulnerabilities, and slow onboarding for developers. Secure cloud environments are highlighted as solutions, offering standardization, faster onboarding, and reduced risk through vetted repositories. Industry-wide issues like reliance on tribal knowledge and uncontrolled workflows are discussed, alongside the need for scalable, secure alternatives. The discussion extends to AI deployment in large organizations, focusing on the complexity of managing agents and protocols like the Model Context Protocol (MCP), introduced by Anthropic to enable agents to interact with tools, prompts, and resources on user devices. Cloudflares implementation of MCP via Code Mode, which allows agents to execute code securely on their servers, is explored for its benefits in enhancing security, reducing external tool dependencies, and enabling seamless API integration.

Key technical topics include the evolution of large language models (LLMs) from text generation to function calling and tool-based actions, the challenges of context window limitations in managing tools, and the shift toward code-centric approaches like SDK generation for dynamic interactions. Security mechanisms such as sandboxed code execution and restricted outgoing fetches are emphasized for safe AI agent operations. The podcast also addresses open-source collaboration, team workflows in developing agents and protocols (e.g., Cloudflares MCP initiative), and challenges in scaling systems like the limitations of traditional tool mappings versus dynamic code generation. Discussions on agent memory systems, real-time threat detection via AI-driven block lists, and the philosophical balance between AI adoption and privacy concerns underscore the tension between innovation and practical implementation. The content underscores the importance of iterative development, secure infrastructure, and the integration of AI into diverse fields, from software engineering to non-technical domains like healthcare, while highlighting ongoing challenges in usability, scalability, and fostering broader AI adoption.

What If

  • What if you transitioned your development workflow entirely to a secure, standardized cloud environment?

    • Move: Implement a cloud-based development setup using a provider like Cloudflare or Tail Scale, replacing local environments for all projects.
    • Why now: Address the "works on my machine" problem, reduce onboarding time from 45 weeks to near-instant, and mitigate supply chain vulnerabilities by restricting package sources to private repos.
    • Expected upside: Faster project delivery, consistent environments, and reduced security risks from uncontrolled local workflows, especially for solo developers managing multiple projects.
  • What if you used the Model Context Protocol (MCP) to dynamically interact with APIs for automation tasks?

    • Move: Adopt the two-tool MCP approach (search + execute) to generate and execute code against external APIs (e.g., Cloudflare, GitHub) without predefined tools.
    • Why now: The text highlights that SaaS companies like Datadog have adopted MCP, and its server-side code mode allows secure, scalable API interactions.
    • Expected upside: Dramatically reduce manual tool configuration, enable dynamic workflows like automating Next.js deployments or API testing, and avoid tool limitations that restrict scalability.
  • What if you created an agent-driven CLI with markdown-formatted usage instructions to automate repetitive tasks?

    • Move: Develop a custom CLI tool with a --agent flag that generates markdown instructions for agents, replacing verbose --help outputs for complex commands.
    • Why now: The text critiques "agent-incompatible" CLIs reliant on interactive workflows and highlights the need for agent-native design.
    • Expected upside: Improve agent integration with CLI tools, reduce manual error-prone steps, and enable automation of tasks like deployments or config management without requiring interactive prompts.

Takeaway

  • Adopt secure cloud development environments: Replace inconsistent local setups with standardized cloud-based environments (e.g., Cloudflares secure server-side code mode) to reduce integration issues, speed up onboarding, and mitigate supply chain risks by restricting package sourcing to vetted private repositories.
  • Generate dynamic SDKs for API interactions: Use code mode to let AI models generate SDKs in TypeScript or other languages, enabling direct API interactions (e.g., Cloudflare) and reducing reliance on predefined tool lists for complex automation tasks.
  • Implement sandboxed execution layers: Execute user-generated or adversarial code in isolated environments (e.g., Cloudflares VA isolates) to prevent security risks like memory leaks or unauthorized access while allowing secure, scalable code execution for agents or tools.
  • Standardize development workflows via documentation: Address tribal knowledge by creating structured, documented processes for setup, CI/CD pipelines, and permissions models (e.g., sandboxed CLI agents with --agent flags) to ensure consistency across projects and onboarding.
  • Leverage code generation for automation: Automate repetitive tasks (e.g., deploying Next.js workers, managing DNS) by using models to write and execute code directly in secure environments (e.g., Cloudflares MCP server), minimizing manual coding and enabling rapid prototyping.

Recent Episodes of The Changelog: Software Development, Open Source

13 May 2026 Automation at the speed of Swamp (Friends)

The text explores the shift to secure cloud-based software development, AI's transformative role in reshaping workflows and roles, the challenges of cross-disciplinary communication, emerging automation practices like agent-driven systems, and the evolving implications of AI on developer responsibilities and team dynamics.

24 Apr 2026 Exploring with agents (Interview)

Software development grapples with agent integration complexities, necessitating tool redesign for agent-first workflows, addressing security and identity challenges, balancing single/multi-agent trade-offs, reimagining collaboration through workspaces, and redefining developer roles in an AI-driven, open-source landscape.

27 Mar 2026 Astral has been acquired by OpenAI (News)

Adam's spring break and Chuck Norris tribute aside, the focus is on tech updates including Astro's Open AI acquisition, AI-driven developer tools, supply chain vulnerabilities in Light LLM, OpenCode's legal hurdles, Rust's compilation issues, Work OS's secure authentication methods, AI-powered tax software challenging incumbents, and concerns over the stalled HTTPX library and its potential fork.

11 Mar 2026 From Tailnet to platform (Interview)

Tailscale is redefining itself as a secure connectivity platform, integrating identity and connectivity, while Aperture serves as an API gateway for secure collaboration, and the company is focusing on enterprise readiness, self-hosting, and leveraging AI and LLMs to enhance its services.

10 Mar 2026 Big change brings big change (News)

Major news and tech updates are discussed, including an attack on AWS data centers, new MacBook Pro models, and advancements in AI, robotics, and coding tools.

More The Changelog: Software Development, Open Source episodes