pi-mono/packages/coding-agent/docs
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
..
images docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
cli-integration.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
cli.md feat(coding-agent): add codemode tool 2026-09-25 15:02:51 +02:00
compaction.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
configuration.md feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
containerization.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
custom-provider.md feat(ai,coding-agent): unify image and classifier model infrastructure (#9948) 2026-09-23 17:41:19 +02:00
docs.json feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
environment-variables.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
extensions.md feat(coding-agent): add codemode tool 2026-09-25 15:02:51 +02:00
how-pi-works.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
index.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
json.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
keybindings.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
llama-cpp.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
mcp.md feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
message-types.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
models.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
packages.md fix(coding-agent): prevent duplicate extension runtimes (closes #9863) 2026-09-23 15:33:56 +02:00
prompt-templates.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
providers.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
quickstart.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
rpc-commands.md feat(coding-agent): report prompt disposition in RPC responses 2026-09-25 14:53:11 +02:00
rpc-extension-ui.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
rpc.md feat(coding-agent): report prompt disposition in RPC responses 2026-09-25 14:53:11 +02:00
sdk.md feat(coding-agent): report prompt disposition in RPC responses 2026-09-25 14:53:11 +02:00
security.md feat(coding-agent): connect MCP servers and expose them through codemode 2026-09-25 15:02:51 +02:00
session-format.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
sessions.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
settings.md feat(coding-agent): add codemode tool 2026-09-25 15:02:51 +02:00
shell-aliases.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
skills.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
slash-commands.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
terminal-setup.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
termux.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
themes.md feat(tui,coding-agent): add color values and theme styling (#8398) 2026-09-24 14:42:22 +02:00
tmux.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
tui.md feat(tui,coding-agent): add color values and theme styling (#8398) 2026-09-24 14:42:22 +02:00
usage.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00
windows.md docs(coding-agent): refresh documentation (#9898) 2026-09-22 16:48:19 +02:00