@mcp-native/react-native 0.9.0 → 0.9.2

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 +26 -17
  3. package/package.json +9 -6
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,11 +12,12 @@
12
12
 
13
13
  </div>
14
14
 
15
- > **Experimental:** this package now mounts the initial surface model, but its API and component catalog may change before `1.0.0`.
15
+ `@mcp-native/react-native` turns a surface validated by `@mcp-native/a2ui` into native UI using
16
+ components supplied by your application. It supports the complete pinned A2UI basic catalog,
17
+ policy-gated media, and locally compiled host extensions. Your app keeps control of the component
18
+ implementations, visual design, and action delivery.
16
19
 
17
- `@mcp-native/react-native` converts a surface already validated by `@mcp-native/a2ui` into a trusted render plan and mounts it with components supplied by the host application. Servers provide data and declared actions—not JavaScript modules, component implementations, or arbitrary component names.
18
-
19
- The renderer is an internal platform layer, not proof of complete A2UI v1.0 conformance. The custom `0.1` surface remains available only through deprecated migration APIs, while the v1.0 adapter converts the complete pinned basic catalog, including bounded dynamic lists and policy-gated media, into the same host-owned `NativeElement` boundary. Exactly negotiated local host extensions use a separate closed registration boundary. See the [feature-scoped conformance profile](https://github.com/pablospaniard/mcp-native/blob/main/docs/a2ui-v1-conformance.md).
20
+ The renderer implements the native portion of the documented A2UI v1 Candidate profile. The v1 adapter converts the complete pinned basic catalog, including bounded dynamic lists and policy-gated media, into the host-owned `NativeElement` boundary. Exactly negotiated local host extensions use a separate closed registration boundary. The custom `0.1` surface remains available through migration APIs. See the [feature-scoped A2UI profile](https://github.com/pablospaniard/mcp-native/blob/main/docs/a2ui-v1-conformance.md) for exact coverage.
20
21
 
21
22
  ## Install
22
23
 
@@ -24,9 +25,15 @@ The renderer is an internal platform layer, not proof of complete A2UI v1.0 conf
24
25
  npm install @mcp-native/react-native react react-native
25
26
  ```
26
27
 
27
- `@mcp-native/a2ui` and `@mcp-native/core` are installed as dependencies. React is a peer dependency. React Native `>=0.87.0 <1` is an optional peer because the renderer does not import it or choose a platform implementation; a native host supplies its locally bundled components.
28
+ `@mcp-native/a2ui` and `@mcp-native/core` are installed as dependencies. React is a peer dependency. React Native `>=0.86.0 <1` is an optional peer because the renderer does not import it or choose a platform implementation; a native host supplies its locally bundled components.
29
+
30
+ ## Start with the A2UI v1 renderer
31
+
32
+ New integrations mount `A2uiV1NativeSurface` with an explicit catalog policy and locally bundled
33
+ components. Continue with the [v1 render-plan adapter](#a2ui-v1-render-plan-adapter) for the complete
34
+ host flow, catalog mapping, local state, validation, actions, media, and extension support.
28
35
 
29
- ## Deprecated custom `0.1` quick start
36
+ ## Legacy custom `0.1` migration
30
37
 
31
38
  Use the explicit legacy subpaths during `0.9.x`. These APIs leave package roots at `1.0.0`; the
32
39
  subpaths remain frozen for migration and security fixes.
@@ -82,7 +89,7 @@ The renderer uses only the currently allowed component names:
82
89
  type NativeComponentName = "Button" | "Text" | "TextInput" | "View";
83
90
  ```
84
91
 
85
- This example uses deprecated custom `0.1` APIs. The application host decides how each name maps to a locally bundled component and how declared button actions reach `McpNativeRuntime`. `onBindingChange` reports a validated binding name and the next text value for that legacy proof surface. New hosts should use `A2uiV1NativeSurface`.
92
+ This example uses deprecated custom `0.1` APIs. The application host decides how each name maps to a locally bundled component and how declared button actions reach `McpNativeRuntime`. `onBindingChange` reports a validated binding name and the next text value for that legacy surface. New hosts should use `A2uiV1NativeSurface`.
86
93
 
87
94
  ## A2UI v1 render-plan adapter
88
95
 
@@ -119,18 +126,20 @@ registry and an exact `hostExtensionPolicy` grant. Advertise their catalog IDs w
119
126
  `getA2uiV1NativeSupportedHostExtensionCatalogIds` only after the local registration and policy are
120
127
  installed. See the [media and extension guide](../../docs/media-and-host-extensions.md).
121
128
 
122
- These mappings have automated host-boundary coverage. The [Expo Go integration PoC
123
- policy](../../docs/native-accessibility-testing.md) defines the shared surface and the independent
124
- app-per-library approach for platform and component-library validation. The [automated robustness gates](../../docs/a2ui-v1-performance.md) define
125
- repeatable Node.js render-plan budgets and fixed-seed generated-input coverage.
129
+ These mappings have automated host-boundary coverage. The runnable [Expo Go todo
130
+ app](../../examples/expo-go-todolist/README.md) demonstrates the lifecycle, catalog, bindings,
131
+ actions, persistence, and accessibility boundary in a complete native workflow. The [automated
132
+ robustness gates](../../docs/a2ui-v1-performance.md) define repeatable Node.js render-plan budgets
133
+ and fixed-seed generated-input coverage.
126
134
 
127
135
  For release/platform testing, `npm run native:host:prepare` generates an official temporary React
128
- Native host at the package's exact tested boundaries: current latest `0.87.1` and declared minimum
129
- `0.87.0`. Each host installs local package tarballs and the pinned accessibility,
130
- complete-catalog, media, and Codegen/Fabric extension fixtures.
131
- The [Expo Go integration PoC policy](../../docs/native-accessibility-testing.md) documents the
132
- non-blocking app-level compatibility work. Generated hosts remain automated package fixtures and do
133
- not establish support for a component library.
136
+ Native `0.86.0` host at the package's minimum supported version. The host installs local package
137
+ tarballs and the pinned accessibility, complete-catalog, media, and Codegen/Fabric extension
138
+ fixtures. React Native versions `>=0.86.0 <1` are supported; the minimum-version gate prevents the
139
+ declared floor from drifting upward as newer React Native releases arrive.
140
+ The [Expo Go integration proof](../../docs/native-accessibility-testing.md) documents the runnable
141
+ app-level evidence. Generated hosts remain the automated package fixtures; the Expo app complements
142
+ them with a workflow users can launch and inspect directly.
134
143
 
135
144
  The Milestone 9 fixture also places this native surface beside an isolated MCP Apps WebView through
136
145
  the convenience package's host-owned coordinator. It exercises fixed accessibility order,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-native/react-native",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "React Native renderer primitives for MCP Native.",
5
5
  "keywords": [
6
6
  "a2ui",
@@ -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,19 +31,21 @@
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
  "./legacy": {
36
38
  "types": "./dist/legacy.d.ts",
37
- "import": "./dist/legacy.js"
39
+ "import": "./dist/legacy.js",
40
+ "default": "./dist/legacy.js"
38
41
  }
39
42
  },
40
43
  "publishConfig": {
41
44
  "access": "public"
42
45
  },
43
46
  "dependencies": {
44
- "@mcp-native/a2ui": "^0.9.0",
45
- "@mcp-native/core": "^0.9.0"
47
+ "@mcp-native/a2ui": "^0.9.2",
48
+ "@mcp-native/core": "^0.9.2"
46
49
  },
47
50
  "devDependencies": {
48
51
  "@types/react": "19.1.17",
@@ -51,7 +54,7 @@
51
54
  },
52
55
  "peerDependencies": {
53
56
  "react": ">=18.3.1 <20",
54
- "react-native": ">=0.87.0 <1"
57
+ "react-native": ">=0.86.0 <1"
55
58
  },
56
59
  "peerDependenciesMeta": {
57
60
  "react-native": {