codex - 💡(How to fix) Fix /mcp shows Tools: (none) for working stdio MCP servers on codex-cli 0.118.0 (Linux) [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#17246Fetched 2026-04-10 03:43:25
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×1unlabeled ×1

Code Example

• brave-search
Auth: Unsupported
Command: /home/chris/.codex/bin/brave-search-codex
Tools: (none)

• serper-search
Auth: Unsupported
Command: /home/chris/.codex/bin/serper-search-codex
Tools: (none)

---

codex mcp list

---

{"result":{"protocolVersion":"2025-03-26","capabilities":{"logging":{},"tools":{"listChanged":true}},"serverInfo":{"version":"2.0.75","name":"brave-search-mcp-server","title":"Brave Search MCP Server"}},"jsonrpc":"2.0","id":1}

---

{"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{},"prompts":{}},"serverInfo":{"name":"Serper MCP Server","version":"0.1.0"}},"jsonrpc":"2.0","id":1}
RAW_BUFFERClick to expand / collapse

What version of Codex is running?

codex-cli 0.118.0

Which model were you using?

gpt-5.4

What platform is your computer?

Linux x86_64

What issue are you seeing?

Codex registers and enables two local stdio MCP servers, but /mcp shows them with Tools: (none) in a fresh Codex session.

The two servers are:

  • Brave Search MCP server
  • Serper Search/Scrape MCP server

Codex shows them as enabled and launchable, but their tool lists are empty in the UI:

• brave-search
• Auth: Unsupported
• Command: /home/chris/.codex/bin/brave-search-codex
• Tools: (none)

• serper-search
• Auth: Unsupported
• Command: /home/chris/.codex/bin/serper-search-codex
• Tools: (none)

This persists in a brand-new Codex process, not just a resumed session.

What steps can reproduce the bug?

  1. Install two third-party stdio MCP servers locally:
    • @brave/brave-search-mcp-server
    • serper-search-scrape-mcp-server
  2. Register them in Codex via wrapper scripts that load env vars from a local secrets file.
  3. Confirm they are enabled:
codex mcp list
  1. Start a fresh codex session.
  2. Run /mcp.
  3. Observe that both servers show Tools: (none).

What is the expected behavior?

/mcp should show the tools exposed by each server.

For these two servers, I expect at least:

  • Brave: brave_web_search, brave_local_search, brave_video_search, brave_image_search, brave_news_search, brave_summarizer
  • Serper: google_search, scrape

What do you see instead?

The servers are present and enabled, but /mcp still shows Tools: (none).

Additional information

I verified outside Codex that both wrappers answer MCP initialize and tools/list correctly over stdio.

The important detail is that these servers use newline-delimited JSON-RPC over stdio, and both respond correctly when probed directly.

For example, Brave returns:

{"result":{"protocolVersion":"2025-03-26","capabilities":{"logging":{},"tools":{"listChanged":true}},"serverInfo":{"version":"2.0.75","name":"brave-search-mcp-server","title":"Brave Search MCP Server"}},"jsonrpc":"2.0","id":1}

and then a tools/list result containing:

  • brave_web_search
  • brave_local_search
  • brave_video_search
  • brave_image_search
  • brave_news_search
  • brave_summarizer

Serper returns:

{"result":{"protocolVersion":"2024-11-05","capabilities":{"tools":{},"prompts":{}},"serverInfo":{"name":"Serper MCP Server","version":"0.1.0"}},"jsonrpc":"2.0","id":1}

and then a tools/list result containing:

  • google_search
  • scrape

So this does not appear to be a server installation problem. It looks like a Codex-side MCP discovery / tool catalog / UI issue.

Relevant local observations:

  • codex mcp list shows both servers as enabled.
  • The current codex-tui.log shows warnings for resources/list and resource templates returning Method not found, which seems normal for tool-only servers.
  • I did not see the known schema-conversion log signatures such as:
    • Failed to convert ... MCP tool to OpenAI tool
    • invalid type: map, expected a boolean

Related issues

  • #4707 /mcp showed Tools: (none) for configured MCP servers
  • #5770 Codex timed out awaiting tools/list and ended with aggregated 0 tools from 1 servers
  • #4176 MCP tools silently excluded due to errors
  • #4454 fix for JSON Schema handling in MCP tool conversion

Minimal local probe used to verify server behavior

I used a direct stdio probe that sends:

  1. initialize
  2. tools/list

and both servers returned valid tool catalogs outside Codex.

If useful, I can provide the exact local probe output and sanitized wrapper scripts.

extent analysis

TL;DR

The issue with Codex showing Tools: (none) for enabled MCP servers may be related to a Codex-side MCP discovery or tool cataloging issue, and verifying the server responses and Codex configuration is necessary to resolve the problem.

Guidance

  • Verify that the MCP servers are correctly configured and responding to initialize and tools/list requests by using a direct stdio probe.
  • Check the Codex logs for any errors or warnings related to MCP server communication, such as Method not found or schema-conversion issues.
  • Compare the expected tool catalogs for each server with the actual output from the direct stdio probe to ensure that the servers are returning the correct tools.
  • Review the related issues (#4707, #5770, #4176, #4454) to see if any of the fixes or workarounds apply to this situation.

Example

No code example is provided as the issue is more related to configuration and server communication.

Notes

The issue seems to be specific to the Codex configuration and MCP server communication, and more information about the Codex version, configuration, and server setup may be necessary to provide a more detailed solution.

Recommendation

Apply a workaround by verifying the MCP server configurations and Codex logs to identify any potential issues, and consider testing with a different Codex version or configuration to see if the problem persists.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING