Skip to content

Commit e3acb48

Browse files
author
Natallia Harshunova
committed
Update documentation
1 parent 788efce commit e3acb48

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
@@ -616,11 +616,11 @@ The Chrome DevTools MCP server supports the following configuration option:
616616
- **Type:** array
617617

618618
- **`--blocklist`**
619-
URL patterns to block access to. Uses standard URLPattern API. Cannot be used with --blocklist
619+
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).
620620
- **Type:** array
621621

622622
- **`--allowlist`**
623-
URL patterns to allow access to (blocks everything else). Uses standard URLPattern API. Cannot be used with --blocklist.
623+
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).
624624
- **Type:** array
625625

626626
- **`--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
@@ -213,12 +213,13 @@ export const cliOptions = {
213213
blocklist: {
214214
type: 'array',
215215
describe:
216-
'URL patterns to block access to. Uses standard URLPattern API. Cannot be used with --blocklist',
216+
'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).',
217+
conflicts: ['allowlist'],
217218
},
218219
allowlist: {
219220
type: 'array',
220221
describe:
221-
'URL patterns to allow access to (blocks everything else). Uses standard URLPattern API. Cannot be used with --blocklist.',
222+
'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).',
222223
conflicts: ['blocklist'],
223224
},
224225
ignoreDefaultChromeArg: {

0 commit comments

Comments
 (0)