Skip to the content.

Connect Codex to Axiolex via MCP

New to Axiolex? Start with the overview or the quick start guide.

Codex connects to Axiolex through the @axiolex/mcp-gateway stdio proxy, which bridges Codex’s stdio MCP transport to Axiolex’s Streamable HTTP endpoint. Codex can discover the most relevant tool for a request and execute it through Axiolex’s dispatcher — without any secrets on the client.

What Codex sees

When connected, Codex can call three MCP tools:

Prerequisites

Start the Axiolex server:

git clone https://github.com/vrraj/axiolex.git && cd axiolex
make install
make start

MCP is served at http://localhost:9700/mcp.

Setup via npx proxy

Codex uses a TOML configuration file at ~/.codex/config.toml. MCP servers are defined under [mcp_servers.<name>].

Add the Axiolex gateway:

[mcp_servers.axiolex]
command = "npx"
args = ["-y", "@axiolex/mcp-gateway", "--endpoint", "http://localhost:9700/mcp"]

Restart Codex after saving the config.

Enterprise deployment

Point the proxy at the shared Axiolex URL:

[mcp_servers.axiolex]
command = "npx"
args = ["-y", "@axiolex/mcp-gateway", "--endpoint", "https://axiolex.internal.corp/mcp"]

The server holds all provider credentials — nothing secret lives on the client.

Example prompts

Once connected, try prompts like:

These are example prompts we tested with based on the tools configured in our Axiolex deployment. Connect your own MCP servers, A2A agents, and local tools, then run queries relevant to your catalog.

Notes