/** * MotherDuck MCP Tools * Tools for managing MotherDuck cloud connections */ import { z } from 'zod'; import { DuckDBService } from '../duckdb/service.js'; declare const MotherDuckAttachInputSchema: z.ZodObject<{ token: z.ZodString; database: z.ZodOptional; endpoint: z.ZodOptional; }, z.core.$strip>; declare const MotherDuckQueryInputSchema: z.ZodObject<{ sql: z.ZodString; limit: z.ZodDefault>; }, z.core.$strip>; declare const MotherDuckShareInputSchema: z.ZodObject<{ localTable: z.ZodString; cloudTable: z.ZodOptional; }, z.core.$strip>; declare const MotherDuckImportInputSchema: z.ZodObject<{ cloudTable: z.ZodString; localTable: z.ZodOptional; }, z.core.$strip>; declare const MotherDuckCreateDatabaseInputSchema: z.ZodObject<{ name: z.ZodString; }, z.core.$strip>; /** * MotherDuck tool handlers */ export declare class MotherDuckToolHandlers { private motherduck; constructor(duckdb: DuckDBService); /** * Attach to MotherDuck cloud */ attach(input: z.infer): Promise<{ success: boolean; message: string; status: import("../service/motherduck.js").MotherDuckStatus; error?: undefined; } | { success: boolean; error: string; message?: undefined; status?: undefined; }>; /** * Detach from MotherDuck */ detach(): Promise<{ success: boolean; message: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; }>; /** * Get MotherDuck status */ status(): Promise<{ connected: boolean; database?: string; cloudInstance?: string; bytesUsed?: number; bytesLimit?: number; error?: string; success: boolean; }>; /** * List databases in MotherDuck */ listDatabases(): Promise<{ success: boolean; databases: string[]; count: number; error?: undefined; } | { success: boolean; error: string; databases?: undefined; count?: undefined; }>; /** * Create a database in MotherDuck */ createDatabase(input: z.infer): Promise<{ success: boolean; message: string; database: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; database?: undefined; }>; /** * Execute query on MotherDuck */ query(input: z.infer): Promise<{ success: boolean; columns: string[]; rows: any[]; rowCount: number; totalRows: number; error?: undefined; } | { success: boolean; error: string; columns?: undefined; rows?: undefined; rowCount?: undefined; totalRows?: undefined; }>; /** * Share a local table to MotherDuck */ shareTable(input: z.infer): Promise<{ success: boolean; message: string; localTable: string; cloudTable: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; localTable?: undefined; cloudTable?: undefined; }>; /** * Import a table from MotherDuck */ importTable(input: z.infer): Promise<{ success: boolean; message: string; cloudTable: string; localTable: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; cloudTable?: undefined; localTable?: undefined; }>; } /** * Get MotherDuck tool definitions for MCP */ export declare function getMotherDuckToolDefinitions(): { name: string; description: string; inputSchema: z.ZodObject<{}, z.core.$strip>; }[]; /** * Create MotherDuck tool handlers with DuckDB service */ export declare function createMotherDuckHandlers(duckdb: DuckDBService): { 'motherduck.attach': (input: unknown) => Promise<{ success: boolean; message: string; status: import("../service/motherduck.js").MotherDuckStatus; error?: undefined; } | { success: boolean; error: string; message?: undefined; status?: undefined; }>; 'motherduck.detach': () => Promise<{ success: boolean; message: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; }>; 'motherduck.status': () => Promise<{ connected: boolean; database?: string; cloudInstance?: string; bytesUsed?: number; bytesLimit?: number; error?: string; success: boolean; }>; 'motherduck.list_databases': () => Promise<{ success: boolean; databases: string[]; count: number; error?: undefined; } | { success: boolean; error: string; databases?: undefined; count?: undefined; }>; 'motherduck.create_database': (input: unknown) => Promise<{ success: boolean; message: string; database: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; database?: undefined; }>; 'motherduck.query': (input: unknown) => Promise<{ success: boolean; columns: string[]; rows: any[]; rowCount: number; totalRows: number; error?: undefined; } | { success: boolean; error: string; columns?: undefined; rows?: undefined; rowCount?: undefined; totalRows?: undefined; }>; 'motherduck.share_table': (input: unknown) => Promise<{ success: boolean; message: string; localTable: string; cloudTable: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; localTable?: undefined; cloudTable?: undefined; }>; 'motherduck.import_table': (input: unknown) => Promise<{ success: boolean; message: string; cloudTable: string; localTable: string; error?: undefined; } | { success: boolean; error: string; message?: undefined; cloudTable?: undefined; localTable?: undefined; }>; }; export {}; //# sourceMappingURL=motherduck-tools.d.ts.map