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
Drop `zod` from `peerDependencies` (kept as direct dependency)
7
+
8
+
Since Standard Schema support landed, `zod` is purely an internal runtime dependency used for protocol message parsing. User-facing schemas (`registerTool`, `registerPrompt`) accept any Standard Schema library. `zod` remains in `dependencies` and auto-installs; users no longer
Both packages have a **required peer dependency** on `zod` for schema validation. The SDK uses Zod v4.
42
+
Tool and prompt schemas use [Standard Schema](https://standardschema.dev/) — bring Zod v4, Valibot, ArkType, or any compatible library.
43
43
44
44
### Middleware packages (optional)
45
45
@@ -56,21 +56,21 @@ They are intentionally thin adapters: they should not introduce new MCP function
56
56
### Server
57
57
58
58
```bash
59
-
npm install @modelcontextprotocol/server zod
59
+
npm install @modelcontextprotocol/server
60
60
# or
61
-
bun add @modelcontextprotocol/server zod
61
+
bun add @modelcontextprotocol/server
62
62
# or
63
-
deno add npm:@modelcontextprotocol/server npm:zod
63
+
deno add npm:@modelcontextprotocol/server
64
64
```
65
65
66
66
### Client
67
67
68
68
```bash
69
-
npm install @modelcontextprotocol/client zod
69
+
npm install @modelcontextprotocol/client
70
70
# or
71
-
bun add @modelcontextprotocol/client zod
71
+
bun add @modelcontextprotocol/client
72
72
# or
73
-
deno add npm:@modelcontextprotocol/client npm:zod
73
+
deno add npm:@modelcontextprotocol/client
74
74
```
75
75
76
76
### Optional middleware packages
@@ -157,7 +157,8 @@ The `docs:multi` script checks out both the `v1.x` and `main` branches via git w
157
157
158
158
## v1 (legacy) documentation and fixes
159
159
160
-
If you are using the **v1** generation of the SDK, the **v1 API documentation** is available at [`https://ts.sdk.modelcontextprotocol.io/`](https://ts.sdk.modelcontextprotocol.io/). The v1 source code and any v1-specific fixes live on the long-lived [`v1.x` branch](https://github.com/modelcontextprotocol/typescript-sdk/tree/v1.x). V2 API docs are at [`/v2/`](https://ts.sdk.modelcontextprotocol.io/v2/).
160
+
If you are using the **v1** generation of the SDK, the **v1 API documentation** is available at [`https://ts.sdk.modelcontextprotocol.io/`](https://ts.sdk.modelcontextprotocol.io/). The v1 source code and any v1-specific fixes live on the long-lived
161
+
[`v1.x` branch](https://github.com/modelcontextprotocol/typescript-sdk/tree/v1.x). V2 API docs are at [`/v2/`](https://ts.sdk.modelcontextprotocol.io/v2/).
0 commit comments