Skip to content

feat : webmcp integration#154

Open
raiden-staging wants to merge 1 commit intokernel:mainfrom
raiden-staging:feat/webmcp
Open

feat : webmcp integration#154
raiden-staging wants to merge 1 commit intokernel:mainfrom
raiden-staging:feat/webmcp

Conversation

@raiden-staging
Copy link
Contributor

@raiden-staging raiden-staging commented Feb 13, 2026

Summary

  • integrate WebMCP early preview
  • websocket endpoint (/webmcp) for realtime webmcp tool discovery, events monitoring, and tool call execution via cdp bridge

Background

  • WebMCP is an early-preview browser API that lets web pages register MCP tools (navigator.modelContextTesting)
  • enables AI agents to discover and invoke structured tools exposed by web applications directly through the browser

Architecture

Client ──WebSocket──> /webmcp ──> Handler ──> Bridge (per session)
                                                  │
                                            Chrome CDP (WS)
                                                  │
                                            ├── Target.attachToTarget
                                            ├── Runtime.evaluate
                                            │     ├── navigator.modelContextTesting.listTools()
                                            │     └── navigator.modelContextTesting.executeTool()
                                            └── Target.targetInfoChanged

WebSocket Protocol

Direction Type Description
Client → Server subscribe Start real-time tool monitoring
Client → Server unsubscribe Stop monitoring
Client → Server list_tools Query registered tools
Client → Server call_tool Execute a tool by name with arguments
Server → Client webmcp_available Availability changed
Server → Client tools_changed Tool list updated
Server → Client tab_changed Active tab navigated
Server → Client tool_result Tool execution result
Server → Client tool_error Tool execution error

Demo

demo from current implementation in webmcp-dev branch

webmcp_demo_realestate_app.mp4

Checklist

  • A link to a related issue in our repository
  • A description of the changes proposed in the pull request.
  • @mentions of the person or team responsible for reviewing proposed changes.

[ @rgarcia ]


Note

Low Risk
This PR only adds planning documentation and does not modify runtime code paths or production behavior.

Overview
Adds a new plans/webmcp-integration.md document describing a proposed WebMCP early-preview integration, including /webmcp/status REST and /webmcp WebSocket APIs for tool discovery, event monitoring, and tool execution via CDP.

The plan also outlines required runtime/container changes (switch to Chrome Canary and enable WebMCPTesting) plus new server components (Bridge/handler/types, OpenAPI updates) to support navigator.modelContextTesting-based tool listing and execution.

Written by Cursor Bugbot for commit d9f31ca. This will update automatically on new commits. Configure here.

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