What does it do?
Developers wrap their app in WebMCPProvider, then define callable tools with useMcpTool. Registered tools appear on document.modelContext and are registered or removed as components mount or unmount. Execution status can be shown in the React interface, and the AbortSignal supplied for each execution can be passed to cancellable work. The Provider installs a polyfill when the browser lacks the native API, and clients without direct access can connect through a separate Bridge extension.
Key features
- Register typed WebMCP tools with useMcpTool
- Automatically register and remove tools as components mount and unmount
- Provide tool execution status and AbortSignal
- Use a polyfill where the native WebMCP API is unavailable
- Connect MCP clients through a separate Bridge extension