Skip to content

1.3.0

Choose a tag to compare

@ilovepixelart ilovepixelart released this 30 Sep 08:26
7a2b439

On pi 0.99 and later, MCP servers from your Claude configuration are handed to pi's own MCP support, so pi no longer warns Extension package "builtin:mcp": ... registers command /mcp on every start. No exported API changes. Behaviour changes on pi 0.99 are listed first; pi before 0.99, and any setup with an MCP policy, work as before.

Behaviour changes on pi 0.99 and later

Tools of servers pi connects are named as in Claude Code: mcp__<server>__<tool>, and mcp__plugin_<plugin>_<server>__<tool> for a plugin's server. They used to be <server>_<tool>. Hook matchers and subagent tool patterns written with Claude's names keep matching; anything that names the old form needs the new one.

/mcp, list_mcp_resources and read_mcp_resource are pi's. pi reads ~/.pi/agent/mcp.json and .pi/mcp.json itself, with pi's rules (timeout in seconds, enabled, !command values, exposure).

For servers pi connects, these no longer apply: server prompts as /mcp__server__prompt commands, @server:uri mentions, mcp_tool hooks, and MCP_TIMEOUT, MCP_CONNECT_TIMEOUT_MS and pi-code's reconnect schedule. pi's call timeout is set from pi-code's idle budget (30 minutes for stdio, 5 minutes for remote servers, CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT and a per-server timeout still count).

A stdio server pi starts gets the full parent environment plus its env, as Claude Code does by default, instead of pi-code's baseline variables.

An OAuth server needs one sign-in through pi's /mcp: pi keeps its own token store.

What stays on pi-code's client

sse, ws and websocket servers, servers with a headersHelper, and server names outside [A-Za-z0-9_-] keep connecting exactly as before, with their <server>_<tool> names.

With managed-mcp.json, allowedMcpServers or deniedMcpServers set, pi-code keeps connecting every server itself and keeps /mcp, since pi would connect its own mcp.json servers outside those rules. The same applies when pi's MCP support is disabled with -builtin:mcp or replaced by another extension, except that /mcp is then not available.

What is new

pi-code expands ${VAR} and ${VAR:-default} itself and escapes every env and header value it hands to pi, so pi never runs a value that starts with ! or expands a $ in it.

Project approval, disabledMcpServers, enabledMcpjsonServers, disabledMcpjsonServers and enableAllProjectMcpServers decide what is handed to pi, as they decide what connects.