AI-SyncForge
A LAN multi-AI collaborative development ecosystem connecting tools like Cursor, Windsurf, and Claude Desktop via MCP for automated Dev-QA-Ops workflows.
README
AI-SyncForge 🚀
🇺🇸 English
AI-SyncForge is an innovative LAN Multi-AI Collaborative Development Ecosystem. It leverages the cross-network capabilities of the Model Context Protocol (MCP) to connect multiple AI programming tools (such as Cursor, Windsurf, Claude Desktop, etc.) within your local network. It breaks the boundaries of a single AI, building a fully automated, asynchronous three-party collaboration loop consisting of Developer (Dev), Quality Assurance (QA), and Operations Expert (Ops).
💎 Core Advantages: Distributed Collaboration
Unlike traditional single-agent development, the true power of AI-SyncForge lies in distributed synergy:
- 🖥️ Cross-Software Linkage: Let your Cursor focus on writing code, while Windsurf or Claude Desktop on another device in the LAN automatically handles testing.
- 📱 Heterogeneous Compute Pool: Fully utilize idle computing power. For example: a high-performance desktop runs the Dev role, a laptop runs the QA role, and even a tablet can participate in monitoring.
- 🛡️ Zero Human Intervention Loop: Task state transitions across processes and devices are managed via the MCP Broker. Developers can go "offline" after submitting code, with subsequent QA and environment fixes handled automatically by background AIs.
- ⚡ Zero Latency State Sync: Based on the
asyncio.Eventsignal mechanism, ensuring that state changes are synchronized to all participants in milliseconds, even on different physical machines.
🏗️ System Architecture
AI-SyncForge uses a "Hub-and-Spoke" architecture. The MCP Broker acts as the central scheduler.
graph TD
subgraph "Local / Server (Broker Hub)"
Broker["MCP Broker (Streamable-HTTP)"]
DB[(SQLite Task Queue)]
Watchdog[Ops Whistleblower]
end
Dev["Cursor (Dev Agent)"] -- "submit_and_wait" --> Broker
QA["Antigravity (QA Agent)"] -- "poll_task / finish_test" --> Broker
Ops["Ops-Forge (Ops Agent)"] -- "poll_ops_task / manage_env" --> Broker
Broker <--> DB
Watchdog -.-> DB
🛠️ Quick Start
1. Start Broker Service
Option A: Docker Deployment (Recommended)
docker-compose up -d --build
Option B: Direct Run
pip install -r requirements.txt
python server.py
2. Configure Agents
Add the following to your MCP client configuration (e.g., mcp_config.json):
Cursor Configuration:
"local-sse-server": {
"url": "http://localhost:8080/"
}
Antigravity Configuration:
"local-sse-server": {
"serverUrl": "http://localhost:8080/"
}
[!IMPORTANT] Transport Mode: Use
Streamable-HTTP. The Broker automatically handles path resolution and session mapping for root-path connections.
3. Agent Prompts
For detailed system prompts for each role (Dev, QA, Ops), please refer to PROMPTS.md.
🇨🇳 中文
AI-SyncForge 是一个创新的 局域网多 AI 协同开发生态系统。它利用 Model Context Protocol (MCP) 的跨网络能力,将您局域网内的多个 AI 编程工具(如 Cursor、Windsurf、Claude Desktop 等)连接在一起。它打破了单一 AI 的边界,构建了一个由 开发者 (Dev)、测试员 (QA) 和 运维专家 (Ops) 组成的完全自动化、异步的三方协作环路。
🏗️ 系统架构
AI-SyncForge 采用“中心调度”架构。MCP Broker 作为核心调度器,管理所有任务状态。
graph TD
subgraph "核心服务器 (Broker Hub)"
Broker["MCP Broker (流式 HTTP 模式)"]
DB[(SQLite 任务队列)]
Watchdog[Ops 吹哨人]
end
Dev["Cursor (开发代理)"] -- "提交并等待" --> Broker
QA["测试代理 (QA)"] -- "轮询任务 / 提交报告" --> Broker
Ops["运维代理 (Ops)"] -- "紧急轮询 / 环境管理" --> Broker
Broker <--> DB
Watchdog -.-> DB
🛠️ 快速开始
1. 启动 Broker 服务
推荐使用 Docker 一键部署:
docker-compose up -d --build
2. 配置 Agent 客户端
在您的 MCP 客户端配置(如 mcp_config.json)中添加:
Cursor 配置格式:
"local-sse-server": {
"url": "http://localhost:8080/"
}
Antigravity 配置格式:
"local-sse-server": {
"serverUrl": "http://localhost:8080/"
}
[!TIP] 模式说明:本项目目前运行在
Streamable-HTTP模式下,完美兼容 Antigravity 等各类插件。直接指向根路径http://localhost:8080/即可,无需额外后缀。
3. 角色提示词配置
关于 Dev、QA、Ops 各角色的详细系统提示词(System Prompt)配置,请参考 PROMPTS.md。
⚙️ 环境变量与调优 (Environment Variables & Tuning)
AI-SyncForge 允许您根据硬件和网络环境自定义协作节奏。您可以在 .env 文件中设置以下变量:
# MCP Broker 端口 (默认 8000,Docker 映射为 8080)
SYNCFORGE_PORT=8000
# 吹哨人死锁判定阈值 (默认 600s/10分钟)
WHISTLEBLOWER_TIMEOUT=600
# 物理连接死守超时 (默认 1200s/20分钟)
PHYSICAL_TIMEOUT=1200
# 数据库路径
# DB_PATH=./task_queue.db
# 日志级别 (DEBUG/INFO/WARNING/ERROR)
LOG_LEVEL=INFO
[!IMPORTANT] 运维小贴士 (Performance Tip):如果在实际使用场景(如 Cursor 配合 Windsurf)中遇到任何任务分发或状态同步延迟,只需调整
.env中的WHISTLEBLOWER_TIMEOUT或增加轮询频率即可。
🧰 MCP 工具集
| 工具名称 | 调用者 | 描述 |
|---|---|---|
submit_and_wait |
Dev | 提交代码并挂载协程,毫秒级等待测试结果。 |
poll_task |
QA | 长轮询获取待测任务,无任务时保持挂起。 |
finish_test |
QA/Ops | 提交测试或修复结果,瞬间唤醒被阻塞的 Dev。 |
poll_ops_task |
Ops | 专属高优先级长轮询通道,获取系统自动生成的自愈任务。 |
manage_env |
Ops | 执行环境管理(如重启容器、清理故障现场等)。 |
🏗️ 运维自愈:吹哨人机制
系统内置了 Ops 吹哨人 (Watchdog) 模块:
- 持续监控:每 30 秒扫描一次数据库。
- 死锁判定:如果一个测试任务超过 10 分钟无响应,自动判定为环境死锁。
- 自动派单:系统会自动生成一个
ops_task急救工单并投递给运维通道,请求 Ops Agent 介入修复。
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。