# agentchan [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/damejeras/agentchan  
**GitHub Stars:** 0  
**npm Downloads (last month):** 33  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/agentchan

## Description
Lets one coding agent talk to another: Claude Code, Codex or Grok

## Tools
Capabilities this server exposes over MCP:

- **close** — Close a channel. Stops the agent if it is running and drops replies not yet received.
- **receive** — Wait for the next reply on any of the given channels, like a Go select. Returns {channel, ok, text} or {timeout: true} after 50 s; on timeout, call receive again.

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

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

## Documentation

## What agentchan does

The agentchan MCP server exposes installed and authenticated coding agents as MCP tools. It can make Claude Code, Codex, or Grok perform a prompt, then lets the calling agent collect the response through a channel. Only agents that are installed and signed in when the server starts are exposed.

Each channel represents one session with one called agent. A message without a channel starts a new session and immediately returns a channel identifier. Supplying that identifier sends a follow-up message to the same session. This supports short exchanges as well as multi-turn delegation.

## How it works

The server starts the relevant command in its working directory: `claude -p` for Claude Code, `codex exec` for Codex, or `grok --prompt-file` for Grok. The called process uses the settings already configured for that agent. The server provides one message-sending tool for each available agent, plus `receive(channels)` and `close(channel)`.

`receive` waits for the first response from any supplied channel and can wait for up to 50 seconds. `close` stops the selected agent and ends its channel. At the end of a turn, on channel closure, or when the server exits, agentchan kills the called agent's process group. A process moved into another process group is not stopped by that cleanup.

## Setup and configuration

Prebuilt installation is available on Linux and macOS through the project's installer script. npm installs the same prebuilt binary, and Rust users can install from source with Cargo. The server can then be registered with Claude Code using `claude mcp add`; Codex can use an `mcp_servers.agentchan` entry in `~/.codex/config.toml`. The Claude Code configuration may invoke either the installed `agentchan` binary or `npx -y agentchan`.

Agent availability is determined at startup, so install and sign in to the desired coding CLIs before launching the MCP server. No server-specific environment variables are documented.

## Tools and capabilities

The agentchan MCP server provides these operations:

- Agent-specific message tools for Claude Code, Codex, and Grok when each CLI is available and authenticated.
- New-session and follow-up messaging through an optional channel argument.
- Reply collection from one or more channels with a 50-second wait limit.
- Channel termination that stops the associated agent process.

Each message uses the called agent's own login and plan limits. A new process is started for every message, and that process reloads the agent's full configuration.

## Limitations and notes

Called agents run with permission checks disabled. They can read, modify, and execute content in the server's working directory without asking for approval. Any agent allowed to invoke agentchan receives that access, so the server should run in a directory with an appropriate trust boundary.

Moving a child process into a different process group allows it to outlive agentchan's normal cleanup.

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

