pi's README said No MCP until September 2026, and pi now ships its own MCP client, on by default
Kind: misconception · Status: current · Last verified: 2026-11-27 · Clients: pi · Revisions: 2025-11-25
In August 2026 this registry had pi down as a client with no MCP support. The README's Philosophy section at 466db0fe (2026-09-21) still opened with "No MCP. Build CLI tools with READMEs (see Skills), or build an extension that adds MCP support", with a link to a post titled "What if you don't need MCP". The same README listed "MCP server integration" among the things an extension could add.
The position changed in two commits a week apart. 25cc5c7b on 2026-09-22, "docs(coding-agent): refresh documentation (#9898)", cut the README from 756 lines to 70, and the Philosophy section went with it. 8562bcf6 on 2026-09-29, "feat(coding-agent): codemode and MCP", added packages/mcp, packages/coding-agent/src/extensions/mcp/ and docs/mcp.md in one commit, and v0.99.0 was tagged the same day. The commit message says the core gets general mechanisms only, and that codemode, tool_search and MCP are built-in extensions other extensions can replace.
What the code does at 07ece436, 281 commits past v1.5.2:
- The client is
@earendil-works/pi-mcp, a workspace package published at the coding agent's version. It is hand-written: its one runtime dependency iscross-spawn, and its README says it "does not depend on the official MCP SDK". The OAuth files carry a notice that they are adapted from typescript-sdk v1.29.0src/client/auth.ts. - It is part of a default install.
mcpis one of four entries inbuiltInExtensions, and the coding agent pins pi-mcp at an exact version. With no enabled server the extension registers/mcpand stops. The module that holds the client is imported one event-loop turn aftersession_start, and only when a server is enabled. - It goes on the wire as
piwith the coding agent's version, asks for2025-11-25, and declaresroots: {}and nothing else. --no-mcp,-builtin:mcpin theextensionssetting, or an installed extension that registers/mcpturns the built-in support off. The docs namepi-mcp-adapteras such an extension. Sessions created through the SDK do not load built-in extensions.- The coding agent's README does not mention MCP. Its feature sentence reads "skips features like sub-agents and plan mode". MCP is documented in
docs/mcp.md.
The probe ran pi 1.5.0 on 2026-11-08 and captured the same initialize on stdio and HTTP: 2025-11-25, {"roots":{}}, clientInfo.name of pi.
A second host in the same repo
apps/p2 is a self-hosted server UI. It is marked private, and its README calls it a prototype that will be gone soon. It builds the same McpClient and names itself p2 with that app's version. It declares roots only when the server entry has some, and it calls tools/list without looking at the server's capabilities. It is not published, so p2 is not in the entry's clientInfoNames. packages/agent/examples/mcp-codemode is an example that connects as pi-agent-example.
Sources
- packages/coding-agent/README.md, the Philosophy section the day before the refresh, commit
466db0fe,packages/coding-agent/README.md, 2026-11-16 - docs(coding-agent) refresh documentation (#9898), which cut the README from 756 lines to 70, commit
25cc5c7b, 2026-11-16 - feat(coding-agent) codemode and MCP, which added packages/mcp, the mcp extension and docs/mcp.md, commit
8562bcf6, 2026-11-16 - packages/coding-agent/src/extensions/index.ts, the built-in extension list, commit
cdf74062,packages/coding-agent/src/extensions/index.ts:builtInExtensions, 2026-11-27 - packages/coding-agent/src/extensions/mcp/index.ts, session_start and the deferred runtime load, commit
cdf74062,packages/coding-agent/src/extensions/mcp/index.ts:createMcpExtension, 2026-11-27 - packages/coding-agent/src/extensions/mcp/runtime.ts, the McpClient options, commit
cdf74062,packages/coding-agent/src/extensions/mcp/runtime.ts:McpServerConnection.connectOnce, 2026-11-27 - packages/mcp/package.json, the runtime dependencies, commit
cdf74062,packages/mcp/package.json, 2026-11-27 - packages/mcp/README.md, the no-SDK statement and the OAuth attribution, commit
cdf74062,packages/mcp/README.md:@earendil-works/pi-mcp,Sign-in in two halves, 2026-11-27 - packages/coding-agent/README.md, the feature sentence at HEAD, commit
cdf74062,packages/coding-agent/README.md:Pi, 2026-11-27 - packages/coding-agent/docs/mcp.md, replacing or disabling the built-in support, commit
cdf74062,packages/coding-agent/docs/mcp.md:Extensions and SDK, 2026-11-27 - apps/p2/plugins/mcp/instances.ts, the second McpClient construction, commit
cdf74062,apps/p2/plugins/mcp/instances.ts:Connection.initialize, 2026-11-27 - apps/p2/plugins/mcp/server.ts, clientInfo for p2, commit
cdf74062,apps/p2/plugins/mcp/server.ts:clientInfo, 2026-11-27