chrome-devtools-mcp 0.18.0 → 0.19.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.
Files changed (40) hide show
  1. package/README.md +4 -3
  2. package/build/src/McpContext.js +248 -266
  3. package/build/src/McpPage.js +95 -0
  4. package/build/src/McpResponse.js +99 -28
  5. package/build/src/bin/chrome-devtools.js +184 -0
  6. package/build/src/bin/cliDefinitions.js +651 -0
  7. package/build/src/browser.js +5 -3
  8. package/build/src/cli.js +11 -1
  9. package/build/src/daemon/client.js +151 -0
  10. package/build/src/daemon/daemon.js +49 -15
  11. package/build/src/daemon/types.js +6 -0
  12. package/build/src/daemon/utils.js +56 -15
  13. package/build/src/main.js +5 -171
  14. package/build/src/server.js +209 -0
  15. package/build/src/telemetry/watchdog/ClearcutSender.js +2 -0
  16. package/build/src/third_party/THIRD_PARTY_NOTICES +1480 -111
  17. package/build/src/third_party/bundled-packages.json +4 -3
  18. package/build/src/third_party/devtools-formatter-worker.js +5 -13
  19. package/build/src/third_party/index.js +1980 -396
  20. package/build/src/third_party/lighthouse-devtools-mcp-bundle.js +54183 -0
  21. package/build/src/tools/ToolDefinition.js +52 -0
  22. package/build/src/tools/console.js +3 -3
  23. package/build/src/tools/emulation.js +13 -45
  24. package/build/src/tools/extensions.js +17 -0
  25. package/build/src/tools/input.js +33 -33
  26. package/build/src/tools/lighthouse.js +123 -0
  27. package/build/src/tools/memory.js +6 -7
  28. package/build/src/tools/network.js +7 -7
  29. package/build/src/tools/pages.js +46 -44
  30. package/build/src/tools/performance.js +16 -14
  31. package/build/src/tools/screencast.js +5 -5
  32. package/build/src/tools/screenshot.js +6 -6
  33. package/build/src/tools/script.js +99 -49
  34. package/build/src/tools/slim/tools.js +18 -18
  35. package/build/src/tools/snapshot.js +5 -4
  36. package/build/src/tools/tools.js +2 -1
  37. package/build/src/types.js +6 -0
  38. package/build/src/utils/files.js +19 -0
  39. package/build/src/version.js +1 -1
  40. package/package.json +11 -8
package/README.md CHANGED
@@ -73,7 +73,7 @@ Add the following config to your MCP client:
73
73
  > [!NOTE]
74
74
  > Using `chrome-devtools-mcp@latest` ensures that your MCP client will always use the latest version of the Chrome DevTools MCP server.
75
75
 
76
- If you are intersted in doing only basic browser tasks, use the `--slim` mode:
76
+ If you are interested in doing only basic browser tasks, use the `--slim` mode:
77
77
 
78
78
  ```json
79
79
  {
@@ -442,9 +442,10 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
442
442
  - **Network** (2 tools)
443
443
  - [`get_network_request`](docs/tool-reference.md#get_network_request)
444
444
  - [`list_network_requests`](docs/tool-reference.md#list_network_requests)
445
- - **Debugging** (5 tools)
445
+ - **Debugging** (6 tools)
446
446
  - [`evaluate_script`](docs/tool-reference.md#evaluate_script)
447
447
  - [`get_console_message`](docs/tool-reference.md#get_console_message)
448
+ - [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
448
449
  - [`list_console_messages`](docs/tool-reference.md#list_console_messages)
449
450
  - [`take_screenshot`](docs/tool-reference.md#take_screenshot)
450
451
  - [`take_snapshot`](docs/tool-reference.md#take_snapshot)
@@ -458,7 +459,7 @@ The Chrome DevTools MCP server supports the following configuration option:
458
459
  <!-- BEGIN AUTO GENERATED OPTIONS -->
459
460
 
460
461
  - **`--autoConnect`/ `--auto-connect`**
461
- If specified, automatically connects to a browser (Chrome 144+) running in the user data directory identified by the channel param. Requires the remoted debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.
462
+ If specified, automatically connects to a browser (Chrome 144+) running locally from the user data directory identified by the channel param (default channel is stable). Requires the remoted debugging server to be started in the Chrome instance via chrome://inspect/#remote-debugging.
462
463
  - **Type:** boolean
463
464
  - **Default:** `false`
464
465