Skip to content

feat: fixed DevTools port for browser open - #6

Merged
huanthuyon671 merged 1 commit into
mainfrom
feat/fixed-devtools-port
Oct 4, 2026
Merged

huanthuyon671 merged 1 commit into
mainfrom
feat/fixed-devtools-port

Conversation

@huanthuyon671

Copy link
Copy Markdown
Contributor

Why

Playwright MCP takes --cdp-endpoint at startup, so it can only live in an MCP config file if the profile's DevTools port is known before the browser starts.

What

  • port on LaunchOptions, browser open --port, MCP browser_open.port (1024–65535), passed to chrome-launcher. Omitted: a free port, as before. A running browser keeps its port.
  • Docs: cli, mcp, library, llms.txt, playwright-mcp ("configure Playwright MCP once"). Changelog entry folded into the unpublished 0.5.0.

Checks

  • npm run typecheck, npm test (218 passed, 10 skipped e2e), npm run build
  • Real profile on Chrome 154 launched with port: 9301; http://127.0.0.1:9301/json/version answered, engine: real

🤖 Generated with Claude Code

A client configured ahead of time, such as Playwright MCP with --cdp-endpoint, needs the port before the browser starts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@huanthuyon671
huanthuyon671 merged commit 8d8bc6d into main Oct 4, 2026
4 checks passed
@huanthuyon671
huanthuyon671 deleted the feat/fixed-devtools-port branch October 4, 2026 13:23
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.

1 participant