Skip to content

Commit 7d61330

Browse files
committed
Merge origin/main into local main
2 parents 46ba05d + 8ed0821 commit 7d61330

27 files changed

+608
-183
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.5.1"
2+
".": "0.6.0"
33
}

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## [0.6.0](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.5.1...chrome-devtools-mcp-v0.6.0) (2025-10-01)
4+
5+
6+
### Features
7+
8+
* **screenshot:** add WebP format support with quality parameter ([#220](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/220)) ([03e02a2](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/03e02a2d769fbfc0c98599444dfed5413d15ae6e))
9+
* **screenshot:** adds ability to output screenshot to a specific pat… ([#172](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/172)) ([f030726](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/f03072698ddda8587ce23229d733405f88b7c89e))
10+
* support --accept-insecure-certs CLI ([#231](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/231)) ([efb106d](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/efb106dc94af0057f88c89f810beb65114eeaa4b))
11+
* support --proxy-server CLI ([#230](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/230)) ([dfacc75](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/dfacc75ee9f46137b5194e35fc604b89a00ff53f))
12+
* support initial viewport in the CLI ([#229](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/229)) ([ef61a08](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/ef61a08707056c5078d268a83a2c95d10e224f31))
13+
* support timeouts in wait_for and navigations ([#228](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/228)) ([36e64d5](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/36e64d5ae21e8bb244a18201a23a16932947e938))
14+
15+
16+
### Bug Fixes
17+
18+
* **network:** show only selected request ([#236](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/236)) ([73f0aec](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/73f0aecd8a48b9d1ee354897fe14d785c80e863e))
19+
* PageCollector subscribing multiple times ([#241](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/241)) ([0412878](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/0412878bf51ae46e48a171183bb38cfbbee1038a))
20+
* snapshot does not capture Iframe content ([#217](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/217)) ([ce356f2](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/ce356f256545e805db74664797de5f42e7b92bed)), closes [#186](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/186)
21+
322
## [0.5.1](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.5.0...chrome-devtools-mcp-v0.5.1) (2025-09-29)
423

524

README.md

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ control and inspect a live Chrome browser. It acts as a Model-Context-Protocol
77
(MCP) server, giving your AI coding assistant access to the full power of
88
Chrome DevTools for reliable automation, in-depth debugging, and performance analysis.
99

10+
## [Tool reference](./docs/tool-reference.md) | [Changelog](./CHANGELOG.md) | [Contributing](./CONTRIBUTING.md) | [Troubleshooting](./docs/troubleshooting.md)
11+
1012
## Key features
1113

1214
- **Get performance insights**: Uses [Chrome
@@ -40,7 +42,7 @@ Add the following config to your MCP client:
4042
"mcpServers": {
4143
"chrome-devtools": {
4244
"command": "npx",
43-
"args": ["chrome-devtools-mcp@latest"]
45+
"args": ["-y", "chrome-devtools-mcp@latest"]
4446
}
4547
}
4648
}
@@ -94,6 +96,30 @@ startup_timeout_ms = 20_000
9496

9597
</details>
9698

99+
<details>
100+
<summary>Copilot CLI</summary>
101+
102+
Start Copilot CLI:
103+
104+
```
105+
copilot
106+
```
107+
108+
Start the dialog to add a new MCP server by running:
109+
110+
```
111+
/mcp add
112+
```
113+
114+
Configure the following fields and press `CTR-S` to save the configuration:
115+
116+
- **Server name:** `chrome-devtools`
117+
- **Server Type:** `[1] Local`
118+
- **Command:** `npx`
119+
- **Arguments:** `-y, chrome-devtools-mcp@latest`
120+
121+
</details>
122+
97123
<details>
98124
<summary>Copilot / VS Code</summary>
99125
Follow the MCP install <a href="https://code.visualstudio.com/docs/copilot/chat/mcp-servers#_add-an-mcp-server">guide</a>,
@@ -104,20 +130,12 @@ startup_timeout_ms = 20_000
104130
```
105131
</details>
106132

107-
<details>
108-
<summary>Visual Studio</summary>
109-
110-
**Click the button to install:**
111-
112-
[<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)
113-
</details>
114-
115133
<details>
116134
<summary>Cursor</summary>
117135

118136
**Click the button to install:**
119137

120-
[<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=chrome-devtools&config=eyJjb21tYW5kIjoibnB4IGNocm9tZS1kZXZ0b29scy1tY3BAbGF0ZXN0In0%3D)
138+
[<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=chrome-devtools&config=eyJjb21tYW5kIjoibnB4IC15IGNocm9tZS1kZXZ0b29scy1tY3BAbGF0ZXN0In0%3D)
121139

122140
**Or install manually:**
123141

@@ -159,6 +177,14 @@ The same way chrome-devtools-mcp can be configured for JetBrains Junie in `Setti
159177

160178
</details>
161179

180+
<details>
181+
<summary>Visual Studio</summary>
182+
183+
**Click the button to install:**
184+
185+
[<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)
186+
</details>
187+
162188
### Your first prompt
163189

164190
Enter the following prompt in your MCP Client to check if everything is working:
@@ -174,6 +200,8 @@ Your MCP client should open the browser and record a performance trace.
174200
175201
## Tools
176202

203+
If you run into any issues, checkout our [troubleshooting guide](./docs/troubleshooting.md).
204+
177205
<!-- BEGIN AUTO GENERATED TOOLS -->
178206

179207
- **Input automation** (7 tools)
@@ -244,6 +272,18 @@ The Chrome DevTools MCP server supports the following configuration option:
244272
Path to a file to write debug logs to. Set the env variable `DEBUG` to `*` to enable verbose logs. Useful for submitting bug reports.
245273
- **Type:** string
246274

275+
- **`--viewport`**
276+
Initial viewport size for the Chromee instances started by the server. For example, `1280x720`
277+
- **Type:** string
278+
279+
- **`--proxyServer`**
280+
Proxy server configuration for Chrome passed as --proxy-server when launching the browser. See https://www.chromium.org/developers/design-documents/network-settings/ for details.
281+
- **Type:** string
282+
283+
- **`--acceptInsecureCerts`**
284+
If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.
285+
- **Type:** boolean
286+
247287
<!-- END AUTO GENERATED OPTIONS -->
248288

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

docs/tool-reference.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138

139139
**Parameters:**
140140

141+
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
141142
- **url** (string) **(required)**: URL to navigate the page to
142143

143144
---
@@ -149,6 +150,7 @@
149150
**Parameters:**
150151

151152
- **navigate** (enum: "back", "forward") **(required)**: Whether to navigate back or navigate forward in the selected pages history
153+
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
152154

153155
---
154156

@@ -158,6 +160,7 @@
158160

159161
**Parameters:**
160162

163+
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
161164
- **url** (string) **(required)**: URL to load in a new page.
162165

163166
---
@@ -179,6 +182,7 @@
179182
**Parameters:**
180183

181184
- **text** (string) **(required)**: Text to appear on the page
185+
- **timeout** (integer) _(optional)_: Maximum wait time in milliseconds. If set to 0, the default timeout will be used.
182186

183187
---
184188

@@ -306,6 +310,7 @@ so returned values have to JSON-serializable.
306310

307311
**Parameters:**
308312

313+
- **filePath** (string) _(optional)_: The absolute path, or a path relative to the current working directory, to save the screenshot to instead of attaching it to the response.
309314
- **format** (enum: "png", "jpeg", "webp") _(optional)_: Type of format to save the screenshot as. Default is "png"
310315
- **fullPage** (boolean) _(optional)_: If set to true takes a screenshot of the full page instead of the currently visible viewport. Incompatible with uid.
311316
- **quality** (number) _(optional)_: Compression quality for JPEG and WebP formats (0-100). Higher values mean better quality but larger file sizes. Ignored for PNG format.

docs/troubleshooting.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Troubleshooting
2+
3+
## General tips
4+
5+
- Run `npx chrome-devtools-mcp@latest --help` to test if the MCP server runs on your machine.
6+
- Make sure that your MCP client uses the same npm and node version as your terminal.
7+
- When configuring your MCP client, try using the `--yes` argument to `npx` to
8+
auto-accept installation prompt.
9+
- Find a specific error in the output of the `chrome-devtools-mcp` server.
10+
Usually, if you client is an IDE, logs would be in the Output pane.
11+
12+
## Specific problems
13+
14+
### `Error [ERR_MODULE_NOT_FOUND]: Cannot find module ...`
15+
16+
This usually indicates either a non-supported Node version is in use or that the
17+
`npm`/`npx` cache is corrupted. Try clearing the cache, uninstalling
18+
`chrome-devtools-mcp` and installing it again. Clear the cache by running:
19+
20+
```sh
21+
rm -rf ~/.npm/_npx # NOTE: this might remove other installed npx executables.
22+
npm cache clean --force
23+
```
24+
25+
### `Target closed` error
26+
27+
This indicates that the browser could not be started. Make sure that no Chrome
28+
instances are running or close them. Make sure you have the latest stable Chrome
29+
installed and that [your system is able to run Chrome](https://support.google.com/chrome/a/answer/7100626?hl=en).

0 commit comments

Comments
 (0)