playwright: force --browser chromium (v2 / 1.0.1)

default 'chrome' channel requires system Google Chrome, missing on slim
Linux hosts; use the postinstall-downloaded Chromium build instead
This commit is contained in:
Daniele
2026-08-19 18:20:13 +01:00
parent fa8bbcb808
commit f02bb78ebd
5 changed files with 14 additions and 9 deletions
+1
View File
@@ -24,6 +24,7 @@ const packageDir = dirname(require.resolve("@playwright/mcp/package.json"));
process.argv = [
process.argv[0],
"playwright-mcp",
"--browser", "chromium", // default is the "chrome" channel (system Google Chrome), which is not installed on slim hosts; use the Chromium build downloaded by the postinstall hook
"--headless", // no display in the container/host session
"--isolated", // in-memory profile: no shared cookies/login state on disk
"--no-sandbox", // Chromium sandbox cannot run inside containers