Fixes
-
Fix
--extensionflag being silently ignored inrun-script:handleRunScriptwas overwriting the--extensionoption parsed from global args with default values fromparsePwCliGlobalOptions. This caused allpw-cli --extension run-scriptcommands to fall through to the CDP daemon path instead of the extension relay. -
Align extension token passing with official
@playwright/mcp: PassPLAYWRIGHT_MCP_EXTENSION_TOKENviachrome-extension://URL params (not relay URL query string), matching upstream behavior for auto-authorization.
Changes
- Remove server-side token validation on extension WebSocket (matches upstream)
- Support configurable extension ID via
PLAYWRIGHT_MCP_EXTENSION_IDenv var - Add
newTabandprotocolVersionparams to extension connect URL