Skip to content

feat(webmcp): implement WebMCP API - #3416

Merged
kblok merged 2 commits into
masterfrom
implement-upstream-change-14814
Apr 22, 2026
Merged

kblok merged 2 commits into
masterfrom
implement-upstream-change-14814

Conversation

@kblok

@kblok kblok commented Apr 20, 2026

Copy link
Copy Markdown
Member

Implements the experimental WebMCP API from upstream PRs #14814, #14835, and #14841.

  • CdpWebMcp class with ToolsAdded, ToolsRemoved, ToolInvoked, ToolResponded events
  • Page.WebMcp property (CDP only; throws PuppeteerException for BiDi)
  • Supporting types: WebMcpTool, WebMcpToolCall, WebMcpToolCallResult, WebMcpAnnotation
  • Tests and upstream test expectations

Requires Chrome 149+ with --enable-features=WebMCPTesting,DevToolsWebMCPSupport

Upstream PRs:

Implements the experimental WebMCP API that allows inspecting and invoking
tools registered via the Web Machine Learning Connected Protocol.

- Add CdpWebMcp class with ToolsAdded, ToolsRemoved, ToolInvoked, ToolResponded events
- Add WebMcpTool, WebMcpToolCall, WebMcpToolCallResult, WebMcpAnnotation types
- Add Page.WebMcp property (CDP only; throws for BiDi)
- Wire CdpWebMcp into CdpPage initialization and activation
- Add tests and upstream test expectations

Requires Chrome 149+ with --enable-features=WebMCPTesting,DevToolsWebMCPSupport

Implements upstream PRs:
- puppeteer/puppeteer#14814
- puppeteer/puppeteer#14835
- puppeteer/puppeteer#14841

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… init

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kblok
kblok merged commit fdcfc97 into master Apr 22, 2026
25 of 26 checks passed
@kblok
kblok deleted the implement-upstream-change-14814 branch April 22, 2026 11:42
kblok added a commit that referenced this pull request Apr 22, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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