Skip to content

Add MCP codex-reply Support for Resuming Conversations from Rollout Files #6168

Closed as not planned

Description

@nikhil-pandey

What feature would you like to see?

I’d like to resume an existing Codex conversation via the MCP interface the same way the CLI already allows with codex resume <sessionId>.

Today the codex-reply MCP tool only succeeds if the conversation is still resident in the server’s in-memory ConversationManager. If the CLI has exited
—or if I start a fresh npx codex mcp-server—that map is empty, so codex-reply immediately returns:

Session not found for conversation_id:

The rollout JSONL file is present on disk (e.g. ~/.codex/sessions/2025/11/03/rollout-...-019a4af1-f34f-7380-9133-6d1479737864.jsonl), and the CLI is able to hydrate it with codex resume 019a4af1-f34f-7380-9133-6d1479737864. The MCP server never exposes that resume path, so there’s no way for external integrations to continue a halted session.

Additional information

No response

Activity

  1. added
    enhancement
    on Nov 3, 2025
  2. added
    mcp
    on Nov 3, 2025
  3. added
    mcp-server
    and removed
    mcp
    on Nov 3, 2025
  4. ClaytonSmith commented on Nov 5, 2025

    @ClaytonSmith

    +1 to this.

  5. rabsef-bicrym commented on Jan 28, 2026

    @rabsef-bicrym

    /pull/10117 was built to implement this. I did it by path but it works.

  6. etraut-openai commented on Mar 20, 2026

    @etraut-openai
    Contributor

    We are not planning to invest further in the Codex MCP server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementmcp-server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions