chrome-devtools-mcp 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -104,7 +104,7 @@ export class ToolHandler {
104
104
  tool.pageScoped &&
105
105
  serverArgs.experimentalPageIdRouting &&
106
106
  !serverArgs.slim
107
- ? { ...tool.schema, ...pageIdSchema }
107
+ ? { ...pageIdSchema, ...tool.schema }
108
108
  : tool.schema;
109
109
  this.registeredInputSchema = zod.object(this.inputSchema).passthrough();
110
110
  }
@@ -16,6 +16,7 @@ so returned values have to be JSON-serializable.`,
16
16
  readOnlyHint: false,
17
17
  },
18
18
  schema: {
19
+ ...(cliArgs?.experimentalPageIdRouting ? pageIdSchema : {}),
19
20
  function: zod.string().describe(`A JavaScript function declaration to be executed by the tool in the currently selected page.
20
21
  Example without arguments: \`() => {
21
22
  return document.title
@@ -40,7 +41,6 @@ Example with arguments: \`(el) => {
40
41
  .string()
41
42
  .optional()
42
43
  .describe('Handle dialogs while execution. "accept", "dismiss", or string for response of window.prompt. Defaults to accept.'),
43
- ...(cliArgs?.experimentalPageIdRouting ? pageIdSchema : {}),
44
44
  ...(cliArgs?.categoryExtensions
45
45
  ? {
46
46
  serviceWorkerId: zod
@@ -5,6 +5,6 @@
5
5
  */
6
6
  // If moved update release-please config
7
7
  // x-release-please-start-version
8
- export const VERSION = '1.1.0';
8
+ export const VERSION = '1.1.1';
9
9
  // x-release-please-end
10
10
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrome-devtools-mcp",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "MCP server for Chrome DevTools",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,28 +9,28 @@
9
9
  },
10
10
  "main": "./build/src/index.js",
11
11
  "scripts": {
12
- "cli:generate": "node --experimental-strip-types scripts/generate-cli.ts",
12
+ "cli:generate": "node scripts/generate-cli.ts",
13
13
  "clean": "node -e \"require('fs').rmSync('build', {recursive: true, force: true})\"",
14
- "bundle": "npm run clean && npm run build && rollup -c rollup.config.mjs && node -e \"require('fs').rmSync('build/node_modules', {recursive: true, force: true})\" && node --experimental-strip-types scripts/append-lighthouse-notices.ts",
15
- "build": "tsc && node --experimental-strip-types --no-warnings=ExperimentalWarning scripts/post-build.ts",
14
+ "bundle": "npm run clean && npm run build && rollup -c rollup.config.mjs && node -e \"require('fs').rmSync('build/node_modules', {recursive: true, force: true})\" && node scripts/append-lighthouse-notices.ts",
15
+ "build": "tsc && node scripts/post-build.ts",
16
16
  "typecheck": "tsc --noEmit",
17
17
  "format": "eslint --cache --fix . && prettier --write --cache .",
18
18
  "check-format": "eslint --cache . && prettier --check --cache .;",
19
19
  "gen": "npm run build && npm run docs:generate && npm run cli:generate && npm run update-metrics && npm run format",
20
- "docs:generate": "node --experimental-strip-types scripts/generate-docs.ts",
20
+ "docs:generate": "node scripts/generate-docs.ts",
21
21
  "start": "npm run build && node build/src/bin/chrome-devtools-mcp.js",
22
22
  "start-debug": "DEBUG=mcp:* DEBUG_COLORS=false npm run build && node build/src/bin/chrome-devtools-mcp.js",
23
23
  "test": "npm run build && node scripts/test.mjs",
24
24
  "test:no-build": "node scripts/test.mjs",
25
25
  "test:only": "npm run build && node scripts/test.mjs --test-only",
26
26
  "test:update-snapshots": "npm run build && node scripts/test.mjs --test-update-snapshots",
27
- "prepare": "node --experimental-strip-types scripts/prepare.ts",
28
- "verify-server-json-version": "node --experimental-strip-types scripts/verify-server-json-version.ts",
29
- "update-lighthouse": "node --experimental-strip-types scripts/update-lighthouse.ts",
30
- "update-metrics": "node --experimental-strip-types scripts/update_metrics.ts",
27
+ "prepare": "node scripts/prepare.ts",
28
+ "verify-server-json-version": "node scripts/verify-server-json-version.ts",
29
+ "update-lighthouse": "node scripts/update-lighthouse.ts",
30
+ "update-metrics": "node scripts/update_metrics.ts",
31
31
  "verify-npm-package": "node scripts/verify-npm-package.mjs",
32
- "eval": "npm run build && node --experimental-strip-types scripts/eval_gemini.ts",
33
- "count-tokens": "node --experimental-strip-types scripts/count_tokens.ts"
32
+ "eval": "npm run build && node scripts/eval_gemini.ts",
33
+ "count-tokens": "node scripts/count_tokens.ts"
34
34
  },
35
35
  "files": [
36
36
  "build/src",