Skip to content

Commit d7fc20b

Browse files
authored
Merge branch 'main' into increase-mobile-devices-emulate
2 parents db91343 + a525f19 commit d7fc20b

Some content is hidden

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

47 files changed

+1364
-325
lines changed

.github/ISSUE_TEMPLATE/01-bug.yml

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

CHANGELOG.md

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

3+
## [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)
4+
5+
6+
### Bug Fixes
7+
8+
* 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))
9+
* **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))
10+
* 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))
11+
12+
## [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)
13+
14+
15+
### Features
16+
17+
* **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))
18+
* **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))
19+
* 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))
20+
* support --proxy-server CLI ([#230](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/230)) ([dfacc75](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/dfacc75ee9f46137b5194e35fc604b89a00ff53f))
21+
* 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))
22+
* 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))
23+
24+
25+
### Bug Fixes
26+
27+
* **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))
28+
* PageCollector subscribing multiple times ([#241](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/241)) ([0412878](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/0412878bf51ae46e48a171183bb38cfbbee1038a))
29+
* 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)
30+
31+
## [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)
32+
33+
34+
### Bug Fixes
35+
36+
* 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))
37+
38+
## [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)
39+
40+
41+
### Features
42+
43+
* **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))
44+
45+
46+
### Bug Fixes
47+
48+
* 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))
49+
* 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))
50+
* support node20 ([#52](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/52)) ([13613b4](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/13613b4a33ab7cf2d4fb1f4849bfa6b82f546945))
51+
* 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))
52+
353
## [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)
454

555

0 commit comments

Comments
 (0)