UNPKG

mcp-turso-cloud

Version:

MCP server for integrating Turso with LLMs

27 lines (26 loc) 872 B
/** * Turso Database HTTP API client for database-level operations */ import { Client, ResultSet } from '@libsql/client'; /** * Get a client for a specific database, creating one if necessary */ export declare function get_database_client(database_name: string, permission?: 'full-access' | 'read-only'): Promise<Client>; /** * List all tables in a database */ export declare function list_tables(database_name: string): Promise<string[]>; /** * Execute a SQL query against a database */ export declare function execute_query(database_name: string, query: string, params?: Record<string, any>): Promise<ResultSet>; /** * Get schema information for a table */ export declare function describe_table(database_name: string, table_name: string): Promise<{ name: string; type: string; notnull: number; dflt_value: string | null; pk: number; }[]>;