feat(cli): list browsers attachable via extension in list --all#40342
Merged
Conversation
Detects browsers whose default profile has the Playwright MCP extension installed and surfaces them as a new "Browsers available to attach via extension" section with a suggested `playwright-cli attach --extension=<channel>` command.
pavelfeldman
approved these changes
Apr 21, 2026
| extensionInstalled: boolean; | ||
| }; | ||
|
|
||
| // Keep in sync with the id declared via "key" in packages/extension/manifest.json |
Member
There was a problem hiding this comment.
Too many keep-in-syncs to be manageable.
This comment has been minimized.
This comment has been minimized.
Instead of a separate "Browsers available to attach via extension" section, each discovered browser now reports extension status first (attach command if installed, install URL otherwise), followed by its current remote debugging status.
Each discovered browser now renders two `attach (extension)` / `attach (remote debugging)` lines showing either the ready-to-run `playwright-cli attach` command or the install/enable link. Removes the dead `remoteDebuggingHint` helper.
Edge channels show `edge://inspect/#remote-debugging` instead of the Chrome-only URL when surfacing the remote-debugging enablement hint.
Contributor
Test results for "MCP"6549 passed, 913 skipped Merge workflow run. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
playwright-cli list --allnow detects browsers whose default profile has the Playwright MCP extension installed and prints them in a new "Browsers available to attach via extension" section with a ready-to-copyplaywright-cli attach --extension=<channel>command.<userDataDir>/Default/Extensions/<extensionId>. Endpoint and extension checks now run in parallel per channel.