mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-01-09 07:28:05 -05:00
Currently the `stdio` transport protocol will throw a `ZodError` during initialization. This is due to Toolbox writing `null` to stdout when it received a notification. This is not expected hence the `ZodError` occurs. Per the MCP protocol, notifications do not expect any response. This fix added a condition to check if the responses is `nil` before writing to stdout.