/** * postgres-mcp - Code Mode Tool: pg_execute_code * * MCP tool that executes LLM-generated code in a sandboxed environment * with access to all 194 PostgreSQL tools via the pg.* API. */ import { z } from "zod"; import type { PostgresAdapter } from "../../postgres-adapter.js"; import type { ToolDefinition } from "../../../../types/index.js"; export declare const ExecuteCodeSchemaBase: z.ZodObject<{ code: z.ZodOptional; timeout: z.ZodOptional; readonly: z.ZodOptional; }, z.core.$strip>; export declare const ExecuteCodeSchema: z.ZodPipe; timeout: z.ZodOptional; readonly: z.ZodOptional; }, z.core.$strip>, z.ZodTransform<{ code: string; timeout: number | undefined; readonly: boolean | undefined; }, { code?: string | undefined; timeout?: number | undefined; readonly?: boolean | undefined; }>>; export declare const ExecuteCodeOutputSchema: z.ZodObject<{ success: z.ZodBoolean; result: z.ZodOptional; error: z.ZodOptional; metrics: z.ZodOptional; }, z.core.$strip>>; hint: z.ZodOptional; code: z.ZodOptional; category: z.ZodOptional; recoverable: z.ZodOptional; suggestion: z.ZodOptional; details: z.ZodOptional>; }, z.core.$strip>; /** * Create the pg_execute_code tool */ export declare function createExecuteCodeTool(adapter: PostgresAdapter): ToolDefinition; /** * Get all Code Mode tools */ export declare function getCodeModeTools(adapter: PostgresAdapter): ToolDefinition[]; /** * Cleanup Code Mode resources (call on server shutdown) */ export declare function cleanupCodeMode(): void; //# sourceMappingURL=index.d.ts.map