Skip to content

Commit 20925b7

Browse files
authored
Merge branch 'main' into main
2 parents 44a7126 + f415c3e commit 20925b7

22 files changed

+446
-290
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ updates:
1212
dependency-type: production
1313
exclude-patterns:
1414
- 'puppeteer*'
15+
- 'chrome-devtools-frontend'
1516
patterns:
1617
- '*'
1718
dev-dependencies:
@@ -23,6 +24,9 @@ updates:
2324
puppeteer:
2425
patterns:
2526
- 'puppeteer*'
27+
chrome-devtools-frontend:
28+
patterns:
29+
- 'chrome-devtools-frontend'
2630
- package-ecosystem: github-actions
2731
directory: /
2832
schedule:

.github/workflows/publish-to-npm-on-tag.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ jobs:
7777
- name: Build
7878
run: npm run build
7979

80-
- name: Bump
81-
run: npm run sync-server-json-version
82-
8380
- name: Install MCP Publisher
8481
run: |
8582
export VERSION="1.2.1"

.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.6.1"
2+
".": "0.8.0"
33
}

CHANGELOG.md

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

3+
## [0.8.0](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.7.1...chrome-devtools-mcp-v0.8.0) (2025-10-10)
4+
5+
6+
### Features
7+
8+
* support passing args to Chrome ([#338](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/338)) ([e1b5363](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/e1b536365363e1e1a3aa7661dd84290c794510ad))
9+
10+
## [0.7.1](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.7.0...chrome-devtools-mcp-v0.7.1) (2025-10-10)
11+
12+
13+
### Bug Fixes
14+
15+
* document that console and requests are since the last nav ([#335](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/335)) ([9ad7cbb](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/9ad7cbb2de3d285e46e5f3e7c098b0a7535c7e7a))
16+
17+
## [0.7.0](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.6.1...chrome-devtools-mcp-v0.7.0) (2025-10-10)
18+
19+
20+
### Features
21+
22+
* Add offline network emulation support to emulate_network command ([#326](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/326)) ([139ce60](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/139ce607814bf25ba541a7264ce96a04b2fac871))
23+
* add request and response body ([#267](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/267)) ([dd3c143](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/dd3c14336ee44d057d06231a5bfd5c5bcf661029))
24+
25+
26+
### Bug Fixes
27+
28+
* ordering of information in performance trace summary ([#334](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/334)) ([2d4484a](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/2d4484a123968754b4840d112b9c1ca59fb29997))
29+
* publishing to MCP registry ([#313](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/313)) ([1faec78](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/1faec78f84569a03f63585fb84df35992bcfe81a))
30+
* use default ProtocolTimeout ([#315](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/315)) ([a525f19](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/a525f199458afb266db4540bf0fa8007323f3301))
31+
332
## [0.6.1](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.6.0...chrome-devtools-mcp-v0.6.1) (2025-10-07)
433

534

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ for PR and commit titles.
3939

4040
## Installation
4141

42+
Check that you are using node version specified in .nvmrc, then run following commands:
43+
4244
```sh
4345
git clone https://github.com/ChromeDevTools/chrome-devtools-mcp.git
4446
cd chrome-devtools-mcp

README.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ Add the following config to your MCP client:
5353
5454
### MCP Client configuration
5555

56+
<details>
57+
<summary>Amp</summary>
58+
Follow https://ampcode.com/manual#mcp and use the config provided above. You can also install the Chrome DevTools MCP server using the CLI:
59+
60+
```bash
61+
amp mcp add chrome-devtools -- npx chrome-devtools-mcp@latest
62+
```
63+
64+
</details>
65+
5666
<details>
5767
<summary>Claude Code</summary>
5868
Use the Claude Code CLI to add the Chrome DevTools MCP server (<a href="https://docs.anthropic.com/en/docs/claude-code/mcp">guide</a>):
@@ -177,6 +187,15 @@ The same way chrome-devtools-mcp can be configured for JetBrains Junie in `Setti
177187

178188
</details>
179189

190+
<details>
191+
<summary>Kiro</summary>
192+
193+
In **Kiro Settings**, go to `Configure MCP` > `Open Workspace or User MCP Config` > Use the configuration snippet provided above.
194+
195+
Or, from the IDE **Activity Bar** > `Kiro` > `MCP Servers` > `Click Open MCP Config`. Use the configuration snippet provided above.
196+
197+
</details>
198+
180199
<details>
181200
<summary>Visual Studio</summary>
182201

@@ -291,6 +310,10 @@ The Chrome DevTools MCP server supports the following configuration option:
291310
If enabled, ignores errors relative to self-signed and expired certificates. Use with caution.
292311
- **Type:** boolean
293312

313+
- **`--chromeArg`**
314+
Additional arguments for Chrome. Only applies when Chrome is launched by chrome-devtools-mcp.
315+
- **Type:** array
316+
294317
<!-- END AUTO GENERATED OPTIONS -->
295318

296319
Pass them via the `args` property in the JSON configuration. For example:
@@ -328,6 +351,69 @@ all instances of `chrome-devtools-mcp`. Set the `isolated` option to `true`
328351
to use a temporary user data dir instead which will be cleared automatically after
329352
the browser is closed.
330353

354+
### Connecting to a running Chrome instance
355+
356+
You can connect to a running Chrome instance by using the `--browser-url` option. This is useful if you want to use your existing Chrome profile or if you are running the MCP server in a sandboxed environment that does not allow starting a new Chrome instance.
357+
358+
Here is a step-by-step guide on how to connect to a running Chrome Stable instance:
359+
360+
**Step 1: Configure the MCP client**
361+
362+
Add the `--browser-url` option to your MCP client configuration. The value of this option should be the URL of the running Chrome instance. `http://127.0.0.1:9222` is a common default.
363+
364+
```json
365+
{
366+
"mcpServers": {
367+
"chrome-devtools": {
368+
"command": "npx",
369+
"args": [
370+
"chrome-devtools-mcp@latest",
371+
"--browser-url=http://127.0.0.1:9222"
372+
]
373+
}
374+
}
375+
}
376+
```
377+
378+
**Step 2: Start the Chrome browser**
379+
380+
> [!WARNING]
381+
> Enabling the remote debugging port opens up a debugging port on the running browser instance. Any application on your machine can connect to this port and control the browser. Make sure that you are not browsing any sensitive websites while the debugging port is open.
382+
383+
Start the Chrome browser with the remote debugging port enabled. Make sure to close any running Chrome instances before starting a new one with the debugging port enabled. The port number you choose must be the same as the one you specified in the `--browser-url` option in your MCP client configuration.
384+
385+
For security reasons, [Chrome requires you to use a non-default user data directory](https://developer.chrome.com/blog/remote-debugging-port) when enabling the remote debugging port. You can specify a custom directory using the `--user-data-dir` flag. This ensures that your regular browsing profile and data are not exposed to the debugging session.
386+
387+
**macOS**
388+
389+
```bash
390+
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
391+
```
392+
393+
**Linux**
394+
395+
```bash
396+
/usr/bin/google-chrome --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-profile-stable
397+
```
398+
399+
**Windows**
400+
401+
```bash
402+
"C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 --user-data-dir="%TEMP%\chrome-profile-stable"
403+
```
404+
405+
**Step 3: Test your setup**
406+
407+
After configuring the MCP client and starting the Chrome browser, you can test your setup by running a simple prompt in your MCP client:
408+
409+
```
410+
Check the performance of https://developers.chrome.com
411+
```
412+
413+
Your MCP client should connect to the running Chrome instance and receive a performance report.
414+
415+
For more details on remote debugging, see the [Chrome DevTools documentation](https://developer.chrome.com/docs/devtools/remote-debugging/).
416+
331417
## Known limitations
332418

333419
### Operating system sandboxes

docs/tool-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264

265265
### `list_network_requests`
266266

267-
**Description:** List all requests for the currently selected page
267+
**Description:** List all requests for the currently selected page since the last navigation.
268268

269269
**Parameters:**
270270

@@ -298,7 +298,7 @@ so returned values have to JSON-serializable.
298298

299299
### `list_console_messages`
300300

301-
**Description:** List all console messages for the currently selected page
301+
**Description:** List all console messages for the currently selected page since the last navigation.
302302

303303
**Parameters:** None
304304

0 commit comments

Comments
 (0)