Playwright MCP Extension Repro
Minimal reproduction showing that standard Chrome extension loading in the Playwright MCP server fails without specific configuration settings.
Feature Request: microsoft/playwright#39569
🚀 Quick Start
-
Install dependencies:
npm install -
Run the matrix test:
npm test
📊 What this tests
The script repro_matrix.ts compares two configurations:
-
ADVANCED_CONFIG: Uses the specific settings identified to enable extensions:
channel: ""(Reverts to bundled Chromium)chromiumSandbox: false(Allows unpacked extension mounting)allowUnrestrictedFileAccess: true(Disables protocol guard)
-
PAVEL_SUGGESTION: Uses the simplified configuration suggested in the feature request.
✅ Success Criteria
- Background Color: The extension should inject a content script that turns
example.compink (rgb(255, 192, 203)). - Page Title: The extension should change the document title to
PINK_EXT_ACTIVE.