Skip to main content
Glama

orchestrator-mcp

面向主 Agent 的多模型 Review Hub MCP:按角色提供 UI 审查、代码审查、通用审查能力,返回可追踪的结构化审查结果。

它不是软件交付流水线,也不负责 plan → code → deliver。它不会实现修复、修改工作区、提交 commit、push 或创建 PR;最终如何处理审查结果,由调用它的主 Agent 决定。

调用方必须提供本次审查的目标和真实证据。MCP 负责把请求路由给一个配置好的 review 角色,保存本次 run 的 handoff,并将结果交还给主 Agent。Review verdict 只是审查意见,不会自动成为其他任务的事实依据。

  • Review handoff schema 固定schemas/

  • Provider 按厂商(deepseek / moonshot / zhipu / openai / codex-lb),model 按 role 配置

  • 别名glm → zhipu,gpt → openai

  • 凭证:环境变量 → WebUI 本地 JSON → ~/Desktop/服务器.md

  • Web 配置界面:编辑 Provider Key / Base URL / 默认模型,以及各 Profile 的 Role 模型

快速开始

cd orchestrator-mcp
./verify.sh              # 离线 stub 自测(含 WebUI API 冒烟)
./start.sh               # MCP :18067
./start-webui.sh         # 配置 WebUI :18068 → http://127.0.0.1:18068

# 可选:只测 review 阶段真实模型调用
ORCHESTRATOR_LIVE_TEST=1 ./verify.sh

Related MCP server: spiderswitch

本机可靠部署(Codex + launchd)

本机唯一代码源固定为 /Users/xiaomao11/project/orchestrator-mcp。不要再从 ~/orchestrator-mcp 或项目内 .mcp/orchestrator-mcp 启动副本。

cd /Users/xiaomao11/project/orchestrator-mcp
./scripts/install-local.sh
./scripts/orchestrator-doctor.sh

安装器会:

  • 修复/准备可迁移 venv,并始终通过 python -m pip 安装依赖;

  • 将 Codex 配置为 per-session stdio;若客户端转发 CODEX_THREAD_ID 就按线程隔离,否则 wrapper 使用进程级 session id,避免因客户端未转发该变量而无法启动;

  • 将 launchd HTTP MCP 固定到 18067,WebUI 固定到 18068;

  • 备份现有 Codex 配置和 launchd plist;

  • 等待 launchd job 完成卸载、重新加载并真正开始监听后才返回成功。

doctor 同时检查配置路径、transport、plist、监听数量和进程 cwd。安装后需要新建 Codex 任务或重启 Codex/ChatGPT App,已有任务不会热注册新的 MCP 工具。

评审调用必须提供真实可审查证据。code_review 在传入 workspace 时会按 diff_scope (默认 branch_changes)自动注入 unified diff;也可在 extra_context 中直接附 patch/代码。 无 diff/代码证据时 code_review 会返回 verdict=evidence_insufficient,不会假审。 可选结构化字段:requirements / verification / known_risks / custom_instructions / base_sha / head_shadiff_scope=sha_range 时)。 handoff 为 review.v1verdict + findings[{severity,location,what,why,fix}] + blocking + suggestions。 一致性:pass 不得含 Critical/Important;revise 至少一条 Critical/Important finding。 模型 JSON 不合 schema 时自动重试修复一轮。自动 diff 会排除 lockfile / 二进制 / node_modules 等噪音路径。 主 Agent 调用约定见仓库 .cursor/skills/orchestrator-code-review/SKILL.md

主 Agent 与 Review Hub 的交接

推荐交接内容是一个明确的 review request:目标、变更文件、diff 或代码范围、证据、已执行验证和已知风险。Review Hub 将同一份请求上下文交给对应角色,并返回独立的 review handoff;不要依赖隐藏聊天记录补全审查范围。

基本关系如下:

