Skip to content

Commit 90aede3

Browse files
Natallia HarshunovaOrKoN
authored andcommitted
Update documentation
1 parent 118e51c commit 90aede3

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ The Chrome DevTools MCP server supports the following configuration option:
637637
- **Type:** array
638638

639639
- **`--blocklist`**
640-
URL patterns to block access to. Uses standard URLPattern API. Cannot be used with --blocklist
640+
Restricts network access by blocking specified URL patterns (uses URLPattern API https://urlpattern.spec.whatwg.org/). Silently detaches from targets with blocked URLs upon connection, and blocks runtime requests (including navigations and subresources).
641641
- **Type:** array
642642

643643
- **`--allowlist`**
644-
URL patterns to allow access to (blocks everything else). Uses standard URLPattern API. Cannot be used with --blocklist.
644+
Restricts network access by allowing only specified URL patterns (uses URLPattern API 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).
645645
- **Type:** array
646646

647647
- **`--ignoreDefaultChromeArg`/ `--ignore-default-chrome-arg`**

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,13 @@ export const cliOptions = {
207207
blocklist: {
208208
type: 'array',
209209
describe:
210-
'URL patterns to block access to. Uses standard URLPattern API. Cannot be used with --blocklist',
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).',
211+
conflicts: ['allowlist'],
211212
},
212213
allowlist: {
213214
type: 'array',
214215
describe:
215-
'URL patterns to allow access to (blocks everything else). Uses standard URLPattern API. Cannot be used with --blocklist.',
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).',
216217
conflicts: ['blocklist'],
217218
},
218219
ignoreDefaultChromeArg: {

0 commit comments

Comments
 (0)