You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add parseJSONRPCMessage() to public API as alternative to raw JSONRPCMessageSchema
- Fix migration docs to reference @modelcontextprotocol/client or /server instead of /core
- Add InMemoryTransport removal migration entry
- Export CrossAppAccessProvider and related types from client package (from SEP-990 merge)
|`@modelcontextprotocol/sdk/types.js`|`@modelcontextprotocol/client` or `@modelcontextprotocol/server`|
65
+
|`@modelcontextprotocol/sdk/shared/protocol.js`|`@modelcontextprotocol/client` or `@modelcontextprotocol/server`|
66
+
|`@modelcontextprotocol/sdk/shared/transport.js`|`@modelcontextprotocol/client` or `@modelcontextprotocol/server`|
67
+
|`@modelcontextprotocol/sdk/shared/uriTemplate.js`|`@modelcontextprotocol/client` or `@modelcontextprotocol/server`|
68
+
|`@modelcontextprotocol/sdk/shared/auth.js`|`@modelcontextprotocol/client` or `@modelcontextprotocol/server`|
70
69
71
70
Notes:
72
71
73
-
-`@modelcontextprotocol/client` and `@modelcontextprotocol/server` both re-export everything from `@modelcontextprotocol/core`, so you can import types from whichever package you already depend on.
72
+
-`@modelcontextprotocol/client` and `@modelcontextprotocol/server` both re-export shared types from `@modelcontextprotocol/core`, so import from whichever package you already depend on. Do not import from `@modelcontextprotocol/core` directly — it is an internal package.
74
73
- When multiple v1 imports map to the same v2 package, consolidate them into a single import statement.
75
-
- If code imports from `sdk/client/...`, install `@modelcontextprotocol/client`. If from `sdk/server/...`, install `@modelcontextprotocol/server`. If from `sdk/types.js` or `sdk/shared/...` only, install `@modelcontextprotocol/core`.
Note: `@modelcontextprotocol/client` and `@modelcontextprotocol/server` both re-export everything from `@modelcontextprotocol/core`, so you can import types from whichever package you already depend on.
60
+
Note: `@modelcontextprotocol/client` and `@modelcontextprotocol/server` both re-export shared types from `@modelcontextprotocol/core`, so you can import types and error classes from whichever package you already depend on. Do not import from `@modelcontextprotocol/core` directly — it is an internal package.
62
61
63
62
### Dropped Node.js 18 and CommonJS
64
63
@@ -419,6 +418,22 @@ const client = new Client(
419
418
);
420
419
```
421
420
421
+
### `InMemoryTransport` removed from public API
422
+
423
+
`InMemoryTransport` has been removed from the public API surface. It was previously used for in-process client-server connections and testing.
424
+
425
+
For **testing**, import it directly from the internal core package:
For **production in-process connections**, use `StreamableHTTPClientTransport` with a local server URL, or connect client and server via paired streams.
436
+
422
437
### Removed type aliases and deprecated exports
423
438
424
439
The following deprecated type aliases have been removed from `@modelcontextprotocol/core`:
@@ -434,7 +449,7 @@ The following deprecated type aliases have been removed from `@modelcontextproto
434
449
|`IsomorphicHeaders`| Use Web Standard `Headers`|
435
450
|`AuthInfo` (from `server/auth/types.js`) |`AuthInfo` (now in `@modelcontextprotocol/core`) |
436
451
437
-
All other types and schemas exported from `@modelcontextprotocol/sdk/types.js` retain their original names in `@modelcontextprotocol/core`.
452
+
All other types and schemas exported from `@modelcontextprotocol/sdk/types.js` retain their original names — import them from `@modelcontextprotocol/client` or `@modelcontextprotocol/server`.
0 commit comments