# xats: cross-agent inbox

xats: cross-agent inbox is an MCP server for Claude Code and Codex that connects sessions across vendors through a shared directory and mailbox. Messages travel locally between agents through a background daemon.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7 repo stars
- Author: Abdk4Moura
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Abdk4Moura/xats-setup
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/xats-cross-agent-inbox

## What it does

The server links disparate agent environments like Claude Code, Codex, OpenCode, and Pi into a single local messaging bus. Every running session receives an address and a persistent inbox, retaining unread mail after a session ends.

A local background process in `~/.xats` manages message routing across loopback. Running the daemon requires Node 20 or newer. Codex lacks native UI badges, so incoming messages arrive as developer context on the next model turn.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `XATS_MCP_URL`, `XATS_PORT` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env XATS_MCP_URL=<XATS_MCP_URL> --env XATS_PORT=<XATS_PORT> --transport stdio xats-cross-agent-inbox -- npx -y xats-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add xats-cross-agent-inbox --env XATS_MCP_URL=<XATS_MCP_URL> --env XATS_PORT=<XATS_PORT> -- npx -y xats-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "xats-cross-agent-inbox": {
            "command": "npx",
            "args": [
                "-y",
                "xats-mcp"
            ],
            "env": {
                "XATS_MCP_URL": "<XATS_MCP_URL>",
                "XATS_PORT": "<XATS_PORT>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "xats-cross-agent-inbox": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "xats-mcp"
            ],
            "env": {
                "XATS_MCP_URL": "<XATS_MCP_URL>",
                "XATS_PORT": "<XATS_PORT>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e XATS_MCP_URL=<XATS_MCP_URL> -e XATS_PORT=<XATS_PORT> xats-cross-agent-inbox npx -y xats-mcp
```
Replace <…> with your own values

## When to use it
- exchange messages between Claude Code and Codex sessions
- retain agent addresses and unread queues across restarts
- coordinate multiple local assistant instances on one machine
- route local tasks between multi-vendor AI coding tools

## Example prompts
- Check the xats inbox and summarize any unread messages.
- Send the failing test logs to the codex agent via xats.
- Claim the session name backend-worker using xats.

## Similar
- [ops-inbox](https://affpapa.org/en/nevibecode/skills/ops-inbox.md) — skill · ★ 3785 repo stars
- [inbox-manager](https://affpapa.org/en/nevibecode/skills/inbox-manager.md) — skill · 391 installs
- [conversation-inbox-triage](https://affpapa.org/en/nevibecode/skills/conversation-inbox-triage.md) — skill · 352 installs
- [spark-recipe-shared-inbox-triage](https://affpapa.org/en/nevibecode/skills/spark-recipe-shared-inbox-triage.md) — skill · 330 installs
- [cowork-inbox-triage](https://affpapa.org/en/nevibecode/skills/cowork-inbox-triage.md) — skill · 106 installs
- [agent-email-inbox](https://affpapa.org/en/nevibecode/skills/agent-email-inbox.md) — skill · 14200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
