@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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square)](https://opensource.org/licenses/MIT)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue?style=flat-square)](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 `navigator.modelContext`. Items are namespaced with the element's `id` to avoid collisions.
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 `navigator.modelContext` implementation) installed.
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) - W3C Web Model Context API polyfill (required in the iframe)
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.0.0",
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://github.com/WebMCP-org/npm-packages#readme",
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": "3.0.0",
46
- "@mcp-b/webmcp-ts-sdk": "3.0.0",
47
- "@mcp-b/webmcp-types": "3.0.0"
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",