From b3a0a45cfe7adb3b6cf731b1a574eb2b3508e724 Mon Sep 17 00:00:00 2001 From: Benjamin Truthan Date: Tue, 25 Nov 2025 10:50:58 -0500 Subject: [PATCH] fix: pin zod to ^3.23.8 to prevent Zod 4.x installation Zod 4.x introduces breaking API changes that cause tool calls to fail with: 'keyValidator._parse is not a function' This pins zod and zod-to-json-schema to versions compatible with @modelcontextprotocol/sdk's expectations. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a4eac3..bfd30af 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ }, "dependencies": { "@modelcontextprotocol/sdk": "^1.6.0", - "zod": ">= 3" + "zod": "^3.23.8", + "zod-to-json-schema": "^3.24.1" }, "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" }