frontier-orchestrator
Multi-agent orchestration MCP server that lets Claude Code delegate backend, frontend, and tooling tasks to specialized AI agents (Codex, Kimi, Grok) with contract-first sequencing and workspace mutation guards.
README
Frontier Orchestrator — Multi-Agent Orchestration for Claude Code
Frontier Orchestrator is a Model Context Protocol (MCP) server and Claude Code skill that turns Claude into the lead engineer of a multi-agent team. Claude decomposes tasks, defines cross-stack contracts, and verifies results — while delegating:
- Backend work (APIs, databases, migrations, auth, infrastructure, security, backend tests) to OpenAI Codex
- Frontend and design work (UI, UX, components, styling, accessibility, animation, client state) to Kimi Code
- Tooling and mechanical maintenance (build configuration, dependency upgrades, CI, release automation, generated boilerplate, repository transformations, test/lint cleanup) to Grok Build
Each specialist runs as a sandboxed subprocess in your repository, receives a role-scoped brief with explicit file ownership and acceptance criteria, and reports back in a structured format that Claude reviews before anything reaches you.
Why multi-agent orchestration?
Frontier coding agents have different strengths. Instead of asking one model to do everything, Frontier Orchestrator routes each part of a full-stack task to the agent best suited for it — with enforced coordination discipline so agents never trample each other's changes:
- Domain-first routing — backend behavior goes to Codex, frontend and UX behavior goes to Kimi, and only domain-neutral tooling or mechanical maintenance goes to Grok unless you explicitly override routing. Grok is never selected solely because it is faster.
- Workspace mutation guard — two specialists cannot edit overlapping directories at the same time unless Claude explicitly certifies their file scopes are disjoint.
- Contract-first sequencing — for an unknown cross-stack interface, Codex analyzes the backend contract first; Kimi builds against the accepted contract. A frontend task can never silently invent a backend API.
- Read-only modes —
analyzeandreviewdelegations run the specialist CLI in a read-only sandbox; onlyimplementmay edit the workspace.
How it works
flowchart LR
U[You] --> C[Claude Code<br/>lead engineer]
C -->|delegate_backend| M[frontier-orchestrator<br/>MCP server]
C -->|delegate_frontend| M
C -->|delegate_build| M
M -->|codex exec<br/>sandboxed| X[OpenAI Codex<br/>backend specialist]
M -->|kimi --print<br/>sandboxed| K[Kimi Code<br/>frontend specialist]
M -->|grok -p<br/>sandboxed| G[Grok Build<br/>tooling/maintenance specialist]
X --> M
K --> M
G --> M
M -->|structured JSON result| C
C -->|reviewed, integrated,<br/>verified result| U
The MCP server exposes four tools:
| Tool | Purpose |
|---|---|
specialist_status |
Check that the Codex, Kimi, and Grok CLIs are installed and report versions |
delegate_backend |
Send a bounded backend task to Codex (analyze / review / implement) |
delegate_frontend |
Send a bounded design/frontend task to Kimi (analyze / review / implement) |
delegate_build |
Send domain-neutral tooling or mechanical maintenance to Grok Build (analyze / review / implement) |
Each delegation takes a structured request — task, mode, context, file_scope, acceptance_criteria, optional model override, and a hard timeout_seconds — and returns JSON with the specialist's final message, exit code, duration, and diagnostics on failure.
The companion orchestrate-specialists skill (in .claude/skills/) teaches Claude the domain-first routing rules, backend-first and frontend-first sequencing patterns, Grok's tooling and maintenance boundary, parallelization preconditions, and guardrails (see routing-contract.md).
Quick start
Requirements: Node.js 20+, Claude Code, and authenticated codex, kimi, and grok CLIs for the specialists you intend to use. A missing optional CLI only makes that specialist unavailable.
git clone https://github.com/luckeyfaraday/frontier-orchestrator.git
cd frontier-orchestrator
npm install
npm run build
Launch Claude Code from this repository. Claude discovers the project-scoped .mcp.json and the skill automatically. Approve the MCP server when prompted, then run:
/orchestrate-specialists
Verify the connection with /mcp or:
claude mcp get frontier-orchestrator
Use from any project
Install the MCP server at user scope:
npm install && npm run build && npm link
claude mcp add --scope user frontier-orchestrator -- frontier-orchestrator
Copy the skill to user scope:
mkdir -p ~/.claude/skills
cp -R .claude/skills/orchestrate-specialists ~/.claude/skills/
Restart Claude Code after changing MCP configuration.
Example delegation
A typical full-stack feature flows like this:
- Claude inspects the repo and writes acceptance criteria plus file scopes for each side.
delegate_backendwithmode: analyze— Codex proposes the API contract.- Claude normalizes the contract and passes it to Kimi.
delegate_backendanddelegate_frontendwithmode: implement— run sequentially, or in parallel only when file scopes are disjoint (allow_concurrent_mutation: true). Separate domain-neutral tooling or mechanical maintenance can go todelegate_build; a stable application contract does not transfer backend or frontend ownership to Grok.- Claude inspects every changed file, runs the integrated checks, fixes small integration defects, and reports one unified result.
Configuration
The server inherits existing Codex, Kimi, and Grok authentication from their CLIs. All settings are environment variables:
| Environment variable | Default | Purpose |
|---|---|---|
FRONTIER_PROJECT_ROOT |
CLAUDE_PROJECT_DIR |
Base workspace for relative paths |
FRONTIER_ALLOWED_ROOTS |
project root | Additional allowed roots, separated by the platform path delimiter |
FRONTIER_CODEX_CLI |
codex |
Codex executable or absolute path |
FRONTIER_KIMI_CLI |
kimi |
Kimi executable or absolute path |
FRONTIER_GROK_CLI |
grok |
Grok executable or absolute path |
FRONTIER_MAX_CONCURRENCY |
2 |
Maximum simultaneous specialist processes |
FRONTIER_MAX_CAPTURED_BYTES |
2000000 |
Per-stream child output retained in memory |
FRONTIER_MAX_RESULT_CHARS |
30000 |
Maximum specialist text returned to Claude |
Implementation calls are serialized per working directory unless Claude explicitly sets allow_concurrent_mutation: true. The skill only permits that when file scopes are disjoint and the cross-stack contract is stable.
FAQ
What is Frontier Orchestrator? A local stdio MCP server plus a Claude Code skill that lets Claude orchestrate OpenAI Codex, Kimi Code, and Grok Build as specialists — Codex for backend engineering, Kimi for design and frontend, and Grok for domain-neutral tooling and mechanical maintenance — while Claude remains responsible for decomposition, contracts, review, and integration.
How is this different from Claude Code subagents? Subagents run more instances of Claude. Frontier Orchestrator routes work to different frontier models by domain and workload strength, wrapped in file-scope and mutation guardrails, with Claude reviewing everything before completion.
Does it need API keys?
No keys of its own. It shells out to the codex, kimi, and grok CLIs and inherits whatever authentication those CLIs already have.
Can specialists run in parallel?
Yes, up to FRONTIER_MAX_CONCURRENCY processes — but workspace mutations are serialized per directory unless Claude explicitly certifies disjoint file scopes.
Is it safe to let specialists edit my repo?
analyze and review modes are read-only. implement uses each provider's workspace-editing mode and instructs every specialist to stay inside its declared file scope; Claude inspects all diffs before presenting completion.
Troubleshooting
LLM not setfrom Kimi means no provider/model is configured. Runkimi login, complete the browser authorization and model selection, then retry.- Authentication errors from Grok mean its CLI session is unavailable or expired. Run
grok login, then confirm the account's available models withgrok models. - A project-scoped MCP server appears as pending until you open Claude Code in the repository and approve
.mcp.json. specialist_statuschecks executable availability and versions; a real delegation is the definitive authentication/configuration check.
Development
npm run check # typecheck
npm test # build + node --test
Source layout: src/index.ts (MCP server and tools), src/specialists.ts (Codex, Kimi, and Grok CLI invocations and specialist prompts), src/coordinator.ts (concurrency gate and workspace mutation guard), src/config.ts (environment configuration and path allow-listing), src/process.ts (subprocess lifecycle).
License
MIT © luckeyfaraday
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。