Repository navigation
Releases: tech-sumit/react-webmcp
Releases · tech-sumit/react-webmcp
Release list
v0.2.1
Full Changelog: https://github.com/tech-sumit/react-webmcp/commits/v0.2.1
v0.2.0
What's new
Test suite (76 tests, 7 suites)
Comprehensive test coverage using vitest + @testing-library/react:
useWebMCPTool— 17 tests (lifecycle, fingerprint stability, execute ref, error handling)useWebMCPContext— 14 tests (provideContext/clearContext, multi-tool, ref-based execute)useToolEvent— 7 tests (event types, filtering, cleanup)WebMCPForm— 10 tests (attributes, events, submit handler, cleanup)WebMCPInput/Select/Textarea— 15 tests (attribute mapping, prop passthrough)WebMCPProvider— 5 tests (availability detection, defaults)ModelContext utilities— 8 tests (API detection, warning helper)
Production-safe logging
console.warnandconsole.errorgated behindprocess.env.NODE_ENV !== 'production'- Warnings are stripped from production bundles by all major bundlers
Code quality
- Cleaner conditional field inclusion using explicit
ifchecks - Tests run in CI and publish workflows
v0.1.1
Changes
- Align types with browser WebIDL — verified against Chromium Blink
script_toolssourcereadOnlyHintis nowboolean(perAnnotationsDictIDL), not"true" | "false"executeTool()input isstring(JSON), returnsPromise<string | null>listTools()inputSchemais alwaysstring- Restored
getCrossDocumentScriptToolResult()(used by Model Context Tool Inspector)
- Mark library extensions —
outputSchema,destructiveHint,idempotentHint,cachedocumented as non-browser extensions - Fix StrictMode cleanup in
useWebMCPContext - Fix
useWebMCPContextfingerprint — includeoutputSchemafor consistency withuseWebMCPTool
v0.1.0
Initial release of react-webmcp - React hooks and components for the WebMCP standard.