You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello — thanks to the team for their work on this!
After upgrading @modelcontextprotocol/sdk from 1.22.0 to 1.23.0, I started getting a TS2589: Type instantiation is excessively deep and possibly infinite. error.
It worked in 1.22.0, but 1.23.0 reports this error.
Describe the bug
Hello — thanks to the team for their work on this!
After upgrading
@modelcontextprotocol/sdkfrom1.22.0to1.23.0, I started getting aTS2589: Type instantiation is excessively deep and possibly infinite.error.It worked in
1.22.0, but1.23.0reports this error.zodv4, and latest method inmcpeslint/rewrite#332The PR and GitHub Actions CI show the failure:
At first I thought the error was caused by our use of the deprecated
toolsmethod, but it also occurs with the newregisterToolmethod.To Reproduce
Steps to reproduce the behavior:
zodv4, and latest method inmcpeslint/rewrite#332npm installfrom the project root.npm run build -w packages/mcpfrom the project root.Expected behavior
No
TS2589: Type instantiation is excessively deep and possibly infinite.error should occur.Logs
Full logs can be found here:
zodv4, and latest method inmcpeslint/rewrite#332Additional context
This appears to be a regression introduced when adding Zod v4 support in
1.23.0.