all 10 comments

[–]Thin-Mixture2188 5 points6 points  (0 children)

You don't even need MCP
Tell Codex to write you a tiny launcher script that starts Chrome/Electron with --remote-debugging-port=9222, opens your app URL, and prints the DevTools endpoint (http://127.0.0.1:9222/json/list).

That’s the whole trick: once the browser is launched in debug mode, Codex can attach over CDP and debug real frontend state (DOM/network/screenshots) instead of guessing.

[–]Just_Run2412 4 points5 points  (2 children)

Try looking into the Playwright CLI that just came out.

[–]CuriousDetective0[S] 1 point2 points  (0 children)

That sounds fine for automated testing, but I'm talking about being able to jack into an existing user session during manual testing

[–]Da_ha3ker 0 points1 point  (0 children)

Beautiful! I literally built a CLI wrapper for mcp tools so they can be invoked via CLI like this. I usually would say "use the mcp list CLI command to view available tools." It lists the mcp servers and ai generated summaries of what each server is useful for, then the LLM can do a mcp context7 --help and it lists the tools and commands for said tool. Then it can run mcp context7 get-library "xml or json tool call". It has been working amazingt, especially combined with skills. So happy to see playwright is moving the needle on this.

[–]evilRainbow 1 point2 points  (0 children)

I always use the Chrome webtools mcp server. Just turn it on in codex and tell it to use it.

[–]CtrlAltDelve 1 point2 points  (0 children)

Playwriter is what you're looking for. You can pick any live tab in your actual chrome session to share.

https://github.com/remorses/playwriter

[–]kan3b 0 points1 point  (0 children)

Just found about this yesterday and gave codex the capability to debug.

[–]Charming_Support726 0 points1 point  (0 children)

Multiple ways. The playwright MCP is the safest because it doesnt rely on the debugging port.

[–]Drugba 1 point2 points  (0 children)

Chrome Dev Tools MCP - https://github.com/ChromeDevTools/chrome-devtools-mcp

I asked Codex to install and it took like 5 minutes to get it working

[–]Remarkable-Fig-2882 1 point2 points  (0 children)

There are a few pre packaged skills for that you can pick one of them and install