Minimal WebMCP Demo in Chrome Shows Typed, Tested Tools Driven by an AI Agent
A developer built a small to-do page exposing four WebMCP tools, registered on document.modelContext, in roughly 95 lines of plain JavaScript. The tools were checked with a TypeScript type check against their JSON Schemas, a headless Chrome test, and Google's webmcp-evals smoke runner, none of which required a model or API key. A Gemini-powered agent, run through Google's webmcp-extension in Chrome 158, then used the tools to complete a series of plain-English requests in every test conversation. The author also noted practical quirks, such as Chrome reporting tool metadata under different field names and branded Chrome ignoring the --load-extension flag. Denied permission prompts blocked the write tools while the read-only tool still ran, though the agent miscounted in one denied run.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in