主 Agent -- review request + evidence --> Review Hub
Review Hub -- 同一请求上下文 + 角色规则 --> UI / Code / General Reviewer
Reviewer -- structured findings + blockers + evidence --> Review Hub
Review Hub -- independent handoffs --> 主 Agent

启动入口

这个仓库有两个独立入口:

  • ./start.sh 启动 MCP 服务,默认地址 http://127.0.0.1:18067/mcp

  • ./start-webui.sh 启动 WebUI 配置页,默认地址 http://127.0.0.1:18068

如果你只想改 Provider、默认模型、Role 覆盖,直接启动 WebUI:

cd orchestrator-mcp
./start-webui.sh

如果你要让 Cursor / Codex / 其他 MCP Client 真正调用这个服务,再另外启动 MCP:

cd orchestrator-mcp
./start.sh

说明:

  • WebUI 不是 MCP tool,本身不会出现在工具列表里

  • WebUI 只是本地配置界面;真正暴露给 MCP Client 的是 orchestrate_* 这些工具

  • 默认端口可通过 ORCHESTRATOR_WEBUI_HOSTORCHESTRATOR_WEBUI_PORTORCHESTRATOR_MCP_HOSTORCHESTRATOR_MCP_PORT 覆盖

Web 配置界面

功能

说明

Providers

编辑 api_keybase_urldefault_model;写入 data/providers.local.json

Roles

按 Profile 覆盖 ui_review / code_review / general_review 的 provider + model;写入 data/roles.local.json

本地配置文件不进 git。环境变量仍优先于 WebUI 写入的值。

Profile

Profile

用途

daily-dev-stub

离线三角色审查自测,不调 API

daily-dev

日常三角色审查

example-kimi-review

多模型审查示例,不同角色用不同模型

同一厂商下切换模型:只改 YAML 或 WebUI Roles 里的 model不用建两个 provider。

roles:
  ui_review:
    provider: codex-lb
    model: gpt-5.4
  code_review:
    provider: codex-lb
    model: gpt-5.4
  general_review:
    provider: deepseek
    model: deepseek-v4-flash

凭证环境变量

Provider

Env

默认 Base URL

deepseek

DEEPSEEK_API_KEY

https://api.deepseek.com/v1

moonshot

MOONSHOT_API_KEY

https://api.moonshot.cn/v1

zhipu/glm

ZHIPU_API_KEY

https://open.bigmodel.cn/api/paas/v4

openai/gpt

OPENAI_API_KEY

https://api.openai.com/v1 · wire_api=chat

codex-lb/codex

CODEX_LB_API_KEY

https://codex-lb.vvicat.dev/backend-api/codex · wire_api=responses

Codex 中转(Responses API)

与 Codex CLI 配置对应关系:

model = "gpt-5.4"
model_reasoning_effort = "medium"
model_provider = "codex-lb"
env_key = "CODEX_LB_API_KEY"

[model_providers.codex-lb]
base_url = "https://codex-lb.vvicat.dev/backend-api/codex"
wire_api = "responses"

在 WebUI Providers → Codex 中转 填写:

字段

API 密钥

CODEX_LB_API_KEY

Base URL

https://codex-lb.vvicat.dev/backend-api/codex(不要写成 /code

默认模型

gpt-5.4

Wire API

responses

Reasoning Effort

medium

Role 里可把 ui_review / code_review 的 provider 选 codex-lb(或别名 codex),model 填 gpt-5.4

注意/chat/completions 在该中转上返回 405;必须用 Responses 协议。

可选覆盖:CODEX_LB_BASE_URLDEEPSEEK_BASE_URLMOONSHOT_BASE_URLZHIPU_BASE_URLOPENAI_BASE_URL

服务器.md 标签(下一行或同行):deepseekApiKeymoonshotApiKeyzhipuApiKeyopenaiApiKey

Workspace 项目上下文(与 IDE 共用源文件)

MCP 不单独维护记忆文件。传入 workspace(或设置 ORCHESTRATOR_WORKSPACE)后,每个 role 直接从磁盘读取与 Cursor/Codex 相同的源文件并注入 prompt:

