Fix tools/list error by pinning SDK and Zod versions#142
Fix tools/list error by pinning SDK and Zod versions#142
Conversation
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 versions
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Summary
Fixes the hosted MCP server at mcp.socket.dev failing on
tools/listwith error:Root cause: Zod version incompatibility. The MCP SDK 1.25.x requires
zod ^3.25which has internal_defstructure changes that break schema serialization duringtools/list.Changes:
@modelcontextprotocol/sdkto 1.22.0 (last version compatible with older Zod)zodto 3.24.1Test plan