Skip to content

Commit 9c68a74

Browse files
authored
fix(mcp): bound legacy mcp server name and description like the v2 contract (#10053)
1 parent b75a50f commit 9c68a74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/lib/api/contracts

‎apps/sim/lib/api/contracts/mcp.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ export const mcpServerIdParamsSchema = z.object({
180180

181181
export const createMcpServerBodySchema = z
182182
.object({
183-
name: z.string().min(1),
184-
description: z.string().optional(),
183+
name: z.string().min(1).max(255, 'name must be at most 255 characters'),
184+
description: z.string().max(2000, 'description must be at most 2000 characters').optional(),
185185
transport: mcpTransportSchema,
186186
url: z.string().optional(),
187187
authType: mcpAuthTypeSchema.optional(),

0 commit comments

Comments
 (0)