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
v1-to-v2: now wraps `outputSchema` raw shapes with `z.object()`; importMap covers `sdk/server/express.js`, `sdk/server/middleware/hostHeaderValidation.js`, and `sdk/client/auth-extensions.js`. The unreachable `expressMiddleware` transform is removed.
Copy file name to clipboardExpand all lines: docs/client.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,8 +118,7 @@ client.getNegotiatedProtocolVersion(); // '2026-07-28' or '2025-11-25'
118
118
-**`mode: { pin: '2026-07-28' }`** — modern era at exactly that revision; no fallback. Against a 2025-only server `connect()` rejects with a typed error. Use `pin` where a silent downgrade would be worse than an error (tests, CI, servers you control).
119
119
120
120
Once a modern era is negotiated, the client automatically attaches the per-request `_meta` envelope (the reserved protocol-version / client-info / client-capabilities keys) to every outgoing request and notification. You can also configure negotiation pre-connect on an
121
-
already-constructed instance via {@linkcode@modelcontextprotocol/client!client/client.Client#setVersionNegotiation | client.setVersionNegotiation()}. See the [2026-07-28 support guide](./migration/support-2026-07-28.md#serving-the-2026-07-28-revision) for the full failure semantics,
122
-
probe policy, and the `'auto'`-mode compatibility table.
121
+
already-constructed instance via {@linkcode@modelcontextprotocol/client!client/client.Client#setVersionNegotiation | client.setVersionNegotiation()}. See the [2026-07-28 support guide › Probe policy](./migration/support-2026-07-28.md#probe-policy) for the full failure semantics and probe-timeout behavior.
`…/server/auth/handlers/*.js`,`…/server/auth/providers/proxyProvider.js`) to
210
+
`@modelcontextprotocol/server-legacy/auth`, and `…/server/express.js` /
211
+
`…/server/middleware/hostHeaderValidation.js` to `@modelcontextprotocol/express`. The
212
+
AS→`server-legacy` routing is conservative — re-point RS-only call sites
213
+
(`requireBearerAuth`, `mcpAuthMetadataRouter`) at`@modelcontextprotocol/express` by hand.
217
214
218
215
### Low-level protocol & handler context (`ctx`)
219
216
@@ -328,9 +325,8 @@ The return type is inferred from the method name via `ResultTypeMap` (e.g.
328
325
329
326
The deprecated variadic `.tool()`, `.prompt()`, `.resource()` are removed. Use
330
327
`registerTool` / `registerPrompt` / `registerResource` with an explicit config object.
331
-
The codemod converts the call shape and wraps `inputSchema` / `argsSchema` / `uriSchema`
332
-
raw shapes; verify `outputSchema` (which the codemod does not wrap) is wrapped where
333
-
present.
328
+
The codemod converts the call shape and wraps `inputSchema` / `outputSchema` /
329
+
`argsSchema` / `uriSchema` raw shapes.
334
330
335
331
```typescript
336
332
// v1 — raw shape, variadic
@@ -806,7 +802,7 @@ surfaced per-tool on `callTool`).
806
802
A tool may now register an `outputSchema` whose root is `type:"array"`, `type:"string"`,
807
803
etc.; toward 2025-era clients the codec wraps it in a `{result:…}` envelope, and toward
808
804
every era a non-object `structuredContent` with no `text` block of its own gets a
809
-
`JSON.stringify(...)``text` block auto-appended. See [support-2026-07-28.md](./support-2026-07-28.md#per-era-wire-codecs) for the per-era projection rules.
805
+
`JSON.stringify(...)``text` block auto-appended. See [support-2026-07-28.md › Per-era wire codecs](./support-2026-07-28.md#per-era-wire-codecs) for how the codec applies these per era.
0 commit comments