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
Launch codex mcp-server and connect via an MCP client (e.g., Inspector).
Call the codex tool with any prompt.
Inspect the tools/call response: it only includes the assistant text (“Hey You! …”) and structured_content: null; no conversationId is returned, so you can’t call codex-reply.
What is the expected behavior?
tools/call responses should include structured metadata (at least conversationId, ideally model/rollout info) so clients can resume the session via codex-reply, matching the docs (docs/advanced.md and codex_r*s/docs/codex_mcp_interface.md).
Additional information
In codex-rs/mcp-server/src/codex_tool_runner.rs, capture the conversation_id and SessionConfiguredEvent when starting a new conversation, wrap them in a helper (e.g., ConversationContextSnapshot), and pass that snapshot through run_codex_tool_session_inner. When handling EventMsg::TaskComplete, set CallToolResult.structured_content = snapshot.structured_content() so the response contains { "conversationId": "...", "model": "...", … }. Unit tests covering the serializer are included in the attached patch.
Activity
github-actions commentedon Oct 25, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
aavetis commentedon Jan 5, 2026
bump
etraut-openai commentedon Mar 20, 2026
We are not planning to make further investments in the Codex MCP server.