From 88ad3767916b86c4e0b272d040ee0b75a0580d76 Mon Sep 17 00:00:00 2001 From: centdix <40307056+centdix@users.noreply.github.com> Date: Fri, 20 Mar 2026 13:36:43 +0100 Subject: [PATCH] fix: strip invalid enum values from MCP schemas (#8462) * fix: harden MCP tool schemas for Claude compatibility * fix: strip invalid enum values from MCP schemas --- backend/windmill-mcp/src/common/schema.rs | 76 +++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/backend/windmill-mcp/src/common/schema.rs b/backend/windmill-mcp/src/common/schema.rs index 4d3679f607..d83e337acf 100644 --- a/backend/windmill-mcp/src/common/schema.rs +++ b/backend/windmill-mcp/src/common/schema.rs @@ -44,6 +44,7 @@ pub fn extract_resource_types_from_schema(schema: &SchemaType) -> HashSet