devin-mcp-bridge
This server lets Claude Code delegate coding tasks to Devin (or any ACP-compatible agent) via an MCP bridge.
Delegate tasks: Use
devin_taskto send a task with optional working directory (cwd) to target a specific repository. Devin works autonomously and returns the full response.Maintain session context: Sessions persist per
cwd, so follow-up calls retain context for multi-step work.Reset sessions:
devin_resetkills the current agent and clears its context, starting fresh.Configure and secure: The server bridges MCP to any ACP agent via environment variables (e.g.,
DEVIN_MCP_AGENT_CMD,DEVIN_MCP_AGENT_ARGS). Default security settings enforce one-shot permissions and filesystem sandboxing (DEVIN_MCP_PERMISSION=once,DEVIN_MCP_SANDBOX_FS=1). Task timeouts are configurable withDEVIN_MCP_TIMEOUT_MS.
Click on "Deploy 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., "@devin-mcp-bridge create unit tests for the payment module"
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.
devin-mcp-bridge
Lets Claude Code delegate work to Devin.
Claude Code ──MCP/stdio──▶ devin-mcp-bridge ──ACP/stdio──▶ devin acpDevin ships an ACP agent (devin acp), which is what
makes it usable from Zed. Claude Code speaks MCP, not ACP. This process sits in the middle:
it is an ACP client toward Devin (spawning the agent, answering its filesystem and
permission requests) and an MCP server toward Claude Code.
Tools
Tool | Purpose |
| Send a task to Devin, return its full response. Session persists per |
| Kill the agent and drop its context. Next |
Related MCP server: peer-cli-mcp
Install
git clone https://github.com/phenasdev/devin-mcp-bridge.git
cd devin-mcp-bridge
npm install
npm run smoke # boots the server, lists tools — no Devin needed
npm run smoke:call # full turn against a fake ACP agent
npm run smoke:sandbox # verifies symlinks cannot escape the session rootRegister with Claude Code, using an absolute path to your clone:
# this project only
claude mcp add devin -- node "$PWD/src/devin-mcp.mjs"
# every project
claude mcp add -s user devin -- node "$PWD/src/devin-mcp.mjs"Verify with /mcp inside Claude Code. Tool names appear as mcp__devin__devin_task.
Security
Devin runs autonomously and, over ACP, asks this process for permission and for filesystem access. Two controls exist, both on by default:
DEVIN_MCP_PERMISSION=once(default) — grant only one-shot permissions; neverallow_always, which would remove the decision for the rest of the session.allapproves everything including persistent grants.denyrefuses everything.DEVIN_MCP_SANDBOX_FS=1(default) —fs/read_text_fileandfs/write_text_fileare confined to the session root; paths resolving outside it, including through symlinks, are rejected. Set0to disable. This path check is not an OS sandbox and cannot prevent a concurrent filesystem race.
When the bridge refuses a request, the turn result carries a [bridge] ... refused block naming
the operation and path. Without it a sandbox rejection reaches Claude Code as a bare
[tool failed], indistinguishable from a genuine Devin error.
There is no human in the loop on permission decisions — Claude Code sees one tool call, while Devin may perform many actions behind it. Before pointing this at a repo you care about, prefer a disposable worktree or a container, and keep the sandbox on.
Config
Env var | Default | Meaning |
|
| Agent binary. Set to |
|
| Space-separated args. |
|
|
|
|
|
|
|
| Per-turn cap; the turn is cancelled on expiry. |
Because the agent command is configurable, the same bridge works for any ACP agent —
e.g. DEVIN_MCP_AGENT_CMD=npx DEVIN_MCP_AGENT_ARGS="-y @zed-industries/claude-code-acp".
Debugging
Agent stderr is inherited, so claude --debug shows both the bridge's [devin-mcp] log lines
and Devin's own output. claude mcp list shows connection status.
Layout
src/devin-mcp.mjs— the bridge; ACP client + MCP server in one process.scripts/fake-agent.mjs— minimal ACP agent used by the smoke test, so the wiring can be exercised without opening a real Devin session. It also probes the fs sandbox.scripts/smoke.mjs— MCP handshake,tools/list, and optionally one full turn.
Available Tools
2 toolsdevin_resetReset the Devin sessionA
Kill the running Devin agent and discard its conversation context. The next devin_task starts a fresh session. Use when Devin is stuck or the context is polluted.
Inputs: cwd.
devin_taskDelegate a task to DevinA
Send a coding task to Devin (a separate autonomous coding agent) and return its full response. Devin keeps context across calls for the same working directory, so follow-up calls can refer to earlier work. Use for self-contained work you want done in parallel; state the task and the acceptance criteria explicitly, since Devin cannot ask you questions.
Inputs: task (required), cwd.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: one sends a task to Devin, the other resets the session. No overlap or confusion possible.
Both tools use the 'devin_' prefix and snake_case, but the pattern is slightly inconsistent: 'devin_task' is a noun while 'devin_reset' is a verb. However, the prefix makes them clearly related.
With only 2 tools, the server is minimal. For its purpose as a bridge to an autonomous agent, this is reasonable but slightly thin. A status or cancel tool could be added.
The server covers the basic workflow of sending tasks and resetting, but lacks features like checking task status or interrupting a running task. Some gaps exist but core functionality is present.
Related MCP Connectors
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
MCP hosting for AI agents: Claude or Codex writes the code, runs it and sends a live link.
Shared memory and mail for your AI agents. Verified with Claude Code; other MCP clients in testing.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that lets any agent or MCP host delegate tasks to Claude Code running headless, with tools for review, validation, analysis, and autonomous work.42MIT
- AlicenseNot gradedqualityDmaintenanceMCP bridge for calling local coding-agent CLIs (Codex, Claude) from another agent, enabling bounded tasks like code review, verification, and bug hunting.MIT
- AlicenseAqualityDmaintenanceBridges Claude Code to Kimi Code via MCP, enabling task delegation with file and command execution.3MIT
- AlicenseAqualityDmaintenanceEnables Claude Code to delegate implementation tasks to Devin.4MIT