devin-mcp-bridge
Bridges MCP (Claude Code) to ACP (Devin), enabling Claude Code to delegate autonomous tasks to Devin with permission and filesystem sandbox controls.
README
devin-mcp-bridge
Lets Claude Code delegate work to Devin.
Claude Code ──MCP/stdio──▶ devin-mcp-bridge ──ACP/stdio──▶ devin acp
Devin 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 |
|---|---|
devin_task({ task, cwd? }) |
Send a task to Devin, return its full response. Session persists per cwd, so follow-up calls keep context. |
devin_reset({ cwd? }) |
Kill the agent and drop its context. Next devin_task starts fresh. |
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
Register 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 are rejected. Set0to disable.
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 |
|---|---|---|
DEVIN_MCP_AGENT_CMD |
devin |
Agent binary. Set to npx to bridge a different ACP agent. |
DEVIN_MCP_AGENT_ARGS |
acp |
Space-separated args. |
DEVIN_MCP_PERMISSION |
once |
once | all | deny |
DEVIN_MCP_SANDBOX_FS |
1 |
0 disables the path guard. |
DEVIN_MCP_TIMEOUT_MS |
900000 |
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。