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 分