Skip to content

Sync with upstream v0.20.3 + TypeScript multi-browser support#1216

Closed
forier wants to merge 1 commit intoChromeDevTools:mainfrom
forier:sync/upstream-main
Closed

Sync with upstream v0.20.3 + TypeScript multi-browser support#1216
forier wants to merge 1 commit intoChromeDevTools:mainfrom
forier:sync/upstream-main

Conversation

@forier
Copy link
Copy Markdown

@forier forier commented Mar 21, 2026

Summary

  • Synced with all 678 commits from ChromeDevTools/chrome-devtools-mcp upstream
  • Multi-browser modifications rewritten in TypeScript (previously only in compiled JS)
  • Full build and test verified with Node 22

Changes

New file

  • src/tools/multibrowser.tsadd_browser, switch_browser, list_browsers tools

Modified files

  • src/browser.ts — browser registry (Map<string, Browser>), connection management
  • src/index.tscontextRegistry for per-browser McpContext isolation
  • src/tools/tools.ts — register multi-browser tools (full mode)
  • src/tools/slim/tools.ts — register multi-browser tools (slim mode)

Verified

  • Build passes with npm run build (Node 22)
  • 32 tools registered (29 original + 3 multi-browser)
  • All original tools unchanged

Rebased on ChromeDevTools/chrome-devtools-mcp v0.20.3 (678 commits).
Multi-browser modifications now in TypeScript source:

- src/browser.ts: browser registry (Map<id, Browser>), switchActiveBrowser,
  listBrowsers, addBrowser, getActiveBrowserId
- src/index.ts: contextRegistry for per-browser McpContext
- src/tools/multibrowser.ts: add_browser, switch_browser, list_browsers tools
- src/tools/tools.ts: register multi-browser tools (full mode)
- src/tools/slim/tools.ts: register multi-browser tools (slim mode)
@forier forier closed this Mar 21, 2026
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Mar 21, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@forier forier deleted the sync/upstream-main branch March 21, 2026 11:53
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