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.
- package/build/src/ToolHandler.js +1 -1
- package/build/src/tools/script.js +1 -1
- package/build/src/version.js +1 -1
- package/package.json +11 -11
package/build/src/ToolHandler.js
CHANGED
|
@@ -104,7 +104,7 @@ export class ToolHandler {
|
|
|
104
104
|
tool.pageScoped &&
|
|
105
105
|
serverArgs.experimentalPageIdRouting &&
|
|
106
106
|
!serverArgs.slim
|
|
107
|
-
? { ...tool.schema
|
|
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
|
package/build/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chrome-devtools-mcp",
|
|
3
|
-
"version": "1.1.
|
|
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
|
|
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
|
|
15
|
-
"build": "tsc && node
|
|
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
|
|
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
|
|
28
|
-
"verify-server-json-version": "node
|
|
29
|
-
"update-lighthouse": "node
|
|
30
|
-
"update-metrics": "node
|
|
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
|
|
33
|
-
"count-tokens": "node
|
|
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",
|