Skip to content

MCP client for playwright failed to start: program not found #2945

Closed

Description

@SphaeroX

What version of Codex is running?

codex-cli 0.25.0

Which model were you using?

gpt-5 medium

What platform is your computer?

Windows 11 (Microsoft Windows NT 10.0.26100.0 x64 )

What steps can reproduce the bug?

  1. Install like on the Dexcription here: https://github.com/microsoft/playwright-mcp
  2. Run Codex it rteunrs   MCP client for playwrightfailed to start: program not found

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Activity

  1. davidsloiko commented on Aug 30, 2025

    @davidsloiko

    Same thing happened to me. All MCP servers seem to be bugged or something. Here's what I added to my config.toml

    [mcp_servers.supabase]
    command = "npx"
    args = ["-y", "@supabase/mcp-server-supabase@latest", "--access-token", "my_access_token"]

    I even tried doing this:

    [mcp_servers.supabase]
    command = "cmd"
    args = ["/c", "npx", "-y", "@supabase/mcp-server-supabase@latest", "--access-token", "my_access_token"]

    But got:

    MCP client for supabase failed to start: program not found

  2. adsqx commented on Aug 30, 2025

    @adsqx

    @SphaeroX
    First, run Playwright in the terminal—you can stop it afterwards, and then it works. There might be an issue that Playwright starts up more slowly than Codex, so they’re not synchronized

  3. davidsloiko commented on Aug 30, 2025

    @davidsloiko

    @SphaeroX First, run Playwright in the terminal—you can stop it afterwards, and then it works. There might be an issue that Playwright starts up more slowly than Codex, so they’re not synchronized

    how can I do that? If I just run the command in a terminal, codex doesn't pick it up. I'm using the vs code extension atm

    edit: actually, same thing happens in the codex CLI upon startup:

    🖐  MCP client for supabase failed to start: program not found

  4. adsqx commented on Aug 30, 2025

    @adsqx

    @sloikod

    Before starting Codex, run:

    npx playwright test

    or, for a specific browser:

    npx playwright open chromium https://example.com

    npx playwright open firefox https://example.com

    After that, when you launch Codex, Playwright should not throw an error and will start correctly.

    I don't have access to a computer right now to confirm this precisely, but that's the general idea.

    Playwright will simply start faster the second time, and there won’t be an error caused by incorrect synchronization.

  5. SphaeroX commented on Aug 30, 2025

    @SphaeroX
    Author

    @sloikod

    Before starting Codex, run:

    npx playwright test

    or, for a specific browser:

    npx playwright open chromium https://example.com

    npx playwright open firefox https://example.com

    After that, when you launch Codex, Playwright should not throw an error and will start correctly.

    I don't have access to a computer right now to confirm this precisely, but that's the general idea.

    doesnt work for me, i can open example.com but codex wont find the mcp server.

    >_ You are using OpenAI Codex in C:\Users\...
    
     To get started, describe a task or try one of these commands:
    
     /init - create an AGENTS.md file with instructions for Codex
     /status - show current session configuration and token usage
     /approvals - choose what Codex can do without approval
     /model - choose what model and reasoning effort to use
    
    🖐  MCP client for `playwright` failed to start: program not found       
    
  6. adsqx commented on Aug 30, 2025

    @adsqx

    @SphaeroX
    First, install Playwright locally. Then check on GPT how to do it

    If you still can’t get it working, I’ll upload it in a few hours once I’m back at my PC."

  7. SphaeroX commented on Aug 30, 2025

    @SphaeroX
    Author

    I have Playwright installed, and I also installed Microsoft’s MCP server. I can run Playwright normally without any issues, but whenever I start Codex, I keep getting this error message. I don’t think this is just happening to me, other people using Windows are running into the same problem as well.

    For example, with Kilo Code I don’t have any issues. Even Microsoft confirmed on GitHub that this isn’t a problem with the MCP server itself, but rather an issue with Codex.

  8. sfz009900 commented on Aug 30, 2025

    @sfz009900

    Take a look at this #2905

  9. SphaeroX commented on Aug 30, 2025

    @SphaeroX
    Author

    Take a look at this #2905

    Yes, thank you very much, but I would still prefer if the bug could be fixed directly in Codex before I start trying to work around the problem. It would make more sense to address the root cause first.

  10. sfz009900 commented on Aug 30, 2025

    @sfz009900

    @SphaeroX Yeah, I hope they can fix it directly in the update. I'm not a developer either, so I can't submit code.

  11. jtuttas commented on Aug 30, 2025

    @jtuttas

    I have the same Problem under win 11 - no MCP Server would like to start :-( ! I have installed codex-cli 0.27.0 !!

    Image
  12. adsqx commented on Aug 30, 2025

    @adsqx

    @SphaeroX @jtuttas I wrote the reason why.
    Each of the above will work if you run it before Codex.

    Image

    npx @playwright/mcp@latest --browser=chromium

    Image
  13. davidsloiko commented on Aug 30, 2025

    @davidsloiko

    @AdsQnn

    are you on windows?

  14. adsqx commented on Aug 30, 2025

    @adsqx

    @AdsQnn

    are you on windows?

    I’m using Ubuntu, but it doesn’t matter.
    It’s just that Codex starts before MCP is loaded. You see that after the initial call, it loads fine.

  15. 37 remaining items

  16. added a commit that references this issue on Nov 16, 2025
    f828cd2
  17. added a commit that references this issue on Jun 27, 2026
    c0c4986
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

    bugSomething isn't workingmcpIssues related to the use of model context protocol (MCP) serverswindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions