Mcacp

io.github.Oortonaut由 GitHub 账号 Oortonaut 发布v0.1.3更新于 Oct 24, 2026

MCP-to-ACP bridge — let any MCP client drive ACP coding agents

已验证STDIO仅桌面开发者工具AI 与机器学习

概览

AI 生成的概览

一个 MCP 到 ACP 的桥接服务器,让任意 MCP 客户端启动、管理并驱动 Claude Code、Gemini CLI、Codex 等 ACP 编码代理。

可以做什么
  • 从注册表搜索、安装、卸载和检查升级 ACP 代理,并扫描编辑器配置发现已有代理
  • 启动代理、完成 ACP 握手、关闭代理并查看其状态
  • 按工作目录和权限策略创建、恢复、列出和关闭会话
  • 发送提示词、轮询或阻塞等待事件、取消提示词并切换代理模式
  • 通过宿主交互式处理权限请求,或以操作员模式由宿主代理决定
适用场景
适合在一个 MCP 客户端中驱动多个 ACP 编码代理、让不同代理并行处理同一任务以比较结果,或把多个代理串成流水线(一个写代码、一个审查、一个跑测试)。
运行要求
以 npm 包 mcacp 形式通过 stdio 在本机运行,可全局安装或用 npx 直接运行。需要 Node.js 以及它所启动的 ACP 代理。可通过 mcacp.json 配置,路径由 --config 参数或 MCACP_CONFIG 环境变量指定,并需访问 ACP 代理注册表的网络。
安装前请注意
从注册表安装和卸载代理会在本机下载或删除软件。allow_all 等权限策略会自动批准代理操作,操作员模式下由宿主代理决定,代理可能修改文件或执行命令。会话会持久化保存到磁盘。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcacp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCACP

Bridge any MCP client to any ACP coding agent.

MCACP is an MCP server that speaks the Agent Client Protocol on behalf of your MCP host. It lets Claude Code, Zed, VS Code, or any MCP-compatible client spawn, manage, and interact with ACP coding agents — turning a single chat window into a multi-agent control plane.

MCP Client (Claude Code, Zed, VS Code, ...)    |    |  MCP (stdio)    v  MCACP    |    |  ACP (stdio, per agent)    v Claude Code  ·  Gemini CLI  ·  Codex  ·  Auggie  ·  Copilot  ·  ...

What can you do with this?

Run any ACP agent from any MCP client. You don't need a dedicated IDE plugin for each agent. Install Gemini from Claude Code. Run Codex from Zed. Mix and match.

Compare agents side by side. Give the same task to Claude Code ACP and Gemini CLI in parallel sessions and compare the results.

Build agent-driven pipelines. One agent writes code, another reviews it, a third runs the tests. MCACP handles the lifecycle and permission flow for all of them.

Control permissions interactively. On hosts that support MCP elicitation (Zed), permission requests pop up as interactive forms. On hosts that don't (Claude Code), they fall back to operator mode where the host agent decides.

Resume where you left off. Sessions persist to disk. Shut down, restart, load_session — the agent picks up where it stopped.

Discover and install agents from chat. Browse the ACP registry, install agents, check for upgrades — without leaving your conversation.

Quick start

Install

bash
npm install -g mcacp

Or run directly:

bash
npx mcacp

Add to your MCP client

Claude Code (~/.claude/settings.json):

json
{  "mcpServers": {    "mcacp": {      "command": "npx",      "args": ["-y", "mcacp"]    }  }}

Zed (settings.json):

json
{  "context_servers": {    "mcacp": {      "command": { "path": "npx", "args": ["-y", "mcacp"] }    }  }}

Then from chat:

"Search for available agents"        →  registry_search"Install the Gemini agent"           →  agent_install"Initialize it and start a session"  →  initialize + new_session"Ask it to refactor auth"            →  prompt_start + prompt

MCP tools

MCACP exposes 22 tools organized into five groups.

Registry

ToolDescription
list_installed_agentsList locally installed agents
registry_searchSearch the ACP agent registry
agent_installInstall an agent from the registry
agent_uninstallRemove an installed agent
agent_check_upgradesCheck for available upgrades
discover_agentsScan editor configs (Zed, JetBrains) for agents
reload_configReload mcacp.json from disk

Lifecycle

ToolDescription
initializeSpawn an agent process and perform the ACP handshake
shutdownGracefully shut down an agent

Sessions

ToolDescription
new_sessionCreate a session with working directory and permission policy
load_sessionResume a persisted session
list_sessionsList stored sessions for an agent
close_sessionClose a session (preserved for later resume)

Interaction

ToolDescription
prompt_startSend a prompt (returns immediately)
promptBlock until events are available
prompt_eventsNon-blocking poll for events
grant_permissionResolve a pending permission request (operator mode)
request_permissionSend an MCP elicitation to the host for a permission decision
cancelCancel an in-progress prompt
set_modeSwitch agent operating mode

Status

ToolDescription
list_running_agentsList all agents with status and sessions
get_agent_statusDetailed status of a running agent
set_agent_statusSet status text for an agent

Permission policies

Each session can use a different policy:

PolicyBehavior
allow_allAuto-approve all agent actions
deny_allBlock all tool use
elicitForward as MCP elicitations to the host; falls back to operator if unsupported
operatorQueue as events — the host agent decides via grant_permission

Operator flow

Orchestrator                   MCACP                      ACP Agent    |                            |                            |    |-- prompt(sessionId, ...) ->|                            |    |                            |-- session/prompt --------->|    |                            |<- request_permission ------|    |<- {pendingPermission: ...} |                            |    |                            |                            |    |-- grant_permission ------->|                            |    |   {toolCallId, optionId}   |-- permission outcome ----->|    |                            |<- prompt result -----------|    |<- {stopReason, updates}    |                            |

Configuration

MCACP looks for mcacp.json in these locations (first found wins):

  1. --config flag or MCACP_CONFIG env var
  2. .mcacp/mcacp.json in the current directory
  3. ~/.config/mcacp/mcacp.json
jsonc
{  "registries": ["https://cdn.agentclientprotocol.com/registry/v1/latest/registry.json"],  "defaultPermissionPolicy": "elicit",  "agent_servers": {    "my-custom-agent": {      "command": "node",      "args": ["my-agent.js"]    }  }}

See docs/configuration.md for the full schema.

Building from source

bash
git clone https://github.com/Oortonaut/mcacp.gitcd mcacpnpm installnpm run buildnode dist/index.js

License

Apache-2.0

来源:README.md,提交 cf3f452

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分