Skip to content

Commit 09111cc

Browse files
docs: improve autoConnect docs (#653)
Mention chrome://inspect/#remote-debugging in CLI docs and error message.
1 parent e3c59bc commit 09111cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ The Chrome DevTools MCP server supports the following configuration option:
351351
<!-- BEGIN AUTO GENERATED OPTIONS -->
352352

353353
- **`--autoConnect`**
354-
If specified, automatically connects to a browser (Chrome 145+) running in the user data directory identified by the channel param.
354+
If specified, automatically connects to a browser (Chrome 145+) running in the user data directory identified by the channel param. Requires remote debugging being enabled in Chrome here: chrome://inspect/#remote-debugging.
355355
- **Type:** boolean
356356
- **Default:** `false`
357357

src/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export async function ensureBrowserConnected(options: {
134134
browser = await puppeteer.connect(connectOptions);
135135
} catch (err) {
136136
throw new Error(
137-
'Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled.',
137+
'Could not connect to Chrome. Check if Chrome is running and remote debugging is enabled by going to chrome://inspect/#remote-debugging.',
138138
{
139139
cause: err,
140140
},

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const cliOptions = {
1111
autoConnect: {
1212
type: 'boolean',
1313
description:
14-
'If specified, automatically connects to a browser (Chrome 145+) running in the user data directory identified by the channel param.',
14+
'If specified, automatically connects to a browser (Chrome 145+) running in the user data directory identified by the channel param. Requires remote debugging being enabled in Chrome here: chrome://inspect/#remote-debugging.',
1515
conflicts: ['isolated', 'executablePath'],
1616
default: false,
1717
coerce: (value: boolean | undefined) => {

0 commit comments

Comments
 (0)