Skip to content

Commit b92b5c6

Browse files
fix: avoid evaluate sync deadlock and handle dialog rejections
Replaced `alert()` with `setTimeout(() => alert(), 10)` in `script.test.ts` to prevent headless Chromium deadlocks during `evaluate` in CI environments. Additionally added `.catch(logger)` when resolving dialog actions to prevent unhandled promise rejections if the dialog closes too quickly or fails. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 0585595 commit b92b5c6

34 files changed

Lines changed: 305 additions & 2001 deletions

.github/plugin/plugin.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# Prettier-only ignores.
22
CHANGELOG.md
3-
src/third_party/lighthouse-devtools-mcp-bundle.js
4-
5-
# Release-please formatting brakes CI checks
6-
.claude-plugin/plugin.json
3+
src/third_party/lighthouse-devtools-mcp-bundle.js

README.md

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ Google handles this data in accordance with the [Google Privacy Policy](https://
5151

5252
Google's collection of usage statistics for Chrome DevTools MCP is independent from the Chrome browser's usage statistics. Opting out of Chrome metrics does not automatically opt you out of this tool, and vice-versa.
5353

54-
Collection is disabled if `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` env variables are set.
55-
56-
## Update checks
57-
58-
By default, the server periodically checks the npm registry for updates and logs a notification when a newer version is available.
59-
You can disable these update checks by setting the `CHROME_DEVTOOLS_MCP_NO_UPDATE_CHECKS` environment variable.
54+
Collection is disabled if CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI env variables are set.
6055

6156
## Requirements
6257

@@ -240,22 +235,6 @@ Configure the following fields and press `CTRL+S` to save the configuration:
240235
<details>
241236
<summary>Copilot / VS Code</summary>
242237

243-
**Install as a Plugin (Recommended)**
244-
245-
The easiest way to get up and running is to install `chrome-devtools-mcp` as an agent plugin.
246-
This bundles the **MCP server** and all **skills** together, so your agent gets both the tools
247-
and the expert guidance it needs to use them effectively.
248-
249-
1. Open the **Command Palette** (`Cmd+Shift+P` on macOS or `Ctrl+Shift+P` on Windows/Linux).
250-
2. Search for and run the **Chat: Install Plugin From Source** command.
251-
3. Paste in our repository URL: `https://github.com/ChromeDevTools/chrome-devtools-mcp`
252-
253-
That's it! Your agent is now supercharged with Chrome DevTools capabilities.
254-
255-
---
256-
257-
**Install as an MCP Server (MCP only)**
258-
259238
**Click the button to install:**
260239

261240
[<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=Install%20Server&color=0098FF" alt="Install in VS Code">](https://vscode.dev/redirect/mcp/install?name=io.github.ChromeDevTools%2Fchrome-devtools-mcp&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22chrome-devtools-mcp%22%5D%2C%22env%22%3A%7B%7D%7D)
@@ -264,7 +243,8 @@ That's it! Your agent is now supercharged with Chrome DevTools capabilities.
264243

265244
**Or install manually:**
266245

267-
Follow the VS Code [MCP configuration guide](https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server) using the standard config from above, or use the CLI:
246+
Follow the MCP install <a href="https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server">guide</a>,
247+
with the standard config from above. You can also install the Chrome DevTools MCP server using the VS Code CLI:
268248

269249
For macOS and Linux:
270250

@@ -423,10 +403,9 @@ qodercli mcp add -s user chrome-devtools -- npx chrome-devtools-mcp@latest
423403
<details>
424404
<summary>Visual Studio</summary>
425405

426-
**Click the button to install:**
427-
428-
[<img src="https://img.shields.io/badge/Visual_Studio-Install-C16FDE?logo=visualstudio&logoColor=white" alt="Install in Visual Studio">](https://vs-open.link/mcp-install?%7B%22name%22%3A%22chrome-devtools%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22chrome-devtools-mcp%40latest%22%5D%7D)
406+
**Click the button to install:**
429407

408+
[<img src="https://img.shields.io/badge/Visual_Studio-Install-C16FDE?logo=visualstudio&logoColor=white" alt="Install in Visual Studio">](https://vs-open.link/mcp-install?%7B%22name%22%3A%22chrome-devtools%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22chrome-devtools-mcp%40latest%22%5D%7D)
430409
</details>
431410

432411
<details>
@@ -560,10 +539,6 @@ The Chrome DevTools MCP server supports the following configuration option:
560539
If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.
561540
- **Type:** boolean
562541

563-
- **`--experimentalVision`/ `--experimental-vision`**
564-
Whether to enable coordinate-based tools such as click_at(x,y). Usually requires a computer-use model able to produce accurate coordinates by looking at screenshots.
565-
- **Type:** boolean
566-
567542
- **`--experimentalScreencast`/ `--experimental-screencast`**
568543
Exposes experimental screencast tools (requires ffmpeg). Install ffmpeg https://www.ffmpeg.org/download.html and ensure it is available in the MCP server PATH.
569544
- **Type:** boolean
@@ -597,7 +572,7 @@ The Chrome DevTools MCP server supports the following configuration option:
597572
- **Default:** `true`
598573

599574
- **`--usageStatistics`/ `--usage-statistics`**
600-
Set to false to opt-out of usage statistics collection. Google collects usage data to improve the tool, handled under the Google Privacy Policy (https://policies.google.com/privacy). This is independent from Chrome browser metrics. Disabled if `CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS` or `CI` env variables are set.
575+
Set to false to opt-out of usage statistics collection. Google collects usage data to improve the tool, handled under the Google Privacy Policy (https://policies.google.com/privacy). This is independent from Chrome browser metrics. Disabled if CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS or CI env variables are set.
601576
- **Type:** boolean
602577
- **Default:** `true`
603578

0 commit comments

Comments
 (0)