Home›MCP / Tooling›Claude Codeの複数セッション同士を繋げるMCPを作ってOSSにした(Discord連携もあり)

Claude Codeの複数セッション同士を繋げるMCPを作ってOSSにした(Discord連携もあり)A new open-source MCP server enables multiple Claude Code sessions to…

元記事を読むRead original articlezenn.dev(新しいタブで開きます)(opens in a new tab)
AI 要約AI summary

複数のClaude Codeセッションが相互に通信できるMCPサーバーをOSSとして公開。Discord連携も備え、セッション間の協調作業やメッセージ共有が可能になる。

A new open-source MCP server enables multiple Claude Code sessions to communicate with each other, supporting cross-session coordination and Discord integration for broader workflow automation.

AI 生成の要約と解説(解説は要約と収集メタデータに基づく)で、元記事全文の転載・翻訳ではありません。日本語版と英語版は言語ごとに独立して生成しています。正確性は元記事 (zenn.dev) でご確認ください。AI-generated summary and explainer (the latter based on the summaries and collected metadata), not a copy or translation of the full source article. Generated independently for each language. Verify accuracy at the original source (zenn.dev).

複数のClaude Codeセッションを相互に通信させ、協調作業を可能にするMCP(Model Context Protocol)サーバーがオープンソースとして公開された。単独で動くコーディング支援エージェントを「つなぐ」ことで、複数エージェントによる分業や情報共有を狙う試みであり、Discord連携も備える点が特徴だ。

MCPは、Anthropicが2024年後半に公開した、AIモデルと外部ツールやデータソースを標準化された方法で接続するためのオープンな規格である。従来は各ツールごとに個別の連携実装が必要だったが、MCPサーバーを介することで、対応するクライアントであれば共通のインターフェースで機能を呼び出せるようになる。すでにファイルシステムやデータベース、各種SaaSと接続するサーバーが数多く登場しており、エコシステムが拡大している。

今回公開されたサーバーは、このMCPの仕組みを応用し、複数のClaude Codeセッション間でメッセージをやり取りできるようにするものと見られる。Claude CodeはAnthropicが提供するコマンドライン型のコーディングエージェントで、通常は各セッションが独立して動作する。そのため、あるセッションで得た文脈や作業結果を別のセッションへ引き継ぐには手作業が必要になりがちだった。セッション間通信を実装することで、たとえば一方が設計や調査を担当し、他方が実装を進めるといった役割分担や、進捗の共有を仲介できる可能性がある。

加えてDiscord連携を備えることで、チャットプラットフォーム上からエージェントの動作を確認したり、メッセージを受け渡したりするワークフローが構築できると考えられる。開発チームが日常的に使うDiscordを介在させることで、人間とエージェント、あるいはエージェント同士の協調を可視化しやすくなる狙いがあるとみられる。

こうした取り組みは、単一のエージェントに複雑なタスクをすべて任せるのではなく、複数のエージェントを連携させて処理を分担する「マルチエージェント」の潮流に沿ったものだ。OpenAIやGoogleなども含め、業界全体でエージェント間の連携や標準化を模索する動きが続いており、MCPをはじめとするプロトコルの整備がその基盤となりつつある。オープンソースとして公開された点は、実際の利用や検証、機能改善への貢献を第三者が行いやすくする意味を持つ。ただし、複数セッションの通信を扱う以上、権限管理や情報の取り扱いには相応の注意が求められるだろう。

A developer has released an open-source Model Context Protocol (MCP) server that lets multiple Claude Code sessions communicate with one another, and it ships with built-in Discord integration. The project matters because it addresses a practical gap in agentic coding workflows: individual Claude Code sessions normally run in isolation, with no straightforward way to share state, hand off tasks, or coordinate on a larger problem. A tool that bridges those sessions moves the setup closer to a functioning multi-agent system built from otherwise independent instances.

At a technical level, the server acts as a shared communication layer. Because it is exposed through MCP, each Claude Code session connects to it as a standard MCP server and gains access to a set of tools for sending and receiving messages. In practice this appears to allow one session to post information that other connected sessions can read, enabling patterns such as one agent delegating a subtask to another, or several agents working in parallel while reporting progress to a common channel. The Discord layer extends the same messaging concept outward, so that humans can observe or participate in the exchange from a familiar chat client rather than watching multiple terminal windows.

To understand why this is notable, it helps to review the underlying pieces. The Model Context Protocol is an open standard introduced by Anthropic in late 2024 to give AI assistants a consistent way to connect with external data sources and tools. Rather than writing bespoke integrations for every service, developers can build an MCP server once and have any MCP-compatible client use it. The protocol has since gained broad adoption, with clients beyond Anthropic's own products adding support, which is part of why a session-linking server can slot into existing setups without much friction.

