Codex CLI Docs (MCP)
Answer Codex CLI questions by pulling exact, up-to-date text from OpenAI docs via the MCP doc tools. Prefer quoting the docs for commands, flags, and config keys.
Workflow
- •Clarify OS, shell, and whether the user is in interactive or non-interactive usage.
- •Run
mcp__openaiDeveloperDocs__search_openai_docsto locate the most specific page. - •Run
mcp__openaiDeveloperDocs__fetch_openai_docwith an anchor to capture the exact section. - •Respond with steps, commands, and config snippets plus source URLs.
- •If docs do not cover the case, say so and ask a targeted follow-up.
Canonical sources
Use references/doc-index.md as the starting index of Codex CLI pages and common topics. Load it only when needed.
Accuracy rules
- •Do not guess flags, file paths, or config keys; always fetch the doc section.
- •Call out OS-specific differences and required prerequisites.
- •If multiple pages conflict, prioritize the most specific Codex CLI page and mention any ambiguity.