Skip to content

MCP tools fail to run many times #5315

Closed

Description

@guidedways

What version of Codex is running?

0.47.0

What subscription do you have?

Pro

Which model were you using?

gpt-5-codex high

What platform is your computer?

macOS

What issue are you seeing?

Is there a verbose / debug mode to see what codex is doing? Many times it'll call a MCP tool either incorrectly (missing out on required parameters or simply passing the wrong value even though the schema describes it properly).

99% of the times the first time it calls a tool it'll come back with something like

Error: tool call error: tool call failed for `zen/chat`

Then it'll try again (with what seems like the same parameters) and it'll work. There seems to be no such issues with Claude Code, only codex has been doing this consistently every single time.

I'd like debug this and would appreciate some help. Thank you!

What steps can reproduce the bug?

Use a MCP tool such as Zen: https://github.com/BeehiveInnovations/zen-mcp-server

Ask codex to chat with gemini pro to discuss something and it'll fail the first couple of times before succeeding eventually.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bug
    on Oct 18, 2025
  2. added
    mcp
    on Oct 18, 2025
  3. github-actions commented on Oct 18, 2025

    @github-actions
    Contributor
  4. guidedways commented on Oct 21, 2025

    @guidedways
    ContributorAuthor

    It seems Codex isn't waiting long enough for a response - the MCP server in this case is making a network call and I can see from the logs it DOES respond after about 1.5minutes (large request), Codex seems to end with a 'tool call failed' within 30 seconds

    @aibrahim-oai any help on this please?

  5. gpeal commented on Oct 21, 2025

    @gpeal
    Contributor

    @guidedways Can you try again with an 0.48 alpha? We now show you and the model underlying tool call errors.

    https://github.com/openai/codex/releases/tag/rust-v0.48.0-alpha.2

  6. guidedways commented on Oct 21, 2025

    @guidedways
    ContributorAuthor

    Thank you, will do. Yes if there's a way to debug these errors, that would be great.

    I also suspected it's got something to do with the default timeout - will experiment with turning that up / down along with this build.

  7. guidedways commented on Oct 21, 2025

    @guidedways
    ContributorAuthor

    @gpeal thank you, that was it:

        Error: tool call error: tool call failed for `zen/chat`
            Caused by:
                request timed out
    

    I can now see the exact reason. The default timeout was too short for some large requests.

  8. gpeal commented on Oct 21, 2025

    @gpeal
    Contributor
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