Skip to main content
Use these guides to complete a specific task in an existing project. If you need a guided first experience, start with the tutorials.

Adopt WebMCP

Choose a runtime and expose application behavior to agents.

Choose a runtime

Choose native WebMCP, the tool-only polyfill, or the full @mcp-b/global runtime.

Add tools to an existing app

Expose existing application functions as WebMCP tools.

Use schemas and structured output

Add input schemas, output schemas, and typed results to MCP-B tools.

Register prompts and resources

Expose prompts and resources through the MCP-B extension API.

Integrate a framework

Integrate with a framework

Register tools through the lifecycle patterns used by your frontend framework.

Connect and verify tools

Bridge tools across contexts, diagnose failures, and test runtime behavior.

Connect desktop agents with the local relay

Bridge browser tools to desktop MCP clients.

Bridge tools across iframes

Expose tools from an embedded iframe to its parent page.

Debug and troubleshoot

Diagnose registration, transport, and execution failures.

Test native and polyfill runtimes

Run the same checks against native and polyfilled implementations.