MCP Hub
Back to servers

Playwright MCP Extension Repro

A minimal reproduction repository designed to demonstrate and test Chrome extension loading within the Playwright MCP server. It evaluates specific configuration settings required for successful extension injection and page modification.

glama
Updated
Mar 10, 2026

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

  1. Install dependencies:

    npm install
    
  2. Run the matrix test:

    npm test
    

📊 What this tests

The script repro_matrix.ts compares two configurations:

  1. 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)
  2. 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.com pink (rgb(255, 192, 203)).
  • Page Title: The extension should change the document title to PINK_EXT_ACTIVE.

Reviews

No reviews yet

Sign in to write a review