Document browser-level WebSocket URLs for --wsEndpoint

Open Beginner friendly
#3,689 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
node.js, typescript

Research direction

Start with the troubleshooting guide and the configuration reference’s --wsEndpoint entry. Add a short troubleshooting note explaining that local browser-level webSocketDebuggerUrl values come from /json/version, while /json/list returns page targets; mention using the provider’s full browser-level address for hosted Chrome and protecting credentials in logs. Done when the note helps readers identify the correct endpoint and confirm attachment with list_pages.

Written by the indexing model from the issue text.

Description

feature
Is your feature request related to a problem? Please describe.

The configuration reference illustrates --wsEndpoint with a browser-level URL. The troubleshooting guide could explain how to identify that URL when a socket connects and the first browser-wide MCP tool fails. In a disposable test profile, a page-level socket opened successfully. list_pages then reported Protocol error (Target.getBrowserContexts): Not allowed, alongside a generic message to check whether Chrome is running. Configuration reference

Describe the solution you'd like

Add a short troubleshooting entry for this error. For local debugging, take the browser-level webSocketDebuggerUrl from /json/version. The URLs returned by /json/list are page targets. For hosted Chrome, pass the full browser-level WebSocket address supplied by the provider and keep any credentials in it out of logs and issue reports. A list_pages call can confirm attachment by locating a known test tab.

Describe alternatives you've considered

The flag table could also say “browser-level WebSocket endpoint” in the description. The troubleshooting entry is useful when someone starts from the tool error.

Additional context

Reproduced with Chrome DevTools MCP 1.14.0, Node 24.22.1 and HeadlessChrome 159.0.8154.6 on macOS. I opened a synthetic tab in a fresh loopback Chrome profile and tried the browser and page URLs as separate --wsEndpoint values. The browser URL listed the fixture tab. The page URL completed the WebSocket handshake and then returned the error above. I work on Cloudbrowser, whose connection guide documents an example provider-issued browser-level URL. The test used local Chrome. I used AI assistance to run the test and draft this issue. Hosted endpoint example

Dominant language
TypeScript
Stars
59.8k
Forks
4.8k
Avg merge
2d 10h
Merged PRs (30d)
162

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ChromeDevTools/chrome-devtools-mcp

All issues in ChromeDevTools/chrome-devtools-mcp

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.