@mcp-native/mcp 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 +8 -5
  3. package/package.json +7 -4
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
@@ -8,11 +8,13 @@
8
8
 
9
9
  </div>
10
10
 
11
- > **Experimental:** this package is an early proof of concept. Its public API may change before `1.0.0`.
11
+ `@mcp-native/mcp` connects the official MCP TypeScript SDK v2 to MCP Native. It adapts a connected
12
+ [`Client`](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/docs/client.md) to the
13
+ small runtime interface in `@mcp-native/core` and provides native-host helpers for interactive OAuth
14
+ over protected Streamable HTTP.
12
15
 
13
- > **Compatibility:** SDK v2 is the correct implementation line for MCP `2026-07-28`. The initial tool/resource boundary preserves official fields and is covered through the SDK's current HTTP handler/fetch path, but the package does not yet claim complete MCP conformance.
14
-
15
- `@mcp-native/mcp` adapts a connected [`Client`](https://github.com/modelcontextprotocol/typescript-sdk/blob/main/docs/client.md) from `@modelcontextprotocol/client` v2 to the transport-neutral `McpClient` interface in `@mcp-native/core`. It also provides the native host boundary for interactive OAuth on protected Streamable HTTP connections.
16
+ The [protocol support policy](https://github.com/pablospaniard/mcp-native/blob/main/docs/protocol-support.md)
17
+ lists the MCP revisions, operations, and test coverage behind this adapter.
16
18
 
17
19
  The result adapter does not own SDK wire behavior. The host still chooses and constructs the
18
20
  official client and transport. `createMcpNativeConnectionLifecycle()` optionally coordinates their
@@ -177,7 +179,8 @@ the transport permits at most one SDK step-up retry per request. The host must m
177
179
  cross-request budget. Supply `scopeStore` to retain a validated issuer/resource-bound scope record
178
180
  across token invalidation and provider instances; full credential invalidation removes it. All 25
179
181
  scored pinned official `2026-07-28` authorization client scenarios
180
- pass. Native-library integration is demonstrated separately through non-blocking app-level PoCs.
182
+ pass. The runnable [Expo Go todo app](../../examples/expo-go-todolist/README.md) provides separate
183
+ application-level native evidence.
181
184
 
182
185
  ## Production connection lifecycle
183
186
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcp-native/mcp",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Official MCP TypeScript SDK adapter for MCP Native.",
5
5
  "keywords": [
6
6
  "adapter",
@@ -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,18 +30,20 @@
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
  "./oauth": {
35
37
  "types": "./dist/oauth.d.ts",
36
- "import": "./dist/oauth.js"
38
+ "import": "./dist/oauth.js",
39
+ "default": "./dist/oauth.js"
37
40
  }
38
41
  },
39
42
  "publishConfig": {
40
43
  "access": "public"
41
44
  },
42
45
  "dependencies": {
43
- "@mcp-native/core": "^0.9.0",
46
+ "@mcp-native/core": "^0.9.2",
44
47
  "@modelcontextprotocol/core": "2.0.0"
45
48
  },
46
49
  "devDependencies": {