UNPKG

@posthog/wizard

Version:

The PostHog wizard helps you to configure your project

86 lines (85 loc) 3.52 kB
import { DefaultMCPClient, MCPServerConfig } from '../MCPClient'; import { DefaultMCPClientConfig } from '../defaults'; import { z } from 'zod'; import type { CloudRegion } from '../../../utils/types'; export declare const CursorMCPConfig: z.ZodObject<{ mcpServers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ command: z.ZodOptional<z.ZodString>; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }>, z.ZodObject<{ url: z.ZodString; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; headers?: Record<string, string> | undefined; }, { url: string; headers?: Record<string, string> | undefined; }>]>>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ mcpServers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ command: z.ZodOptional<z.ZodString>; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }>, z.ZodObject<{ url: z.ZodString; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; headers?: Record<string, string> | undefined; }, { url: string; headers?: Record<string, string> | undefined; }>]>>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ mcpServers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{ command: z.ZodOptional<z.ZodString>; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }, { env?: Record<string, string> | undefined; command?: string | undefined; args?: string[] | undefined; }>, z.ZodObject<{ url: z.ZodString; headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { url: string; headers?: Record<string, string> | undefined; }, { url: string; headers?: Record<string, string> | undefined; }>]>>; }, z.ZodTypeAny, "passthrough">>; export type CursorMCPConfig = z.infer<typeof DefaultMCPClientConfig>; export declare class CursorMCPClient extends DefaultMCPClient { name: string; constructor(); isClientSupported(): Promise<boolean>; getConfigPath(): Promise<string>; getServerConfig(apiKey: string | undefined, type: 'sse' | 'streamable-http', selectedFeatures?: string[], local?: boolean, region?: CloudRegion): MCPServerConfig; addServer(apiKey?: string, selectedFeatures?: string[], local?: boolean, region?: CloudRegion): Promise<{ success: boolean; }>; }