Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/中文
Sign inSign up
Home/Servers/Pi Durabletask MCP

Pi Durabletask MCP

I
by io.github.Nyarlathoteppppp

Delegate Claude/Codex tasks to configured Pi, with steering and optional SQLite restart recovery.

Power your agent

Add this server

The publisher's own command. Not a PlugMCP endpoint.

Local command
npx -y [email protected]
Provider
Claude Code
claude mcp add io.github.nyarlathoteppppp-pi-durabletask-mcp -- npx -y [email protected]

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.nyarlathoteppppp-pi-durabletask-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ]
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • Firecrawl🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

Delegate Claude/Codex tasks to configured Pi, with steering and optional SQLite restart recovery.

English · 简体中文

pi-durabletask-mcp

From Claude Code or Codex, hand reviews and investigations to Pi agents running on any provider — Gemini, Grok, GPT, DeepSeek and more — in the background, and get back their reports.

Quick start · What you can do · Reference


Why

  • Spend far less of your Claude Code / Codex quota on the same work. The heavy part of a review or investigation — reading code, searching, cross-checking — runs on other providers. Your main agent only plans, waits and judges, and receives compact status and the final report, or just a file path.
  • Put your other subscriptions to work. Free tiers and plans you already pay for (Gemini, Grok, GPT, DeepSeek…) usually sit half unused. Pi runs on all of them, so that capacity does real work instead of expiring.
  • Other model families, other blind spots. Reviewers from one family tend to miss the same things. Send one diff to Gemini, Grok and GPT at once and compare.
  • Built to finish. Every run has turn, time and tool-call budgets with a tool-free last turn for the answer; opt-in model fallback on provider errors; opt-in durable tasks that survive a restart.

Your main agent stays in charge: it plans, chooses models and judges the results.

In 30 seconds

Ask your agent:

Use Pi to review the attached diff with Gemini, Grok and GPT in parallel. Don't edit files. Report only real defects with file:line.

It calls spawn_batch with one prompt and three models, waits with wait, and returns three independent reports with token usage and cost. One provider down? With fallback configured, that review continues on another model in the same session.

Quick start

Requires macOS or Linux, Node.js 22.19+ and Pi. CI covers Pi 1.0.0, 1.0.4, 1.1.0 and 1.3.0. Model calls use your own provider credentials.

1 · Install Pi (skip if you have it) and configure a provider:

curl -fsSL https://pi.dev/install.sh | sh
pi  # then /login or configure a provider

2 · Install the bridge:

npm install -g pi-durabletask-mcp@latest
git clone https://github.com/Nyarlathoteppppp/pi-durabletask-mcp.git
cd pi-durabletask-mcp && npm ci && npm run build

Connect with node /absolute/path/pi-durabletask-mcp/dist/index.js instead of pi-durabletask-mcp below.

3 · Connect. Claude Code:

claude mcp add --scope user pi -- pi-durabletask-mcp

Codex (~/.codex/config.toml):

[mcp_servers.pi]
command = "pi-durabletask-mcp"

The Codex desktop app starts MCP servers with a minimal PATH (no Homebrew or nvm directories), so it may find neither pi-durabletask-mcp nor the node it runs on. The server then never starts, and the session simply has no Pi tools. Use absolute paths there:

[mcp_servers.pi]
command = "/opt/homebrew/bin/node" # output of `which node`
args = ["/opt/homebrew/lib/node_modules/pi-durabletask-mcp/dist/index.js"] # under `npm root -g`

[mcp_servers.pi.env]
PATH = "/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin" # inherited by what the server starts

Reconnect the MCP after updating the bridge or Pi. Other clients →

4 · Try it: "Use Pi to check the auth module for missing permission checks. Read only." init shows your models and settings; models lists what each delegate may use.

The skill teaches your agent the workflow. Put SKILL.md in your client's skills directory:

dir="$HOME/.claude/skills/pi-durabletask-mcp" # Claude Code
# dir="$HOME/.agents/skills/pi-durabletask-mcp" # Codex: use instead
mkdir -p "$dir"
curl -fsSL https://raw.githubusercontent.com/Nyarlathoteppppp/pi-durabletask-mcp/main/skills/pi-durabletask-mcp/SKILL.md \
  -o "$dir/SKILL.md"

