chrome-devtools-mcp 0.15.1 → 0.17.0
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/README.md +13 -5
- package/build/src/DevtoolsUtils.js +120 -5
- package/build/src/McpContext.js +5 -9
- package/build/src/McpResponse.js +4 -10
- package/build/src/PageCollector.js +18 -2
- package/build/src/cli.js +9 -0
- package/build/src/formatters/ConsoleFormatter.js +155 -68
- package/build/src/main.js +5 -1
- package/build/src/third_party/THIRD_PARTY_NOTICES +4 -4
- package/build/src/third_party/bundled-packages.json +3 -3
- package/build/src/third_party/devtools-formatter-worker.js +0 -2
- package/build/src/third_party/index.js +512 -295
- package/build/src/tools/input.js +0 -1
- package/build/src/tools/performance.js +31 -1
- package/build/src/tools/script.js +2 -2
- package/package.json +5 -5
package/build/src/main.js
CHANGED
|
@@ -20,7 +20,7 @@ import { ToolCategory } from './tools/categories.js';
|
|
|
20
20
|
import { tools } from './tools/tools.js';
|
|
21
21
|
// If moved update release-please config
|
|
22
22
|
// x-release-please-start-version
|
|
23
|
-
const VERSION = '0.
|
|
23
|
+
const VERSION = '0.17.0';
|
|
24
24
|
// x-release-please-end
|
|
25
25
|
export const args = parseArguments(VERSION);
|
|
26
26
|
const logFile = args.logFile ? saveLogsToFile(args.logFile) : undefined;
|
|
@@ -87,6 +87,7 @@ async function getContext() {
|
|
|
87
87
|
context = await McpContext.from(browser, logger, {
|
|
88
88
|
experimentalDevToolsDebugging: devtools,
|
|
89
89
|
experimentalIncludeAllPages: args.experimentalIncludeAllPages,
|
|
90
|
+
performanceCrux: args.performanceCrux,
|
|
90
91
|
});
|
|
91
92
|
}
|
|
92
93
|
return context;
|
|
@@ -95,6 +96,9 @@ const logDisclaimers = () => {
|
|
|
95
96
|
console.error(`chrome-devtools-mcp exposes content of the browser instance to the MCP clients allowing them to inspect,
|
|
96
97
|
debug, and modify any data in the browser or DevTools.
|
|
97
98
|
Avoid sharing sensitive or personal information that you do not want to share with MCP clients.`);
|
|
99
|
+
if (args.performanceCrux) {
|
|
100
|
+
console.error(`Performance tools may send trace URLs to the Google CrUX API to fetch real-user experience data. To disable, run with --no-performance-crux.`);
|
|
101
|
+
}
|
|
98
102
|
if (args.usageStatistics) {
|
|
99
103
|
console.error(`
|
|
100
104
|
Google collects usage statistics to improve Chrome DevTools MCP. To opt-out, run with --no-usage-statistics.
|
|
@@ -422,7 +422,7 @@ SOFTWARE.
|
|
|
422
422
|
|
|
423
423
|
Name: @modelcontextprotocol/sdk
|
|
424
424
|
URL: https://modelcontextprotocol.io
|
|
425
|
-
Version: 1.
|
|
425
|
+
Version: 1.26.0
|
|
426
426
|
License: MIT
|
|
427
427
|
|
|
428
428
|
MIT License
|
|
@@ -452,7 +452,7 @@ SOFTWARE.
|
|
|
452
452
|
|
|
453
453
|
Name: zod-to-json-schema
|
|
454
454
|
URL: https://github.com/StefanTerdell/zod-to-json-schema
|
|
455
|
-
Version: 3.25.
|
|
455
|
+
Version: 3.25.1
|
|
456
456
|
License: ISC
|
|
457
457
|
|
|
458
458
|
ISC License
|
|
@@ -636,14 +636,14 @@ SOFTWARE.
|
|
|
636
636
|
|
|
637
637
|
Name: puppeteer-core
|
|
638
638
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
|
|
639
|
-
Version: 24.
|
|
639
|
+
Version: 24.37.2
|
|
640
640
|
License: Apache-2.0
|
|
641
641
|
|
|
642
642
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
643
643
|
|
|
644
644
|
Name: @puppeteer/browsers
|
|
645
645
|
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/browsers
|
|
646
|
-
Version: 2.
|
|
646
|
+
Version: 2.12.0
|
|
647
647
|
License: Apache-2.0
|
|
648
648
|
|
|
649
649
|
-------------------- DEPENDENCY DIVIDER --------------------
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"@modelcontextprotocol/sdk": "1.
|
|
3
|
-
"chrome-devtools-frontend": "1.0.
|
|
2
|
+
"@modelcontextprotocol/sdk": "1.26.0",
|
|
3
|
+
"chrome-devtools-frontend": "1.0.1581449",
|
|
4
4
|
"core-js": "3.48.0",
|
|
5
5
|
"debug": "4.4.3",
|
|
6
6
|
"yargs": "18.0.0",
|
|
7
|
-
"puppeteer-core": "24.
|
|
7
|
+
"puppeteer-core": "24.37.2"
|
|
8
8
|
}
|
|
@@ -12447,7 +12447,6 @@ const UIStrings$2 = {
|
|
|
12447
12447
|
networkPanel: 'Network panel',
|
|
12448
12448
|
requestConditionsDrawer: 'Request conditions drawer',
|
|
12449
12449
|
applicationPanel: 'Application panel',
|
|
12450
|
-
securityPanel: 'Security panel',
|
|
12451
12450
|
sourcesPanel: 'Sources panel',
|
|
12452
12451
|
timelinePanel: 'Performance panel',
|
|
12453
12452
|
memoryInspectorPanel: 'Memory inspector panel',
|
|
@@ -12467,7 +12466,6 @@ const i18nLazyString$1 = getLazilyComputedLocalizedString.bind(undefined, str_$2
|
|
|
12467
12466
|
TIMELINE_PANEL: i18nLazyString$1(UIStrings$2.timelinePanel),
|
|
12468
12467
|
APPLICATION_PANEL: i18nLazyString$1(UIStrings$2.applicationPanel),
|
|
12469
12468
|
SOURCES_PANEL: i18nLazyString$1(UIStrings$2.sourcesPanel),
|
|
12470
|
-
SECURITY_PANEL: i18nLazyString$1(UIStrings$2.securityPanel),
|
|
12471
12469
|
MEMORY_INSPECTOR_PANEL: i18nLazyString$1(UIStrings$2.memoryInspectorPanel),
|
|
12472
12470
|
ANIMATIONS_PANEL: i18nLazyString$1(UIStrings$2.animationsPanel),
|
|
12473
12471
|
});
|