usewebmcp 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +8 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -7,6 +7,14 @@ Standalone React hooks for strict core WebMCP tool registration via `navigator.m
7
7
  - Use `usewebmcp` for strict core WebMCP workflows.
8
8
  - Use `@mcp-b/react-webmcp` for full MCP-B runtime features (resources, prompts, client/provider flows, etc.).
9
9
 
10
+ ## Type Safety First
11
+
12
+ `usewebmcp` is built for schema-driven types:
13
+
14
+ - `config.execute`/`config.handler` input is inferred from `inputSchema`
15
+ - Tool result type is inferred from `outputSchema`
16
+ - `state.lastResult` and returned `execute(input)` are typed from that same inferred output
17
+
10
18
  ## Package Selection
11
19
 
12
20
  | Package | Use When |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "usewebmcp",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Standalone React hooks for strict core WebMCP tool registration with navigator.modelContext",
5
5
  "keywords": [
6
6
  "mcp",
@@ -37,8 +37,8 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@mcp-b/webmcp-polyfill": "0.2.0",
41
- "@mcp-b/webmcp-types": "0.2.0"
40
+ "@mcp-b/webmcp-types": "0.2.1",
41
+ "@mcp-b/webmcp-polyfill": "0.2.1"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "22.17.2",