@mcp-b/mcp-iframe 3.0.0 → 4.0.0-beta.20260702173007
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 -4
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
7
|
[](https://www.typescriptlang.org/)
|
|
8
8
|
|
|
9
|
-
**@mcp-b/mcp-iframe** provides `<mcp-iframe>`, a Web Component that wraps an iframe and automatically bridges its MCP tools, resources, and prompts to the parent page's `
|
|
9
|
+
**@mcp-b/mcp-iframe** provides `<mcp-iframe>`, a Web Component that wraps an iframe and automatically bridges its MCP tools, resources, and prompts to the parent page's `document.modelContext`. Items are namespaced with the element's `id` to avoid collisions.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
pnpm add @mcp-b/mcp-iframe @modelcontextprotocol/sdk
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
The iframe page must have `@mcp-b/global` (or any `
|
|
17
|
+
The iframe page must have `@mcp-b/global` (or any `document.modelContext` implementation) installed.
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
@@ -57,8 +57,8 @@ Standard iframe attributes (`sandbox`, `allow`, `width`, `height`, etc.) are als
|
|
|
57
57
|
|
|
58
58
|
## Related Packages
|
|
59
59
|
|
|
60
|
-
- [`@mcp-b/global`](https://docs.mcp-b.ai/packages/global) -
|
|
61
|
-
- [`@mcp-b/transports`](https://docs.mcp-b.ai/packages/transports) - Transport layer used internally
|
|
60
|
+
- [`@mcp-b/global`](https://docs.mcp-b.ai/packages/global/reference) - Full MCP-B browser runtime (required in the iframe)
|
|
61
|
+
- [`@mcp-b/transports`](https://docs.mcp-b.ai/packages/transports/reference) - Transport layer used internally
|
|
62
62
|
|
|
63
63
|
## License
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/mcp-iframe",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.20260702173007",
|
|
4
4
|
"description": "Custom element for exposing iframe MCP tools, resources, and prompts to parent page",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"browser",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"web-component",
|
|
12
12
|
"web-model-context"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://
|
|
14
|
+
"homepage": "https://docs.mcp-b.ai/packages/mcp-iframe/reference",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/WebMCP-org/npm-packages/issues"
|
|
17
17
|
},
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"registry": "https://registry.npmjs.org/"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@mcp-b/transports": "
|
|
46
|
-
"@mcp-b/webmcp-ts-sdk": "
|
|
47
|
-
"@mcp-b/webmcp-types": "
|
|
45
|
+
"@mcp-b/transports": "4.0.0-beta.20260702173007",
|
|
46
|
+
"@mcp-b/webmcp-ts-sdk": "4.0.0-beta.20260702173007",
|
|
47
|
+
"@mcp-b/webmcp-types": "4.0.0-beta.20260702173007"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "22.17.2",
|