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!
47 lines • 1.28 kB
TypeScript
/**
* MCP Tool Server for SQL Agent
* This module handles tool discovery and registration for MCP protocol
*/
import { RateLimiterOptions } from '../utils/rate-limiter';
export interface McpServerInfo {
name: string;
version: string;
description: string;
}
export interface McpToolsListResponse {
tools: Array<{
name: string;
description: string;
inputSchema: Record<string, unknown>;
}>;
}
export declare class SqlAgentMcpServer {
private handler;
private rateLimiter?;
private cleanupInterval?;
constructor(rateLimiterOptions?: RateLimiterOptions);
/**
* Get server information
*/
getServerInfo(): McpServerInfo;
/**
* List available tools (for MCP discovery)
*/
listTools(): McpToolsListResponse;
/**
* Handle incoming MCP requests
*/
handleRequest(request: unknown): Promise<unknown>;
/**
* Start the MCP server (stdio mode)
*/
start(): Promise<void>;
/**
* Close the server and cleanup
*/
close(): Promise<void>;
}
export { SQL_AGENT_TOOLS } from './tool-definition';
export { McpToolHandler } from './tool-handler';
export type { McpToolRequest, McpToolResponse } from './tool-handler';
//# sourceMappingURL=index.d.ts.map