pi-mono/packages/agent/test
Armin Ronacher 27d2914457 feat(coding-agent): connect MCP servers and expose them through codemode
Adds a built-in mcp extension that reads mcp.json (agent dir, and .pi/mcp.json for trusted projects) in the common mcpServers format, connects stdio and streamable HTTP servers at session start, and registers their tools as mcp__<server>__<tool>. Calls go through the regular tool pipeline, so hooks and permission extensions apply. /mcp shows server status.

By default a server's tools are codemode-only: the new nestedOnly tool flag keeps them executable for other tools but out of the model's tool declarations, and pi activates the codemode tool for them. "exposure": "direct" declares them to the model as well. structuredContent from tools with an outputSchema reaches codemode scripts as data.
2026-09-25 15:02:51 +02:00
..
harness feat(chord): make immutable delta tracker canonical 2026-09-24 15:07:12 +02:00
utils feat(agent): add AgentHarness R2 minimal run 2026-08-14 16:18:33 +02:00
agent-loop.test.ts feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
agent.test.ts feat: expose provider stream events to extensions (#9901) 2026-09-23 16:03:30 +02:00
e2e.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00
proxy.test.ts Mid conversation system messages (#9548) 2026-09-16 15:54:07 +02:00