Typed tool definitions
Define named tools with descriptions, input schemas, risk levels, and strongly typed run functions.
Register validated, approval-aware browser tools with TypeScript, Zod, React bindings, and testing utilities.

WebMCP is an emerging browser API proposal. This library is an execution and safety layer around navigator.modelContext when that API exists. It does not define a protocol, ship a browser runtime, or create navigator.modelContext.
pnpm add @webmcp-js/core zod