Skip to content

feat(cli): list browsers attachable via extension in list --all#40342

Merged
yury-s merged 4 commits into
microsoft:mainfrom
yury-s:cli-list-extension-attachable
Apr 21, 2026
Merged

feat(cli): list browsers attachable via extension in list --all#40342
yury-s merged 4 commits into
microsoft:mainfrom
yury-s:cli-list-extension-attachable

Conversation

@yury-s
Copy link
Copy Markdown
Member

@yury-s yury-s commented Apr 21, 2026

Summary

  • playwright-cli list --all now 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-copy playwright-cli attach --extension=<channel> command.
  • Detection piggy-backs on the existing channel scan: we additionally check <userDataDir>/Default/Extensions/<extensionId>. Endpoint and extension checks now run in parallel per channel.

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.
extensionInstalled: boolean;
};

// Keep in sync with the id declared via "key" in packages/extension/manifest.json
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too many keep-in-syncs to be manageable.

@github-actions

This comment has been minimized.

yury-s added 3 commits April 21, 2026 14:06
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.
@yury-s yury-s merged commit cf6894b into microsoft:main Apr 21, 2026
10 checks passed
@yury-s yury-s deleted the cli-list-extension-attachable branch April 21, 2026 21:59
@github-actions
Copy link
Copy Markdown
Contributor

Test results for "MCP"

6549 passed, 913 skipped


Merge workflow run.

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.

2 participants