Commit c42db2c
committed
Fix tools/list error by pinning SDK and Zod versions
The hosted MCP server at mcp.socket.dev fails on tools/list with:
"Cannot read properties of null (reading '_def')"
This is caused by Zod version incompatibility. SDK 1.25.x requires
zod ^3.25 which has internal _def structure changes that break
schema serialization.
Changes:
- Pin @modelcontextprotocol/sdk to 1.22.0 (last version using zod ^3.23.8)
- Pin zod to 3.24.1
- Add overrides to force all transitive deps to use compatible versions1 parent 42f5e61 commit c42db2c
2 files changed
Lines changed: 242 additions & 449 deletions
0 commit comments