Development workflow
Use Chrome DevTools MCP for a powerful AI-driven development loop:1
Install Chrome DevTools MCP
2
Start your dev server
3
Ask your AI to build and test tools
The AI can write tool code, navigate to your page, discover tools via
list_webmcp_tools, and test them with call_webmcp_tool - all in a tight feedback loop.This is TDD for AI - agents build and verify their own tools in real-time.
Production examples
Clone any example to get started immediately:Vanilla JavaScript
Shopping cart with core WebMCP functionality
React
Task manager with
useWebMCP() hookSvelte
Svelte 5 with runes and actions
Angular
Note-taking app with Angular signals
Rails
Bookmarks manager with Stimulus controllers
Phoenix LiveView
Real-time sync with server-side state
The pattern
All frameworks follow the same approach:- Import
@mcp-b/globalto addnavigator.modelContext - Call
registerTool()in your mount lifecycle - Call
unregister()in your unmount lifecycle
React users
Use@mcp-b/react-webmcp instead of @mcp-b/global - it handles lifecycle automatically and provides Zod validation.
