fix(server): prioritize zod issues and format them (#1503)
Co-authored-by: mozmo15 <mozmo@mail.com> Co-authored-by: Felix Weinberger <fweinberger@anthropic.com>
This commit is contained in:
parent
e12cbd7078
commit
9edbab7a09
1 changed files with 31 additions and 6 deletions
5
.changeset/fix-zod-error-message-priority.md
Normal file
5
.changeset/fix-zod-error-message-priority.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@modelcontextprotocol/sdk': patch
|
||||
---
|
||||
|
||||
Prioritize `error.issues[].message` over `error.message` in `getParseErrorMessage` so custom Zod error messages surface correctly. In Zod v4, `error.message` is a JSON blob of all issues, not a readable string.
|
||||
Loading…
Reference in a new issue