LC

louislva/claude-peers-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

2207 stars 307 forks 品質 56 トレンド 25MIT

すべてのClaudeコード同士がアドホックでメッセージを送り合うことを許可しましょう!

概要

Claude Codeのインスタンス同士が見つけ合い、会話できるようにします。異なるプロジェクトで5つのセッションを運営している場合、どのClaudeでも他のセッションを発見し、即座に届くメッセージを送信できます。 これにより、すべてのClaude Codeセッションで任意のディレクトリからClaudeピアが利用可能になります: ~/claude-peers-mcpをクローンした場所に置き換えてください。 それだけです。ブローカーデーモンは最初の段階で自動的に起動します。 毎回入力しなくて済むように、エイリアスに追加してください: 別の端末で同じ方法でClaude Codeを起動します。次に、どちらかに質問してください: すべての実行中のインスタンスとその作業ディレクトリ、gitリポジトリ、そして作業内容の概要が表示されます。その後: ピア[id]にメッセージを送る:「何を作っているのですか?」

概要(AI 翻訳)

Claude Codeのインスタンス同士が見つけ合い、会話できるようにします。異なるプロジェクトで5つのセッションを運営している場合、どのClaudeでも他のセッションを発見し、即座に届くメッセージを送信できます。

クイックスタート

1.設置

2.MCPサーバーを登録してください

これにより、すべてのClaude Codeセッションで任意のディレクトリからClaudeピアが利用可能になります:

~/claude-peers-mcpをクローンした場所に置き換えてください。

3.チャンネルでClaudeコードを実行

それだけです。ブローカーデーモンは最初の段階で自動的に起動します。

ヒント: 毎回入力しなくて済むように、エイリアスに追加してください:

4.2回目のセッションを開いて試してみて

別の端末で同じ方法でClaude Codeを起動します。次に、どちらかに質問してください:

このマシン上のすべてのピアをリストする

すべての実行中のインスタンスとその作業ディレクトリ、gitリポジトリ、そして作業内容の概要が表示されます。その後:

ピア[id]にメッセージを送る:「何をやっているのですか?」

もう一人のクロードはすぐにそれを受け取り、応答する。

クロードにできること

ツール 何をするのか

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

claude-peers

Let your Claude Code instances find each other and talk. When you’re running 5 sessions across different projects, any Claude can discover the others and send messages that arrive instantly.

  Terminal 1 (poker-engine)          Terminal 2 (eel)
  ┌───────────────────────┐          ┌──────────────────────┐
  │ Claude A              │          │ Claude B             │
  │ "send a message to    │  ──────> │                      │
  │  peer xyz: what files │          │  arrives    │
  │  are you editing?"    │  <────── │  instantly, Claude B │
  │                       │          │  responds            │
  └───────────────────────┘          └──────────────────────┘

Quick start

1. Install

git clone https://github.com/louislva/claude-peers-mcp.git ~/claude-peers-mcp   # or wherever you like
cd ~/claude-peers-mcp
bun install

2. Register the MCP server

This makes claude-peers available in every Claude Code session, from any directory:

claude mcp add --scope user --transport stdio claude-peers -- bun ~/claude-peers-mcp/server.ts

Replace ~/claude-peers-mcp with wherever you cloned it.

3. Run Claude Code with the channel

claude --dangerously-skip-permissions --dangerously-load-development-channels server:claude-peers

That’s it. The broker daemon starts automatically the first time.

Tip: Add it to an alias so you don’t have to type it every time:

alias claudepeers='claude --dangerously-load-development-channels server:claude-peers'

4. Open a second session and try it

In another terminal, start Claude Code the same way. Then ask either one:

List all peers on this machine

It’ll show every running instance with their working directory, git repo, and a summary of what they’re doing. Then:

Send a message to peer [id]: “what are you working on?”

The other Claude receives it immediately and responds.

What Claude can do

Tool What it does
list_peers Find other Claude Code instances — scoped to machine, directory, or repo
send_message Send a message to another instance by ID (arrives instantly via channel push)
set_summary Describe what you’re working on (visible to other peers)
check_messages Manually check for messages (fallback if not using channel mode)

How it works

A broker daemon runs on localhost:7899 with a SQLite database. Each Claude Code session spawns an MCP server that registers with the broker and polls for messages every second. Inbound messages are pushed into the session via the claude/channel protocol, so Claude sees them immediately.

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →