@mcp-b/global is the full runtime entry point for browser applications. It installs or adopts the strict WebMCP surface, creates a BrowserMcpServer, connects transport, and exposes MCP-B extension methods on navigator.modelContext.
When to use this package
- You want prompts, resources, sampling, elicitation, or transport-facing helpers.
- You want browser tools to be reachable by extensions, relays, or desktop MCP clients.
- You want one import that wires the runtime stack together.
When not to use this package
- You only need strict-core
registerToolbehavior. Use@mcp-b/webmcp-polyfill. - You are building a lower-level runtime integration. Use
@mcp-b/webmcp-ts-sdkdirectly.
Where it sits in the package graph
@mcp-b/global is the top of the runtime stack. It wraps the strict-core layer from @mcp-b/webmcp-polyfill, uses @mcp-b/webmcp-ts-sdk internally, and starts transports from @mcp-b/transports.
First step
Import the package as early as possible in the browser entry point, then register tools onnavigator.modelContext. Use the reference page when you need configuration, cleanup, or transport details.
