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 <[email protected]>

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Tomas DvorakandDevin committed 2026-09-24 18:49:03 +02:00
1 parent 585bb04ab2
commit f9e7002048
1 file changed
+4 -3
+4 -3
View File
@@ -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(),
},