Skip to content

fix(mcp): resolve extension channel/executablePath from CLI and env#40572

Merged
yury-s merged 1 commit intomicrosoft:mainfrom
yury-s:fix-mcp-1590
May 1, 2026
Merged

fix(mcp): resolve extension channel/executablePath from CLI and env#40572
yury-s merged 1 commit intomicrosoft:mainfrom
yury-s:fix-mcp-1590

Conversation

@yury-s
Copy link
Copy Markdown
Member

@yury-s yury-s commented May 1, 2026

Summary

  • Restores --executable-path / PLAYWRIGHT_MCP_EXECUTABLE_PATH support for extension mode (regressed in 5ec1b3f).
  • Resolves both channel and executablePath from CLI options + env (not the merged config), matching the existing pattern.
  • Skips the local extension-installed check when a custom executablePath is provided, since the browser may live in a different filesystem (e.g. Windows chrome.exe launched from WSL2).

Fixes microsoft/playwright-mcp#1590

Restores --executable-path support for extension mode, which was
dropped in 5ec1b3f. Both channel and executablePath are now resolved
from CLI options and PLAYWRIGHT_MCP_* env vars, bypassing the merged
config so attaching to a Windows chrome.exe from WSL works again.

Fixes: microsoft/playwright-mcp#1590
@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 1, 2026

Test results for "MCP"

6863 passed, 1015 skipped


Merge workflow run.

@yury-s yury-s merged commit a4ed1be into microsoft:main May 1, 2026
18 checks passed
@yury-s yury-s deleted the fix-mcp-1590 branch May 1, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extension mode on WSL: --executable-path to chrome.exe ignored; relay falls back to Linux chrome and fails (0.0.72 vs 0.0.71)

2 participants