@mcp-native/webview 0.9.1 → 0.9.3

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +9 -13
  3. package/package.json +5 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 MCP Native contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -12,17 +12,13 @@
12
12
 
13
13
  </div>
14
14
 
15
- > **Pre-1.0 host adapter:** this package implements the documented stable MCP Apps `2026-01-26`
16
- > native host-adapter profile. Its public API remains release-candidate until the `1.0.0` review
17
- > gates complete. A shipping host must map the closed descriptor into its audited platform WebView
18
- > and lifecycle; native isolation is not equivalent to a browser's cross-origin iframe.
19
-
20
- `@mcp-native/webview` handles the compatibility path for MCP resources that contain HTML. The stable
21
- path negotiates `io.modelcontextprotocol/ui`, discovers strict `_meta.ui` tool metadata, reads one
22
- exact `ui://` resource with `text/html;profile=mcp-app`, preserves closed CSP and permission
23
- metadata, builds a CSP-first native sandbox, and runs the bounded Apps JSON-RPC lifecycle. The
24
- legacy generic helpers still recognize older HTML MIME types and reject both inline and remote
25
- documents unless the host explicitly grants them through policy.
15
+ `@mcp-native/webview` hosts HTML MCP Apps inside a native WebView without mixing them into the native
16
+ A2UI renderer. It implements the stable MCP Apps `2026-01-26` native host-adapter profile, including
17
+ discovery, `ui://` resources, CSP and permission metadata, a native sandbox descriptor, and the Apps
18
+ JSON-RPC lifecycle.
19
+
20
+ Older generic HTML helpers remain available for compatibility. They require an explicit host policy
21
+ before loading either inline or remote documents.
26
22
 
27
23
  The exact protocol pin, message set, bounds, exclusions, native/browser differences, and official
28
24
  schema coverage is documented in the [MCP Apps compatibility
@@ -186,8 +182,8 @@ cloning a resource—even with the same URI and content—does not create a vali
186
182
 
187
183
  ## Host responsibilities
188
184
 
189
- Returning a `WebViewDocument` or sandbox descriptor is not permission to weaken platform controls.
190
- A production host must still verify:
185
+ The descriptor is designed to map onto a locally bundled WebView with the following production
186
+ controls:
191
187
 
192
188
  - allowed origins and navigation rules;
193
189
  - ephemeral website data and cookie/process-pool isolation on each supported OS version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-native/webview",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "Policy-gated WebView fallback primitives for MCP Native.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
+ "LICENSE",
24
25
  "README.md"
25
26
  ],
26
27
  "type": "module",
@@ -30,13 +31,14 @@
30
31
  "exports": {
31
32
  ".": {
32
33
  "types": "./dist/index.d.ts",
33
- "import": "./dist/index.js"
34
+ "import": "./dist/index.js",
35
+ "default": "./dist/index.js"
34
36
  }
35
37
  },
36
38
  "publishConfig": {
37
39
  "access": "public"
38
40
  },
39
41
  "dependencies": {
40
- "@mcp-native/core": "^0.9.1"
42
+ "@mcp-native/core": "^0.9.3"
41
43
  }
42
44
  }