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
Adds a more robust base64 check for AudioContent, ImageContent and BlobResourceContent.
* This fixes an issue found in the servers repo with this PR: modelcontextprotocol/servers#2382
* Under the hood, z.string().base64() uses a regular expression to validate the string.
* While this regex is fine for typical inputs, running it against a string that is several megabytes long can cause the JavaScript engine's regex parser to hit its internal recursion limit, resulting in a "Maximum call stack size exceeded" error.
0 commit comments