Agent Collaboration MCP Server logo

Agent Collaboration MCP Server

Community
nishimoto265

複数のAIエージェントが協調して作業できるようにする完全自己完結型MCPサーバーです。このツールをClaude Codeなどのエージェントに使わせることで、エージェントが他のエージェントを起動・制御し、チームとして複雑なタスクを実行できます。

Publishernishimoto265
RepositoryAgent_Collaboration_MCP
LanguageShell
Forks
3
Stars
26
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Agent Collaboration MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    26 stars and 3 forks from the linked repository.

Agent Collaboration MCP Server

English version is here

複数のAIエージェントが協調して作業できるようにする完全自己完結型MCPサーバーです。このツールをClaude Codeなどのエージェントに使わせることで、エージェントが他のエージェントを起動・制御し、チームとして複雑なタスクを実行できます。

✨ 特徴

  • シンプルなアーキテクチャ: ペイン番号を直接指定する直感的な操作
  • 複数エージェント対応: Claude CodeとGeminiの同時制御
  • 柔軟なセッション管理: 複数プロジェクトの並行作業に対応
  • 高度な状態管理: エージェントの実行状態をリアルタイムで監視

🎯 エージェント同士の協調作業

⚠️ 自動認証機能について
新しいエージェントの認証を自動化したい場合は、Playwright MCPが必要です。Playwright MCPがインストールされていない場合、認証は手動で行う必要があります。詳細は自動認証代行機能をご覧ください。

このMCPサーバーの主な用途は、エージェントが他のエージェントを管理することです。例えば:

  • ボスエージェントがタスクを分割し、複数のワーカーエージェントに割り振る
  • 各エージェントが得意分野で作業(Claude Codeはコーディング、Geminiは画像生成)
  • エージェント間でメッセージを送り合い、進捗を共有
  • 一つのエージェントが他のエージェントの作業結果を確認・統合
  • 自動認証代行: 新しいエージェントが認証を要求された場合、既存の認証済みエージェントが自動で認証を代行

🛠️ 提供ツール

エージェントが使用できる6つのツール:

1. start_agent - エージェントの起動

javascript
start_agent(target="multiagent:0.2", agentType="claude")
start_agent(target="multiagent:0.3", agentType="gemini")

指定したtmuxターゲットでAIエージェントを起動します。

  • target: tmuxターゲット形式("session:window.pane"、例:"multiagent:0.5")
  • agentType: claude(一般的なコード開発)または gemini(画像生成タスク)
  • additionalArgs: 追加の引数(オプション)

2. get_agent_status - ステータス確認

javascript
get_agent_status()                          // 全エージェントの状態を確認
get_agent_status(target="multiagent:0.2")  // 特定ペインの詳細状態を確認
get_agent_status(target="multiagent:*")    // セッション内全ペインの状態確認

取得可能なステータス

ステータスアイコン説明
running_claude✅Claude Codeが実行中で入力待機状態
running_gemini💎Geminiが実行中で入力待機状態
auth_claude🔐Claude Codeが認証プロセス中
auth_gemini🔑Geminiが認証プロセス中
executing_claude⚡Claude実行中(ESC to interrupt表示)
stopped⚫エージェントが停止中またはシェル状態

3. send_message - メッセージ送信

javascript
send_message(target="multiagent:0.2", message="こんにちは")
send_message(target="multiagent:0.3", message="C-c", sendEnter=false) // Ctrl+C送信

指定したペインにメッセージや制御文字を送信します。高度なメッセージ送信機能付き。

4. capture_screen - 画面キャプチャ

javascript
capture_screen(target="multiagent:0.2")        // 全履歴キャプチャ
capture_screen(target="multiagent:0.3", lines=50) // 最後の50行

ペインの画面内容を取得します。

5. parallel_implement - 並列実装

javascript
parallel_implement(prompt="ユーザー認証機能を実装してください")
parallel_implement(prompt="リファクタリングを実行", workerCount=5, complexity="complex")

複数のワーカーエージェントが同じタスクを並列で実装し、ボスエージェントが最良の成果物を選択・統合します。

重要: この機能はGitリポジトリ内で実行する必要があります。各ワーカーは独自のGit worktreeで作業を行います。

  • prompt: 実装指示(必須)
  • workerCount: ワーカー数(デフォルト: 3)
  • complexity: タスクの複雑度(simple, medium, complex)
  • agentType: 使用するエージェント(claude, gemini)
  • autoMerge: 完了後の自動マージ(デフォルト: false)

6. get_parallel_status - 並列実装状態確認

javascript
get_parallel_status()                    // 全セッションの一覧を取得
get_parallel_status(sessionId="parallel_20240105_123456")  // 特定セッションの詳細

並列実装セッションの進捗状況を確認します。各ワーカーの作業状況、完了率、エラー情報などを取得できます。

📦 セットアップ

1. インストール

npm経由(推奨):

bash
npm install -g agent-collaboration-mcp@latest

GitHubから直接:

bash
git clone https://github.com/nishimoto265/Agent_Collaboration_MCP.git
cd Agent_Collaboration_MCP
npm install

2. Claude Codeへの追加(推奨)

簡単な方法(CLIを使用):

bash
claude mcp add agent-collaboration npx agent-collaboration-mcp@latest

自動認証機能を使用する場合は、Playwright MCPも追加:

bash
claude mcp add playwright npx @playwright/mcp@latest

または、JSON設定を使用:

  1. プロジェクトルートに.mcp.jsonを作成:
