mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
d883436395d3c0d15cfe68b0dee8052630989149
Replace all undefined values with null in agent MCP tool responses to prevent JSON serialization issues that break the MCP client. Changes: - Update AgentInfo interface to use `| null` instead of optional `?` syntax - Convert undefined to null in listAgents(), getCurrentMode(), getAvailableModes() - Update all Zod schemas from .optional() to .nullable() - Fix tool responses in create_coding_agent and set_agent_mode This ensures all MCP tool responses properly serialize optional fields as null instead of undefined, preventing client-side errors. 🤖 Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
Languages
TypeScript
98.1%
JavaScript
1.3%
Shell
0.1%
Swift
0.1%