fix(cli): adjust chrome-devtools start defaults (#2597)

Refs
https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/2458#issuecomment-5344854403
This commit is contained in:
Alex Rudenko
2026-08-20 08:49:39 +00:00
committed by GitHub
parent 1bac85c90b
commit c6cff23fbf
+13 -2
View File
@@ -141,10 +141,21 @@ y.command(
await stopDaemon(argv.sessionId);
}
// Defaults but we do not want to affect the yargs conflict resolution.
if (argv.isolated === undefined && argv.userDataDir === undefined) {
if (
argv.isolated === undefined &&
argv.userDataDir === undefined &&
!argv.autoConnect &&
!argv.browserUrl &&
!argv.wsEndpoint
) {
argv.isolated = true;
}
if (argv.headless === undefined) {
if (
argv.headless === undefined &&
!argv.autoConnect &&
!argv.browserUrl &&
!argv.wsEndpoint
) {
argv.headless = true;
}
const args = serializeArgs(mcpOptions, argv);