Skip to content

Releases: MCPCat/webmcp-react

v0.1.0

02 Mar 11:52
b326396

Choose a tag to compare

Initial release of webmcp-react — React hooks for exposing app functionality as WebMCP tools via navigator.modelContext.

Highlights

  • <WebMCPProvider> — manages polyfill lifecycle, provides context to child hooks
  • useMcpTool — register tools with Zod schemas (type-inferred) or raw JSON Schema
  • useWebMCPStatus — check if WebMCP is available
  • Built-in polyfill with navigator.modelContextTesting shim
  • SSR-safe, React Strict Mode safe
  • Ships CJS + ESM + TypeScript declarations

Links