Description of the bug
Running in OpenAI's Codex, the chrome-devtools-mcp can not connect to the active browser because of an error in the path to the google-chrome/DevToolsActivePort file.
• Called chrome-devtools.list_pages({})
└ Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled by going to chrome://inspect/#remote-debugging.
Cause: Could not find DevToolsActivePort for chrome at /home/<userdirname>/config/google-chrome/DevToolsActivePort
Note that:
- the dot is missing before
config
- /home/ is the name of the active user, renamed for privacy.
Reproduction
- run a command for the browser
- note the missing dot in the file name
Expectation
I expect the code to properly traverse the path to find the existing DevToolsActivePort file.
MCP configuration
[mcp_servers.chrome-devtools]
command = "npx"
args = [
"chrome-devtools-mcp@latest",
"--autoConnect"
]
Chrome DevTools MCP version
"version": "0.13.0" (through @latest)
Chrome version
144.0.7559.96
Coding agent version
v0.88.0
Model version
gpt-5.2-codex
Chat log
› chrome-devtools.list_pages({}) • Called chrome-devtools.list_pages({}) └ Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled by going to chrome://inspect/#remote-debugging. Cause: Could not find DevToolsActivePort for chrome at /home/mark.roeling/config/google-chrome/DevToolsActivePort ─ Worked for 4s ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── • I can’t connect to Chrome (no DevToolsActivePort). Please start Chrome with remote debugging enabled, then I can list pages.
Node version
v20.19.0
Operating system
Linux
Extra checklist
Description of the bug
Running in OpenAI's Codex, the chrome-devtools-mcp can not connect to the active browser because of an error in the path to the google-chrome/DevToolsActivePort file.
Note that:
configReproduction
Expectation
I expect the code to properly traverse the path to find the existing DevToolsActivePort file.
MCP configuration
[mcp_servers.chrome-devtools]
command = "npx"
args = [
"chrome-devtools-mcp@latest",
"--autoConnect"
]
Chrome DevTools MCP version
"version": "0.13.0" (through @latest)
Chrome version
144.0.7559.96
Coding agent version
v0.88.0
Model version
gpt-5.2-codex
Chat log
› chrome-devtools.list_pages({}) • Called chrome-devtools.list_pages({}) └ Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled by going to chrome://inspect/#remote-debugging. Cause: Could not find DevToolsActivePort for chrome at /home/mark.roeling/config/google-chrome/DevToolsActivePort ─ Worked for 4s ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── • I can’t connect to Chrome (no DevToolsActivePort). Please start Chrome with remote debugging enabled, then I can list pages.
Node version
v20.19.0
Operating system
Linux
Extra checklist