Skip to content

Enable the WebMCP feature for Chromium 157 - #525

Open
masnwilliams wants to merge 2 commits into
mainfrom
hypeship/webmcp-chromium-157
Open

masnwilliams wants to merge 2 commits into
mainfrom
hypeship/webmcp-chromium-157

Conversation

@masnwilliams

@masnwilliams masnwilliams commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Chromium 157 removed the WebMCPTesting feature and replaced it with WebMCP. Our images turn WebMCP on with --enable-features=WebMCPTesting,DevToolsWebMCPSupport, so on a Chromium 157 build navigator.modelContext doesn't exist, no tools are discovered, and the CDP WebMCP domain has nothing to report.

This enables WebMCP,WebMCPTesting,DevToolsWebMCPSupport everywhere the old pair was listed:

  • server/cmd/wrapper/chromium.go (headless default flags), plus its comment and test
  • images/chromium-headful/run-docker.sh and run-unikernel.sh
  • server/e2e/e2e_playwright_test.go

WebMCP is what Chromium 157 needs. WebMCPTesting stays so builds that predate the WebMCP feature keep working. Chromium ignores feature names it doesn't know, so one set works on both sides of the change.

Opt-out behavior change

With WebMCP enabled, --disable-features=WebMCPTesting alone no longer turns WebMCP off, on Chromium 156 as well as 157. Turning it off now takes --disable-features=WebMCP,WebMCPTesting. The wrapper comment says so.

Testing

TestPlaywrightExecuteAPI was run against a Chromium 156.0.8078.79 image and a Chromium 157.0.8103.78 image, with the test's flags varied:

Flags Chromium 156 Chromium 157
--enable-features=WebMCPTesting,DevToolsWebMCPSupport (before) 6/6 WebMCP subtests pass 5 of 6 fail
--enable-features=WebMCP,WebMCPTesting,DevToolsWebMCPSupport (this PR) 6/6 pass 6/6 pass
this PR plus --disable-features=WebMCPTesting 6/6 pass (still on) 6/6 pass (still on)
this PR plus --disable-features=WebMCP,WebMCPTesting WebMCP off WebMCP off
  • A test image carrying this PR's wrapper launches Chromium with --enable-features=WebMCP,WebMCPTesting,DevToolsWebMCPSupport when CHROMIUM_FLAGS is unset.
  • go test -race ./cmd/wrapper/ ./lib/chromiumflags/ passes. TestApplyHeadlessDefaultFlags now checks the WebMCP flag and fails without this change.

Merge order

  1. Merge this PR first.
  2. The downstream image sync that carries the Chromium 157 bump then picks it up.
  3. Confirm the WebMCP e2e subtests pass on that image before it's released.

Note

Low Risk
Limited to Chromium startup feature flags and tests; wrong flags would break WebMCP on 157 but do not touch auth, data, or core API logic.

Overview
Chromium 157 renamed the WebMCP gate from WebMCPTesting to WebMCP, so the previous --enable-features=WebMCPTesting,DevToolsWebMCPSupport default left WebMCP off on newer builds.

This PR changes the default --enable-features list to WebMCP,WebMCPTesting,DevToolsWebMCPSupport in the headless wrapper (chromium.go), headful docker/unikernel run scripts, and the Playwright e2e container env. WebMCPTesting is kept so older Chromium builds still enable the feature; Chromium ignores unknown feature names.

Wrapper comments and TestApplyHeadlessDefaultFlags now expect the updated flag string. Opt-out is documented as --disable-features=WebMCP,WebMCPTesting (disabling only WebMCPTesting is no longer sufficient).

Reviewed by Cursor Bugbot for commit 5033773. Bugbot is set up for automated code reviews on this repo. Configure here.

@JonnyShuali JonnyShuali left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed — looks good.

This branch has not been deployed

No deployments
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.

2 participants