Repository navigation
Description
Description of the bug
On main, starting the server with --categoryExtensions together with --browserUrl, --wsEndpoint or --autoConnect exits with status 1 and Arguments categoryExtensions and <flag> are mutually exclusive, on every Chrome version. The released 1.10.1 accepts these combinations, and with Chrome 154 attached through --browserUrl it installed and listed an unpacked extension. The --categoryExtensions help text, docs/configuration.md and skills/troubleshooting/SKILL.md on main still say attach modes are unsupported only "until 149" or "before 149". The conflict was reintroduced by a commit described as a refactor; it is not in any release yet.
Actual behavior
Step 1 results:
1.10.1 --categoryExtensions --browserUrl ... => exit=0
main --categoryExtensions --browserUrl ... => exit=1 Arguments categoryExtensions and browserUrl are mutually exclusive
1.10.1 --categoryExtensions --autoConnect => exit=0
main --categoryExtensions --autoConnect => exit=1 Arguments categoryExtensions and autoConnect are mutually exclusive
1.10.1 --categoryExtensions --wsEndpoint ... => exit=0
main --categoryExtensions --wsEndpoint ... => exit=1 Arguments categoryExtensions and wsEndpoint are mutually exclusive
Step 2 on 1.10.1 attached to Chrome 154 returned Extension installed. Id: <extension-id> and then id=<extension-id> "Gray BG" v1.0 Enabled. The same configuration cannot start on main.
History from git log: #1202 made categoryExtensions mutually exclusive with autoConnect (fixing #1072); #1922 ("feat: support Chrome extensions debugging") removed categoryExtensions from the autoConnect, browserUrl and wsEndpoint conflict lists and added the "until 149" text; #2753 ("refactor: centralize config defaults and conflict checks") added ['categoryExtensions', 'autoConnect'] and ['categoryExtensions', 'browserUrl', 'wsEndpoint'] to the conflict groups in src/config/mcp-options.ts with tests asserting the rejection, without changing the "until 149" text. Not tested: extension tools over --autoConnect and --wsEndpoint on 1.10.1, and Chrome versions before 149.
Reproduction
- Start each build with each attach flag and stdin closed, using
CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1:
chrome-devtools-mcp --categoryExtensions --browserUrl http://127.0.0.1:9 --no-usage-statistics --no-performance-crux </dev/null; echo "exit=$?"
chrome-devtools-mcp --categoryExtensions --wsEndpoint ws://127.0.0.1:9/devtools/browser/x --no-usage-statistics --no-performance-crux </dev/null; echo "exit=$?"
chrome-devtools-mcp --categoryExtensions --autoConnect --no-usage-statistics --no-performance-crux </dev/null; echo "exit=$?"- Control on the release build with a real attach target: start a disposable Chrome 154 with
--headless=new --remote-debugging-port=0 --user-data-dir=<tmp>/profile, read the port from<tmp>/profile/DevToolsActivePort, create an unpacked extension under<tmp>/ext/gray-bg-extwith thismanifest.jsonand a one-linesw.js(chrome.action.onClicked.addListener(t=>chrome.scripting.executeScript({target:{tabId:t.id},func:()=>{document.body.style.background='gray'}}));):
{"manifest_version":3,"name":"Gray BG","version":"1.0","action":{},"background":{"service_worker":"sw.js"},"permissions":["activeTab","scripting"]}Then start 1.10.1 over stdio with --browserUrl http://127.0.0.1:<port> --categoryExtensions --workspace=<tmp>/ext --no-usage-statistics --no-performance-crux and send:
{"name":"install_extension","arguments":{"path":"<tmp>/ext/gray-bg-ext"}}
{"name":"list_extensions","arguments":{}}Expectation
On main, the --categoryExtensions description (src/config/category-options.ts, shown in --help and docs/configuration.md:38) says: "Note: This feature is currently only supported with a pipe connection. autoConnect, browserUrl, and wsEndpoint are not supported with this feature until 149 will be released." skills/troubleshooting/SKILL.md:55 says: "Chrome before 149 is not able to load extensions when connecting to an existing instance (--auto-connect, --browserUrl)." Chrome 149 has shipped and current stable is 154, so on Chrome 149+ the server should accept --categoryExtensions with these attach flags, as 1.10.1 does, or the documentation and help text should state that the combination is rejected.
MCP configuration
--headless --isolated --no-usage-statistics --no-performance-crux unless the reproduction states otherwise (update checks disabled with CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS=1).
Chrome DevTools MCP version
1.10.1 (npm) and main 5ddb0a3 (local build)
Chrome version
154.0.8037.98 (stable)
Node version
v22.23.2
Operating system
macOS 27.0
Environment details
- Release build:
chrome-devtools-mcp@1.10.1from npm. mainbuild: local build ofmainat 5ddb0a3.- Google Chrome 154.0.8037.98 (stable), Node v22.23.2, macOS 27.
Evidence
- Expected source:
--categoryExtensionsdescription insrc/config/category-options.tsanddocs/configuration.md:38, andskills/troubleshooting/SKILL.md:55, all onmain; 1.10.1 behavior from Step 2 as the released baseline. - Failure source: startup output and exit status of the
mainbuild in Step 1; the conflict groups insrc/config/mcp-options.tsadded by refactor: centralize config defaults and conflict checks #2753. - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
The full open and closed issue and PR corpus was screened as of 2026-10-06. Related: closed #1072 requested this mutual exclusion before #1922 added attach support; no open issue or PR reports the reintroduced conflict or the stale "until 149" text. Open PR #2878 touches src/config/mcp-options.ts for config reloading and does not change these groups.
Fix check
Failing now: on main, --categoryExtensions with --browserUrl, --wsEndpoint or --autoConnect exits 1 at startup while the help text, docs/configuration.md and the troubleshooting skill say the combination is supported from Chrome 149. Restored: the server's acceptance of these combinations and its documentation agree; either the Step 2 configuration starts on main and install_extension succeeds against Chrome 149+ as on 1.10.1, or the conflict is intended and the help text, docs/configuration.md and the troubleshooting skill state that extension tools require a server-launched (pipe) browser. Control: --categoryExtensions without an attach flag keeps starting and installing extensions.
Activity
paviad commentedon Oct 9, 2026
A second problem shows up when the flag is accepted (1.10.1): extension pages stay hidden over
--browserUrl.BrowserManager#connect()builds Puppeteer's target filter withmakeTargetFilter()and no argument. So Puppeteer drops everychrome-extension://target at connect time, whatever--categoryExtensionssays.#launch()passes the flag. As a result,install_extensionandlist_extensionswork when attached, as reported above, butlist_pagesnever shows an## Extension Pagessection. Extension tabs and service workers can't be selected or driven.Seen on Windows, Chrome 154.0.8037.98, 1.10.1 from npm,
--browserUrl http://127.0.0.1:<port> --categoryExtensions=true, with a tab open on an unpacked extension's page./json/listshows thechrome-extension://<id>/...page, butlist_pagesdoesn't. PassingcategoryExtensionstomakeTargetFilter()in#connect()makes it appear.Split into two PRs: #3047 fixes the hidden extension pages (issue #3046), and #3041 lifts the conflict described in this issue.
fix: allow --categoryExtensions when connecting to an existing browser
OrKoN commentedon Oct 12, 2026
@Lightning00Blade could you please check if this is an issue before the next release?
fix: allow --categoryExtensions when connecting to an existing browser (
fix: pass categoryExtensions to the target filter when connecting (Ch…