pi-delegate-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pi-delegate-mcpreview the current changes for security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pi-delegate-mcp
Delegate bounded coding tasks from MCP clients (Cursor) to Pi Coding Agent over stdio via the official SDK (@earendil-works/pi-coding-agent).
Requirements
Node.js 22.19+
Existing
~/.pi/agent/auth.json(Codex OAuth) is reused — no separate Pi binary is requiredA GitHub token with
read:packages(GitHub Packages install)
Related MCP server: peer-cli-mcp
Install
Point only the @sotola122 scope at GitHub Packages (do not set a global --registry):
# ~/.npmrc
@sotola122:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<GITHUB_TOKEN with read:packages>npm install -g @sotola122/pi-delegate-mcp
pi-delegate-mcp install cursor --scope global
pi-delegate-mcp doctor
pi-delegate-mcp auth statusThen restart Cursor. The server registers as pi-delegate in ~/.cursor/mcp.json.
Update
pi-delegate-mcp update # npm install -g @sotola122/pi-delegate-mcp@latest
pi-delegate-mcp update --check # compare installed vs registry latest
pi-delegate-mcp update 0.2.1 # pin a versionDoes not modify ~/.cursor/mcp.json. Restart Cursor afterward so the MCP server reloads.
Tools
Tool | Purpose |
| Read-only review / static hunt (async; optional |
| Build / test / lint (async) |
| Implement in worktree (async; default patch) |
| Judge with no-tools profile (async) |
| Manual prompt under fixed profile (async) |
| Multi-task parallel/sequential batch (max 32 tasks) |
| Role-based pipeline (implement → verify → reviews; max 32 roles) |
| Poll / cancel a single run |
| Poll / cancel a batch |
| SDK connectivity / OAuth / provider check ( |
Long-running tools return { status: "running", runId|batchId } immediately. Poll with get_run / get_batch until complete (avoids Cursor MCP client timeouts).
Effort
med | high | xhigh | max → Pi thinking medium | high | xhigh | max.
When model / effort are omitted, per-profile defaults from assets/delegate-pi/provider.yaml apply:
Profile | Default |
|
|
|
|
Child skills
childSkills passes explicit skill paths (SKILL.md or a directory containing it) to the child agent. Ambient skill discovery stays off. Enabled by default.
Validated packages are passed through as Pi skill paths; the delegation policy allows reading those selected packages only (no copy, no path allowlist). Disable with childSkills.enabled: false if needed.
Safety
SDK tool allowlist is a model tool allowlist, not an OS sandbox. Policy extensions additionally block dangerous commands.
Implement defaults to worktree + patch (does not modify your tree).
Manual prompts cannot widen tools.
Ambient skills / extensions / AGENTS.md are not loaded.
No auto commit, push, PR, or deploy.
Read-only attachments may include files under built-in trusted roots such as
~/.cursor/plans(Cursor Plan Mode),~/.cursor/skills,~/.agents/skills, and stageddelegate-pi/ run artifact dirs. These are not writable workspaces; implement/apply still cannot write outside the resolved workspace /allowedRoots.
Config
pi-delegate-mcp config path prints the JSONC config location (version 2).
Auth:
pi-delegate-mcp auth status
pi-delegate-mcp auth login openai-codex
pi-delegate-mcp auth logout openai-codexDevelopment
bun install
bun run test
bun run build
bun run check:delegate-pi-assetsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityBmaintenanceBridges MCP clients with local Codex CLI to execute autonomous coding tasks, manage threads, and inspect history via SQLite state.139804Apache 2.0
- Alicense-qualityCmaintenanceMCP bridge for calling local coding-agent CLIs (Codex, Claude) from another agent, enabling bounded tasks like code review, verification, and bug hunting.MIT
- AlicenseCqualityBmaintenanceEnables MCP hosts to delegate coding tasks to Pi CLI as a programmable sub-agent with session tracking and process management.7MIT
- Alicense-qualityBmaintenanceProvides a stdio MCP bridge for coding agents to query and record engineering knowledge locally, preserving debugging history, failed attempts, and verified solutions.1MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
OCR, transcription, file extraction, and image generation for AI agents via MCP.
A paid remote MCP for code graph MCP for AI coding, built to return verdicts, receipts, usage logs,
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sotola122/pi-delegate-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server