From 7f3ecf7ffa911bc8624fe27120be37b3c04bd922 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sat, 14 Nov 2026 14:03:15 -0800 Subject: [PATCH] fix(mcp): bound legacy mcp server name and description like the v2 contract --- apps/sim/lib/api/contracts/mcp.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/sim/lib/api/contracts/mcp.ts b/apps/sim/lib/api/contracts/mcp.ts index 76cfd1d41d6..485850216f8 100644 --- a/apps/sim/lib/api/contracts/mcp.ts +++ b/apps/sim/lib/api/contracts/mcp.ts @@ -180,8 +180,8 @@ export const mcpServerIdParamsSchema = z.object({ export const createMcpServerBodySchema = z .object({ - name: z.string().min(1), - description: z.string().optional(), + name: z.string().min(1).max(255, 'name must be at most 255 characters'), + description: z.string().max(2000, 'description must be at most 2000 characters').optional(), transport: mcpTransportSchema, url: z.string().optional(), authType: mcpAuthTypeSchema.optional(),