json
{
  "mcpServers": {
    "agent-collaboration": {
      "command": "npx",
      "args": ["agent-collaboration-mcp"]
    }
  }
}
  1. ローカルインストールの場合:
json
{
  "mcpServers": {
    "agent-collaboration": {
      "command": "node",
      "args": ["/absolute/path/to/Agent_Collaboration_MCP/index.js"]
    }
  }
}

3. tmuxセッションの準備

bash
# デフォルトセッション(multiagent)を作成
tmux new-session -d -s multiagent

# 複数プロジェクトの場合
tmux new-session -d -s project1
tmux new-session -d -s project2

💡 使用例

基本的な使い方

javascript
// 1. エージェントを起動
start_agent(target="multiagent:0.2", agentType="claude")
start_agent(target="multiagent:0.3", agentType="claude")

// 2. ステータス確認
get_agent_status()

// 3. タスクを指示
send_message(target="multiagent:0.2", message="READMEを確認してください")
send_message(target="multiagent:0.3", message="テストを実行してください")

// 4. 結果を確認
capture_screen(target="multiagent:0.3")

複数セッションでの作業例

javascript
// プロジェクト1での作業
start_agent(target="project1:0.0", agentType="claude")
send_message(target="project1:0.0", message="バックエンドAPIを実装してください")

// プロジェクト2での並行作業
start_agent(target="project2:0.0", agentType="gemini")
send_message(target="project2:0.0", message="UIデザインを作成してください")

自動認証代行機能(オプション)

新しいエージェントの認証を自動化したい場合は、Playwright MCPを併用することで、既存の認証済みエージェントが新しいエージェントの認証を自動で代行できます。

javascript
// Playwright MCPがインストールされている場合の動作
start_agent(target="multiagent:0.5", agentType="claude")
// 認証が必要な場合、以下が自動実行されます:
// 1. 既存の認証済みエージェントを検出
// 2. 新エージェントの認証URLを抽出
// 3. Playwright MCPを使用してブラウザで自動認証
// 4. 認証コードを自動的に新エージェントに送信

マルチエージェント協調の例

javascript
// Boss エージェント(タスク管理)
start_agent(target="multiagent:0.0", agentType="claude")

// Worker エージェント群
start_agent(target="multiagent:0.1", agentType="claude")  // コード開発担当
start_agent(target="multiagent:0.2", agentType="gemini") // 画像生成担当
start_agent(target="multiagent:0.3", agentType="claude") // テスト担当

// Bossからタスク分割指示
send_message(target="multiagent:0.0", message="プロジェクトの進捗確認と各チームへのタスク分割をお願いします")

// 各Workerの状態監視
get_agent_status()

緊急停止・制御

javascript
// プロセスを停止
send_message(target="multiagent:0.2", message="C-c", sendEnter=false)

// 画面をクリア
send_message(target="multiagent:0.2", message="C-l", sendEnter=false)

🔧 前提条件

必須

  • Node.js 18以上
  • tmux
  • tmuxセッション: tmux new-session -d -s multiagent

オプション(認証自動化用)

  • Playwright MCP: エージェントの認証を自動化する場合に必要

🚀 高度な機能

柔軟なターゲット指定

  • セッション指定: 異なるプロジェクトで並行作業
  • ワイルドカード: multiagent:*で全ペインを対象に
  • 直感的な番号指定: 0, 1, 2...のシンプルな指定

精密な状態検出

  • リアルタイム監視: エージェントの実行状態を即座に判定
  • 複数状態の識別: 実行中、認証中、停止中などを正確に判別
  • アイコン付き表示: 視覚的に分かりやすい状態表示

🚨 トラブルシューティング

tmuxセッションが存在しない

bash
# multiagentセッションを作成
tmux new-session -d -s multiagent

エージェントが起動しない

  • get_agent_status()で状態を確認
  • capture_screen()でエラーメッセージを確認
  • 認証代行システムが自動で問題を解決する場合が多い

メッセージが送信されない

  • エージェントが起動中かget_agent_status()で確認
  • tmuxセッションが存在するか確認
  • ターゲット形式が正しいか確認("session:window.pane")

📄 スクリプトのカスタマイズ

Agent Collaboration MCPはscripts/agent_tools/内のスクリプトを使用します。独自のエージェント起動方法やメッセージ送信方法がある場合は、これらのスクリプトをカスタマイズしてください:

  • agent_manager.sh: エージェント起動コマンドの定義
  • pane_controller.sh: メッセージ送信方法の定義

🤝 貢献

このプロジェクトへの貢献を歓迎します。バグ報告や機能提案をお願いします。

📄 ライセンス

MIT License

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "agent-collaboration": {
      "command": "npx",
      "args": [
        "agent-collaboration-mcp"
      ]
    }
  }
}

Use Agent Collaboration MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Agent Collaboration MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Agent Collaboration MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Agent Collaboration MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "agent-collaboration-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "agent-collaboration-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Agent Collaboration MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Agent Collaboration MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Agent Collaboration MCP Server to help me with this task?
Agent Collaboration MCP Server
Sure. I read it.
Here is what I found using Agent Collaboration MCP Server.

Frequently asked questions

What is the Agent Collaboration MCP Server MCP server used for?

Agent Collaboration MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Agent Collaboration MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Agent Collaboration MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Agent Collaboration MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Agent Collaboration MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Agent Collaboration MCP Server MCP to TypingMind?

Agent Collaboration MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Agent Collaboration MCP Server MCP provide in TypingMind?

Agent Collaboration MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Agent Collaboration MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Agent Collaboration MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