Token导航 LogoToken导航TokenDH.com
AI Collab logo
开发工具未说明官方级别未说明来源级核验

AI Collab

MCP Server

ai-collab是一个多AI协作MCP服务器,用于协调Claude Code与其他AI CLI代理(如GitHub Copilot、Google Gemini、OpenAI Codex等)之间的头脑风暴会话,通过独立分析、审议和整合三个阶段实现结构化协作。

工具数

0

提示词数

0

GitHub Stars

0

资源数

0
命令行工具RustClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

crsln

提供方

crsln

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

ai collab

Claude Code的多AI协作MCP服务器。在任何AI CLI代理组合中组织头脑风暴会议——GitHub Copilot、Google Gemini、OpenAI Codex或任何自定义CLI工具。

它做什么

ai collab允许Claude Code将问题委托给其他ai代理,并运行结构化的多代理头脑风暴会议,其工作流程分为三个阶段:

  1. 独立分析 --每个代理独立分析主题
  2. 深思熟虑 --代理人审查调查结果,并根据证据进行投票(接受/拒绝/修改)
  3. 整合 --克劳德综合了最终共识

所有通信都是通过共享的SQLite数据库进行的。每个代理都有自己的MCP服务器实例,用于读取/写入记录。

快速开始

先决条件

  • 防锈工具链 (用于建筑)
  • Claude 代码命令行工具
  • 至少安装了一个AI CLI工具:

- (copilot) - 谷歌双子星命令行工具 (gemini) - OpenAI Codex命令行界面 (codex) - 或任何其他基于CLI的AI工具

安装

cargo install --git https://github.com/crsln/ai-collab.git ai-collab-server

或用于开发:

git clone https://github.com/crsln/ai-collab.git
cd ai-collab
cargo install --path crates/ai-collab-server

这使得 ai-collab-server 在您的货箱目录中(已在PATH中)。

设置

  1. 复制示例配置并启用代理:
cp ai-collab.toml.example ai-collab.toml
# Edit ai-collab.toml — enable/disable agents as needed
  1. 使用默认工作流、工具指南和角色模板为数据库添加种子:
ai-collab-server seed-defaults --db .data/brainstorm.db

配置Claude代码

添加到您的项目 .mcp.json (或全球 ~/.claude/settings.json):

{
  "mcpServers": {
    "ai-collab": {
      "command": "ai-collab-server",
      "args": ["serve", "--db", ".data/brainstorm.db"]
    }
  }
}

配置代理MCP访问

每个AI代理都需要面向MCP服务器的代理来进行头脑风暴工具。

克劳德子代理人 (.claude/agent-mcp.json):

{
  "mcpServers": {
    "brainstorm": {
      "command": "ai-collab-server",
      "args": ["agent-serve", "--db", ".data/brainstorm.db"]
    }
  }
}

GitHub Copilot (~/.copilot/mcp-config.json):

{
  "mcpServers": {
    "brainstorm": {
      "command": "ai-collab-server",
      "args": ["agent-serve", "--db", ".data/brainstorm.db"]
    }
  }
}

谷歌双子座 (.gemini/settings.json 在您的项目中):

{
  "mcpServers": {
    "brainstorm": {
      "command": "ai-collab-server",
      "args": ["agent-serve", "--db", ".data/brainstorm.db"]
    }
  }
}

OpenAI Codex (~/.codex/config.toml):

[mcp_servers.brainstorm]
command = "ai-collab-server"
args = ["agent-serve", "--db", ".data/brainstorm.db"]

用法

快速委派

Use ask_agent("copilot", "How do I rebase interactively?")
Use ask_agent("gemini", "Analyze the architecture", cwd="/path/to/project")
Use ask_agents("What's the best approach for caching?", cwd="/path/to/project")
Use list_agents()

结构化头脑风暴

使用 /multi-ai-brainstorm 具备完整的三阶段头脑风暴会议的技能。

建筑

一个Rust二进制文件(ai-collab-server)提供两种MCP服务器模式:

  1. ai-collab-server serve --编排器MCP服务器(Claude Code在此连接)
  2. ai-collab-server agent-serve --面向MCP服务器的代理(每个代理在此处连接)

数据流

User asks Claude Code to brainstorm
  │
  ├── Claude Code ←──MCP──→ ai-collab-server serve (orchestrator tools)
  │     ├── ask_agent / ask_agents → subprocess dispatch via providers
  │     ├── bs_run_round → parallel agent dispatch with fail-fast gates
  │     └── bs_* tools → brainstorm.db read/write
  │
  ├── brainstorm.db (shared SQLite — single source of truth)
  │
  └── Each agent (Copilot/Gemini/Codex) ←──MCP──→ ai-collab-server agent-serve
        ├── bs_get_onboarding → discover task, role, workflow, prior work
        ├── bs_save_response → save analysis (auto-validated)
        └── bs_batch_respond → vote on all feedback items at once

板条箱结构

ai-collab/
  ├── crates/
  │   ├── ai-collab-server    — Two MCP servers (orchestrator + agent-facing) + validator
  │   ├── ai-collab-core      — Enums, models, validation heuristics, traits
  │   ├── ai-collab-db        — SQLite persistence (WAL mode, CRUD/DDL)
  │   ├── ai-collab-config    — TOML config loading + agent registry
  │   └── ai-collab-provider  — Subprocess dispatch for agents
  ├── Cargo.toml              — Workspace root
  ├── ai-collab.toml.example  — Agent configuration template
  └── dashboard.html          — Web dashboard for session visualization

配置

ai-collab.toml

在中定义您的代理 ai-collab.toml:

[settings]
db_path = ".data/brainstorm.db"
default_timeout = 900

[agents.copilot]
enabled = true
command = "copilot"
args = ["-p", "{prompt}", "--allow-all"]
display_name = "GitHub Copilot"

[agents.gemini]
enabled = true
command = "gemini"
args = ["-p", "{prompt}", "--yolo"]
display_name = "Google Gemini"

ai-collab.toml.example 更多示例包括Codex、Aider和定制代理。

自描述数据库

头脑风暴数据库是自描述的。代理定义、工作流模板、工具指南和角色模板存储在全局表中。客服电话 bs_get_onboarding(agent_name) 发现他们需要的一切。

代理调度提示完全基于ID(约150个字符):代理名称、会话/轮ID和引导指令。问题存储在 rounds 表,并通过检索 bs_get_onboarding().

角色库

用于为代理分配专门行为的可重用角色模板:

Use bs_list_roles()
Use bs_apply_role(session_id, "copilot", "security-reviewer")
Use bs_create_role(slug="api-reviewer", display_name="API Reviewer", ...)

包括8个种子模板: code-reviewer, security-reviewer, architecture-analyst, performance-analyst, ux-design-critic, devil-advocate, copilot-code-verifier, gemini-research-analyst.

许可证

麻省理工学院

目录标签

目录标签

命令行工具RustClaude多AI协作本地部署头脑风暴工具AI代理协调SQLite数据库

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

session

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明session部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP