usewebmcp 6.0.2 → 6.1.0
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.
- package/README.md +4 -6
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,19 +39,17 @@ pnpm add usewebmcp
|
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
The hook reads `document.modelContext` when it registers and does not wait for a runtime installed
|
|
42
|
-
later. For browsers without it,
|
|
42
|
+
later. For browsers without it, load the official W3C polyfill before rendering tools:
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
|
-
pnpm add @
|
|
45
|
+
pnpm add @w3c/webmcp-polyfill
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
```ts
|
|
49
|
-
import
|
|
50
|
-
|
|
51
|
-
installWebMCP();
|
|
49
|
+
import '@w3c/webmcp-polyfill/auto';
|
|
52
50
|
```
|
|
53
51
|
|
|
54
|
-
Use [`@mcp-b/global`](../global/README.md) for MCP server features. Browser types come from the Community Group's [`webmcp-types`](https://
|
|
52
|
+
Use [`@mcp-b/global`](../global/README.md) for MCP server features. Browser types come from the Community Group's official [`webmcp-types`](https://www.npmjs.com/package/webmcp-types).
|
|
55
53
|
|
|
56
54
|
## Input schemas
|
|
57
55
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "usewebmcp",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Standalone React hooks for strict core WebMCP tool registration with document.modelContext",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"registry": "https://registry.npmjs.org/"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"webmcp-types": "0.1.
|
|
50
|
+
"webmcp-types": "0.1.10"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "22.20.1",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"vite-plus": "0.1.24",
|
|
61
61
|
"vitest": "npm:@voidzero-dev/vite-plus-test@0.1.24",
|
|
62
62
|
"vitest-browser-react": "^2.2.0",
|
|
63
|
-
"@mcp-b/webmcp-polyfill": "6.0
|
|
63
|
+
"@mcp-b/webmcp-polyfill": "6.1.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0 || ^19.0.0"
|