Skip to content

Commit 4c13e73

Browse files
chore(mcp): upgrade zod to v4 to fix tsc OOM during build (#964)
* 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> * chore(mcp): update CHANGELOG for zod v4 upgrade Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * changelog --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7f7516c commit 4c13e73

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

packages/mcp/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Changed
1111
- Bumped `@modelcontextprotocol/sdk` from 1.10.2 to 1.26.0. [#958](https://github.com/sourcebot-dev/sourcebot/pull/958)
12+
- Bumped `zod` from `^3.24.3` to `^4.3.6`. [#964](https://github.com/sourcebot-dev/sourcebot/pull/964)
1213

1314
## [1.0.17] - 2026-02-19
1415

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)