Interagent

Interagent

An MCP server that enables multiple Claude Code agents to communicate, share messages, specs, and statuses, solving coordination problems across different workspaces.

Category
访问服务器

README

Interagent

An MCP server that lets multiple Claude Code agents talk to each other. Send bug reports, feature requests, API specs, and status updates between agent instances — no more manually copying markdown files between terminals.

The Problem

When you're running multiple Claude Code agents on different components of the same project (e.g., a client, a server, and a nav mesh service), they can't talk to each other. If one agent finds a bug in another agent's domain, you have to copy the findings yourself. Agents forget where other repos live after context compaction. There's no coordination.

The Solution

Interagent is an MCP server that gives your agents a shared communication layer:

  • Agent Registry — Agents register with short names, workspace paths, and descriptions. No more forgetting where repos live.
  • Markdown Messaging — Agents write up detailed bug reports and feature requests and send them directly to the responsible agent.
  • Signal Files — A lightweight file is dropped in the target agent's workspace as a notification breadcrumb.
  • Inbox Polling — Agents check for incoming messages between tasks (with you as the fallback to say "check your incoming").
  • Shared Specs — Publish API contracts and schemas that any agent can reference. Single source of truth.
  • Status Board — Agents broadcast what they're working on so others (and you) can see at a glance.
  • Escalation — If an agent is stuck, it flags the message and notifies you to come take a look.

How It Works

                    Interagent MCP Server
                    (~/.claude-interagent/)
                   /          |           \
          register         send_message    publish_spec
          check_inbox      reply_message   get_spec
          set_status       escalate        list_specs
                /             |              \
        [consumer]      [db-server]      [navmesh]
        Claude Code     Claude Code      Claude Code
        Instance 1      Instance 2       Instance 3
  1. Each agent registers on startup via CLAUDE.md instructions
  2. Agent A finds a bug in Agent B's domain, writes it up, sends via send_message
  3. The server stores the message and drops a signal file in Agent B's workspace
  4. Agent B picks it up on its next check_inbox, works on it, replies when done
  5. If stuck, Agent B escalates — you get notified to hop over and help

Quick Start

Install

git clone https://github.com/signalclaude/interagent.git
cd interagent
npm install
npm run build

Configure Claude Code

Add to your MCP settings (~/.claude/settings.json):

{
  "mcpServers": {
    "interagent": {
      "command": "node",
      "args": ["/path/to/interagent/dist/index.js"]
    }
  }
}

Onboard Your Agents

Add the contents of AGENT_INSTRUCTIONS.md to each agent's CLAUDE.md, customizing the registration call:

register_agent("my-agent", "/path/to/workspace", "What this agent handles")

The instructions tell the agent to register on startup, poll its inbox between tasks, and use the full messaging toolkit.

Tools

Tool Description
register_agent Register with a short name, workspace path, and description
list_agents List all registered agents
get_agent Get details for a specific agent
send_message Send a markdown message to another agent
check_inbox Check for incoming messages
read_message Read a message (auto-acknowledges receipt)
reply_message Reply to a message, optionally mark the original complete
escalate Flag a message as blocked — needs human attention
publish_spec Publish an API contract or schema
get_spec Retrieve a published spec
list_specs List all published specs
set_status Set your current working status
get_status Check another agent's status
get_all_statuses Dashboard view of all agent statuses

Data Storage

All data lives in ~/.claude-interagent/:

~/.claude-interagent/
  registry.json          # agent registrations
  messages/              # message content (MD files)
  messages-meta/         # message metadata (JSON)
  specs/                 # published API specs/contracts
  status.json            # agent statuses

Signal files are dropped into each agent's workspace at .claude/inbox/.

Notification Strategy

Agents are reactive — they don't have push listeners. Interagent uses a three-tier approach:

  1. Polling — CLAUDE.md instructs agents to call check_inbox between tasks
  2. Signal files — A file dropped in .claude/inbox/ acts as a visible breadcrumb
  3. You — If an agent is deep in a rabbit hole, hop over and say "check your incoming"

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选