MCP client for `playwright` failed to start: program not found
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?
- Install like on the Dexcription here: https://github.com/microsoft/playwright-mcp
- Run Codex it rteunrs
MCP client forplaywrightfailed to start: program not found
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
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
@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
@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
@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.
Before starting Codex, run:
npx playwright testor, for a specific browser:
npx playwright open chromium https://example.com
npx playwright open firefox https://example.comAfter 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
@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."
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.
Take a look at this https://github.com/openai/codex/issues/2905
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.
@SphaeroX Yeah, I hope they can fix it directly in the update. I'm not a developer either, so I can't submit code.
I have the same Problem under win 11 - no MCP Server would like to start :-( ! I have installed codex-cli 0.27.0 !!
@SphaeroX @jtuttas I wrote the reason why. Each of the above will work if you run it before Codex.
npx @playwright/mcp@latest --browser=chromium
@AdsQnn
are you on windows?
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.
Yes I'am on Win 11
~~It looks like only Windows is affected. As mentioned, it works with other tools, but not with Codex. I also started the server before~~
It looks like only Windows is affected. As mentioned, it works with other tools, but not with Codex. I also started the server before.
I clearly wrote that I’m on Ubuntu and even shared screenshots showing that the problem also occurs and how to solve it :) Please read carefully.
@AdsQnn I'm sorry if I'm mistaken, but are you not facing a different error? Yours says request timed out whilst ours is saying program not found. We are also using Windows, which this issue appears to affect specifically, though I'm not 100% sure. I think @SphaeroX was right
@sloikod
Does running npx @playwright/mcp@latest --browser=chromium directly in the terminal work correctly? After running this and then starting Codex, do you still experience the same problem?
Either way, it’s probably not a coincidence that the MCP loading error appears on both systems. Try adding the Codex MCP as shown in the screenshot and see if it starts — on my side, that’s the only one that runs without an error. So it’s clearly something related to the runtime.
In the screenshot @jtuttas you can see that the GitHub MCP also has a request timeout.
No need to apologize — everyone can make mistakes :) The point is just to get the problem solved
Besides, it also seems that on Windows the terminal may open in an environment where not all PATH variables propagate correctly. A similar issue occurred earlier in the context of env.
@sloikod
Sure, no problem. I just want to get it running here and have the issue fixed, not only for me but for others as well. I ran the command and nothing happened. There was no error message. I am not sure if that is expected, but when I try to launch Codex in a new tab afterward I get the same error again.
https://github.com/user-attachments/assets/05e98753-7653-4165-bfce-c38ebd35b99a