Choose in order
- Does the target browser provide the WebMCP behavior you need? Check WebMCP resources and status. If yes, you may not need a runtime package.
-
Do you only need ambient types for the live proposal? Use the Community Group’s
webmcp-typespackage. -
Do you need MCP-B compatibility types or schema inference? Use
@mcp-b/webmcp-types. -
Do you need browser tool registration and discovery where native support is unavailable? Use
@mcp-b/webmcp-polyfill. -
Do you need MCP bridge transport,
listTools, prompts, resources, or direct MCP server access? Use@mcp-b/global. -
Do you only need React tool registration? Use
usewebmcp. -
Do you need React prompt, resource, or MCP client/provider hooks? Use
@mcp-b/react-webmcp. Prompt and resource hooks require@mcp-b/global; tool hooks work with native or polyfilleddocument.modelContext, and client/provider hooks use their configured MCP connection.
Package comparison
The two MCP-B runtime packages expose a descriptor-based
executeTool() method that accepts
serialized JSON. The live proposal currently uses object input. Feature-detect the method and
follow the selected runtime’s reference for its implemented signature.
Continue with the selected path
- For native behavior and ambient proposal types, use the WebMCP API sources.
- For the standalone polyfill, follow the
@mcp-b/webmcp-polyfilloverview and first tool tutorial. - For the full MCP-B runtime, follow the
@mcp-b/globaloverview and reference. - For React, compare
usewebmcpwith@mcp-b/react-webmcp, then use the React tutorial. - For schema inference and MCP-B type contracts, use the
@mcp-b/webmcp-typesreference.
