Pi Durabletask MCP — Claude Code MCP server: install
Hands reviews and investigations to Pi agents across model providers, then returns their reports to the main coding agent.
claude mcp add pi-durabletask-mcp -- npx -y pi-durabletask-mcpWhat Pi Durabletask MCP does
Pi Durabletask MCP lets Claude Code, Codex and other MCP clients delegate work to Pi agents. The main agent can send one prompt to several models with spawn_batch, wait for progress through wait, and compare separate reports. run handles a blocking question, while steer, answer, follow_up and abort control an active or finished run.
Tasks can include diffs or notes as attachments. Long responses can be written with saveTo or saveDir; results also expose token use, cost and the model that answered. Turn, time and tool-call budgets are built in, while provider fallback and restart-safe durable tasks are opt-in. The server requires macOS or Linux, Node.js 22.19+, Pi and credentials for your model providers. Without those prerequisites, it cannot start or make model calls.
What it helps with
- review one diff with several models in parallel
- delegate code investigations to Pi agents
- compare independent review reports
- write a long result to a file
- continue a run after a provider error
Example prompts for the agent
- Use Pi to review this diff with Gemini, Grok and GPT in parallel. Do not edit files.
- Inspect the authentication module for missing permission checks and return file-and-line findings.
- Run this investigation through Pi, save the full report to a file, and include token usage.
How to install Pi Durabletask MCP
Platform CLI
claude mcp add pi-durabletask-mcp -- npx -y pi-durabletask-mcpPlatform CLI
codex mcp add pi-durabletask-mcp -- npx -y pi-durabletask-mcpConfig file
{
"mcpServers": {
"pi-durabletask-mcp": {
"command": "npx",
"args": [
"-y",
"pi-durabletask-mcp"
]
}
}
}Config file
{
"servers": {
"pi-durabletask-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"pi-durabletask-mcp"
]
}
}
}Platform CLI
gemini mcp add pi-durabletask-mcp npx -y pi-durabletask-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Pi Durabletask MCP
How do I install Pi Durabletask MCP in Claude Code?
Run claude mcp add pi-durabletask-mcp -- npx -y pi-durabletask-mcp. You also need macOS or Linux, Node.js 22.19+, Pi and provider credentials.
What does Pi Durabletask MCP do?
It sends reviews and investigations to Pi agents using different model providers, runs delegates in parallel, and brings their reports back to the main agent.
What is required for it to work?
The setup requires macOS or Linux, Node.js 22.19+, Pi and your own credentials for the providers used by the delegates.