frontier-orchestrator

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.

Category
Visit Server

README

Frontier Orchestrator — Multi-Agent Orchestration for Claude Code

CI License: MIT Node.js 20+

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 — analyze and review delegations run the specialist CLI in a read-only sandbox; only implement may 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:

  1. Claude inspects the repo and writes acceptance criteria plus file scopes for each side.
  2. delegate_backend with mode: analyze — Codex proposes the API contract.
  3. Claude normalizes the contract and passes it to Kimi.
  4. delegate_backend and delegate_frontend with mode: 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 to delegate_build; a stable application contract does not transfer backend or frontend ownership to Grok.
  5. 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 set from Kimi means no provider/model is configured. Run kimi 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 with grok models.
  • A project-scoped MCP server appears as pending until you open Claude Code in the repository and approve .mcp.json.
  • specialist_status checks 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured