diff --git a/src/server/mcp.ts b/src/server/mcp.ts index d71eecb5b..8f4a909ce 100644 --- a/src/server/mcp.ts +++ b/src/server/mcp.ts @@ -108,7 +108,9 @@ export class McpServer { name, description: tool.description, inputSchema: tool.inputSchema - ? (zodToJsonSchema(tool.inputSchema) as Tool["inputSchema"]) + ? (zodToJsonSchema(tool.inputSchema, { + strictUnions: true, + }) as Tool["inputSchema"]) : EMPTY_OBJECT_JSON_SCHEMA, }; },