Skip to content

Commit d4da5d5

Browse files
authored
Merge branch 'main' into fix/940-improve-mcp-invocation
2 parents 0bc270a + 46bd54f commit d4da5d5

8 files changed

Lines changed: 73 additions & 9 deletions

File tree

.github/workflows/pre-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ jobs:
2323
with:
2424
cache: npm
2525
node-version-file: '.nvmrc'
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
# Ensure npm 11.5.1 or later is installed
29+
- name: Update npm
30+
run: npm install -g npm@latest
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Build and bundle
36+
run: npm run bundle
37+
env:
38+
NODE_ENV: 'production'
2639

2740
- name: Verify server.json
2841
run: npm run verify-server-json-version
42+
43+
- name: Verify npm package
44+
run: npm run verify-npm-package

.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.17.2"
2+
".": "0.17.3"
33
}

CHANGELOG.md

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

3+
## [0.17.3](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.17.2...chrome-devtools-mcp-v0.17.3) (2026-02-19)
4+
5+
6+
### 🛠️ Fixes
7+
8+
* remove clean from prepare ([#997](https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/997)) ([2016b98](https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/2016b98217bf5aa8d65c6668b1e46c8a3400276f))
9+
310
## [0.17.2](https://github.com/ChromeDevTools/chrome-devtools-mcp/compare/chrome-devtools-mcp-v0.17.1...chrome-devtools-mcp-v0.17.2) (2026-02-19)
411

512

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chrome-devtools-mcp",
3-
"version": "0.17.2",
3+
"version": "0.17.3",
44
"description": "MCP server for Chrome DevTools",
55
"type": "module",
66
"bin": "./build/src/index.js",
@@ -20,14 +20,14 @@
2020
"test:no-build": "node scripts/test.mjs",
2121
"test:only": "npm run build && node scripts/test.mjs --test-only",
2222
"test:update-snapshots": "npm run build && node scripts/test.mjs --test-update-snapshots",
23-
"prepare": "npm run clean && node --experimental-strip-types scripts/prepare.ts",
23+
"prepare": "node --experimental-strip-types scripts/prepare.ts",
2424
"verify-server-json-version": "node --experimental-strip-types scripts/verify-server-json-version.ts",
25+
"verify-npm-package": "node scripts/verify-npm-package.mjs",
2526
"eval": "npm run build && CHROME_DEVTOOLS_MCP_NO_USAGE_STATISTICS=true node --experimental-strip-types scripts/eval_gemini.ts",
2627
"count-tokens": "node --experimental-strip-types scripts/count_tokens.ts"
2728
},
2829
"files": [
2930
"build/src",
30-
"build/node_modules",
3131
"LICENSE",
3232
"!*.tsbuildinfo"
3333
],

scripts/verify-npm-package.mjs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @license
3+
* Copyright 2026 Google LLC
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
import {execSync} from 'node:child_process';
8+
9+
// Checks that the select build files are present using `npm publish --dry-run`.
10+
function verifyPackageContents() {
11+
try {
12+
const output = execSync('npm publish --dry-run --json --silent', {
13+
encoding: 'utf8',
14+
});
15+
// skip non-JSON output from prepare.
16+
const data = JSON.parse(output.substring(output.indexOf('{')));
17+
const files = data.files.map(f => f.path);
18+
// Check some important files.
19+
const requiredPaths = [
20+
'build/src/index.js',
21+
'build/src/third_party/index.js',
22+
];
23+
for (const requiredPath of requiredPaths) {
24+
const hasBuildFolder = files.some(path => path.startsWith(requiredPath));
25+
if (!hasBuildFolder) {
26+
console.error(
27+
`Assertion Failed: "${requiredPath}" not found in tarball.`,
28+
);
29+
process.exit(1);
30+
}
31+
}
32+
console.log(
33+
`npm publish --dry-run contained ${JSON.stringify(requiredPaths)}`,
34+
);
35+
} catch (err) {
36+
console.error('failed to parse npm publish output', err);
37+
process.exit(1);
38+
}
39+
}
40+
41+
verifyPackageContents();

server.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
"url": "https://github.com/ChromeDevTools/chrome-devtools-mcp",
88
"source": "github"
99
},
10-
"version": "0.17.2",
10+
"version": "0.17.3",
1111
"packages": [
1212
{
1313
"registryType": "npm",
1414
"registryBaseUrl": "https://registry.npmjs.org",
1515
"identifier": "chrome-devtools-mcp",
16-
"version": "0.17.2",
16+
"version": "0.17.3",
1717
"transport": {
1818
"type": "stdio"
1919
},

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {tools} from './tools/tools.js';
3131

3232
// If moved update release-please config
3333
// x-release-please-start-version
34-
const VERSION = '0.17.2';
34+
const VERSION = '0.17.3';
3535
// x-release-please-end
3636

3737
export const args = parseArguments(VERSION);

0 commit comments

Comments
 (0)