Skip to main content
Glama

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 required

  • A 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 status

Then 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 version

Does not modify ~/.cursor/mcp.json. Restart Cursor afterward so the MCP server reloads.

Tools

Tool

Purpose

delegate_review

Read-only review / static hunt (async; optional perspectives)

delegate_verify

Build / test / lint (async)

delegate_implement

Implement in worktree (async; default patch)

delegate_judge

Judge with no-tools profile (async)

delegate_manual

Manual prompt under fixed profile (async)

delegate_batch

Multi-task parallel/sequential batch (max 32 tasks)

delegate_roles

Role-based pipeline (implement → verify → reviews; max 32 roles)

get_run / cancel_run

Poll / cancel a single run

get_batch / cancel_batch

Poll / cancel a batch

smoke_test

SDK connectivity / OAuth / provider check (stdout must be OK)

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

review / verify / no-tools

gpt-5.6-sol / xhigh

implement

gpt-5.6-luna / max

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 staged delegate-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-codex

Development

bun install
bun run test
bun run build
bun run check:delegate-pi-assets
A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • A
    license
    C
    quality
    B
    maintenance
    Bridges MCP clients with local Codex CLI to execute autonomous coding tasks, manage threads, and inspect history via SQLite state.
    13
    980
    4
    Apache 2.0
  • A
    license
    C
    quality
    B
    maintenance
    Enables MCP hosts to delegate coding tasks to Pi CLI as a programmable sub-agent with session tracking and process management.
    7
    MIT

View all related MCP servers

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,

View all MCP Connectors

Latest Blog Posts

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