@mcp-b/webmcp-types 6.0.3 → 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 +7 -34
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,48 +1,21 @@
|
|
|
1
1
|
# @mcp-b/webmcp-types
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
It forwards upstream type exports and browser declarations directly.
|
|
6
|
-
|
|
7
|
-
**This package will eventually be removed. Please use `webmcp-types` directly.**
|
|
8
|
-
There is no removal date yet.
|
|
9
|
-
|
|
10
|
-
## Migrate to upstream
|
|
3
|
+
**Deprecated.** Use [`webmcp-types`](https://www.npmjs.com/package/webmcp-types)
|
|
4
|
+
directly.
|
|
11
5
|
|
|
12
6
|
```bash
|
|
13
7
|
pnpm remove @mcp-b/webmcp-types
|
|
14
|
-
pnpm add -D webmcp-types
|
|
8
|
+
pnpm add -D webmcp-types
|
|
15
9
|
```
|
|
16
10
|
|
|
17
|
-
Change the import to the upstream package:
|
|
18
|
-
|
|
19
11
|
```ts
|
|
20
12
|
import type { WebMCP } from 'webmcp-types';
|
|
21
|
-
|
|
22
|
-
const context: WebMCP.ModelContext | undefined = document.modelContext;
|
|
23
13
|
```
|
|
24
14
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
## Compatibility
|
|
31
|
-
|
|
32
|
-
The alias exports the same `WebMCP` namespace as upstream. Existing consumers can
|
|
33
|
-
use it while migrating:
|
|
34
|
-
|
|
35
|
-
```ts
|
|
36
|
-
import type { WebMCP } from '@mcp-b/webmcp-types';
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
The previous package's top-level type exports are not reproduced. Use upstream
|
|
40
|
-
types such as `WebMCP.ModelContext` and `WebMCP.ModelContextTool`. MCP-B extension
|
|
41
|
-
types, including `ToolDescriptor` and `ModelContextWithExtensions`, now live in
|
|
42
|
-
[`@mcp-b/webmcp-ts-sdk`](../webmcp-ts-sdk/README.md).
|
|
43
|
-
|
|
44
|
-
See the [upstream README](https://github.com/webmachinelearning/webmcp-types#readme)
|
|
45
|
-
for the API and schema inference documentation.
|
|
15
|
+
This package only forwards the `webmcp-types` exports and browser declarations.
|
|
16
|
+
MCP-B extension types, such as `ToolDescriptor` and `ModelContextWithExtensions`,
|
|
17
|
+
live in [`@mcp-b/webmcp-ts-sdk`](../webmcp-ts-sdk/README.md). For the MCP side of
|
|
18
|
+
WebMCP, use [`@mcp-b/global`](../global/README.md).
|
|
46
19
|
|
|
47
20
|
## License
|
|
48
21
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/webmcp-types",
|
|
3
|
-
"version": "6.0
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "6.1.0",
|
|
4
|
+
"description": "Deprecated: forwards webmcp-types; use webmcp-types directly",
|
|
5
5
|
"homepage": "https://github.com/webmachinelearning/webmcp-types",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/WebMCP-org/npm-packages/issues"
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"registry": "https://registry.npmjs.org/"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"webmcp-types": "0.1.
|
|
32
|
+
"webmcp-types": "0.1.10"
|
|
33
33
|
}
|
|
34
34
|
}
|