Skip to content

Commit 1b1afe9

Browse files
authored
Merge branch 'main' into fix-322-spawn-unknown
2 parents 4f96bd4 + 32620ce commit 1b1afe9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1715
-493
lines changed

.github/ISSUE_TEMPLATE/01-bug.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Bug report
2+
description: File a bug report for chrome-devtools-mcp
3+
title: '<short description of the bug>'
4+
type: 'Bug'
5+
body:
6+
- id: description
7+
type: textarea
8+
attributes:
9+
label: Description of the bug
10+
description: >
11+
A clear and concise description of what the bug is.
12+
placeholder:
13+
validations:
14+
required: true
15+
16+
- id: reproduce
17+
type: textarea
18+
attributes:
19+
label: Reproduction
20+
description: >
21+
Steps to reproduce the behavior:
22+
placeholder: |
23+
1. Use tool '...'
24+
2. Then use tool '...'
25+
26+
- id: expectation
27+
type: textarea
28+
attributes:
29+
label: Expectation
30+
description: A clear and concise description of what you expected to happen.
31+
32+
- id: mcp-configuration
33+
type: textarea
34+
attributes:
35+
label: MCP configuration
36+
37+
- id: node-version
38+
type: input
39+
attributes:
40+
label: Node version
41+
description: >
42+
Please verify you have the minimal supported version listed in the README.md
43+
44+
- id: chrome-version
45+
type: input
46+
attributes:
47+
label: Chrome version
48+
49+
- id: coding-agent-version
50+
type: input
51+
attributes:
52+
label: Coding agent version
53+
54+
- id: model-version
55+
type: input
56+
attributes:
57+
label: Model version
58+
59+
- id: chat-log
60+
type: input
61+
attributes:
62+
label: Chat log
63+
64+
- id: operating-system
65+
type: dropdown
66+
attributes:
67+
label: Operating system
68+
description: What supported operating system are you running?
69+
options:
70+
- Windows
71+
- macOS
72+
- Linux

.github/ISSUE_TEMPLATE/bug_report.md

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

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,19 @@ updates:
1010
groups:
1111
dependencies:
1212
dependency-type: production
13+
exclude-patterns:
14+
- 'puppeteer*'
1315
patterns:
1416
- '*'
1517
dev-dependencies:
1618
dependency-type: development
19+
exclude-patterns:
20+
- 'puppeteer*'
1721
patterns:
1822
- '*'
23+
puppeteer:
24+
patterns:
25+
- 'puppeteer*'
1926
- package-ecosystem: github-actions
2027
directory: /
2128
schedule:
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Conventional Commit'
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
# Defaults
7+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target
8+
- opened
9+
- reopened
10+
- synchronize
11+
# Tracks editing PR title or description, or base branch changes
12+
# https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=edited#pull_request
13+
- edited
14+
15+
jobs:
16+
main:
17+
name: '[Required] Validate PR title'
18+
runs-on: ubuntu-latest
19+
permissions:
20+
pull-requests: read
21+
steps:
22+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/presubmit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
jobs:
1212
check-format:
13+
name: '[Required] Check correct format'
1314
runs-on: ubuntu-latest
1415

1516
steps:
@@ -31,6 +32,7 @@ jobs:
3132
run: npm run check-format
3233

3334
check-docs:
35+
name: '[Required] Check docs updated'
3436
runs-on: ubuntu-latest
3537

3638
steps:

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ on:
44
push:
55
tags:
66
- 'chrome-devtools-mcp-v*'
7+
workflow_dispatch:
8+
inputs:
9+
npm-publish:
10+
description: 'Try to publish to NPM'
11+
default: false
12+
type: boolean
13+
mcp-publish:
14+
description: 'Try to publish to MCP registry'
15+
default: true
16+
type: boolean
717

818
permissions:
919
id-token: write # Required for OIDC
@@ -12,6 +22,7 @@ permissions:
1222
jobs:
1323
publish-to-npm:
1424
runs-on: ubuntu-latest
25+
if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.npm-publish && always()) }}
1526
steps:
1627
- name: Check out repository
1728
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -42,6 +53,7 @@ jobs:
4253
publish-to-mcp-registry:
4354
runs-on: ubuntu-latest
4455
needs: publish-to-npm
56+
if: ${{ (github.event_name != 'workflow_dispatch' && needs.publish-to-npm.result == 'success') || (inputs.mcp-publish && always()) }}
4557
steps:
4658
- name: Check out repository
4759
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -70,7 +82,9 @@ jobs:
7082

