Skip to content

Commit 2eef498

Browse files
chore(mcp): upgrade zod to v4 to fix tsc OOM during build
Upgrades zod from ^3.24.3 to ^4.3.6 in the mcp package to resolve out-of-memory errors during TypeScript compilation caused by @modelcontextprotocol/sdk's complex Zod-derived types. Zod v4 has significantly simpler TypeScript generics, and also satisfies the SDK's peer dependency requirement (^3.25 || ^4.0). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7f7516c commit 2eef498

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

packages/mcp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"dedent": "^1.7.1",
2323
"escape-string-regexp": "^5.0.0",
2424
"express": "^5.1.0",
25-
"zod": "^3.24.3"
25+
"zod": "^4.3.6"
2626
},
2727
"bin": {
2828
"sourcebot-mcp": "./dist/index.js"

yarn.lock

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8539,7 +8539,7 @@ __metadata:
85398539
tsc-watch: "npm:6.2.1"
85408540
tsx: "npm:^4.0.0"
85418541
typescript: "npm:^5.0.0"
8542-
zod: "npm:^3.24.3"
8542+
zod: "npm:^4.3.6"
85438543
bin:
85448544
sourcebot-mcp: ./dist/index.js
85458545
languageName: unknown
@@ -22252,14 +22252,7 @@ __metadata:
2225222252
languageName: node
2225322253
linkType: hard
2225422254

22255-
"zod@npm:^3.24.3":
22256-
version: 3.24.3
22257-
resolution: "zod@npm:3.24.3"
22258-
checksum: 10c0/ab0369810968d0329a1a141e9418e01e5c9c2a4905cbb7cb7f5a131d6e9487596e1400e21eeff24c4a8ee28dacfa5bd6103893765c055b7a98c2006a5a4fc68d
22259-
languageName: node
22260-
linkType: hard
22261-
22262-
"zod@npm:^3.25 || ^4.0, zod@npm:^3.25.76 || ^4, zod@npm:^4.1.13":
22255+
"zod@npm:^3.25 || ^4.0, zod@npm:^3.25.76 || ^4, zod@npm:^4.1.13, zod@npm:^4.3.6":
2226322256
version: 4.3.6
2226422257
resolution: "zod@npm:4.3.6"
2226522258
checksum: 10c0/860d25a81ab41d33aa25f8d0d07b091a04acb426e605f396227a796e9e800c44723ed96d0f53a512b57be3d1520f45bf69c0cb3b378a232a00787a2609625307

0 commit comments

Comments
 (0)