import { z } from 'zod'; import { ApId } from '../../core/common/id-generator'; import { Permission } from '../../core/common/security/permission'; export type McpId = ApId; export declare const MCP_TRIGGER_PIECE_NAME = "@activepieces/piece-mcp"; export declare enum McpServerType { PLATFORM = "PLATFORM", PROJECT = "PROJECT" } export declare const McpServer: z.ZodObject<{ platformId: z.ZodNullable; projectId: z.ZodNullable; type: z.ZodEnum<{ PLATFORM: McpServerType.PLATFORM; PROJECT: McpServerType.PROJECT; }>; token: z.ZodString; disabledTools: z.ZodNullable>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; export declare const PopulatedMcpServer: z.ZodObject<{ platformId: z.ZodNullable; projectId: z.ZodNullable; type: z.ZodEnum<{ PLATFORM: McpServerType.PLATFORM; PROJECT: McpServerType.PROJECT; }>; token: z.ZodString; disabledTools: z.ZodNullable>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; flows: z.ZodArray>; folderId: z.ZodOptional>; status: z.ZodEnum; publishedVersionId: z.ZodOptional>; metadata: z.ZodOptional>>; operationStatus: z.ZodEnum; timeSavedPerRun: z.ZodOptional>; templateId: z.ZodOptional>; createdBy: z.ZodOptional; id: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"AGENT">; id: z.ZodString; }, z.core.$strip>], "type">>>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; version: z.ZodObject<{ flowId: z.ZodString; displayName: z.ZodString; trigger: z.ZodUnion; settings: z.ZodObject<{ sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; pieceName: z.ZodString; pieceVersion: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodAny; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>]>; updatedBy: z.ZodOptional>; valid: z.ZodBoolean; schemaVersion: z.ZodOptional>; agentIds: z.ZodArray; state: z.ZodEnum; connectionIds: z.ZodArray; backupFiles: z.ZodOptional>>; notes: z.ZodArray>; color: z.ZodEnum; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; triggerSource: z.ZodOptional; cronExpression: z.ZodString; timezone: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; export type PopulatedMcpServer = z.infer; export type McpServer = z.infer; export type ProjectScopedMcpServer = McpServer & { projectId: string; }; export type McpToolContext = { mcp: ProjectScopedMcpServer; userId?: string; }; export declare const UpdateMcpServerRequest: z.ZodObject<{ disabledTools: z.ZodOptional>; }, z.core.$strip>; export type UpdateMcpServerRequest = z.infer; /** Tool definition for MCP: inputSchema is a raw Zod shape (same as MCP expects). */ export type McpToolDefinition = { title: string; description: string; inputSchema: Record; annotations?: { readOnlyHint?: boolean; destructiveHint?: boolean; idempotentHint?: boolean; openWorldHint?: boolean; }; permission?: Permission; execute: (args: Record) => Promise; }; export type McpToolResult = { content: Array<{ type: 'text'; text: string; }>; structuredContent?: Record; isError?: boolean; }; //# sourceMappingURL=mcp.d.ts.map