You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/bin/brave-devtools-mcp-cli-options.ts
+32-42Lines changed: 32 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ export const cliOptions = {
11
11
autoConnect: {
12
12
type: 'boolean',
13
13
description:
14
-
'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 remote debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.',
14
+
'If specified, automatically connects to a Brave instance running locally from the user data directory identified by the channel param (default channel is release). Requires the remote debugging server to be started in the Brave instance via brave://inspect/#remote-debugging.',
'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.',
27
+
'Connect to a running, debuggable Brave instance (e.g. `http://127.0.0.1:9222`).',
28
28
alias: 'u',
29
29
conflicts: ['wsEndpoint','categoryExtensions'],
30
30
coerce: (url: string|undefined)=>{
@@ -42,7 +42,7 @@ export const cliOptions = {
42
42
wsEndpoint: {
43
43
type: 'string',
44
44
description:
45
-
'WebSocket endpoint to connect to a running Chrome instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). Alternative to --browserUrl.',
45
+
'WebSocket endpoint to connect to a running Brave instance (e.g., ws://127.0.0.1:9222/devtools/browser/<id>). Alternative to --browserUrl.',
46
46
alias: 'w',
47
47
conflicts: ['browserUrl','categoryExtensions'],
48
48
coerce: (url: string|undefined)=>{
@@ -94,7 +94,7 @@ export const cliOptions = {
94
94
},
95
95
executablePath: {
96
96
type: 'string',
97
-
description: 'Path to custom Chrome executable.',
97
+
description: 'Path to custom Brave executable. Can also be set via BRAVE_PATH environment variable.',
98
98
conflicts: ['browserUrl','wsEndpoint'],
99
99
alias: 'e',
100
100
},
@@ -106,14 +106,14 @@ export const cliOptions = {
106
106
userDataDir: {
107
107
type: 'string',
108
108
description:
109
-
'Path to the user data directory for Chrome. Default is $HOME/.cache/chrome-devtools-mcp/chrome-profile$CHANNEL_SUFFIX_IF_NON_STABLE',
109
+
'Path to the user data directory for Brave. Default is $HOME/.cache/brave-devtools-mcp/brave-profile$CHANNEL_SUFFIX_IF_NON_RELEASE',
'Initial viewport size for the Chrome instances started by the server. For example, `1280x720`. In headless mode, max size is 3840x2160px.',
127
+
'Initial viewport size for the Brave instances started by the server. For example, `1280x720`. In headless mode, max size is 3840x2160px.',
128
128
coerce: (arg: string|undefined)=>{
129
129
if(arg===undefined){
130
130
return;
@@ -141,7 +141,7 @@ export const cliOptions = {
141
141
},
142
142
proxyServer: {
143
143
type: 'string',
144
-
description: `Proxy server configuration for Chrome passed as --proxy-server when launching the browser. See https://www.chromium.org/developers/design-documents/network-settings/ for details.`,
144
+
description: `Proxy server configuration for Brave passed as --proxy-server when launching the browser. See https://www.chromium.org/developers/design-documents/network-settings/ for details.`,
145
145
},
146
146
acceptInsecureCerts: {
147
147
type: 'boolean',
@@ -193,17 +193,17 @@ export const cliOptions = {
193
193
experimentalWebmcp: {
194
194
type: 'boolean',
195
195
describe:
196
-
'Set to true to enable debugging WebMCP tools. Requires Chrome 149+ with the following flags: `--enable-features=WebMCPTesting,DevToolsWebMCPSupport`',
196
+
'Set to true to enable debugging WebMCP tools. Requires Brave with the following flags: `--enable-features=WebMCPTesting,DevToolsWebMCPSupport`',
197
197
},
198
-
chromeArg: {
198
+
braveArg: {
199
199
type: 'array',
200
200
describe:
201
-
'Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.',
201
+
'Additional arguments for Brave. Only applies when Brave is launched by brave-devtools-mcp.',
202
202
},
203
-
ignoreDefaultChromeArg: {
203
+
ignoreDefaultBraveArg: {
204
204
type: 'array',
205
205
describe:
206
-
'Explicitly disable default arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.',
206
+
'Explicitly disable default arguments for Brave. Only applies when Brave is launched by brave-devtools-mcp.',
207
207
},
208
208
categoryEmulation: {
209
209
type: 'boolean',
@@ -241,9 +241,9 @@ export const cliOptions = {
241
241
},
242
242
usageStatistics: {
243
243
type: 'boolean',
244
-
default: true,
244
+
default: false,
245
245
describe:
246
-
'Set to false to opt-out of usage statistics collection. Google collects usage data to improve the tool, handled under the Google Privacy Policy (https://policies.google.com/privacy). This is independent from Chrome browser metrics. Disabled if `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` env variables are set.',
246
+
'Usage statistics collection (disabled by default in this fork).',
247
247
},
248
248
clearcutEndpoint: {
249
249
type: 'string',
@@ -268,7 +268,7 @@ export const cliOptions = {
268
268
viaCli: {
269
269
type: 'boolean',
270
270
describe:
271
-
'Set by Chrome DevTools CLI if the MCP server is started via the CLI client (this arg exists for usage stats)',
271
+
'Set by Brave DevTools CLI if the MCP server is started via the CLI client (this arg exists for usage stats)',
272
272
hidden: true,
273
273
},
274
274
redactNetworkHeaders: {
@@ -283,50 +283,48 @@ export type ParsedArguments = ReturnType<typeof parseArguments>;
0 commit comments