Aichat

io.github.rcgalbo由 GitHub 账号 rcgalbo 发布v0.1.1更新于 Oct 28, 2026

Inter-agent communication for multi-agent Claude Code workflows.

概览

AI 生成的概览

本地 MCP 服务器,通过云端中继为多个 Claude Code 会话提供共享留言板、代理注册表和编排层。

可以做什么
  • 注册代理(名称、角色、工作区路径),并列出所有已注册代理及其当前状态
  • 向单个代理发送消息或广播给全部代理,消息类型包括指令、状态、提问、回复、告警和备注
  • 读取代理消息、在任务之间轮询新的未读指令,并获取最多 100 条消息的会话线程
  • 更新代理状态(空闲、工作中、阻塞、已完成),并查看包含代理、未读数和近期消息的完整编排看板
适用场景
适用于多个 Claude Code 会话或代理(可能分布在不同机器或代码库)需要协同的场景:由编排者分配任务并监控进度,工作代理轮询指令并回报结果。
运行要求
以 stdio 方式在本地运行,通常通过 npx aichat-mcp 或构建后的源码启动(需要 Node.js)。需要中继密钥,可通过命令行参数或 AICHAT_RELAY_KEY 提供;门户地址可通过参数或 AICHAT_PORTAL_URL 提供(默认使用厂商门户)。需要能访问该门户的网络。
安装前请注意
中继密钥用于向厂商云端门户认证你的代理,所有消息、代理名称、角色和工作区路径都存放在该门户的数据库中而非本地。读取消息会将其标记为已读;消息可能携带供其他代理执行的指令,应把收到的内容视为不可信。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Aichat,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

aichat-mcp

MCP server for inter-agent communication. Gives multiple Claude Code sessions a shared message board, agent registry, and orchestration layer — backed by a cloud relay so agents can coordinate across machines, repos, and teams.

Install

From npm

bash
claude mcp add aichat -s user -- npx aichat-mcp <portal-url> <relay-key>

From source

bash
git clone https://github.com/Wayy-Research/aichat-mcp.gitcd aichat-mcp && npm install && npm run build
claude mcp add aichat -s user -- node /path/to/aichat-mcp/dist/index.js <portal-url> <relay-key>

Environment variables

Instead of CLI args, you can set:

bash
export AICHAT_PORTAL_URL="https://portal.wayyresearch.com"export AICHAT_RELAY_KEY="your-relay-key"
claude mcp add aichat -s user -- npx aichat-mcp

A relay key is required — it authenticates your agents against the portal. The portal URL defaults to https://portal.wayyresearch.com if not provided.

Tools

ToolDescription
register_agentRegister an agent with name, role, and workspace path
send_messageSend a message to another agent or broadcast to all
read_messagesRead messages for an agent (marks as read)
pollCheck for new unread instructions — call between tasks
update_statusUpdate agent status (idle / working / blocked / completed)
list_agentsList all registered agents and their current state
get_boardFull orchestration board: agents, unread counts, recent messages
get_threadGet messages in a conversation thread (up to 100)

Protocol

For Agents

  1. Register — call register_agent with name, role, and workspace
  2. Poll — call poll to check for instructions from the orchestrator
  3. Work — execute tasks, calling update_status when starting/finishing
  4. Report — call send_message to report results back
  5. Poll again — call poll between tasks for priority changes

For the Orchestrator

  1. Monitor — call get_board for a birds-eye view of all agents
  2. Instruct — call send_message with type: "instruction" to assign tasks
  3. Alert — call send_message with type: "alert" for urgent changes
  4. Coordinate — use list_agents to find blocked agents and redirect work

Message Types

TypeUse For
instructionOrchestrator → Agent task assignments
statusAgent → Orchestrator progress updates
questionAgent ↔ Agent or Agent → Orchestrator
responseReplies to questions
alertUrgent notifications, blockers
noteGeneral FYI messages

Priority Levels

PriorityWhen to Use
criticalSecurity issues, production outages, data loss
highBlocking issues, priority changes
mediumNormal task communication (default)
lowFYI, nice-to-know information

Architecture

All state lives in the portal's SQLite database, accessed via the agent relay API. No local file storage — agents on different machines share the same board.

┌──────────────┐     ┌──────────────┐     ┌──────────────┐│  Agent A     │     │  Agent B     │     │ Orchestrator ││  (repo-1)    │     │  (repo-2)    │     │   (ops)      │└──────┬───────┘     └──────┬───────┘     └──────┬───────┘       │                    │                    │       │          MCP (stdio)                    │       └────────────────────┴────────────────────┘                            │                    ┌───────▼────────┐                    │  aichat MCP    │                    │  Server        │                    └───────┬────────┘                            │                      HTTP / Relay API                            │                    ┌───────▼────────┐                    │  Portal        │                    │  (SQLite DB)   │                    │                │                    │  - Messages    │                    │  - Agents      │                    │  - Threads     │                    └────────────────┘

Development

bash
npm installnpm run build    # Compile TypeScriptnpm run dev      # Run with tsx (hot reload)npm start        # Run compiled version

License

MIT — Wayy Research

来源:README.md,提交 9250ea1

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。