Agent Fleet MCP Server
Click on "Install 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 Servercreate an agent for summarizing meeting notes"
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
Assembles a minimal Claude Agent SDK agent from a problem statement and a capability corpus, then runs and resumes it. The generation path is deterministic — no LLM and no network in it, so the same request and corpus produce a byte-identical agent. Running the agent is the part that talks to the SDK.
The runtime remains Claude Agent SDK-specific: Claude is the supervisor and conversation owner.
Live and generated Claude agents also receive one guarded in-process MCP tool,
mcp__codex__codex_run, for delegating bounded implementation, debugging, and independent-review
work to the local Codex CLI. Codex is a worker capability, not a second fleet runtime or an
authoritative workflow store.
Repository layout
Python only. One PyPI package (claude-sdk-agent-fleet), three subpackages layered so each depends on the ones
below it. pip install claude-sdk-agent-fleet gets the core engine and MCP pool server;
claude-sdk-agent-fleet[api] (or [all]) adds the FastAPI service.
Path | What it is | Run or import | Install |
| core engine: pipeline, router, pool | imported |
|
| FastAPI service over the core | run |
|
| MCP server exposing the pool as tools ( | run |
|
agent_fleet_api ─┐
├─imports──▶ agent_fleet ──imports──▶ capdisc
agent_fleet_mcp ─┘The API front-end carries the web dependencies as an optional extra so the core engine carries none by default. Environment scanning lives in capdisc, a separate, public repo consumed as a pinned git dependency.
Related MCP server: agentforge
Pipeline
ProblemRequest ─▶ recall ─▶ select ─▶ compose ─▶ score ─▶ render
(source) (budget) (AgentSpec) (efficiency) (SDK program)recall — a
CatalogSourceranks the corpus by lexical relevance (a pluggableRanker) and trims to a limit.select — keep candidates above a relevance threshold (plus pinned), capped by tool/skill budgets.
compose — map the selected refs into an
AgentSpecwith a templated system prompt.score — check the spec against tool/skill/prompt budgets (
efficiency).render — emit a runnable Claude Agent SDK program.
Pool
AgentPool (SQLite) keys each pooled agent by a stable AgentKey and stores the AgentSpec and
session id that built it, so a run can be retrieved, resumed against the same live SDK
conversation, or found fuzzily. run_with_capture observes the live message stream to record the
real, resumable session id of every agent a run involves — the top-level agent and each dispatched
subagent. Runs, per-agent runs, and findings are persisted alongside the entry.
Teammates
The pool's primary MCP surface: a hardcoded roster of templated teammates
(src/agent_fleet/engine/teammates.py), addressed by name. spawn_teammate stands one up from
its template (toolkits can pin its capabilities) and runs it in the background; check_teammate
reads the derived status and persisted outcome; message_teammate revives the standing session.
The pool key is teammate.{name}, so the same name always resumes the same conversation.
Consumption is push-style, not poll-in-conversation: set a harness Monitor on check_teammate
rather than re-checking it from inside the conversation. AGENT_FLEET_NOTIFY_COMMAND configures a
Stop-hook shell command that runs when a teammate's run finishes, receiving Claude Code's
hook-input JSON on stdin — the payload identifies the finished session.
Guarded Codex worker
Install and authenticate the Codex CLI once:
codex --version
codex loginEvery Claude fleet run—including named subagents and emitted agent programs—gets codex_run by
default. The tool accepts a self-contained prompt, an absolute canonical Git worktree root, a
read-only or workspace-write sandbox, a supported Codex model, reasoning effort,
timeout, and an optional prior thread UUID. It returns the final message, thread UUID, commands
observed in Codex JSONL, token usage, duration, and bounded failure detail.
Fresh prompts travel over stdin. Codex's documented non-interactive resume form requires a positional prompt, so resumed prompts are capped at 64,000 UTF-8 bytes for macOS process-argument portability; avoid putting secrets in a resume prompt because local process listings can expose command arguments.
The secure defaults are intentional:
cwdmust stay under an absolute, existing operator-allowlisted directory. An empty root list uses the fleet process working directory, except when that directory is the filesystem root or user home; set an explicit narrower allowlist in those cases.read-onlyis the default and Codex receives--ask-for-approval never.workspace-writeis disabled until explicitly enabled, and then accepts only a clean, detached linked Git worktree.the wrapper never uses
--skip-git-repo-check, never invokes a shell, ignores user Codex config for the automated run, explicitly treats the worktree as untrusted so project.codex/config, hooks, rules, and MCP servers do not load, and pins adjacent controls: no command network, web search, extra writable or temporary roots, hooks, apps, remote plugins, nested agents, login shells, or broad command-environment inheritance.runtime/output are bounded, the whole child process group is terminated on macOS and Linux, and common API/service credentials are removed from the Codex process environment.
the pool MCP does not expose a direct Codex endpoint; the running Claude agent is the caller.
Configure the boundary with environment variables:
AGENT_FLEET_CODEX_ENABLED=true
AGENT_FLEET_CODEX_ALLOWED_ROOTS='["/absolute/path/to/repos","/absolute/path/to/worktrees"]'
AGENT_FLEET_CODEX_ALLOW_WORKSPACE_WRITE=false
AGENT_FLEET_CODEX_MAX_TIMEOUT_SECONDS=3600For implementation workers, set AGENT_FLEET_CODEX_ALLOW_WORKSPACE_WRITE=true, create a detached
linked worktree under an allowed root, and pass that exact worktree root to codex_run. Disabling
AGENT_FLEET_CODEX_ENABLED removes the server and tool grant entirely.
Develop
uv sync --extra api
uv run pytest
uv run ruff check
uv run mypy src
make coverage # test coverage, printed to the terminalDetails: docs/OVERVIEW.md · docs/pipeline.md · docs/catalog-boundary.md · docs/live-smoke.md
Coverage
Maintenance
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
- AlicenseAqualityDmaintenanceWraps the Claude Agent SDK as MCP servers, letting you spawn multiple specialized Claude Code agents — each with its own model, tools, system prompt, and personality — from any MCP client.56116ISC
- FlicenseAqualityFmaintenanceMCP server that exposes 300+ AI agents as tools via a single API key. Supports listing agents, invoking any agent with chat-completion style messages, checking agent health, and retrieving platform statistics.53
- Alicense-qualityBmaintenanceMCP 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
- Alicense-qualityDmaintenanceAn MCP server that wraps the Claude Agent SDK, enabling Claude-powered queries, coding tasks, web search, and customizable agent execution using OAuth without an API key.20MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Hosted AgentLux MCP server for marketplace, identity, creator, services, and social flows.
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Magic-Man-us/claude-sdk-agent-fleet'
If you have feedback or need assistance with the MCP directory API, please join our Discord server