Skip to main content

MCP wrapper for controlling Codex app-server threads, turns, plan mode, and steering.

Project description

Super Agents

Super Agents is a Python MCP server and library for controlling local Codex app-server sessions asynchronously.

It gives AI agents a compact tool surface for creating named Codex threads, starting turns, checking progress, steering active work, cancelling turns, answering app-server callbacks, and tracking lightweight local session state.

Super Agents is used by Openbase Coder, but it can also be run directly by any MCP client that needs to coordinate Codex app-server threads without blocking on long-running turns.

Install

The recommended install path is uv tool install, which installs the super-agents-mcp command in an isolated tool environment:

uv tool install super-agents

Then register super-agents-mcp with your MCP client.

pipx also works:

pipx install super-agents

For library-only use inside an existing Python environment:

python -m pip install super-agents

Requirements

  • Python 3.11+
  • A running local codex app-server
  • An MCP-compatible client such as Codex, Claude Desktop, or Openbase Coder

By default, Super Agents connects to Codex at ws://127.0.0.1:4500.

MCP Server

Run the MCP server with:

super-agents-mcp

For local development from a checkout:

uv sync --extra dev
uv run super-agents-mcp

Example MCP server command:

uvx --from super-agents super-agents-mcp

If you are running from a source checkout instead of an installed package:

uv --directory /path/to/super-agents run super-agents-mcp

Start Codex App Server

Super Agents talks to the Codex app-server over a websocket. Start Codex with a local websocket listener before using the MCP tools:

codex app-server --listen ws://127.0.0.1:4500

Openbase Coder users usually do not need to run this by hand; the codex-app-server background service owns that process.

Add To Codex

Install the package, then register the MCP server:

uv tool install super-agents
codex mcp add super-agents -- super-agents-mcp

If your Codex app-server is listening somewhere other than the default ws://127.0.0.1:4500, pass SUPER_AGENTS_WS_URL when registering the server:

codex mcp add \
  --env SUPER_AGENTS_WS_URL=ws://127.0.0.1:4500 \
  super-agents -- super-agents-mcp

Check that Codex can see the server:

codex mcp list
codex mcp get super-agents

Add To Claude Code

Install the package, then register the MCP server:

uv tool install super-agents
claude mcp add --scope user super-agents -- super-agents-mcp

For a non-default Codex app-server websocket URL:

claude mcp add \
  --scope user \
  -e SUPER_AGENTS_WS_URL=ws://127.0.0.1:4500 \
  super-agents -- super-agents-mcp

Check that Claude Code can see the server:

claude mcp list
claude mcp get super-agents

For project-local installs, use --scope project instead of --scope user.

Configuration

Super Agents is configured with environment variables:

Variable Default Description
SUPER_AGENTS_WS_URL ws://127.0.0.1:4500 Codex app-server websocket URL
SUPER_AGENTS_MODEL gpt-5.4 Default model for new plan/default turns
SUPER_AGENTS_STATE_FILE ~/.super-agents/state.json Local session metadata file
SUPER_AGENTS_QUEUE_DIR next to the state file Directory for queued turn files

Super Agents does not silently approve app-server callbacks. If plan mode asks a question or a sandboxed turn asks for approval, inspect the pending request and answer it explicitly with codex_answer_request.

Tools

The MCP server exposes these tools:

  • codex_app_server_status: check app-server readiness, websocket connection, pending callbacks, and active turns.
  • super_agents_start: create a named Codex app-server thread.
  • super_agents_resume: resume a named thread.
  • super_agents_read: read a named or id-addressed thread.
  • super_agents_rename: rename a Codex app-server thread.
  • codex_answer_request: answer a pending app-server callback.
  • super_agents_sessions: list named Codex app-server threads.
  • super_agents_active: list active tracked agents with compact previews.
  • super_agents_status: return a compact status list for voice/status checks.
  • super_agents_resolve: resolve a name to the latest matching active thread.
  • super_agents_progress: inspect progress by name, thread id, or turn id.
  • super_agents_steer: send steering input to an active turn.
  • super_agents_cancel: cancel an active turn.
  • super_agents_start_turn: submit follow-up input through app-server turn/start.
  • super_agents_queue_turn: queue a follow-up prompt to run after the active turn completes.
  • super_agents_recent: list recent named Codex app-server threads.

Default responses are intentionally compact. Full turns, tracked event transcripts, diffs, and large previews are opt-in through each tool's detail flags.

Python API

Openbase Coder and other Python applications can use the app-server client directly:

from super_agents.app_server_client import CodexAppServerClient

client = CodexAppServerClient()
try:
    status = await client.status()
finally:
    await client.close()

The public modules are organized so applications can reuse the websocket client, session metadata helpers, routine state, and queue handling without starting the stdio MCP server.

Development

From this repository:

uv sync --extra dev
uv run pytest
uv run ruff check .
uv build

License

Super Agents is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

super_agents-0.1.0.tar.gz (257.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

super_agents-0.1.0-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file super_agents-0.1.0.tar.gz.

File metadata

  • Download URL: super_agents-0.1.0.tar.gz
  • Upload date:
  • Size: 257.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for super_agents-0.1.0.tar.gz
Algorithm Hash digest
SHA256 318aac91d210e76eab214b4bff3a2486281a09f6b78b949cf582ae99940b2abe
MD5 a192699962bcae61846dcc46245d0e41
BLAKE2b-256 a98c14b169164982b9c29c5e6e8c03fed51975ac294a03650033b8b58b77f1dc

See more details on using hashes here.

File details

Details for the file super_agents-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: super_agents-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for super_agents-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe7d1a658f37ea716f724341a5ae32713d50670381d085458fc06a533251c55
MD5 2b8d4527dc3d5a350b85ad80378dfa63
BLAKE2b-256 635fb024ba1d04e8d9a31d0d749653ef303248814efe264888a8bf39cd343c50

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page