Skip to main content
Use runStdioMcpServer to expose Corsair as a local MCP server that Codex spawns on demand.

Install

Create the server script

mcp-server.ts

Configure Codex

Codex reads MCP servers from ~/.codex/config.toml. Add a corsair server:
~/.codex/config.toml
If your credentials aren’t loaded from a .env file, pass them under an env table:
~/.codex/config.toml
Restart Codex after editing the config. Run codex mcp list to confirm corsair is registered.

Usage

Once connected, Codex can call Corsair tools directly:
Codex calls list_operations to discover available endpoints, get_schema to inspect parameters, then run_script to execute.