You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 63650a3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(claude-code): make Playwright MCP work in both image variants (#85) (#86)
Plugin defaults to the chrome channel (/opt/google/chrome/chrome), which
neither variant ships. Adds chromium to sandbox (firewall blocks runtime
install), patches every cached .mcp.json to launch /usr/bin/chromium with
--no-sandbox --headless, and re-runs the patch on postStartCommand so
plugin auto-updates between sessions don't silently regress.
@@ -76,17 +78,20 @@ Projects consuming these images need the following files in their repository.
76
78
77
79
Only pin tools that affect project stability — dev infrastructure (rtk, ralphex, Claude Code) is pre-installed in the image at latest. See [`mise.toml`](mise.toml) for a template.
78
80
79
-
### Optional: `.devcontainer/init-plugins.sh`
81
+
### Optional: `.devcontainer/init-plugins.sh` and `.devcontainer/patch-playwright-mcp.sh`
80
82
81
-
Claude Code plugin initialization. Runs once at container creation. Idempotent. See [`.devcontainer/init-plugins.sh`](.devcontainer/init-plugins.sh)for a template.
83
+
Claude Code plugin initialization. `init-plugins.sh` registers marketplaces, installs plugins, and (via `patch-playwright-mcp.sh`) rewrites every cached Playwright MCP `.mcp.json` to launch the system chromium. Both scripts are idempotent. See [`.devcontainer/init-plugins.sh`](.devcontainer/init-plugins.sh)and [`.devcontainer/patch-playwright-mcp.sh`](.devcontainer/patch-playwright-mcp.sh) for templates.
82
84
83
-
Wire it into`postCreateCommand` in your`devcontainer.json`:
`postStartCommand` re-runs the patch on every container start so plugin auto-updates between sessions cannot leave MCP pointing at the missing chrome channel. See the [Playwright Strategy](#playwright-strategy) section.
93
+
94
+
Mark as executable: `chmod +x init-plugins.sh patch-playwright-mcp.sh`
0 commit comments