Loading...
Loading...
Compare original and translation side by side
Skill by ara.so — Daily 2026 Skills collection.
localhost:7899由ara.so开发的Skill — 2026每日技能合集。
localhost:7899git clone https://github.com/louislva/claude-peers-mcp.git ~/claude-peers-mcp
cd ~/claude-peers-mcp
bun installgit clone https://github.com/louislva/claude-peers-mcp.git ~/claude-peers-mcp
cd ~/claude-peers-mcp
bun installclaude mcp add --scope user --transport stdio claude-peers -- bun ~/claude-peers-mcp/server.tsclaude mcp add --scope user --transport stdio claude-peers -- bun ~/claude-peers-mcp/server.tsclaude --dangerously-skip-permissions --dangerously-load-development-channels server:claude-peersundefinedclaude --dangerously-skip-permissions --dangerously-load-development-channels server:claude-peersundefined
The broker daemon starts automatically on first use. No manual daemon management needed.
代理守护进程会在首次使用时自动启动,无需手动管理。 ┌───────────────────────────┐
│ broker daemon │
│ localhost:7899 + SQLite │
└──────┬───────────────┬────┘
│ │
MCP server A MCP server B
(stdio) (stdio)
│ │
Claude A Claude Bserver.tsclaude/channel ┌───────────────────────────┐
│ broker daemon │
│ localhost:7899 + SQLite │
└──────┬───────────────┬────┘
│ │
MCP server A MCP server B
(stdio) (stdio)
│ │
Claude A Claude Bserver.tsclaude/channel| Tool | Description |
|---|---|
| Discover other Claude Code instances; scope: |
| Send a message to a peer by ID — delivered instantly via channel push |
| Set a description of what this instance is working on |
| Manually poll for messages (fallback without channel mode) |
| 工具 | 描述 |
|---|---|
| 发现其他Claude Code实例;范围可选: |
| 通过ID向指定节点发送消息 — 频道推送实现即时送达 |
| 设置当前实例的工作描述 |
| 手动轮询消息(无频道模式时的备选方案) |
List all peers on this machineSend a message to peer abc123: "what files are you editing right now?"Set your summary to: "refactoring the authentication module"Check for any new messages from peers列出这台机器上的所有节点向节点abc123发送消息:"你现在正在编辑哪些文件?"将你的工作描述设置为:"重构认证模块"检查是否有来自其他节点的新消息cd ~/claude-peers-mcpcd ~/claude-peers-mcpundefinedundefined| Variable | Default | Description |
|---|---|---|
| | Port the broker listens on |
| | Path to the SQLite database |
| — | Enables auto-summary via |
export CLAUDE_PEERS_PORT=7899
export CLAUDE_PEERS_DB=~/.claude-peers.db
export OPENAI_API_KEY=$OPENAI_API_KEY # optional — enables auto-summary| 变量 | 默认值 | 描述 |
|---|---|---|
| | 代理监听的端口 |
| | SQLite数据库的路径 |
| — | 启用启动时通过 |
export CLAUDE_PEERS_PORT=7899
export CLAUDE_PEERS_DB=~/.claude-peers.db
export OPENAI_API_KEY=$OPENAI_API_KEY # 可选 — 启用自动摘要功能OPENAI_API_KEYlist_peersset_summaryOPENAI_API_KEYlist_peersset_summaryundefinedundefined
Ask Claude in Terminal 1:undefined
在终端1中询问Claude:undefinedList peers scoped to repo列出仓库范围内的节点undefinedundefinedundefinedundefined--dangerously-load-development-channelscheck_messagesCheck for any new peer messages--dangerously-load-development-channelscheck_messages检查是否有新的节点消息undefinedundefined
**Peers not appearing in `list_peers`**
- Ensure both sessions were started with `--dangerously-load-development-channels server:claude-peers`
- Confirm both use the same `CLAUDE_PEERS_PORT` (default `7899`)
- Run `bun cli.ts status` to verify the broker sees both registrations
**Messages not arriving instantly**
- Channel push requires claude.ai login; API key auth won't work
- Fall back to `check_messages` tool if channels are unavailable
**Auto-summary not generating**
- Verify `OPENAI_API_KEY` is exported in the shell where Claude Code was launched: `echo $OPENAI_API_KEY`
- The feature uses `gpt-4o-mini`; confirm your key has access
**Database issues**
```bash
**`list_peers`中看不到节点**
- 确保两个会话都使用`--dangerously-load-development-channels server:claude-peers`启动
- 确认两者使用相同的`CLAUDE_PEERS_PORT`(默认7899)
- 运行`bun cli.ts status`验证代理是否已注册两个实例
**消息无法即时送达**
- 频道推送需要claude.ai登录;API密钥认证无效
- 如果频道不可用,可使用`check_messages`工具作为备选
**自动摘要无法生成**
- 验证启动Claude Code的Shell中是否已导出`OPENAI_API_KEY`:`echo $OPENAI_API_KEY`
- 该功能使用`gpt-4o-mini`;请确认你的密钥有权限访问该模型
**数据库问题**
```bash
**MCP server not found after registration**
```bash
**注册后找不到MCP服务器**
```bashundefinedundefined