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: docs/cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ The CLI acts as a client to a background `chrome-devtools-mcp` daemon (uses Unix
17
17
18
18
-**Automatic Start**: The first time you call a tool (e.g., `list_pages`), the CLI automatically starts the MCP server and the browser in the background if they aren't already running.
19
19
-**Persistence**: The same background instance is reused for subsequent commands, preserving the browser state (open pages, cookies, etc.).
20
-
-**Manual Control**: You can explicitly manage the background process using `start`, `stop`, and `status`. The `start` command forwards all subsequent arguments to the underlying MCP server (e.g., `--headless`, `--userDataDir`) but not all args are supported. Run `chrome-devtools start --help` for supported args. Headless and isolated are enabled by default.
20
+
-**Manual Control**: You can explicitly manage the background process using `start`, `stop`, and `status`. The `start` command forwards all subsequent arguments to the underlying MCP server (e.g., `--headless`, `--userDataDir`) but not all args are supported. Run `chrome-devtools start --help` for supported args. Headless is enabled by default. Isolated is enabled by default unless `--userDataDir` is provided.
Copy file name to clipboardExpand all lines: src/bin/chrome-devtools.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,11 @@ if (!('default' in cliOptions.headless)) {
59
59
thrownewError('headless cli option unexpectedly does not have a default');
60
60
}
61
61
if ('default' in cliOptions.isolated) {
62
-
thrownewError('headless cli option unexpectedly does not have a default');
62
+
thrownewError('isolated cli option unexpectedly has a default');
63
63
}
64
64
startCliOptions.headless!.default = true;
65
+
startCliOptions.isolated!.description =
66
+
'If specified, creates a temporary user-data-dir that is automatically cleaned up after the browser is closed. Defaults to true unless userDataDir is provided.';
65
67
66
68
const y = yargs(hideBin(process.argv))
67
69
.scriptName('chrome-devtools')
@@ -92,7 +94,7 @@ y.command(
92
94
awaitstopDaemon();
93
95
}
94
96
// Defaults but we do not want to affect the yargs conflict resolution.
0 commit comments