- MCP
- CLI
Use If your credentials aren’t loaded from a Restart Codex after editing the config. Run Codex calls
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
.env file, pass them under an env table:~/.codex/config.toml
codex mcp list to confirm corsair is registered.Usage
Once connected, Codex can call Corsair tools directly:list_operations to discover available endpoints, get_schema to inspect parameters, then run_script to execute.