Skip to content

Commit 4cd7103

Browse files
committed
Fix browserUrl not working
Setting the default channel in the CLI resulted in our mutually exclusive check for browserUrl and channel to fail.
1 parent 2275553 commit 4cd7103

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,9 @@ The Chrome DevTools MCP server supports the following configuration option:
156156
- **Default:** `false`
157157

158158
- **`--channel`**
159-
Specify a different Chrome channel that should be used.
159+
Specify a different Chrome channel that should be used. The default is the stable channel version.
160160
- **Type:** string
161161
- **Choices:** `stable`, `canary`, `beta`, `dev`
162-
- **Default:** `stable`
163162

164163
<!-- END AUTO GENERATED OPTIONS -->
165164

docs/tool-reference.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,15 +277,16 @@ so returned values have to JSON-serializable.
277277

278278
- **args** (array) _(optional)_: An optional list of arguments to pass to the function.
279279
- **function** (string) **(required)**: A JavaScript function to run in the currently selected page.
280-
Example without arguments: `() => {
280+
Example without arguments: `() => {
281281
return document.title
282282
}` or `async () => {
283283
return await fetch("example.com")
284284
}`.
285-
Example with arguments: `(el) => {
285+
Example with arguments: `(el) => {
286286
return el.innerText;
287287
}`
288288

289+
289290
---
290291

291292
### `list_console_messages`

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ export const cliOptions = {
7272
},
7373
channel: {
7474
type: 'string' as const,
75-
description: 'Specify a different Chrome channel that should be used.',
75+
description:
76+
'Specify a different Chrome channel that should be used. The default is the stable channel version.',
7677
choices: ['stable', 'canary', 'beta', 'dev'] as const,
7778
conflicts: ['browserUrl', 'executablePath'],
78-
default: 'stable',
7979
},
8080
logFile: {
8181
type: 'string' as const,

0 commit comments

Comments
 (0)