Skip to content

Commit 1f961cc

Browse files
committed
fix(claude-code): patch Playwright MCP plugin to use chromium on ARM64 (#64)
- @playwright/mcp defaults to --browser chrome, which has no ARM64 Linux builds - Patch plugin .mcp.json to use --browser chromium on aarch64 after install
1 parent 67cc88b commit 1f961cc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎claude-code/.devcontainer/init-plugins.sh‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ for plugin in "${PLUGINS[@]}"; do
3636
claude plugin install "$plugin" 2>/dev/null || true
3737
done
3838

39+
# ── Playwright MCP: use Chromium on ARM64 (#64) ─────────────────────────────
40+
# @playwright/mcp defaults to --browser chrome, which has no Linux ARM64 builds.
41+
# Patch the plugin config to use chromium instead. No-op on AMD64.
42+
PLAYWRIGHT_MCP_CONFIG="$HOME/.claude/plugins/marketplaces/claude-plugins-official/external_plugins/playwright/.mcp.json"
43+
if [ "$(uname -m)" = "aarch64" ] && [ -f "$PLAYWRIGHT_MCP_CONFIG" ]; then
44+
jq '.playwright.args = ["@playwright/mcp@latest", "--browser", "chromium"]' \
45+
"$PLAYWRIGHT_MCP_CONFIG" > /tmp/playwright-mcp.json \
46+
&& mv /tmp/playwright-mcp.json "$PLAYWRIGHT_MCP_CONFIG"
47+
fi
48+
3949
# ── rtk init (token-optimized CLI proxy) ────────────────────────────────────
4050
# Configures rtk for the current workspace. Safe to run multiple times.
4151
# rtk is pre-installed in the devcontainer image.

0 commit comments

Comments
 (0)