agent-mcp-hub
v0.6.2One MCP server bridging the Codex, Cursor, OpenCode, Claude, and Antigravity CLI agents
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ping
Liveness check for agent-mcp-hub — returns "pong". Read-only, no side effects.
list_agents
List the wrapped coding-agent CLIs and whether each can actually run (edits nothing). Each entry reports `installed` (binary resolves on PATH with the exec bit) and `usable` (a probe succeeded), plus a `reason` when it cannot run; `available` mirrors `usable`. A CLI can be installed but unusable — codex exits 0 from `--version` even when its home is unwritable and no real run can succeed — so prefer `usable`. Read-only; call this first to choose an agent before delegating.
codex
OpenAI Codex — a terminal coding agent (GPT/o-series) that autonomously reads and edits files to implement, refactor, and fix code. Runs the `codex` CLI non-interactively in `cwd` — it can read and edit files there and may take time or use the agent's own model quota — and returns its output. On common failures returns a classified, actionable error (not installed / not authenticated with the exact login command / not configured / timed out / busy / output-limit); other non-zero exits return a clipped stderr/stdout tail. Check availability with list_agents first.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The task or question for the agent, in natural language. |
cwd | string | Working directory for the CLI. Prefer an absolute path; a relative path resolves from the server process's cwd. Not a sandbox — the agent may read/edit any files it can access. |
idleTimeoutMs | integer | Idle/inactivity timeout in milliseconds — the run is killed only if the agent produces NO output for this long (the timer resets on each output chunk; default 300000 = 5 minutes). |
model | string | Optional model id passed through to the CLI, overriding that CLI's configured/default model (e.g. "o3"). Model names are agent-specific. Must match [A-Za-z0-9][A-Za-z0-9._:/-]{0,127} — a flag-shaped… |
timeoutMs | integer | Total runtime cap in milliseconds — the hard upper bound on the whole run once the CLI starts (excludes time queued behind the concurrency limit); the process group is killed if exceeded (default 18… |
cursor
Cursor Agent (cursor-agent) — Cursor's repo-aware autonomous coding agent; implements and edits code from a natural-language task. Runs the `cursor-agent` CLI non-interactively in `cwd` — it can read and edit files there and may take time or use the agent's own model quota — and returns its output. On common failures returns a classified, actionable error (not installed / not authenticated with the exact login command / not configured / timed out / busy / output-limit); other non-zero exits return a clipped stderr/stdout tail. Check availability with list_agents first.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The task or question for the agent, in natural language. |
cwd | string | Working directory for the CLI. Prefer an absolute path; a relative path resolves from the server process's cwd. Not a sandbox — the agent may read/edit any files it can access. |
idleTimeoutMs | integer | Idle/inactivity timeout in milliseconds — the run is killed only if the agent produces NO output for this long (the timer resets on each output chunk; default 300000 = 5 minutes). |
model | string | Optional model id passed through to the CLI, overriding that CLI's configured/default model (e.g. "o3"). Model names are agent-specific. Must match [A-Za-z0-9][A-Za-z0-9._:/-]{0,127} — a flag-shaped… |
timeoutMs | integer | Total runtime cap in milliseconds — the hard upper bound on the whole run once the CLI starts (excludes time queued behind the concurrency limit); the process group is killed if exceeded (default 18… |
opencode
OpenCode — an open-source, provider-agnostic coding agent for agentic code changes; its model defaults to the user's opencode config unless a model is provided. Prompts must not start with '-'. Runs the `opencode` CLI non-interactively in `cwd` — it can read and edit files there and may take time or use the agent's own model quota — and returns its output. On common failures returns a classified, actionable error (not installed / not authenticated with the exact login command / not configured / timed out / busy / output-limit); other non-zero exits return a clipped stderr/stdout tail. Ch…
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The task or question for the agent, in natural language. |
cwd | string | Working directory for the CLI. Prefer an absolute path; a relative path resolves from the server process's cwd. Not a sandbox — the agent may read/edit any files it can access. |
idleTimeoutMs | integer | Idle/inactivity timeout in milliseconds — the run is killed only if the agent produces NO output for this long (the timer resets on each output chunk; default 300000 = 5 minutes). |
model | string | Optional model id passed through to the CLI, overriding that CLI's configured/default model (e.g. "o3"). Model names are agent-specific. Must match [A-Za-z0-9][A-Za-z0-9._:/-]{0,127} — a flag-shaped… |
timeoutMs | integer | Total runtime cap in milliseconds — the hard upper bound on the whole run once the CLI starts (excludes time queued behind the concurrency limit); the process group is killed if exceeded (default 18… |
claude
Claude Code — Anthropic's coding agent for complex implementation, refactoring, and code review. Runs the `claude` CLI non-interactively in `cwd` — it can read and edit files there and may take time or use the agent's own model quota — and returns its output. On common failures returns a classified, actionable error (not installed / not authenticated with the exact login command / not configured / timed out / busy / output-limit); other non-zero exits return a clipped stderr/stdout tail. Check availability with list_agents first.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The task or question for the agent, in natural language. |
cwd | string | Working directory for the CLI. Prefer an absolute path; a relative path resolves from the server process's cwd. Not a sandbox — the agent may read/edit any files it can access. |
idleTimeoutMs | integer | Idle/inactivity timeout in milliseconds — the run is killed only if the agent produces NO output for this long (the timer resets on each output chunk; default 300000 = 5 minutes). |
model | string | Optional model id passed through to the CLI, overriding that CLI's configured/default model (e.g. "o3"). Model names are agent-specific. Must match [A-Za-z0-9][A-Za-z0-9._:/-]{0,127} — a flag-shaped… |
timeoutMs | integer | Total runtime cap in milliseconds — the hard upper bound on the whole run once the CLI starts (excludes time queued behind the concurrency limit); the process group is killed if exceeded (default 18… |
agy
Google Antigravity (agy) — Gemini-powered autonomous coding agent that reads and edits files to implement, refactor, and fix code. Runs the `agy` CLI non-interactively in `cwd` — it can read and edit files there and may take time or use the agent's own model quota — and returns its output. On common failures returns a classified, actionable error (not installed / not authenticated with the exact login command / not configured / timed out / busy / output-limit); other non-zero exits return a clipped stderr/stdout tail. Check availability with list_agents first.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The task or question for the agent, in natural language. |
cwd | string | Working directory for the CLI. Prefer an absolute path; a relative path resolves from the server process's cwd. Not a sandbox — the agent may read/edit any files it can access. |
idleTimeoutMs | integer | Idle/inactivity timeout in milliseconds — the run is killed only if the agent produces NO output for this long (the timer resets on each output chunk; default 300000 = 5 minutes). |
model | string | Optional model id passed through to the CLI, overriding that CLI's configured/default model (e.g. "o3"). Model names are agent-specific. Must match [A-Za-z0-9][A-Za-z0-9._:/-]{0,127} — a flag-shaped… |
timeoutMs | integer | Total runtime cap in milliseconds — the hard upper bound on the whole run once the CLI starts (excludes time queued behind the concurrency limit); the process group is killed if exceeded (default 18… |
run_all
Fan the SAME prompt out to every enabled agent concurrently and return each agent's answer, labelled per agent — for comparing agents or cross-checking a result. Spawns every CLI (each can read/edit files in `cwd`) so it can be slow or use several agents' quotas; one confirmation covers the whole batch.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The task or question to send to every agent, in natural language. |
cwd | string | Working directory for every CLI. Prefer an absolute path; a relative path resolves from the server process's cwd. Not a sandbox. |
idleTimeoutMs | integer | Per-agent idle/inactivity timeout in milliseconds — killed only if the agent produces NO output for this long (resets on each output chunk; default 300000 = 5 minutes). |
model | string | Optional model id applied to EVERY agent as a fallback. Model namespaces do not overlap between agents, so a single value is usually valid for only one of them — prefer `models` for a fan-out. Must… |
models | object | Per-agent model overrides, e.g. {"codex":"o3","agy":"gemini-3.6-flash-low"}. Takes precedence over `model` for the agents named; any agent not listed falls back to `model`, then to its own CLI default… |
timeoutMs | integer | Per-agent TOTAL runtime cap in milliseconds once each CLI starts (process group killed if exceeded; default 1800000 = 30 minutes). |
review_change
Run the `runner` agent in `cwd` (which edits files), capture the concrete `git diff` of the change, then have the `reviewer` agent judge it and return a PASS/WARN/FAIL verdict along with the runner output, the diff, and the review. Requires a git worktree. Newly-created (untracked) files are reviewed by their contents too (bounded per file), not just by name. The diff may include pre-existing changes if the worktree was already dirty.
| Parameter | Type | Description |
|---|---|---|
cwd * | string | Git working tree the runner operates in (REQUIRED) |
prompt * | string | Task or question to send to the runner agent |
reviewer * | string | Adapter name of the agent that judges the change |
runner * | string | Adapter name of the agent that edits files |
model | string | Fallback model for BOTH agents. Only useful when runner and reviewer are the same agent — model namespaces do not overlap, so one value cannot be valid for two different CLIs. For the cross-agent se… |
reviewerModel | string | Model for the REVIEWER agent, overriding `model`. Lets you review with a different engine/tier than the one that wrote the change. |
runnerModel | string | Model for the RUNNER agent, overriding `model`. Use this (not `model`) when runner and reviewer are different agents. |
timeoutMs | integer | Per-agent timeout in ms |