# mcacp [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/Oortonaut/mcacp  
**GitHub Stars:** 12  
**npm Downloads (last month):** 2335  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcacp

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

## Tools
Capabilities this server exposes over MCP:

- **list_installed_agents** — List locally installed agents
- **registry_search** — Search the ACP agent registry
- **agent_install** — Install an agent from the registry
- **agent_uninstall** — Remove an installed agent
- **agent_check_upgrades** — Check for available upgrades
- **discover_agents** — Scan editor configs (Zed, JetBrains) for agents
- **reload_config** — Reload `mcacp.json` from disk
- **initialize** — Spawn an agent process and perform the ACP handshake
- **shutdown** — Gracefully shut down an agent
- **new_session** — Create a session with working directory and permission policy
- **load_session** — Resume a persisted session
- **list_sessions** — List stored sessions for an agent
- **close_session** — Close a session (preserved for later resume)
- **prompt_start** — Send a prompt (returns immediately)
- **prompt** — Block until events are available
- **prompt_events** — Non-blocking poll for events
- **grant_permission** — Resolve a pending permission request (operator mode)
- **request_permission** — Send an MCP elicitation to the host for a permission decision
- **cancel** — Cancel an in-progress prompt
- **set_mode** — Switch agent operating mode
- **list_running_agents** — List all agents with status and sessions
- **get_agent_status** — Detailed status of a running agent
- **set_agent_status** — Set status text for an agent

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

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

## Documentation

## What mcacp does

The mcacp MCP server acts as a bridge between an MCP host and ACP coding agents. An MCP-compatible client sends tool calls to mcacp, which starts and communicates with agent processes using ACP over stdio. This lets a host such as Claude Code, Zed, or VS Code work with ACP agents without requiring a dedicated integration for each agent.

The bridge supports agent discovery and lifecycle management as well as interactive coding work. It can search an ACP registry, install or remove registered agents, check for upgrades, and inspect editor configurations from Zed and JetBrains. It can also start agents, create sessions, send prompts, handle permission requests, and report running-agent status.

## How it works

Install mcacp as a global npm package or run it with `npx`. The MCP client launches it as a stdio server. When the `initialize` tool is called, mcacp starts the selected agent process and completes the ACP handshake. Sessions then provide the working directory and permission policy used for agent interaction.

Prompt handling is split between starting work and receiving results. `prompt_start` sends a prompt without waiting, while `prompt` waits for events and `prompt_events` polls without blocking. An in-progress prompt can be stopped with `cancel`. Running agents, sessions, and status text can be inspected through the status and session tools.

The mcacp MCP server supports `allow_all`, `deny_all`, `elicit`, and `operator` permission policies. With elicitation, permission requests are sent to the MCP host when supported; otherwise the flow falls back to operator handling. In operator mode, the host resolves a pending request with `grant_permission`.

## Setup and configuration

Install the package with:

```bash
npm install -g mcacp
```

Alternatively, configure the MCP client to run `npx -y mcacp`. Claude Code uses an entry in `~/.claude/settings.json`, while Zed adds mcacp under `context_servers` in its settings. Other MCP-compatible clients can launch the stdio command according to their own MCP configuration format.

Configuration is read from the first available source: the `--config` command-line option or `MCACP_CONFIG`, `.mcacp/mcacp.json` in the current directory, and `~/.config/mcacp/mcacp.json`. The file can define registry URLs, a default permission policy, and custom agent server commands. `reload_config` applies the file again while the server is running.

## Tools and capabilities

The mcacp MCP server groups its tools around these tasks:

- **Registry:** list installed agents, search the ACP registry, install or uninstall agents, check upgrades, discover editor-configured agents, and reload configuration.
- **Lifecycle:** initialize an agent process and shut it down cleanly.
- **Sessions:** create, resume, list, and close persisted sessions.
- **Interaction:** start prompts, receive events, cancel work, change operating mode, and resolve or forward permission requests.
- **Status:** list running agents, inspect an agent, and update its status text.

Closing a session preserves it for later use with `load_session`. This supports workflows where an agent is stopped and resumed after the MCP process or host conversation changes.

## Limitations and notes

The bridge depends on agents that implement ACP and on the selected agent being installed or available through a configured registry. Permission behavior depends on MCP host support: hosts without elicitation use the operator fallback when that policy is selected. The documented transport between the MCP host and mcacp, and between mcacp and each agent, is stdio.

The project can also be built from source with npm: clone the repository, run `npm install`, run `npm run build`, and start `node dist/index.js`. It is licensed under Apache-2.0.

_Full upstream README: https://allmcps.com/mcp/mcacp/readme_

