Skip to content

Commit 200d2f3

Browse files
Implement BYO zod v3 or v4
Following recommendations from https://zod.dev/library-authors
1 parent 1a6f237 commit 200d2f3

File tree

6 files changed

+1550
-179
lines changed

6 files changed

+1550
-179
lines changed

examples/simple-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@modelcontextprotocol/sdk": "^1.22.0",
1414
"react": "^19.2.0",
1515
"react-dom": "^19.2.0",
16-
"zod": "^3.25.0"
16+
"zod": "^4.1.13"
1717
},
1818
"devDependencies": {
1919
"@types/express": "^5.0.0",

examples/simple-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
22
import express, { Request, Response } from "express";
33
import { randomUUID } from "node:crypto";
4-
import { z } from "zod";
4+
import * as z from "zod";
55
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
66
import {
77
CallToolResult,

0 commit comments

Comments
 (0)