Skip to content

Codex refuses ?codemode=false: tools/list has more than its 2,048-tool cap #262

Open

Description

@mattzcarey

Codex can't load the direct-tool surface (/mcp?codemode=false). It refuses any MCP server whose tools/list returns more than 2,048 tools, and drops the server at startup:

codex_mcp::rmcp_client: MCP server startup failed server_name="cf-stg-direct"
  error=tools/list exceeded the catalog limit of 2048 items

The model then reports that none of the server's tools are available.

Repro

Codex CLI 0.157.0, logged in to https://staging.mcp.cloudflare.com/mcp?codemode=false:

codex mcp add cf-stg-direct --url "https://staging.mcp.cloudflare.com/mcp?codemode=false"
codex mcp login cf-stg-direct
RUST_LOG=codex_mcp=debug codex exec "Call the cf-stg-direct MCP tool accounts_list once."

The result is the same with and without Codex's code_mode and mcp_2026_07_28 features.

Scope

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions