nexus-mcp
Delegates a single coding task to a Claude Code, Codex, or Antigravity agent in your project directory and returns its final answer.
Run one agent turn with
prompt— requiresbackend(claude|codex|antigravity), a taskprompt, and an absolutecwd; returns{backend, session_id, output, usage}.Continue or branch conversations: pass
session_idto resume, orfork=trueto branch it (not supported by Antigravity). Sessions are stored by the agent and survive nexus-mcp restarts.Pick the model per call via
model(id or alias); omit for the provider default.Bound the turn with
timeout(default 600s), after which the turn is cancelled.Control permissions with
profile:read_only(default: read/glob/grep plus safegit diff/log/show),workspace_write(file edits insidecwdplus sandboxed Bash), orfull_access. Out-of-profile actions are auto-denied — nobody is prompted.Discover backends via the
nexus://backendsresource, which lists each backend's installed status, models, and the install hint for missing extras.Use your existing agent auth (Claude login/
ANTHROPIC_API_KEY,codex login, orGEMINI_API_KEY/Vertex ADC) and optionally setNEXUS_CLAUDE_SETTINGS_PROFILEto control which Claude settings load.Parallelize by issuing multiple
promptcalls from the client (replacing v1'sbatch_prompt).
Integrates the Gemini CLI as a tool, allowing AI models to perform parallelized research, summarization, and content generation using Google's AI models.
Enables interaction with the OpenCode CLI to query models via Ollama and Ollama Cloud, supporting structured outputs and concurrent multi-model comparisons.
nexus-mcp
MCP server that delegates tasks to coding agents — Claude Code via the Claude Agent SDK, Codex via the Codex App Server, and Antigravity via the Antigravity SDK — from any MCP client.
Install
Backends are optional extras; install the ones you use.
Extra | Backend | Adds |
| Claude Agent SDK |
|
| Codex App Server |
|
| Antigravity SDK |
|
| every backend |
uvx --with 'nexus-mcp[all]' nexus-mcp # run directly
pip install 'nexus-mcp[claude]' # or install
pip install 'nexus-mcp[codex]' # Codex only
pip install 'nexus-mcp[antigravity]'Claude Code MCP config:
{ "mcpServers": { "nexus": { "command": "uvx", "args": ["--with", "nexus-mcp[all]", "nexus-mcp"] } } }Authentication is the agent's own: log in with claude, or set ANTHROPIC_API_KEY; for Codex,
log in with codex login (credentials in ~/.codex are shared). Antigravity uses GEMINI_API_KEY,
or Vertex AI with GOOGLE_GENAI_USE_VERTEXAI, GOOGLE_CLOUD_PROJECT, and
GOOGLE_CLOUD_LOCATION, authenticated through Application Default Credentials (ADC). It does not
use Google-account login.
Windows: recent claude-agent-sdk releases ship no Windows wheel with a bundled CLI;
install Claude Code so claude is on PATH.
Related MCP server: wrapmcp
Tool: prompt
Runs one agent turn and returns its final answer.
Parameter | Default | Meaning |
| required |
|
| required | Task for the agent |
| required | Absolute project directory |
|
| Permission profile (below) |
| — | Continue this conversation |
|
| Branch |
| provider default | Model id or alias |
|
| Seconds before the turn is cancelled |
Returns {backend, session_id, output, usage}. Conversations are stored by the agent itself
(~/.claude/projects, $CODEX_HOME/sessions, ~/.nexus-mcp/antigravity), so a session_id keeps
working after nexus-mcp restarts. Antigravity does not support fork=true.
Permission profiles
Actions outside the chosen profile are denied automatically — nobody is prompted.
Profile | Allows |
| Read/Glob/Grep; |
| Plus file edits inside |
| Everything |
Codex enforces profiles with its OS sandbox (read-only, workspace-write, danger-full-access)
and never asks for approval.
Antigravity enforces workspace containment in its harness and uses the OS sandbox for commands.
workspace_write fails if that sandbox is unavailable.
Resource: nexus://backends
JSON list of {name, installed, models, hint}; hint gives the install command for a
missing extra. Codex lists its models; Claude and Antigravity report null (Antigravity does not
provide a model list).
Configuration
Variable | Default | Meaning |
|
| Claude settings to load: |
Migrating from v1
v1 | v2 |
|
|
|
|
| Parallel |
|
|
|
|
|
|
| Cancel the tool call in the client |
| Removed — choose a profile instead |
Preferences, model tiers, MCP prompts | Removed |
OpenCode runners and tools | Removed |
| Removed except |
Development
uv sync --all-extras --all-groups
uv run pytest # unit + e2e
uv run pytest -m integration # real CLI (slow, makes model calls)
uv run mypy src/nexus_mcp && uv run ruff check . && uv run ruff format --check .License
MIT
Available Tools
1 toolpromptPromptBDestructive
Run one turn with a coding agent and return its final answer.
Inputs: cwd (required), prompt (required), backend (required), fork, +4 more. Returns: Final answer of one agent turn.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only a single tool, there is no possibility of confusing it with another, so misselection is impossible. However, there is no sibling tool to distinguish it from, making the dimension trivially satisfied rather than well-designed.
There is only one tool named 'prompt', a bare noun rather than a verb_noun pattern. With a single name there is nothing to be inconsistent with, but the naming itself is vague about what the tool does.
A single tool is far too thin for a server that wraps a coding agent. Core capabilities like starting a session, sending follow-ups, or checking status are absent, leaving the surface severely under-scoped.
Only one fire-and-forget turn is exposed, with no session lifecycle, multi-turn conversation, cancellation, or status operations. This leaves significant gaps for any realistic agent-driven coding workflow.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
One MCP endpoint for Claude, GPT & Gemini: 100+ tools + no-code connectors + agent workers.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server orchestrating local CLI agents (Claude Code, OpenAI Codex, Google Gemini) for cross-validation, second opinions, and persona-driven prompting.18MIT
- AlicenseNot gradedqualityCmaintenanceUniversal MCP server that wraps any CLI tool, enabling AI assistants to run commands via natural language.1MIT
- FlicenseNot gradedqualityCmaintenanceMulti-cloud MCP server that exposes cloud AI models as tools for AI CLI agents, supporting streaming, conversation history, parallel multi-model queries, and dynamic model discovery.2-
- AlicenseNot gradedqualityBmaintenanceMCP server that wraps AI CLI tools — Claude Code, Antigravity CLI, and Codex CLI — so any MCP client can call them as tools.339 npm21MIT