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: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -636,13 +636,13 @@ The Chrome DevTools MCP server supports the following configuration option:
636
636
Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
637
637
-**Type:** array
638
638
639
-
-**`--blocklist`**
640
-
Restricts network access by blocking specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources). Supports comma-separated patterns.
Restricts network access by blocking specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources). Accepts an array of patterns.
641
+
-**Type:**array
642
642
643
-
-**`--allowlist`**
644
-
Restricts network access by allowing only specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Requires Chrome 149+. Silently detaches from targets with unallowed URLs upon connection, and blocks runtime requests (including navigations and subresources). Supports comma-separated patterns.
Restricts network access by allowing only specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Requires Chrome 149+. Silently detaches from targets with unallowed URLs upon connection, and blocks runtime requests (including navigations and subresources). Accepts an array of patterns.
Copy file name to clipboardExpand all lines: src/bin/chrome-devtools-mcp-cli-options.ts
+8-28Lines changed: 8 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -204,37 +204,17 @@ export const cliOptions = {
204
204
describe:
205
205
'Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.',
206
206
},
207
-
blocklist: {
208
-
type: 'string',
207
+
blockedUrlPattern: {
208
+
type: 'array',
209
209
describe:
210
-
'Restricts network access by blocking specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources). Supports comma-separated patterns.',
211
-
conflicts: ['allowlist'],
212
-
coerce: (value: string|string[]|undefined)=>{
213
-
if(!value){
214
-
returnundefined;
215
-
}
216
-
constarr=Array.isArray(value) ? value : [value];
217
-
returnarr
218
-
.flatMap(val=>val.split(','))
219
-
.map(s=>s.trim())
220
-
.filter(Boolean);
221
-
},
210
+
'Restricts network access by blocking specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources). Accepts an array of patterns.',
211
+
conflicts: ['allowedUrlPattern'],
222
212
},
223
-
allowlist: {
224
-
type: 'string',
213
+
allowedUrlPattern: {
214
+
type: 'array',
225
215
describe:
226
-
'Restricts network access by allowing only specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Requires Chrome 149+. Silently detaches from targets with unallowed URLs upon connection, and blocks runtime requests (including navigations and subresources). Supports comma-separated patterns.',
227
-
conflicts: ['blocklist'],
228
-
coerce: (value: string|string[]|undefined)=>{
229
-
if(!value){
230
-
returnundefined;
231
-
}
232
-
constarr=Array.isArray(value) ? value : [value];
233
-
returnarr
234
-
.flatMap(val=>val.split(','))
235
-
.map(s=>s.trim())
236
-
.filter(Boolean);
237
-
},
216
+
'Restricts network access by allowing only specified URL patterns (uses https://urlpattern.spec.whatwg.org/). Requires Chrome 149+. Silently detaches from targets with unallowed URLs upon connection, and blocks runtime requests (including navigations and subresources). Accepts an array of patterns.',
0 commit comments