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 InMemoryTransport to the v2 import-mapping example
- Fix InMemoryTransport example to import from server instead of core
(core is private/internal)
- Add SSE-to-StreamableHTTP before/after example
- Method-string table: add tasks/get, tasks/result,
notifications/elicitation/complete
- Mention callToolStream() in the schema-removal section
- migration-SKILL.md: fix 'core is installed as a dependency' (it's
internal), add the same method-string rows
| Server + Express |`npm install @modelcontextprotocol/server @modelcontextprotocol/express`|
29
29
| Server + Hono |`npm install @modelcontextprotocol/server @modelcontextprotocol/hono`|
30
30
31
-
`@modelcontextprotocol/core` is installed automatically as a dependency.
31
+
`@modelcontextprotocol/core` is an internal package — never install or import it directly. Both `@modelcontextprotocol/client` and `@modelcontextprotocol/server` re-export everything you need.
32
32
33
33
## 3. Import Mapping
34
34
@@ -373,6 +373,9 @@ Schema to method string mapping:
@@ -110,6 +110,34 @@ const transport = new NodeStreamableHTTPServerTransport({ sessionIdGenerator: ()
110
110
111
111
The SSE transport has been removed from the server. Servers should migrate to Streamable HTTP. The client-side SSE transport remains available for connecting to legacy SSE servers.
const transport =newNodeStreamableHTTPServerTransport({ sessionIdGenerator: () =>randomUUID() });
134
+
awaitserver.connect(transport);
135
+
awaittransport.handleRequest(req, res);
136
+
});
137
+
```
138
+
139
+
See `examples/server/src/simpleStreamableHttp.ts` for a complete working example.
140
+
113
141
### `WebSocketClientTransport` removed
114
142
115
143
`WebSocketClientTransport` has been removed. WebSocket is not a spec-defined MCP transport, and keeping it in the SDK encouraged transport proliferation without a conformance baseline.
@@ -381,10 +409,13 @@ Common method string replacements:
### `Protocol.request()`, `ctx.mcpReq.send()`, and `Client.callTool()` no longer take a schema parameter
386
417
387
-
The public `Protocol.request()`, `BaseContext.mcpReq.send()`, and `Client.callTool()` methods no longer accept a Zod result schema argument. The SDK now resolves the correct result schema internally based on the method name. This means you no longer need to import result schemas
418
+
The public `Protocol.request()`, `BaseContext.mcpReq.send()`, `Client.callTool()`, and `client.experimental.tasks.callToolStream()` methods no longer accept a Zod result schema argument. The SDK now resolves the correct result schema internally based on the method name. This means you no longer need to import result schemas
388
419
like `CallToolResultSchema` or `ElicitResultSchema` when making requests.
389
420
390
421
**`client.request()` — Before (v1):**
@@ -467,8 +498,8 @@ 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.
0 commit comments