Claude Code, the target of this integration, is Anthropic's agentic command-line coding tool. It runs in a terminal, reads and edits files in a project, executes commands, and can already consume MCP servers to reach outside resources. What it has lacked is a native notion of collaboration between separate running instances. Developers who wanted several Claude Code agents attacking different parts of a codebase have generally had to orchestrate that manually or through custom scripts. By packaging inter-session messaging as an MCP server, this project offers a reusable component that any Claude Code user can attach.

The Discord connection is the more immediately visible feature and reflects a wider pattern in the ecosystem. Chat platforms such as Discord and Slack are increasingly used as control surfaces for AI agents because they provide persistent history, notifications, and multi-user access out of the box. Routing agent messages through Discord means a team could, in principle, follow along asynchronously, inject instructions, or review what each session is doing without direct terminal access. It is worth noting that giving an autonomous coding agent an outbound channel to a chat service also raises the usual considerations around credentials, access scope, and reviewing actions before they are executed, so users would likely want to understand the server's permission model before deploying it broadly.

This release sits within a broader industry trend toward multi-agent architectures, where several specialized AI processes divide work and coordinate rather than relying on a single monolithic agent. Frameworks and experiments in this space have explored supervisor-and-worker arrangements, message passing, and shared memory. Anthropic itself has discussed multi-agent approaches, and comparable orchestration ideas appear in tools associated with other model providers. A lightweight, MCP-native approach is appealing because it leans on an existing standard instead of introducing a separate coordination framework.

As an open-source project, the server can be inspected, modified, and self-hosted, which is often a prerequisite for teams that want to run agents against private codebases. The practical value will depend on details that a short announcement cannot fully convey, such as reliability under concurrent sessions, how message ordering and history are handled, and how gracefully it degrades when an agent misbehaves. For developers already experimenting with Claude Code and MCP, however, it offers a concrete starting point for connecting sessions and observing them through Discord, and it is a useful illustration of how the MCP standard is being used to compose larger workflows from smaller, interoperable parts.

ポコとTECHガイドPoko & TECH Guide

ポコと当サイトのTECHガイドが、記事の要約と収集した情報から読みどころを語るAI生成の対話です。Poko and TECH Dashboard's own TECH Guide discuss the article's highlights in an AI-generated conversation based on its summary and collected source details.

  1. ポコPokoClaude Codeを何個も立ち上げて作業するとき、普段の何が楽になるの?When I run several Claude Code sessions, what actually gets easier day to day?
  2. TECHガイドTECH Guideセッション同士が互いを見つけてメッセージを送れます。調整役が全員に指示を出せば、人が同じ質問を一つずつ投げに行かなくて済む、と書かれています。The sessions can find each other and exchange messages. A coordinator can send instructions to all of them, so you don't ask the same question in each one by hand.
  3. ポコPoko前はそういうことってできなかったの? Discordもつながるって聞いたよ。Wasn't that possible before? I also heard it connects to Discord.
  4. TECHガイドTECH Guideこれは louislva/claude-peers-mcp のフォークで、実運用で困った3点を直し、Discord adapterを足したそうです。元の機能との細かい差は、この記事だけでは分かりません。It's a fork of louislva/claude-peers-mcp. The author fixed three pain points and added a Discord adapter. The article doesn't detail exactly how it differs from the original.
  5. ポコPokoじゃあ判断する係と動く係を分けて、Discordでまとめて見られるのが一番の収穫かな?So the big win is splitting deciders from doers, and watching everything in Discord. Is that right?
  6. TECHガイドTECH Guideそうですね。判断役の context window が実行の細部で埋まらないとも書かれています。次は、Discordに紐付けるBridge役セッションの使い方に注目です。Yes. The article says the decider's context window won't fill up with execution details. Next, watch how the Bridge session tied to a Discord channel works in practice.
記事情報・収集記録Article details & collection record
出典Source
Zenn MCPコミュニティCommunity
公開日時 (JST)Published (JST)
収集日時 (JST)Collected (JST)
配信形式Format
ブログBlog
原文言語Source language
日本語Japanese
重要度の位置づけImportance in this lane
MediumMedium priority(MCP / Tooling 126件中、同等以上 120件)(120 of 126 MCP / Tooling entries are equal or higher)
出典の平均重要度(掲載直近 30 件・最大 30 件)Source average (last 30 listed, up to 30)
2.0 / 31=情報 · 2=中 · 3=高1=Info · 2=Medium · 3=High
情報の寿命Half-life
中期 (チュートリアル)Medium-term (tutorial)

🔗MCP / Tooling の他の記事More from MCP / Toolingもっと見る →View more →

ページ上部へScroll to top