agent-fleet-mcp
Runs and orchestrates the OpenAI Codex CLI (codex) as a supported harness, delegating tasks to local/remote Codex agents, resuming sessions, and inspecting their streamed output.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-fleet-mcp run the failing tests on gpu1 with claude and wait for the results"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-fleet
Unified cross-harness MCP server and CLI for orchestrating local and remote AI coding agents.
agent-fleet provides one clean interface to discover, health-check, invoke, stream/inspect outputs from, resume, and transfer files across heterogeneous AI coding tools running locally or on remote GPU servers—including sandboxed containers with strict network egress verification.
Supported Harnesses & Transports
Harnesses: Claude Code (
claude), OpenAI Codex CLI (codex), DeepSeek Harness (dsh), Antigravity (agy).Transports:
local: Native subprocess execution (inherits user's native tool profile & session history).ssh: Direct remote execution over BatchMode SSH.ssh+sbc: Sandboxed container execution (sbc exec) with fail-closed egress verification (sbc statuscheck againstrequired_egress) and automatic host ↔ sandbox path mapping.
Related MCP server: ForgeBridge
Exposed Tools (MCP & CLI)
Both the stdio MCP server (agent-fleet-mcp) and CLI (agent-fleet) expose identical capabilities:
Tool / Subcommand | Purpose |
| List configured endpoints, account labels, transports, and egress constraints |
| Live probe of SSH/sandbox reachability, egress IP verification, auth status, and usage totals |
| Delegate tasks ( |
| Flexible output inspection: |
| Distinguish |
| Terminate local, remote, or tmux-backed tasks cleanly |
| Push/pull files via |
Installation
uv venv ~/.local/state/agent-fleet/venv --python 3.12
uv pip install --python ~/.local/state/agent-fleet/venv/bin/python -e .Copy examples/registry.example.yaml to ~/.config/agent-fleet/registry.yaml (or point AGENT_FLEET_CONFIG to your private config file kept outside this public repo).
MCP Registration
Generic mcp_config.json (Antigravity / Claude / Cursor, etc.):
{
"mcpServers": {
"agent-fleet": {
"command": "/path/to/agent-fleet-mcp",
"env": {
"AGENT_FLEET_CONFIG": "/path/to/your/private/registry.yaml",
"AGENT_FLEET_CALLER": "antigravity"
}
}
}
}Codex (~/.codex/config.toml):
[mcp_servers.agent_fleet]
command = "/path/to/agent-fleet-mcp"
[mcp_servers.agent_fleet.env]
AGENT_FLEET_CONFIG = "/path/to/your/private/registry.yaml"
AGENT_FLEET_CALLER = "codex"CLI usage (for DeepSeek Harness dsh or shell scripts):
agent-fleet list
agent-fleet status
agent-fleet run gpu1.sbc.claude "Summarize training logs in ~/work" --wait-sec 30 --tmux
agent-fleet output <run_id> --view finalSecurity & Design Principles
Zero secrets in repo: All endpoints, SSH aliases, account labels, and private host paths live in a user-managed
registry.yamloutside the package repository.Follow native host configurations: Respects each host/sandbox tool's own configuration instead of injecting conflicting permission overrides.
Fail-closed sandbox guard:
ssh+sbctargets withrequired_egressrefuse execution ifsbc statusreportsrunning=false,exit_verified=false, or an unexpected exit IP.Anti-recursion:
AGENT_FLEET_DEPTHenforcesmax_recursion_depth(default2) across delegated calls.Human-visible sessions: Every delegated run persists natively in the target tool's session store and returns a copy-pasteable
resume_cmd(plus optionaltmux_attach_cmd).
Available Tools
7 toolsfleet_listC
List configured local & remote AI harness endpoints, account labels, and egress constraints.
Inputs: harness, machine.
fleet_outputA
Read output from a fleet run cleanly.
Views:
'summary': status, timing, path mapping, recent 6 events, final_text preview
'final': clean final answer + session_id + usage (best for agent handoff)
'delta': incremental bytes/events starting from
cursor(returnsnext_cursor)'tail': ANSI-stripped tail of stdout/stderr logs
'events': recent structured JSON events
'raw': absolute paths to stdout.log, stderr.log, meta.json Pass wait_sec > 0 to block quietly until completion or new output arrives.
Inputs: run_id (required), view, cursor, wait_sec, +1 more.
fleet_runB
Delegate a task (or resume native session_id) on a configured target harness.
Use wait_sec (e.g. 20-45) to collect quick tasks in one call; longer tasks return run_id & resume_cmd.
Set use_tmux=True on remote servers to keep an attachable live tmux pane.
Respects each host's native tool configuration; enforces fail-closed sandbox egress checks on ssh+sbc.
Inputs: prompt (required), target (required), cwd, mode, +8 more.
fleet_runsC
List runs: origin='agent_call' (MCP/CLI delegations), 'human' (native local sessions), or 'all'.
Inputs: limit, origin, status, target.
fleet_statusC
Check live reachability, sandbox .87 egress compliance, auth login state, and usage totals.
Inputs: target, include_usage.
fleet_stopC
Stop a running local, remote, or tmux-backed agent-fleet task.
Inputs: run_id (required).
fleet_transferC
Push or pull files/directories to a target, auto-mapping ssh+sbc sandbox paths to host storage.
Inputs: target (required), direction (required), local_path (required), remote_path (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
fleet_run (delegate) vs fleet_runs (history) differ only by a plural, and fleet_list (configured endpoints) vs fleet_status (live health) vs fleet_runs (run history) all describe inspection of the same fleet object, which invites misselection. Descriptions do clarify each intent, so an attentive agent can disambiguate, but the singular/plural pair especially requires reading the description.
All tools share the fleet_ prefix and snake_case, which is predictable. Minor deviation: the set mixes verbs (list, stop, transfer, run) with bare nouns (status, runs, output), so the suffix does not signal the action consistently.
Seven tools is well-scoped for a fleet orchestration server: discovery, health, delegation, history, output, transfer, and stop each earn a distinct role. No filler tools and no obvious missing niche within the count.
The run lifecycle is covered end to end: list targets, check status, delegate/resume, stream output, list runs, stop, and move files. The notable gap is target lifecycle management—no tool to register, edit, or remove a harness endpoint—so configuration must happen outside the server.
Maintenance
Related MCP Connectors
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
The cloud for agents. Tools for AI agents to register, build, and deploy other agents. Zero human required.
Connect, monitor, and control AI agents — tasks, approvals, schedules, and governance.
Command center for developers coordinating AI coding agents across projects.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to securely create, manage, and monitor local processes such as dev servers, docker-compose, and test watchers, including restarting, checking status, and retrieving logs via MCP, HTTP, or WebSocket messaging.36 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables local, permissioned development workflows from compatible AI clients, including filesystem editing, interactive terminals, durable jobs, Git operations, and semantic browser testing.44 npm1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables agents to spawn, monitor, and control CLI coding agents running in isolated tmux sessions, with verified input injection, redacted pane capture, fleet and per-session state classification, lineage tracking, blocking exec with exit codes, cross-agent messaging, waste analytics, and log/ledger reading. Ownership checks, policy controls, and audit events keep every control action safe by default.Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables agents to discover and configure model routing, delegate coding tasks with context files, scope restrictions, and verification, and resume existing sessions with delta instructions or review feedback.MIT