@mcp-native/core 0.9.1 → 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 +5 -7
  3. package/package.json +4 -2
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,9 @@
12
12
 
13
13
  </div>
14
14
 
15
- > **Pre-1.0 release candidate:** the `0.9.x` API is part of the frozen proposed `1.0.0` contract.
16
- > The stable compatibility guarantee begins at `1.0.0`, after the remaining independent review and
17
- > release gates.
18
-
19
- `@mcp-native/core` is the protocol- and renderer-independent foundation of MCP Native. It defines the small MCP client boundary consumed by the runtime and routes declared actions without depending on A2UI, React Native, WebViews, or a specific MCP SDK transport.
15
+ `@mcp-native/core` is the protocol- and renderer-independent foundation of MCP Native. Use it to
16
+ connect an MCP client to the runtime, validate JSON data, and route declared actions through an
17
+ application policy. It does not depend on A2UI, React Native, WebViews, or a particular MCP SDK.
20
18
 
21
19
  ## Install
22
20
 
@@ -143,9 +141,9 @@ Wrap the policy with `createExpiringGrantActionPolicy()` when the host offers re
143
141
 
144
142
  `actionPolicy` protects `McpNativeRuntime.dispatch()`. Set `trustedToolPolicy` to protect direct `callTool()` operations with the same or another explicit policy; omission preserves the lower-level trusted seam. MCP Apps requires its own `authorizeToolCall` callback and A2UI v1 delivery requires `createA2uiV1ActionDeliveryHandler`, because those packages own different protocol boundaries.
145
143
 
146
- ## Pre-1.0 MCP result migration
144
+ ## Legacy MCP result migration
147
145
 
148
- The initial `0.0.x` proof of concept returned one `McpResource` directly from `readResource`. The official SDK returns a content collection, so implementations now return `McpReadResourceResult`:
146
+ The initial `0.0.x` API returned one `McpResource` directly from `readResource`. The official SDK returns a content collection, so implementations now return `McpReadResourceResult`:
149
147
 
150
148
  ```ts
151
149
  // Before
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-native/core",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Protocol-independent runtime primitives for MCP Native.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -20,6 +20,7 @@
20
20
  },
21
21
  "files": [
22
22
  "dist",
23
+ "LICENSE",
23
24
  "README.md"
24
25
  ],
25
26
  "type": "module",
@@ -29,7 +30,8 @@
29
30
  "exports": {
30
31
  ".": {
31
32
  "types": "./dist/index.d.ts",
32
- "import": "./dist/index.js"
33
+ "import": "./dist/index.js",
34
+ "default": "./dist/index.js"
33
35
  }
34
36
  },
35
37
  "publishConfig": {