Skip to content

MCP needs a greater timeout for startup (Windows) #2905

Closed

Description

@sfz009900

What version of Codex is running?

v0.5.0

Which model were you using?

gpt-5

What platform is your computer?

Windows_X64

What steps can reproduce the bug?

Before I had sent a post #2893 use MCP in Windows environment, for example, will get an error "MCP client for context7 failed to start: "request timed out", all kinds of tinkering didn't solve the problem. Later, I modified two files in the source code and then repackaged codex.exe to solve it:

codex-rs\core\src\mcp_connection_manager.rs
codex-rs\mcp-client\src\mcp_client.rs

Image Image Image
[mcp_servers.context7]
command = "F:\\software\\nodejsold\\npx.cmd"
args = ["-y", "@upstash/context7-mcp", "--api-key", "xxxxxxxxxxxxxxxxxxxxxxxxxx"]

=====================================The following is the effect after the solution:

Image Image

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

  1. added
    bug
    on Aug 29, 2025
  2. SphaeroX commented on Aug 29, 2025

    @SphaeroX

    Same here for Playwright

    microsoft/playwright-mcp#967

  3. sfz009900 commented on Aug 29, 2025

    @sfz009900
    Author

    @SphaeroX I'll give you two modified files. You can package them into exe files yourself to replace the cod in "C:\Users\username\.vscode\extensions\openai.chatgpt-0.5.0-win32-x64\bin\windows-x86_64" ex.exe will do

    codex-rs\core\src\mcp_connection_manager.rs
    codex-rs\mcp-client\src\mcp_client.rs

    Use this command to package as an exe file:
    cd codex-rs; cargo build --release
    and get it :"\codex\codex-rs\target\release\codex.exe"

    conversation_manager.zip

    mcp_client.zip

  4. added
    extension
    on Aug 30, 2025
  5. jksmx commented on Sep 2, 2025

    @jksmx

    macOS same error

    
    🖐 MCP client for `context7` failed to start: request timed out
    
    🖐 MCP client for `playwright` failed to start: request timed out
    
  6. added
    mcp
    windows-os
    on Sep 2, 2025
  7. tarnan3751 commented on Sep 5, 2025

    @tarnan3751

    Same issue here for the Serena MCP Server in the VSCode Terminal. Very frustrating

  8. dheerajawale-svg commented on Sep 5, 2025

    @dheerajawale-svg

    @SphaeroX I'll give you two modified files. You can package them into exe files yourself to replace the cod in "C:\Users\username.vscode\extensions\openai.chatgpt-0.5.0-win32-x64\bin\windows-x86_64" ex.exe will do

    codex-rs\core\src\mcp_connection_manager.rs codex-rs\mcp-client\src\mcp_client.rs

    Use this command to package as an exe file: cd codex-rs; cargo build --release and get it :"\codex\codex-rs\target\release\codex.exe"

    conversation_manager.zip

    mcp_client.zip

    So great that you found this!

    I am trying to follow these steps but there are several mismatches:

    • I fresh installed code cli and vscode extension today
    • In '....vscode\extensions', I only see "openai.chatgpt-0.4.3-win32-x64". No 0.5.0 present.
    • In its 'bin\windows-x86_64', I see 'codex' and 'rg' exe files.

    Now, What is codex-rs? Is it a tool? OR Can I just rename downloaded .rs files to .exe? would it work?
    [Let me know if I am missing something here]

    Attached the screenshot as well:

    Image
  9. changed the title [-]There is a BUG in MCP under windwos[/-] [+]MCP needs a greater timeout for startup (Windows)[/+] on Sep 5, 2025
  10. dheerajawale-svg commented on Sep 7, 2025

    @dheerajawale-svg

    Is it solved in latest release?

  11. bolinfest commented on Sep 9, 2025

    @bolinfest
    Collaborator
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

    bugextensionmcpwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions