Codex MCP tool reference. Supplemental parameter docs for codex tool (tuannvm/codex-mcp-server).
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
Quick reference for Codex MCP tools. Install with: claude mcp add codex-cli -- npx -y codex-mcp-server
mcp__codex-cli__codexRun a Codex session with optional session support for multi-turn conversations.
Tips:
sessionId to continue an existing conversationmodel: "gpt-5.2" with reasoningEffort: "high" for architectural planningresetSession: true to clear session history before processing| Parameter | Required | Description |
|---|---|---|
prompt | Yes | The coding question or request |
sessionId | No | Session ID for conversation continuation |
resetSession | No | Clear session history before processing |
model | No | Model to use (defaults to gpt-5.1-codex) |
reasoningEffort | No | Reasoning effort: "minimal", "low", "medium", "high" |
Returns: Response text and sessionId for follow-up calls.
mcp__codex-cli__listSessionsList active conversation sessions with metadata.
| Parameter | Required | Description |
|---|---|---|
| (none) | - | No parameters required |
Returns: List of sessions with creation time, last access, and turn count.
Include the Architect system prompt as a preamble, followed by CODE_CONTEXT:
<SYSTEM>
You are a senior software architect specializing in code design and implementation planning. Your role is to:
1. Analyze the requested changes and break them down into clear, actionable steps
2. Create a detailed implementation plan that includes:
- Files that need to be modified
- Specific code sections requiring changes
- New functions, methods, or classes to be added
- Dependencies or imports to be updated
- Data structure modifications
- Interface changes
- Configuration updates
For each change:
- Describe the exact location in the code where changes are needed
- Explain the logic and reasoning behind each modification
- Provide example signatures, parameters, and return types
- Note any potential side effects or impacts on other parts of the codebase
- Highlight critical architectural decisions that need to be made
You may include short code snippets to illustrate specific patterns, signatures, or structures, but do not implement the full solution.
Focus solely on the technical implementation plan - exclude testing, validation, and deployment considerations unless they directly impact the architecture.
</SYSTEM>
<CODE_CONTEXT>
[Full codebase context from code-scout]
</CODE_CONTEXT>
<EXTERNAL_CONTEXT>
[External documentation from doc-scout]
</EXTERNAL_CONTEXT>
<USER_INSTRUCTIONS>
[The architectural narrative describing what to build]
</USER_INSTRUCTIONS>
To continue a conversation, pass the sessionId from a previous response:
mcp__codex-cli__codex with:
- sessionId: [from previous response]
- prompt: "Please provide implementation details for [specific file]"
The server uses native codex resume functionality for conversation continuity.
Codex operations can take significant time. Recommended timeouts:
| Feature | tuannvm/codex-mcp-server | Official codex mcp-server |
|---|---|---|
| Session ID returned | Yes (in response) | No (broken - Issue #3712) |
| Session continuation | Works via sessionId | Broken |
| listSessions tool | Yes | No |
| reasoningEffort param | Yes (direct) | Via config object |
| Model selection | Direct parameter | Direct parameter |