pi-mono/packages/agent/examples
Armin Ronacher 237a4e80f1 feat(mcp,agent,codemode): expose toLlmContent and document agent-core usage
pi-mcp exports toLlmContent(), which converts a CallToolResult to pi-ai-shaped text and image content. The coding agent's MCP adapter uses it.

A typechecked example in packages/agent/examples/mcp-codemode shows a plain Agent with MCP tools and a codemode tool whose nested calls go through runToolCall() and the agent's hooks. The pi-mcp, pi-codemode, and pi-agent-core READMEs describe the same wiring.
2026-09-28 00:10:50 +02:00
..
mcp-codemode feat(mcp,agent,codemode): expose toLlmContent and document agent-core usage 2026-09-28 00:10:50 +02:00