
9/26/2025 · Kenton Varda, Sunil Pai
What this post added
This post introduces 'Code Mode' for the Model Context Protocol (MCP), a new approach to enabling AI agents to interact with external tools. Instead of directly calling tools, LLMs are now prompted to write TypeScript code that calls a TypeScript API representation of the MCP tools. This significantly improves the agent's ability to handle a larger number of complex tools and chain multiple tool calls efficiently, by leveraging the LLM's extensive training on real-world code. It also highlights the uniformity and discoverability benefits of MCP, even when used in a code-generation context.