You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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 :(
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
Activity
xogno commentedon Oct 12, 2025
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:
zdoek001 commentedon Nov 1, 2025
Also, the conversationId is missing. Is there no solution for this?
Manouchehri commentedon Nov 1, 2025
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.
ClaytonSmith commentedon Nov 3, 2025
+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.ClaytonSmith commentedon Nov 4, 2025
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 :(ClaytonSmith commentedon Nov 4, 2025
Or maybe it is but the internal plumbing just isn't connected to allow the
mcp-serverto pickup a conversation.fitzjalen commentedon Nov 13, 2025
+1 - critical issue for me
klarkc commentedon Nov 27, 2025
Can't use codex as MCP server right now due to this issue. Big blocker for me.
codex-replytool cannot work becauseconversationIdis not returned in result #8388 as a duplicate of this issuekonarkm commentedon Dec 22, 2025
Are there any open PRs fixing this?
aavetis commentedon Jan 5, 2026
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.
feat: add threadId to MCP server messages (openai#9192)
bolinfest commentedon Jan 14, 2026
Fix available in https://github.com/openai/codex/releases/tag/rust-v0.81.0
Documented on https://developers.openai.com/codex/guides/agents-sdk/
feat: add threadId to MCP server messages (openai#9192)
feat: add threadId to MCP server messages (#9192)
feat: add threadId to MCP server messages (#9192)