browser-devtools-mcp 0.6.7 → 0.6.8

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 (2) hide show
  1. package/package.json +1 -1
  2. package/postinstall.cjs +7 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-devtools-mcp",
3
- "version": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "MCP Server for Browser Dev Tools",
5
5
  "private": false,
6
6
  "type": "module",
package/postinstall.cjs CHANGED
@@ -3,14 +3,16 @@
3
3
  /**
4
4
  * Postinstall script for browser-devtools-mcp.
5
5
  * Installs Playwright browser binaries only when env vars are set:
6
- * - BROWSER_DEVTOOLS_INSTALL_CHROMIUM=true → chromium, chromium-headless-shell, ffmpeg
7
- * - BROWSER_DEVTOOLS_INSTALL_FIREFOX=true firefox
8
- * - BROWSER_DEVTOOLS_INSTALL_WEBKIT=true webkit
6
+ * - BROWSER_DEVTOOLS_INSTALL_CHROMIUM=true → chromium, chromium-headless-shell, ffmpeg
7
+ * - BROWSER_DEVTOOLS_INSTALL_CHROMIUM_HEADLESS=true chromium-headless-shell, ffmpeg (smaller, for Lambda/CI)
8
+ * - BROWSER_DEVTOOLS_INSTALL_FIREFOX=true firefox
9
+ * - BROWSER_DEVTOOLS_INSTALL_WEBKIT=true → webkit
9
10
  * If none are set, we do nothing; Playwright's own install scripts behave as usual.
10
11
  * Does not fail npm install on error.
11
12
  */
12
13
 
13
14
  const CHROMIUM_BROWSERS = ['chromium', 'chromium-headless-shell', 'ffmpeg'];
15
+ const CHROMIUM_HEADLESS_BROWSERS = ['chromium-headless-shell', 'ffmpeg'];
14
16
  const FIREFOX_BROWSERS = ['firefox'];
15
17
  const WEBKIT_BROWSERS = ['webkit'];
16
18
 
@@ -24,6 +26,8 @@ function getBrowsersToInstall() {
24
26
  const list = [];
25
27
  if (envTruthy('BROWSER_DEVTOOLS_INSTALL_CHROMIUM')) {
26
28
  list.push(...CHROMIUM_BROWSERS);
29
+ } else if (envTruthy('BROWSER_DEVTOOLS_INSTALL_CHROMIUM_HEADLESS')) {
30
+ list.push(...CHROMIUM_HEADLESS_BROWSERS);
27
31
  }
28
32
  if (envTruthy('BROWSER_DEVTOOLS_INSTALL_FIREFOX')) {
29
33
  list.push(...FIREFOX_BROWSERS);