
11/4/2025
What this post added
This post introduces the concept of 'Code Mode' for AI agents interacting with MCP servers, enabling more efficient tool usage. It details how presenting MCP servers as code APIs, rather than direct tool calls, reduces token consumption by allowing agents to load tools on demand, filter data before it reaches the model, and execute complex logic in a single step. The post also highlights benefits like improved state management and security through tokenization of sensitive data, while acknowledging the operational overhead of secure code execution environments.