Skip to content

codex mcp-server cannot resume conversation with ID #8726

@aavetis

Description

@aavetis

What version of Codex is running?

0.77

What subscription do you have?

Plus

Which model were you using?

gpt-5.2-codex

What platform is your computer?

Darwin 25.2.0 arm64 arm

What issue are you seeing?

The docs here show:

  • Conversations
    • newConversation → start a Codex session
    • sendUserMessage / sendUserTurn → send user input into a conversation
    • interruptConversation → stop the current turn
    • listConversations, resumeConversation, archiveConversation

however through codex as an mcp server, you cannot continue a conversation using a conversation id. Even if you went into /.codex and found the ids, you couldn't pass them in to continue a conversation.

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

Codex suggested fix:

  1. Extend the MCP request surface
    The CLI MCP server only accepts standard MCP methods + tools/list + tools/
    call.
    So you’d need to add new request variants in codex-rs/mcp-types (the
    ClientRequest enum) for:
  • listConversations
  • resumeConversation
  • (optionally archiveConversation)
  1. Implement handlers in the MCP server
    In codex-rs/mcp-server/src/message_processor.rs, add handlers for those
    new request types.

  2. Reuse the conversation manager from app‑server
    The MCP server already creates a ConversationManager (see
    message_processor.rs).
    You’d wire the new methods to:

  • conversation_manager.list_conversations()
  • conversation_manager.resume_conversation(conversation_id)

What steps can reproduce the bug?

Get a conversation id
Use codex as mcp server to get a reply

What is the expected behavior?

Provide a conversation id to continue a conversation

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmcp-serverIssues related to the use of the `codex mcp-server` subcommand

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions