Skip to content

fix(claude-code): patch Playwright MCP plugin to use chromium on ARM64 - #65

Merged
gatezh merged 1 commit into
masterfrom
playwright-plugin-improvements
Apr 1, 2026
Merged

gatezh merged 1 commit into
masterfrom
playwright-plugin-improvements

Conversation

@gatezh

@gatezh gatezh commented Apr 1, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #64

  • The Playwright MCP plugin (@playwright/mcp) defaults to --browser chrome, which has no Linux ARM64 builds
  • Patches the plugin's .mcp.json config to use --browser chromium on ARM64 after plugin installation
  • No-op on AMD64 where Chrome works fine

Changes

Single file: claude-code/.devcontainer/init-plugins.sh — adds an ARM64-only post-install patch after the plugin install loop.

The fix uses jq to replace only the args array (preserving other config keys), guarded by uname -m = aarch64 and a file-existence check. Follows the same atomic-write pattern (jq > /tmp && mv) used for the onboarding patch above it.

Test plan

  • On ARM64 devcontainer: run bash .devcontainer/init-plugins.sh, verify .mcp.json contains "--browser", "chromium"
  • On AMD64 devcontainer: run the same script, verify .mcp.json is unchanged (no --browser flag)
  • On ARM64: invoke a Playwright MCP tool (e.g., browser_navigate) — should work without the "chrome not found" error

#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
@gatezh
gatezh merged commit 817b20c into master Apr 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(claude-code): Playwright MCP plugin fails on ARM64 — chrome not found

1 participant