Pi’s homepage used to say, proudly, that Pi does not support MCP. Mario Zechner wrote a post about why you might not need it (What if you don’t need MCP?), and Earendil people said dismissive things on podcasts. Then Pi shipped native MCP. The announcement post, “You Said No MCP!” (2026-09-29), explains why. This page checks that explanation against Pi’s original design and pulls out what is worth keeping.
Short version: the reversal is mostly consistent with Pi’s core bet, not a betrayal of it. What changed is where the bet is placed. The tension is real in one place: the core got bigger.
What the post actually says
- Things change. The MCP of today is not the MCP of a year ago.
- It could have been an extension, and was. There was a community adapter,
pi-mcp-adapter. It moved into core because the changes it needed turned out to be generally useful. Specifically, Pi’s tool loadout had no way to say “this tool is only for the code sandbox” or “this tool is deferred”. An ordinary MCP extension could not get that metadata. - MCP’s weak point is composition. Many servers are still built for harnesses that dump all tools into context, so they return text to save tokens. The target they describe is closer to OpenAPI with discovery: structured data back, tools found by their documentation.
- Codemode is the answer to composition. The model writes JavaScript in a sandbox that runs on the harness side. It calls tools in any order and in parallel, and only the script’s output reaches the model. Small JavaScript engines ship as WASM, which gives reasonable isolation.
- Participate instead of watching. They want to help shape MCP so it works in small harnesses.
The post is dated the same day as Pi 0.99.0, the release whose changelog adds codemode, tool search and MCP as built in extensions. Both agree on the facts.
Original design, tested point by point
The original design is in Pi (Coding Agent): LLMs are good at writing and running code, so embrace that; keep the core small; avoid hidden state; every omission has a reason rooted in Context Engineering and observability.
| Original principle | Does the reversal hold? | Why |
|---|---|---|
| LLMs write and run code, so use that | Holds, strongly | The CLI plus README pattern bets that models wire things together with Bash. Codemode makes the same bet with JavaScript instead of Bash. The post says it directly: there is no fundamental reason you cannot do bash style wiring with MCP too. |
| Protect the context window (the old objection: eager tool schemas cost thousands of tokens, see CLI Tools Pattern) | Holds, if exposure is configured well | Servers with the default codemode exposure are not listed in the tool description. Scripts find tools with searchTools(). The 0.99.2 changelog says the codemode description no longer changes when servers connect, so it stays stable for caching. This addresses the old objection by changing exposure, not by changing the protocol. |
| Keep the core small, extensions first | Strained | The post admits MCP could stay an extension. What moved into core is an API change (tool exposure metadata), and MCP, codemode, tool search and the llama.cpp provider became built in extensions. They can be turned off (pi config, and --no-extensions disables them too), but the default surface is larger. |
| Observability (the reason for no plan mode and no sub agents) | Mixed | Good: scripts are visible tool calls, state saved with store and load lands in the session transcript, and nested calls are recorded on the calling tool’s result. Cost: the point of codemode is that intermediate results never reach the model, and in the post’s demo hundreds of calls collapse to one line. You trust the script. |
| No permission theater | Unchanged | The sandbox has no Node, file system or network, but the tools it calls are real and a failed script does not undo earlier calls. See Agent Security and Threat Model. |
| Add only what proved useful | Holds | They say they watched MCP for a year and shipped it only after the loadout work made it composable. Pi 1.0’s own wording is that capabilities are adopted when they justify their complexity. |
The good points worth keeping
- A clean reversal. The post names the old position, says what changed, and does not pretend it was always planned. For a project built on explicit reasons for each omission, that is the right way to retire one.
- Protocol versus exposure. The real objection was never “MCP” but “every tool schema in every request”. Once exposure is a setting (direct, codemode, deferred, hidden), the protocol question mostly disappears. This applies to any agent you design, not only Pi. See MCP Tools vs Custom Function Tools.
- A bar for MCP servers. Structured output, discoverable documentation, composable calls. That is a useful checklist when choosing or building a server, and it explains why many existing servers disappoint.
- Code as the composition layer, with state in the transcript. The docs say
storevalues are saved as session entries, so each branch of a Pi session tree sees only the values written on its own path. That fits Pi’s session trees (Context Window Management Strategies) better than state in a hidden file would. - Filtering before the model sees data. In the post’s demo, a script pulled 167 open issues from a tracker, used a classifier on each, and returned a short list. The model read none of the raw comments. That is the strongest practical argument for codemode.
- A trust boundary you can name. Codemode runs where the harness runs, tools may run in a less trusted sandbox. Saying which side something runs on is a helpful way to think about any tool.
- Continuity with earlier ideas. Armin Ronacher had already argued that an MCP should expose one tool that accepts code, with a stateful interpreter behind it (Your MCP Doesn’t Need 30 Tools: It Needs Code, Aug 2025). The harness side version is the same idea moved into the host.
What the post does not prove
- The Linear plus classifier demo is the publisher’s own, condensed, and was not run here. The classifier (Jev, from TypeSafe via Cloudflare) rated 156 of 167 issues neutral and 11 mildly frustrated. Nobody checked those labels against humans. By the standard in Error Analysis for AI Evals, that makes it an illustration, not a result.
- It gives no measurement of token or latency savings against the old CLI approach. The only number in Pi’s changelog is a 40 percent drop in codemode prompt size between versions, not a comparison with CLI scripts.
- It admits composition “doesn’t fully deliver” with many real MCP servers. The structured output it wants is a wish about the ecosystem.
- The post mixes two things: MCP support and a classifier model ecosystem. They are related in the implementation, but you can use one without the other.