What you can do

Delegate

  • spawn one task, spawn_batch up to four at once (one shared prompt for a multi-model review), run for a quick blocking question.
  • forkFrom a finished session: read the code once, then ask several independent questions from the same context.
  • Pass material with attachments (a diff, notes); add instruction files and skills or web research and MCP tools per task.

Steer and follow up

  • wait returns on progress, a question or the end (until: "settled", or any/all of a batch); status for a snapshot with idleMs and phase, so you can tell slow reasoning from a hung request.
  • steer a running agent, answer its questions, follow_up a finished one with renewed budgets, abort when needed.

Results

  • Compact results by default; saveTo / saveDir write long reports to files and return the path.
  • answerState flags empty or cut-off answers; usage reports tokens and cost.

Reliability

  • Budgets on turns, time and tool calls, with a wrap-up nudge at 75% and a tool-free last turn.
  • Model fallback (opt-in): after a provider error that outlasts Pi's retries — gateway timeout, spent quota — the run continues on the next model you list, e.g. PI_DELEGATE_FALLBACK_MODELS="xai/*:high,antigravity/gemini-*".
  • Durable tasks (opt-in, durable: true): SQLite checkpoints, recovery after a restart, interrupted side effects never blindly replayed; handoff notes for another window.

Teams (advanced)

  • An opt-in coordinator that dispatches your planned read-only members, asks follow-ups on disagreements and writes one synthesis with links to the original reports. For most work, spawn_batch and your own judgment are simpler.

What we get from it

We build this project with it: reviews, design discussions and research for this repo run through these tools every day.

Highlights

  • Our Claude quota goes to judgment, not reading. In the pre-release review, four agents read about two million tokens of this codebase on Gemini, Grok and a GPT model. Our Claude session received about 7 KB of reports and spent its turns deciding what to fix.
  • Subscriptions we were already paying for do the heavy lifting. Most runs go to Gemini and Grok plans we had anyway. The four Gemini runs of that review round (one review, three verifications) came to about $0.10 at API prices, and to nothing extra on the plan.
  • Several model families find more, and verification keeps it honest. Parallel reviews from different families surface different issues; an independent verifier then refutes what does not hold. In that pre-release round, verifiers rejected one reviewer's top "major" and confirmed two real recovery bugs, which we fixed the same day.
  • Runs finish when a provider does not. Gateway timeouts and spent quotas used to cost us a manual rescue each. With fallback configured, a Codex quota error now continues on Grok within seconds, in the same session.
  • Read once, ask many. A session forked from one that had already read the code answered in a single turn.

Lessons

  • Agreement is not proof: two of four reviewers once reported the same false positive. Verify findings before acting (how).
  • Across providers the prompt cache does not carry over, so a large fork can cost more than you expect.
  • Some models call a tool even after their tools are gone; the opt-in grace turn keeps that from ending a run with no answer.
  • Fast models are cheap but take more turns; strong reasoners can think past their deadline. Leave time and keep thinking levels moderate for long reviews.
  • A task's label is never sent to the delegate; put what differs between tasks in their prompt.

Safe defaults

  • Read-only tools (read, grep, find, ls) unless the server permits more with PI_DELEGATE_ALLOW_TOOLS. This is not a sandbox: a delegate given bash can do anything you can.
  • Secret paths (.env, ~/.ssh, credentials) are refused for attachments, reads and searches.
  • Memory sessions by default; they end with the MCP process. Durable storage, fallback and the answer grace turn are off unless you turn them on.
  • At most four delegates at once per server process (PI_DELEGATE_MAX_CONCURRENT).

Documentation

  • Reference: tools, configuration, authentication, native MCP
  • Review and synthesize, including falsifying findings before you act on them
  • Recovery, ownership and retention · Handoff
  • Development · Changelog · Issues

MIT · Built on howznguyen/pi-delegate-mcp and Pi Durable.

How do I install Pi Durabletask MCP?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does Pi Durabletask MCP need an API key?
No required environment variable is listed on this record.
What transport does Pi Durabletask MCP use?
Pi Durabletask MCP runs locally over stdio.
When was Pi Durabletask MCP last checked?
Last checked 2026-10-16. Delegate Claude/Codex tasks to configured Pi, with steering and optional SQLite restart recovery.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA