consult_codex
Direct CLI bridge for simple queries with structured JSON output by default.
How to use it
consult_codex is exposed by the Codex Bridge MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the consult_codex tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Codex Bridge
claude mcp add codex-bridge -s user -- uvx codex-bridgeOther tools in Codex Bridge (9)
Batch processing for multiple queries - perfect for CI/CD automation.
CLI bridge with stdin content for pipeline-friendly execution.
(string): Working directory for the query (default: current directory)
(string): Output format - "text", "json", or "code" (default: "json")
(string): The prompt to process the stdin content
(list): List of query dictionaries with 'query' and optional 'timeout'
(string): The question or prompt to send to Codex
(string): Content to pipe as stdin (file contents, diffs, logs)
(int, optional): Timeout in seconds (recommended: 60-120, default: 90)