7183
- name: Install MCP Publisher
7284
run: |
73-
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v1.1.0/mcp-publisher_1.1.0_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher
85+
export VERSION="1.2.1"
86+
export OS=$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')
87+
curl -L "https://github.com/modelcontextprotocol/registry/releases/download/v${VERSION}/mcp-publisher_${VERSION}_${OS}.tar.gz" | tar xz mcp-publisher
7488
7589
- name: Login to MCP Registry
7690
run: ./mcp-publisher login github-oidc

.github/workflows/run-tests.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- windows-latest
2121
- macos-latest
2222
node:
23-
- 22.12.0
23+
- 20
2424
- 22
2525
- 23
2626
- 24
@@ -34,19 +34,34 @@ jobs:
3434
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
3535
with:
3636
cache: npm
37-
node-version: ${{ matrix.node }}
37+
node-version: 22 # build works only with 22+.
3838

3939
- name: Install dependencies
4040
shell: bash
4141
run: npm ci
4242

43+
- name: Build
44+
run: npm run build
45+
46+
- name: Set up Node.js
47+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
48+
with:
49+
cache: npm
50+
node-version: ${{ matrix.node }}
51+
4352
- name: Disable AppArmor
4453
if: ${{ matrix.os == 'ubuntu-latest' }}
4554
shell: bash
4655
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
4756

57+
- name: Run tests (node20)
58+
if: ${{ matrix.node == '20' }}
59+
shell: bash
60+
run: npm run test:node20
61+
4862
- name: Run tests
4963
shell: bash
64+
if: ${{ matrix.node != '20' }}
5065
run: npm run test
5166

5267
# Gating job for branch protection.

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

CHANGELOG.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,84 @@
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+
32+
## [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)
33+
34+
35+
### Bug Fixes
36+
37+
* change default screen size in headless ([#299](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/299)) ([357db65](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/357db65d18f87b1299a0f6212b7ec982ef187171))
38+
* **cli:** tolerate empty browser URLs ([#298](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/298)) ([098a904](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/098a904b363f3ad81595ed58c25d34dd7d82bcd8))
39+
* guard performance_stop_trace when tracing inactive ([#295](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/295)) ([8200194](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/8200194c8037cc30b8ab815e5ee0d0b2b000bea6))
40+
41+
## [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)
42+
43+
44+
### Features
45+
46+
* **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))
47+
* **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))
48+
* 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))
49+
* support --proxy-server CLI ([#230](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/230)) ([dfacc75](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/dfacc75ee9f46137b5194e35fc604b89a00ff53f))
50+
* 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))
51+
* 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))
52+
53+
54+
### Bug Fixes
55+
56+
* **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))
57+
* PageCollector subscribing multiple times ([#241](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/241)) ([0412878](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/0412878bf51ae46e48a171183bb38cfbbee1038a))
58+
* 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)
59+
60+
## [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)
61+
62+
63+
### Bug Fixes
64+
65+
* update package.json engines to reflect node20 support ([#210](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/210)) ([b31e647](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/b31e64713e0524f28cbf760fad27b25829ec419d))
66+
67+
## [0.5.0](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.4.0...chrome-devtools-mcp-v0.5.0) (2025-09-29)
68+
69+
70+
### Features
71+
72+
* **screenshot:** add JPEG quality parameter support ([#184](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/184)) ([139cfd1](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/139cfd135cdb07573fe87d824631fcdb6153186e))
73+
74+
75+
### Bug Fixes
76+
77+
* do not error if the dialog was already handled ([#208](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/208)) ([d9f77f8](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/d9f77f85098ffe851308c5de05effb03ac21237b))
78+
* reference to handle_dialog tool ([#209](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/209)) ([205eef5](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/205eef5cdff19ccb7ddbd113bb1450cb87e8f398))
79+
* support node20 ([#52](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/52)) ([13613b4](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/13613b4a33ab7cf2d4fb1f4849bfa6b82f546945))
80+
* update tool reference in an error ([#205](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/205)) ([7765bb3](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/7765bb381ad9d01219547faf879a74978188754a))
81+
382
## [0.4.0](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.3.0...chrome-devtools-mcp-v0.4.0) (2025-09-26)
483

584

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

0 commit comments

Comments
 (0)