Skip to main content

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 Claude Agent SDK claude-agent-sdk (bundles the Claude Code CLI, ~100 MB)
codex Codex App Server openai-codex (bundles the Codex CLI, ~120–150 MB)
antigravity Antigravity SDK google-antigravity (bundles the Antigravity Go harness, ~40 MB)
all 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.

Tool: prompt

Runs one agent turn and returns its final answer.

Parameter Default Meaning
backend required claude, codex, or antigravity
prompt required Task for the agent
cwd required Absolute project directory
profile read_only Permission profile (below)
session_id — Continue this conversation
fork false Branch session_id into a new conversation
model provider default Model id or alias
timeout 600 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_only Read/Glob/Grep; git diff/log/show with --no-ext-diff --no-textconv
workspace_write Plus file edits inside cwd and Bash inside the OS sandbox
full_access 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
NEXUS_CLAUDE_SETTINGS_PROFILE isolated Claude settings to load: isolated (none), project (project .claude/), inherit (all, including user settings). Profiles still bound every tool call.

Migrating from v1

v1 v2
prompt(cli="codex") (codex exec) prompt(backend="codex", cwd=…) (App Server)
prompt(cli=…, execution_mode="yolo") prompt(backend=…, profile="full_access", cwd=…)
batch_prompt Parallel prompt calls from the client
agent_start / agent_status / agent_result prompt (synchronous)
agent_continue / agent_fork prompt(session_id=…) / prompt(session_id=…, fork=true)
agent_review prompt(profile="read_only", prompt="Review …")
agent_cancel Cancel the tool call in the client
agent_respond, elicitation Removed — choose a profile instead
Preferences, model tiers, MCP prompts Removed
OpenCode runners and tools Removed
NEXUS_* variables Removed except NEXUS_CLAUDE_SETTINGS_PROFILE

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

Metadata

Release files for nexus-mcp 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nexus-mcp 2.1.1
File Size Uploaded
nexus_mcp-2.1.1.tar.gz 154.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nexus-mcp 2.1.1
File Interpreter ABI Platform
nexus_mcp-2.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 172.7 kB

Release files / nexus_mcp-2.1.1.tar.gz

Download URL nexus_mcp-2.1.1.tar.gz
Size 154.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7a63c3c36093f0ec37c9317a851822e5a9a59e35e1b701d7502d85ea2976a6c
BLAKE2b-256 checksum
How to use checksums
e97bb3c4451737045f32f08a677766d503dba5ee5fde4c694173d5251b52df72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Release files / nexus_mcp-2.1.1-py3-none-any.whl

Download URL nexus_mcp-2.1.1-py3-none-any.whl
Size 18.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1c49eed616b3098e035c3abe0b5b6ec20316cc0f96a518b506854948683487b
BLAKE2b-256 checksum
How to use checksums
b1d40d2dd5f30c8690a5829e81060ce7f61683e86a2a36eddc0d5dfa9787f679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.1.1 This release

2 release files

2.1.0

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

0.11.0

2 release files

0.10.0

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page