In 2025โs developer landscape, AI-assisted coding has evolved from an experimental feature into a fundamental part of the toolchain.
Among the most intriguing ecosystems, the combination of OpenAI Codex CLI and Chrome DevTools MCP (Model Control Protocol) is redefining how we collaborate with AI during software development.
But letโs be honest โ every futuristic tool eventually hits that one frustrating error message:
โMCP client for
chrome-devtools
failed to start: program not found.โ
If youโve seen this line flash across your terminal, youโre in good company.
In this article, weโll dive into whatโs really happening under the hood, how to fix it, and how to unlock the true potential of Codex + DevTools integration.
๐งฉ 1. Scene Setup: The Codex CLI Boot Sequence
When you launch Codex CLI using:
codex
or list available MCP clients:
codex mcp list
you might see something like this:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ >_ OpenAI Codex (v0.48.0-alpha.3) โ
โ โ
โ model: gpt-5 /model to change โ
โ directory: F:\codex-cli\finohopetex.com โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ MCP client for `chrome-devtools` failed to start: program not found
This message means Codex CLI tried to initialize an external MCP client,
but couldnโt find the corresponding executable program on your system.
๐ 2. Understanding MCP: The Bridge Between Codex and the Real World
MCP (Model Control Protocol) is the communication layer between Codex CLI and external โexecution environmentsโ like Chrome, VSCode, or Docker.
Think of it as Codexโs way to act โ not just talk.
With MCP, Codex can control browsers, inspect pages, run scripts, or even automate full debugging workflows.
Hereโs what Codex typically tries to register at startup:
MCP Client | Description |
---|---|
chrome-devtools |
Interface with Chrome via the DevTools Protocol |
vscode |
Control VSCode editor sessions |
shell |
Run local or remote shell commands |
docker |
Execute within containerized environments |
So when you see:
MCP client for chrome-devtools failed to start: program not found
โฆit simply means the CLI couldnโt locate the Chrome DevTools bridge it needs.
โ๏ธ 3. The Root Cause: Missing Chrome Path or Misconfigured Environment
Most of the time, this issue boils down to one simple problem โ
Codex CLI doesnโt know where Chrome is installed.
By default, the DevTools MCP uses Puppeteer under the hood to launch Chrome,
which requires an environment variable to locate the Chrome binary:
PUPPETEER_EXECUTABLE_PATH="C:\Program Files\Google\Chrome\Application\chrome.exe"
You can verify it by running:
echo %PUPPETEER_EXECUTABLE_PATH%
If it returns nothing, the environment variable isnโt set correctly.
๐งฐ 4. Step-by-Step Fix: Making Chrome DevTools MCP Work
โ Step 1. Verify Your Chrome Installation Path
On Windows, the default Chrome path is usually:
C:\Program Files\Google\Chrome\Application\chrome.exe
If it differs, manually set it via:
setx PUPPETEER_EXECUTABLE_PATH "C:\Program Files\Google\Chrome\Application\chrome.exe"
๐ก Tip: Use
setx
instead ofset
to make the variable persist permanently.
โ Step 2. Install the Chrome DevTools MCP Package
Codex CLI relies on a Node.js bridge module:
npm install -g chrome-devtools-mcp
Or simply run via npx
(recommended):
npx -y chrome-devtools-mcp@latest
Once installed, verify Codex recognizes it:
codex mcp list
Expected output:
chrome-devtools enabled connected
โ Step 3. Start Codex in Debug Mode
Launch Codex CLI with debug logs:
codex --debug
You should now see:
[MCP] chrome-devtools connected
[Codex] Ready to receive commands...
At this point, you can execute Codex commands like:
codex run "Open Chrome console and inspect the DOM structure"
Codex will automatically invoke DevTools through Puppeteer and perform the requested actions.
๐ง 5. Beyond Debugging: Codex CLI as a Multi-Agent Developer System
Under the hood, the Codex + MCP ecosystem is a multi-agent system that connects:
-
๐งฉ Codex Core โ Natural language reasoning & task orchestration -
โ๏ธ MCP Clients โ Execution bridges (DevTools, Shell, VSCode, Docker) -
๐ฅ๏ธ Target Environment โ The actual place where commands run
This architecture enables some surprisingly powerful capabilities:
-
Automatically scrape and analyze live web pages -
Generate and run site performance audits -
Execute full browser automation via AI instructions -
Debug front-end interactions with natural language commands
In short, Codex CLI isnโt just a command-line interface โ itโs an AI-powered development layer.
๐ฌ 6. FAQ: Common Issues and Workarounds
Q1: Why do I see โUnsupported Authโ errors?
A: Some MCP clients (like Chrome DevTools) donโt require authentication.
You can safely ignore this or disable Auth checking in .codex/config
.
Q2: Can I use this setup on macOS or Linux?
A: Absolutely. Just update the Chrome path accordingly, for example:
export PUPPETEER_EXECUTABLE_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
Q3: Codex still canโt find the MCP package. What should I do?
A: Make sure the chrome-devtools-mcp
module is globally installed or accessible within your project directory.
๐งญ 7. Final Thoughts: Debugging Is the Doorway to Mastery
The combination of Codex CLI + Chrome DevTools MCP marks the beginning of a new AI-driven developer era โ
one where debugging isnโt a chore, but a collaboration between human intent and machine execution.
That โfailed to startโ message?
Itโs not just an error โ itโs an invitation to understand how your tools think.
The next-generation developer isnโt someone who writes code โ
but someone who codes with AI.
๐ Key References
-
OpenAI Codex CLI Documentation (GitHub) -
Chrome DevTools Protocol Guide (Google) -
Puppeteer API Reference -
Node.js Environment Variables