Skip to content

Missing conversationId of Codex MCP Server #3712

Closed

Description

@MaurUppi

https://github.com/openai/codex/releases/tag/rust-v0.36.0

initial MCP interface and docs (#3543, #3507, #3345)

codex
Run a Codex session. Accepts configuration parameters matching the Codex Config struct.

codex-reply
Continue a Codex conversation by providing the conversation id and prompt.

**`conversationId`** (required) | string | The id of the conversation to continue.

WHEN the MCP tool codex returns without a conversationId, HOW to use the tool codex-reply?

@charlie-openai

BTW, is Session ID equivalent to conversationId?

Image

Activity

  1. xogno commented on Oct 12, 2025

    @xogno

    I set up the codex mcp with claude code. It is detected and works but doesn't return anything

    codex version: 0.46

    MCP config in claude.json:

    "codex": {
        "type": "stdio",
        "command": "codex",
        "args": [
          "mcp"
        ],
        "env": {}
      }
    

    Claude Code output:

    Interesting! I can see that Python files were actually created (hello_from_codex.py,), which suggests that previous Codex MCP call did work - they just didn't return visible output! Let me check one of these files:
      ⎿  Read 2 lines
    
    ● Excellent! The Codex MCP server is actually working! It successfully created the Python script as requested. The issue is just that the MCP tool doesn't return visible conversation output - it executes the task silently in the background.
    
      So to summarize:
      - ✅ Codex MCP server is properly configured and functional
      - ✅ It successfully executes tasks (as evidenced by the created files)
      - ❌ The conversation output isn't displayed through the MCP tool interface
    
    The Codex MCP integration works, but operates more like a "fire and forget" system where you send a task and it completes it without returning anything.
    
  2. added
    mcp
    bug
    and removed
    mcp
    on Oct 31, 2025
  3. zdoek001 commented on Nov 1, 2025

    @zdoek001

    Also, the conversationId is missing. Is there no solution for this?

  4. Manouchehri commented on Nov 1, 2025

    @Manouchehri

    Yeah, same problem here; because of this, the codex MCP makes it impossible to resume a convo in any MCP client that I'm aware out.

  5. ClaytonSmith commented on Nov 3, 2025

    @ClaytonSmith

    +1 on this

    For now I plan of foraging for the conversationId (aka session_id?) in the ~/.codex/history.jsonl. There's also some additional goodness in the sessions/YYYY/MM/DD files. If the session_id is actually the conversationId, then I might still scrape it from the session logs even after a fix because the session logs also includes the token_count payload and rate limit stats.

  6. added
    mcp-server
    on Nov 3, 2025
  7. ClaytonSmith commented on Nov 4, 2025

    @ClaytonSmith

    Bad news.... The session_id is not the conversation_id. In the standard operating mode, you can run codex resume <session_id> which made me think the conversationId was an alias, but alas, it is not :(

  8. ClaytonSmith commented on Nov 4, 2025

    @ClaytonSmith

    Or maybe it is but the internal plumbing just isn't connected to allow the mcp-server to pickup a conversation.

  9. fitzjalen commented on Nov 13, 2025

    @fitzjalen

    +1 - critical issue for me

  10. klarkc commented on Nov 27, 2025

    @klarkc

    Can't use codex as MCP server right now due to this issue. Big blocker for me.

  11. konarkm commented on Dec 22, 2025

    @konarkm

    Are there any open PRs fixing this?

  12. aavetis commented on Jan 5, 2026

    @aavetis

    bump -

    am i missing something? i see conversation IDs, but the problem seems like you can't continue them. this doc says there is listConversations and resumeConversation, but they don't seem to work when the mcp server restarts.

    called codex-reply via MCP with the conversation id
      019b8c02-92aa-7ac1-acc3-ec39a218a3d4.
    
      Result (from the MCP server):
    
      Session not found for conversation_id: 019b8c02-92aa-7ac1-acc3-
      ec39a218a3d4
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugmcp-server

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions