/** * Library mode exports for @seed-ship/duckdb-mcp-native * Use this when embedding DuckDB MCP tools in other MCP servers * * This does NOT auto-initialize the server - you control initialization */ import { DuckDBMCPServer } from './server/mcp-server.js'; import { nativeToolHandlers, nativeToolDefinitions } from './tools/native-tools.js'; import { DuckDBService } from './duckdb/service.js'; import type { DuckDBConfig } from './duckdb/service.js'; export { DuckDBMCPServer }; export { DuckDBService }; export type { DuckDBConfig }; export { nativeToolHandlers, nativeToolDefinitions }; /** * Factory function to create an embedded server instance * This gives you full control over the server lifecycle */ export declare function createEmbeddedServer(config?: { embeddedMode?: boolean; duckdbService?: DuckDBService; }): DuckDBMCPServer; /** * Convenience function to get tool handlers without starting a server * Useful for quick integration into existing MCP servers */ export declare function getToolHandlers(duckdbConfig?: DuckDBConfig): Promise<{ [k: string]: (args: any) => Promise<{ success: boolean; rowCount: number; executionTime: number; data: any[]; error?: undefined; } | { success: boolean; error: string; rowCount?: undefined; executionTime?: undefined; data?: undefined; }> | Promise<{ success: boolean; schema: string; tables: any[]; error?: undefined; } | { success: boolean; error: string; schema?: undefined; tables?: undefined; }> | Promise<{ success: boolean; table: string; schema: string; columns: any[]; error?: undefined; } | { success: boolean; error: string; table?: undefined; schema?: undefined; columns?: undefined; }> | Promise<{ success: boolean; message: string; rowCount: any; error?: undefined; } | { success: boolean; error: string; message?: undefined; rowCount?: undefined; }> | Promise<{ success: boolean; message: string; path: string; format: "csv" | "json" | "parquet"; error?: undefined; } | { success: boolean; error: string; message?: undefined; path?: undefined; format?: undefined; }>; }>; /** * Get tool handlers bound to an existing DuckDB service * This prevents creating duplicate DuckDB instances */ export declare function getToolHandlersWithService(duckdbService: DuckDBService): { [k: string]: (args: any) => Promise<{ success: boolean; rowCount: number; executionTime: number; data: any[]; error?: undefined; } | { success: boolean; error: string; rowCount?: undefined; executionTime?: undefined; data?: undefined; }> | Promise<{ success: boolean; schema: string; tables: any[]; error?: undefined; } | { success: boolean; error: string; schema?: undefined; tables?: undefined; }> | Promise<{ success: boolean; table: string; schema: string; columns: any[]; error?: undefined; } | { success: boolean; error: string; table?: undefined; schema?: undefined; columns?: undefined; }> | Promise<{ success: boolean; message: string; rowCount: any; error?: undefined; } | { success: boolean; error: string; message?: undefined; rowCount?: undefined; }> | Promise<{ success: boolean; message: string; path: string; format: "csv" | "json" | "parquet"; error?: undefined; } | { success: boolean; error: string; message?: undefined; path?: undefined; format?: undefined; }>; }; /** * Re-export tool definitions for easy access */ export { nativeToolDefinitions as toolDefinitions }; /** * Export DuckLake service for lakehouse functionality */ export { DuckLakeService, DuckLakeCatalog } from './service/ducklake.js'; export type { DuckLakeOptions, DeltaLogEntry, ChangeSet } from './service/ducklake.js'; //# sourceMappingURL=lib.d.ts.map