Skip to content

Commit a02262b

Browse files
committed
fix: mark categoryExtensions flag mutually exclusive with autoConnect
1 parent d082ca4 commit a02262b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

src/bin/chrome-devtools-mcp-cli-options.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const cliOptions = {
1212
type: 'boolean',
1313
description:
1414
'If specified, automatically connects to a browser (Chrome 144+) running locally from the user data directory identified by the channel param (default channel is stable). Requires the remoted debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.',
15-
conflicts: ['isolated', 'executablePath'],
15+
conflicts: ['isolated', 'executablePath', 'categoryExtensions'],
1616
default: false,
1717
coerce: (value: boolean | undefined) => {
1818
if (!value) {
@@ -26,7 +26,7 @@ export const cliOptions = {
2626
description:
2727
'Connect to a running, debuggable Chrome instance (e.g. `http://127.0.0.1:9222`). For more details see: https://github.com/ChromeDevTools/chrome-devtools-mcp#connecting-to-a-running-chrome-instance.',
2828
alias: 'u',
29-
conflicts: 'wsEndpoint',
29+
conflicts: ['wsEndpoint', 'categoryExtensions'],
3030
coerce: (url: string | undefined) => {
3131
if (!url) {
3232
return;
@@ -44,7 +44,7 @@ export const cliOptions = {
4444
description:
4545
'WebSocket endpoint to connect to a running Chrome instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). Alternative to --browserUrl.',
4646
alias: 'w',
47-
conflicts: 'browserUrl',
47+
conflicts: ['browserUrl', 'categoryExtensions'],
4848
coerce: (url: string | undefined) => {
4949
if (!url) {
5050
return;
@@ -213,7 +213,9 @@ export const cliOptions = {
213213
type: 'boolean',
214214
default: false,
215215
hidden: true,
216-
describe: 'Set to false to exclude tools related to extensions.',
216+
conflicts: ['browserUrl', 'autoConnect', 'wsEndpoint'],
217+
describe:
218+
'Set to true to include tools related to extensions. Note: This feature is only supported with a pipe connection. autoConnect is not supported.',
217219
},
218220
performanceCrux: {
219221
type: 'boolean',

0 commit comments

Comments
 (0)