mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-29 08:04:50 +00:00
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:
1 parent
585bb04ab2
commit
f9e7002048
1 file changed
+4
-3
@@ -7,6 +7,7 @@ import { z } from "zod";
|
|||||||
import {
|
import {
|
||||||
AutomationService,
|
AutomationService,
|
||||||
CreateBucketRequest,
|
CreateBucketRequest,
|
||||||
|
CreateIntegrationRequest,
|
||||||
IntegrationsService,
|
IntegrationsService,
|
||||||
OpenAPI,
|
OpenAPI,
|
||||||
OrganizationsService,
|
OrganizationsService,
|
||||||
@@ -500,7 +501,7 @@ server.registerTool(
|
|||||||
projectId: projectId(p),
|
projectId: projectId(p),
|
||||||
requestBody: {
|
requestBody: {
|
||||||
name,
|
name,
|
||||||
type: "rybbit",
|
type: CreateIntegrationRequest.type.RYBBIT,
|
||||||
base_url: baseUrl,
|
base_url: baseUrl,
|
||||||
api_key: apiKey,
|
api_key: apiKey,
|
||||||
site_id: siteId,
|
site_id: siteId,
|
||||||
@@ -782,7 +783,7 @@ server.registerTool(
|
|||||||
.describe('Cron (5-field, e.g. "*/15 * * * *") or descriptor: @hourly, @daily, @every 30m'),
|
.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)"),
|
url: z.string().describe("HTTPS endpoint (http allowed only for private/self-hosted targets)"),
|
||||||
secret: z.string().optional(),
|
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(),
|
enabled: z.boolean().optional(),
|
||||||
projectId: z.string().optional(),
|
projectId: z.string().optional(),
|
||||||
},
|
},
|
||||||
@@ -811,7 +812,7 @@ server.registerTool(
|
|||||||
schedule: z.string().optional(),
|
schedule: z.string().optional(),
|
||||||
url: z.string().optional(),
|
url: z.string().optional(),
|
||||||
secret: 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(),
|
enabled: z.boolean().optional(),
|
||||||
projectId: z.string().optional(),
|
projectId: z.string().optional(),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user