From f9e70020481baa92802c719d6a9fbd29966afc13 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Thu, 24 Sep 2026 18:49:03 +0200 Subject: [PATCH] fix(mcp): resolve pre-existing tsc drift in server.ts zod v4 requires z.record(keySchema, valueSchema); the integration tool passed a string literal where the generated client wants the enum. Authored By: TDvorak Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- apps/mcp/src/server.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/mcp/src/server.ts b/apps/mcp/src/server.ts index d07cb21..cb53b2c 100644 --- a/apps/mcp/src/server.ts +++ b/apps/mcp/src/server.ts @@ -7,6 +7,7 @@ import { z } from "zod"; import { AutomationService, CreateBucketRequest, + CreateIntegrationRequest, IntegrationsService, OpenAPI, OrganizationsService, @@ -500,7 +501,7 @@ server.registerTool( projectId: projectId(p), requestBody: { name, - type: "rybbit", + type: CreateIntegrationRequest.type.RYBBIT, base_url: baseUrl, api_key: apiKey, site_id: siteId, @@ -782,7 +783,7 @@ server.registerTool( .describe('Cron (5-field, e.g. "*/15 * * * *") or descriptor: @hourly, @daily, @every 30m'), url: z.string().describe("HTTPS endpoint (http allowed only for private/self-hosted targets)"), secret: z.string().optional(), - payload: z.record(z.unknown()).optional().describe("Static JSON payload merged into every delivery"), + payload: z.record(z.string(), z.unknown()).optional().describe("Static JSON payload merged into every delivery"), enabled: z.boolean().optional(), projectId: z.string().optional(), }, @@ -811,7 +812,7 @@ server.registerTool( schedule: z.string().optional(), url: z.string().optional(), secret: z.string().optional(), - payload: z.record(z.unknown()).optional(), + payload: z.record(z.string(), z.unknown()).optional(), enabled: z.boolean().optional(), projectId: z.string().optional(), },