Skip to content

codex mcp-server doesn't work on the M4 Mac Mini #4844

Closed

Description

@blackpatton17

What version of Codex is running?

codex-cli 0.45.0

Which model were you using?

gpt-5-codex

What platform is your computer?

Darwin 25.0.0 arm64 arm

What steps can reproduce the bug?

  1. Install codex via brew install codex
  2. Run npx @modelcontextprotocol/inspector codex mcp-server
  3. Attempt to connect the server via inspector.
  4. Connection failed.
Image

What is the expected behavior?

A successful connection.

What do you see instead?

Connection Error - Check if your MCP server is running and proxy token is correct

Additional information

No response

Activity

  1. added
    bug
    on Oct 6, 2025
  2. added
    mcp
    on Oct 6, 2025
  3. CptPirx commented on Oct 7, 2025

    @CptPirx

    I have similar connection issues since some update last week. Codex as MCP server can no longer be connected to from Claude Code.

    CC version: v2.0.9
    Codex version: v0.45.0

    Edit:
    Fixed structure and added version infromation.

  4. itsmevictor commented on Oct 7, 2025

    @itsmevictor

    Same issue as @CptPirx.

    It used to work just fine after I ran claude mcp add codex --scope user -- codex -m gpt-5 mcp but doesn't anymore.

    The logs don't say much:

      {
        "debug": "Starting connection with timeout of 30000ms",
        "timestamp": "2025-09-07T16:33:27.115Z",
        "sessionId": "ee5c640d-26d6-4cb2-b9ef-531cfc266647",
        "cwd": "/Users/victor/Downloads"
      },
      {
        "debug": "Connection timeout triggered after 30007ms (limit: 30000ms)",
        "timestamp": "2025-09-07T16:33:57.118Z",
        "sessionId": "ee5c640d-26d6-4cb2-b9ef-531cfc266647",
        "cwd": "/Users/victor/Downloads"
      },
    

    FYI, I'm using:

    Claude Code 2.0.9
    codex-cli 0.45.0
    
  5. blackpatton17 commented on Oct 7, 2025

    @blackpatton17
    Author

    The temperature resolution I found is to downgrade codex back to 0.42.0 and use legacy approach codex mcp serve with MCP server inspector.

  6. itsmevictor commented on Oct 8, 2025

    @itsmevictor

    Update and partial solution: I guess reading the docs and particularly the diffs from the previous release would have helped. Per those docs (under advanced.md), the command to run codex as an MCP server has changed to codex mcp-server.

    Thus, for Claude Code:

    • claude mcp add codex --scope user -- codex -m gpt-5 mcp becomes
    • claude mcp add codex --scope user -- codex mcp-server,

    and after testing, it does work. This should solve your problem @CptPirx. I'm not too sure about @blackpatton17's since the npx call seems to be correct based on the changes from the new 0.45 release.

  7. blackpatton17 commented on Oct 9, 2025

    @blackpatton17
    Author

    My problem isn’t fully resolved. 0.45.0’s mcp-server still doesn’t work. Please reopen the issue.

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

    bugmcp

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions