Hi folks,
As discussed with @mattzcarey, sharing the fork branch that would add WebMCP compatibility for tools that are available via an MCP server: https://github.com/alekrumkamp/agents/tree/feat/webmcp-adapter
How it works
- registerWebMcp() connects to your MCP server
- Discovers tools via tools/list
- Registers each with navigator.modelContext.registerTool()
- Chrome can now call your tools
- Calls are relayed back to the MCP server via tools/call
Usage
import { registerWebMcp } from "agents/experimental/webmcp";
const handle = await registerWebMcp({ url: "/mcp" });
Example where WebMCP tools get picked up by browser extension
FYI @whoiskatrin
Hi folks,
As discussed with @mattzcarey, sharing the fork branch that would add WebMCP compatibility for tools that are available via an MCP server: https://github.com/alekrumkamp/agents/tree/feat/webmcp-adapter
How it works
Usage
Example where WebMCP tools get picked up by browser extension
FYI @whoiskatrin