Skip to main content
Glama
hsm207

Playwright MCP Extension Repro

by hsm207

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

Related MCP server: mcp-playwright

📊 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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    🚀 Active Fork of executeautomation/mcp-playwright This repository is an actively maintained continuation of the original MCP Playwright server: >👉 https://github.com/executeautomation/mcp-playwright A Model Context Protocol server that provides browser automation capabilities using Playwright.
    6
    32
    7,948 npm
    1
    MIT