路径

说明

AGENTS.md / CLAUDE.md / agent.md

项目级 agent 说明

.cursor/rules/*

Cursor 规则

.learnings/*.md

self-improving 沉淀

profile skills:

加载对应 SKILL.md 全文

git

branch、dirty files、diff --stat

  • orchestrate_run_startroleworkspaceextra_context(仅本次 run)

  • orchestrate_workspace_context:预览将读取哪些文件

MCP 工具

工具

说明

orchestrate_list_providers

各 provider 是否已配置 key

orchestrate_provider_check

检查单个 provider

orchestrate_effective_config

不调用模型,查看 MCP 当前实际会用的 profile / role / provider / model

orchestrate_workspace_context

预览 workspace 项目上下文

orchestrate_run_start

创建一个只绑定单个 Review 角色的审查 run(支持 workspace

orchestrate_dispatch

执行 run 创建时绑定的唯一 Review 角色

orchestrate_status / orchestrate_handoff

查询单角色审查状态和 handoff

orchestrate_role_override

运行时更换当前 run 角色的 provider/model

Provider 选择规则

  • Providers 页只表示“这个厂商已配置 key / base_url / 默认模型”。

  • 真正决定 MCP 执行使用哪个 provider 的是 Roles 页;保存后写入 data/roles.local.json

  • 调用前可先跑 orchestrate_effective_config(role="ui_review"),确认有效配置,避免误跑到 YAML 默认值。

  • 先调用 orchestrate_run_start(goal="...", role="ui_review") 创建单角色 run,再调用 orchestrate_dispatch(run_id) 执行该角色。

  • 每个 run 只能绑定一个 Review 角色;MCP 不提供串联或并联多个 Review 角色的入口。

  • role_overrides_json 支持短写:{"provider":"codex-lb","model":"gpt-5.4"}{"code_review":{"model":"codex/gpt-5.4"}}

  • 兼容旧入参:review 会映射到 general_review

Cursor 配置

本仓库已在 .cursor/mcp.json 写好配置(stdio 模式,不用手动 ./start.sh)。

  1. 用 Cursor 打开 localopenclaw 仓库根目录

  2. Settings → Tools & MCP,确认 orchestrator-mcp 已启用(绿点)

  3. 若没有,点 Refresh 或重启 Cursor

若仍看不到:Settings → MCP → Edit Config,确认项目级 .cursor/mcp.json 已加载。

方式 A(推荐,已写入项目):Cursor 自动拉起进程

{
  "mcpServers": {
    "orchestrator-mcp": {
      "command": ".../orchestrator-mcp/.venv/bin/python",
      "args": ["-m", "orchestrator_mcp"],
      "env": {
        "PYTHONPATH": ".../orchestrator-mcp/src",
        "ORCHESTRATOR_MCP_TRANSPORT": "stdio"
      }
    }
  }
}

方式 B:先 ./start.sh,再用 URL(需保持终端进程运行)

{
  "mcpServers": {
    "orchestrator-mcp": {
      "url": "http://127.0.0.1:18067/mcp"
    }
  }
}
F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    MCP server that enables AI agents to run a deterministic orchestration loop with decomposition, subagent execution, and review feedback across multiple LLM backends.
    53
    MIT
  • A
    license
    -
    quality
    B
    maintenance
    MCP server that enables agents to dynamically switch between multiple AI models (OpenAI, Anthropic, Google, etc.) with unified protocol-driven configuration and capability discovery.
    Apache 2.0
  • A
    license
    -
    quality
    B
    maintenance
    A multi-agent orchestrator MCP server that enables LLM agents to collaborate on complex tasks by automating role assignment, inter-agent communication, and artifact integration. It provides tools for task decomposition, agent assignment, status tracking, code review, and result merging.
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.

  • Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.

  • MCP server for generating rough-draft project plans from natural-language prompts.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Immmmmmortal1/orchestrator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server