Codex refuses ?codemode=false: tools/list has more than its 2,048-tool cap
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 54/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- api
Research direction
Start by reading the /mcp endpoint and the tools/list handling, then check how the catalogue is assembled and how products.json defines products. Reproduce with the staging URL and compare the direct-tool catalogue size with the 2,048-tool limit. Done when Codex can use an appropriate direct-tool subset or the issue establishes a workable alternative; pagination still needs investigation.
Written by the indexing model from the issue text.
Description
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
- With the Forge catalogue (#247),
?codemode=falselists 2,905 tools (docs, whoami and 2,903 endpoints). - Production's current catalogue is larger: about 3,661 tools.
- The default Code Mode server (
/mcp, four tools) is unaffected. - OpenCode v2 loads the full catalogue and drives it through its own Code Mode, so the problem is the cap, not the catalogue's shape.
- Dominant language
- TypeScript
- Stars
- 946
- Forks
- 131
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 29
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/mcp
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 85/100
cloudflare/mcp#271 ·
Maintainers usually reply within 1 day
-
[Connection guide] Claude CodePossibly taken @ting-hong-shieh claimed this 66 days ago. Openenhancement good first issue
Difficulty 1/5 Under an hour Newbie friendliness 72/100
cloudflare/mcp#39 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
Access application creation returns “1010: undefined” without diagnostic detailsPossibly taken @mattzcarey claimed this 3 days ago. Openbug
cloudflare/mcp#292 · 1 assignee ·
Maintainers usually reply within 1 day
-
Hosted execute times out after 300s during inactive Worker version submissionPossibly taken @mattzcarey claimed this 3 days ago. Openbug
cloudflare/mcp#290 · 1 assignee ·
Maintainers usually reply within 1 day
-
question
Difficulty 4/5 1-2 days Newbie friendliness 22/100
cloudflare/mcp#286 ·
Maintainers usually reply within 1 day
Similar issues
-
bug priority: P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
wayfinder:task
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug customer-reported data-plane question Service Attention Storage
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Azure/azure-rest-api-specs#47397 · 2 comments ·
Maintainers usually reply within 1 day
-
Claude thinking budget can shrink capped Haiku responses to 2,048 tokensPossibly taken @DavyMassoneto claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
diegosouzapw/OmniRoute#17109 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
paperclipai/paperclip#16785 ·
Maintainers usually reply within 1 day