feat: support shared MCP server sessions - #2733
Open
lmn451 wants to merge 2 commits into
Open
Conversation
This was referenced Sep 12, 2026
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.
Why
Addresses #2188. Multiple MCP clients need to drive one long-lived Chrome without spawning one Chrome-connected server per client, leaking orphaned processes, contending for profiles, or sharing selected-page and filesystem state.
What changed
http://127.0.0.1:<port>/mcpvia--http-portMcpServerandMcpContextfor every HTTP session while sharing one process-level Chrome connection and page inventory--server-url/CHROME_DEVTOOLS_MCP_SERVER_URLas a transparent stdio-to-HTTP proxy for stdio-only clients--auto-connect, and explicit remote-debugging--browser-url/--ws-endpointmodesLifecycle and security
127.0.0.1; reject non-loopbackHostandOriginDELETE; inactive sessions expire after 30 minutes while active requests/streams suspend expiryVerification
npm run formatnpm run test tests/http-server.test.ts tests/proxy.test.ts tests/http-multi-client.test.ts: 10 passednpm run test -- --retry: final attempt 1,036 passed, 3 platform skips; earlier attempts hit existing extension teardown/network ordering flakeschrome-devtools-axisessions opened separate tabs through one service, saw the same page inventory, and retained different selected pagesCompanion
AXI upstream: kunchenguid/chrome-devtools-axi#139
Fork review PRs: lmn451#3 and lmn451/chrome-devtools-axi#1
Supersedes the narrower per-session-browser approach in #2730.