Skip to content

main rejects --categoryExtensions with --browserUrl, --wsEndpoint or --autoConnect, which work in 1.10.1 and the docs promise for Chrome 149+ #2989

Closed

Description

@coygeek

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

  1. 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=$?"
  1. 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-ext with this manifest.json and a one-line sw.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.1 from npm.
  • main build: local build of main at 5ddb0a3.
  • Google Chrome 154.0.8037.98 (stable), Node v22.23.2, macOS 27.

Evidence

  • Expected source: --categoryExtensions description in src/config/category-options.ts and docs/configuration.md:38, and skills/troubleshooting/SKILL.md:55, all on main; 1.10.1 behavior from Step 2 as the released baseline.
  • Failure source: startup output and exit status of the main build in Step 1; the conflict groups in src/config/mcp-options.ts added 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

  1. paviad commented on Oct 9, 2026

    @paviad
    Contributor

    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 with makeTargetFilter() and no argument. So Puppeteer drops every chrome-extension:// target at connect time, whatever --categoryExtensions says. #launch() passes the flag. As a result, install_extension and list_extensions work when attached, as reported above, but list_pages never shows an ## Extension Pages section. 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/list shows the chrome-extension://<id>/... page, but list_pages doesn't. Passing categoryExtensions to makeTargetFilter() 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.

  2. added a commit that references this issue on Oct 9, 2026
    ed595e1
  3. added theissue type on Oct 12, 2026
  4. OrKoN commented on Oct 12, 2026

    @OrKoN
    Collaborator

    @Lightning00Blade could you please check if this is an issue before the next release?

  5. added a commit that references this issue on Oct 12, 2026
    d250bc5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions