Missing conversationId of Codex MCP Server
Resolved 💬 11 comments Opened Sep 16, 2025 by MaurUppi Closed Jan 14, 2026
💡 Likely answer: A maintainer (bolinfest, collaborator)
responded on this thread — see the highlighted reply below.
https://github.com/openai/codex/releases/tag/rust-v0.36.0
initial MCP interface and docs (https://github.com/openai/codex/pull/3543, https://github.com/openai/codex/pull/3507, https://github.com/openai/codex/pull/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.
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?
<img width="964" height="560" alt="Image" src="https://github.com/user-attachments/assets/a8307281-eb34-4ab5-94d0-115a455c8e15" />
11 Comments
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:
Claude Code output:
Also, the conversationId is missing. Is there no solution for this?
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.
+1 on this
For now I plan of foraging for the
conversationId(akasession_id?) in the ~/.codex/history.jsonl. There's also some additional goodness in thesessions/YYYY/MM/DDfiles. If thesession_idis actually theconversationId, then I might still scrape it from the session logs even after a fix because the session logs also includes thetoken_countpayload and rate limit stats.Bad news.... The
session_idis not theconversation_id. In the standard operating mode, you can runcodex resume <session_id>which made me think theconversationIdwas an alias, but alas, it is not :(Or maybe it is but the internal plumbing just isn't connected to allow the
mcp-serverto pickup a conversation.+1 - critical issue for me
Can't use codex as MCP server right now due to this issue. Big blocker for me.
Are there any open PRs fixing this?
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.
Fix available in https://github.com/openai/codex/releases/tag/rust-v0.81.0
Documented on https://developers.openai.com/codex/guides/agents-sdk/