Skip to content

Commit 195e6e3

Browse files
committed
Merge branch 'main' into orkon/lighthouse
2 parents d5a603c + 2cd9b95 commit 195e6e3

20 files changed

Lines changed: 800 additions & 195 deletions

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,21 @@ Add the following config to your MCP client:
7373
> [!NOTE]
7474
> Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
7575
76+
If you are intersted in doing only basic browser tasks, use the `--slim` mode:
77+
78+
```json
79+
{
80+
"mcpServers": {
81+
"chrome-devtools": {
82+
"command": "npx",
83+
"args": ["-y", "chrome-devtools-mcp@latest", "--slim", "--headless"]
84+
}
85+
}
86+
}
87+
```
88+
89+
See [Slim tool reference](./docs/slim-tool-reference.md).
90+
7691
### MCP Client configuration
7792

7893
<details>
@@ -399,8 +414,6 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
399414

400415
<!-- BEGIN AUTO GENERATED TOOLS -->
401416

402-
- **Audits** (1 tools)
403-
- [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
404417
- **Input automation** (8 tools)
405418
- [`click`](docs/tool-reference.md#click)
406419
- [`drag`](docs/tool-reference.md#drag)
@@ -427,9 +440,10 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
427440
- **Network** (2 tools)
428441
- [`get_network_request`](docs/tool-reference.md#get_network_request)
429442
- [`list_network_requests`](docs/tool-reference.md#list_network_requests)
430-
- **Debugging** (5 tools)
443+
- **Debugging** (6 tools)
431444
- [`evaluate_script`](docs/tool-reference.md#evaluate_script)
432445
- [`get_console_message`](docs/tool-reference.md#get_console_message)
446+
- [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
433447
- [`list_console_messages`](docs/tool-reference.md#list_console_messages)
434448
- [`take_screenshot`](docs/tool-reference.md#take_screenshot)
435449
- [`take_snapshot`](docs/tool-reference.md#take_snapshot)
@@ -534,6 +548,10 @@ The Chrome DevTools MCP server supports the following configuration option:
534548
- **Type:** boolean
535549
- **Default:** `true`
536550

551+
- **`--slim`**
552+
Exposes a "slim" set of 3 tools covering navigation, script execution and screenshots only. Useful for basic browser tasks.
553+
- **Type:** boolean
554+
537555
<!-- END AUTO GENERATED OPTIONS -->
538556

539557
Pass them via the `args` property in the JSON configuration. For example:

docs/slim-tool-reference.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
2+
3+
# Chrome DevTools MCP Slim Tool Reference (~368 cl100k_base tokens)
4+
5+
- **[Navigation automation](#navigation-automation)** (1 tools)
6+
- [`navigate`](#navigate)
7+
- **[Debugging](#debugging)** (2 tools)
8+
- [`evaluate`](#evaluate)
9+
- [`screenshot`](#screenshot)
10+
11+
## Navigation automation
12+
13+
### `navigate`
14+
15+
**Description:** Load URL in the browser
16+
17+
**Parameters:**
18+
19+
- **url** (string) **(required)**: Page URL
20+
21+
---
22+
23+
## Debugging
24+
25+
### `evaluate`
26+
27+
**Description:** [`Evaluate`](#evaluate) a JavaScript function on the last loaded page
28+
29+
**Parameters:**
30+
31+
- **fn** (string) **(required)**: A JavaScript function to be executed on the active page
32+
33+
---
34+
35+
### `screenshot`
36+
37+
**Description:** Take a [`screenshot`](#screenshot) of the active page.
38+
39+
**Parameters:** None
40+
41+
---

docs/tool-reference.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
# Chrome DevTools MCP Tool Reference (~6980 cl100k_base tokens)
44

5-
- **[Audits](#audits)** (1 tools)
6-
- [`lighthouse_audit`](#lighthouse_audit)
75
- **[Input automation](#input-automation)** (8 tools)
86
- [`click`](#click)
97
- [`drag`](#drag)
@@ -30,27 +28,14 @@
3028
- **[Network](#network)** (2 tools)
3129
- [`get_network_request`](#get_network_request)
3230
- [`list_network_requests`](#list_network_requests)
33-
- **[Debugging](#debugging)** (5 tools)
31+
- **[Debugging](#debugging)** (6 tools)
3432
- [`evaluate_script`](#evaluate_script)
3533
- [`get_console_message`](#get_console_message)
34+
- [`lighthouse_audit`](#lighthouse_audit)
3635
- [`list_console_messages`](#list_console_messages)
3736
- [`take_screenshot`](#take_screenshot)
3837
- [`take_snapshot`](#take_snapshot)
3938

40-
## Audits
41-
42-
### `lighthouse_audit`
43-
44-
**Description:** Get Lighthouse score and reports for accesibility, SEO and best practices.
45-
46-
**Parameters:**
47-
48-
- **device** (enum: "desktop", "mobile") _(optional)_: The device to [`emulate`](#emulate).
49-
- **mode** (enum: "navigation", "snapshot") _(optional)_: "navigation" reloads the selected page and audits during the navigation. The "snapshot" mode analyzes the page in its current state.
50-
- **outputDirPath** (string) _(optional)_: The directory to output the reports to. If not provided, temporary files will be created.
51-
52-
---
53-
5439
## Input automation
5540

5641
### `click`
@@ -338,6 +323,18 @@ so returned values have to be JSON-serializable.
338323

339324
---
340325

326+
### `lighthouse_audit`
327+
328+
**Description:** Get Lighthouse score and reports for accesibility, SEO and best practices.
329+
330+
**Parameters:**
331+
332+
- **device** (enum: "desktop", "mobile") _(optional)_: The device to [`emulate`](#emulate).
333+
- **mode** (enum: "navigation", "snapshot") _(optional)_: "navigation" reloads the selected page and audits during the navigation. The "snapshot" mode analyzes the page in its current state.
334+
- **outputDirPath** (string) _(optional)_: The directory to output the reports to. If not provided, temporary files will be created.
335+
336+
---
337+
341338
### `list_console_messages`
342339

343340
**Description:** List all console messages for the currently selected page since the last navigation.

0 commit comments

Comments
 (0)