sequelae-mcp
Version:
Let Claude, Cursor, and other AI agents run real SQL queries on live Postgres databases. No more copy-pasting SQL, stale schema docs, or hallucinated DB adapters — just raw, real-time access. Now with MCP support!
25 lines • 697 B
TypeScript
export interface McpToolRequest {
tool: string;
arguments: Record<string, unknown>;
}
export interface McpToolResponse {
content: Array<{
type: 'text' | 'error';
text?: string;
error?: string;
}>;
}
export declare class McpToolHandler {
private connectionString?;
private executor;
constructor(connectionString?: string | undefined);
handleToolCall(request: McpToolRequest): Promise<McpToolResponse>;
private handleSqlExec;
private handleSqlFile;
private handleSqlSchema;
private handleSqlBackup;
private handleSqlHealth;
private errorResponse;
close(): Promise<void>;
}
//# sourceMappingURL=tool-handler.d.ts.map