How to run Playwright MCP against the Flatpak build of Chrome on Linux, with the real GPU enabled so WebGPU / WebGL hit your discrete GPU instead of SwiftShader.
Assumes you've already got WebGPU working in Flatpak Chrome (the chrome-flags.conf part). This gist is about getting Playwright MCP to drive that same Chrome with the real GPU enabled.
Playwright MCP defaults to the chrome channel and hardcodes the path /opt/google/chrome/chrome. Symlink that to the Flatpak export (which is itself a shell script that does exec /usr/bin/flatpak run … com.google.Chrome "$@"):