Feature request: page-level WebSocket frame debugging tools
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend-api-design, devtools
Research direction
Start by reading the existing list_network_requests and get_network_request implementations, then review the Chrome DevTools Protocol Network events listed in the issue. Clarify the v1 tool shape, pagination and truncation limits, binary-frame handling, and page versus extension scope with maintainers. Done means an agreed design and implementation plan for exposing WebSocket connections and messages.
Written by the indexing model from the issue text.
Description
Problem
chrome-devtools-mcp can connect to Chrome over a WebSocket endpoint today, and the existing network tools can expose request/response data for regular HTTP traffic. But for applications that rely on WebSockets, the current tooling appears to stop at the handshake request. It does not expose the actual message/frame stream after the connection is established.
That leaves a gap for debugging apps and extensions whose state, auth, or synchronization logic depends on live WebSocket traffic.
Use cases
- Inspecting application state synchronization that happens over WebSocket messages
- Debugging authentication/session flows that upgrade to WebSocket after page load
- Understanding extension-to-backend communication when the extension relies on WebSockets
- Investigating whether the browser sent or received a specific message payload during a workflow
Current behavior
From local inspection, the existing network model appears request-centric:
list_network_requestsandget_network_requestoperate on a request/response abstraction- the WebSocket handshake can be represented as a request
- the subsequent WebSocket frames/messages are not exposed as part of the MCP interface
Proposed direction
I think this is better modeled as dedicated tools rather than extending get_network_request with a large set of WebSocket-only options.
Possible v1 tool shape:
list_websocket_connectionsget_websocket_messages
Possible connection summary fields:
- stable MCP id
- URL
- open/closed state
- created time
- last activity time
- sent message count
- received message count
- handshake request headers
- handshake response headers
Possible message fields:
- sequence number
- timestamp
- direction (
sentorreceived) - opcode
- payload preview
- payload length
Why dedicated tools seem cleaner
WebSocket frames are not just another request body. They are a time-ordered event stream with different UX and token constraints:
- high-volume streams need pagination and truncation
- messages need sent/received filtering
- payload previews should be bounded
- connection lifecycle matters independently of a single HTTP request
CDP support
The Chrome DevTools Protocol Network domain already appears to expose the raw events needed for this, including events such as:
- WebSocket creation
- handshake request/response
- frame sent
- frame received
- frame error
- close
So this looks like a collection and API-design gap rather than a protocol limitation.
Open questions
- Would maintainers prefer dedicated WebSocket tools, or extending the existing network tools?
- What pagination/truncation limits would be acceptable for a v1?
- Should binary frames be omitted in v1, or exposed only as metadata + bounded preview?
- Should the feature be page-scoped only, or also include extension/service-worker traffic when extension support is enabled?
If this direction sounds reasonable, I can follow up with a scoped PR after feedback on the tool shape.
- Dominant language
- TypeScript
- Stars
- 59.8k
- Forks
- 4.8k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 162
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ChromeDevTools/chrome-devtools-mcp
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3689 ·
Maintainers usually reply within 1 day
-
`evaluate_script` `sourcePath` http(s) URLs are mangled into `file://` pathsMay be free again A pull request for this issue was closed without being merged. Opencollecting-feedback
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#3453 · 3 comments ·
Maintainers usually reply within 1 day
-
collecting-feedback feature
Difficulty 2/5 Half a day Newbie friendliness 76/100
ChromeDevTools/chrome-devtools-mcp#3225 · 3 comments ·
Maintainers usually reply within 1 day
-
confirmed p3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ChromeDevTools/chrome-devtools-mcp#2947 · 1 comment ·
Maintainers usually reply within 1 day
-
Project Migration: Moving to devtools-frontendPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
ChromeDevTools/chrome-devtools-mcp#3648 ·
Maintainers usually reply within 1 day
All issues in ChromeDevTools/chrome-devtools-mcp
Similar issues
-
bug from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#21303 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ADORSYS-GIS/CoopData#282 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
OHDSI/Data2Evidence#3816 ·
Maintainers usually reply within 3 days
-
`ovsx verify` fails for a version older than the 100 newest of an extensionPossibly taken @trivikr claimed this today. Opencli
Difficulty 2/5 1-3 hours Newbie friendliness 81/100
eclipse-openvsx/openvsx#2482 · 2 comments ·
Maintainers usually reply within 1 day
-
bug builder-vite hmr sev:S3
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
storybookjs/storybook#37965 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day