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!
34 lines • 932 B
TypeScript
/**
* MCP Tool Definition for SQL Agent
* This defines the tool interface that MCP servers will use
*/
export interface McpPropertySchema {
type: 'string' | 'boolean' | 'number' | 'array' | 'object';
description?: string;
default?: unknown;
items?: {
type: string;
};
}
export interface McpToolDefinition {
name: string;
description: string;
inputSchema: {
type: 'object';
properties: Record<string, McpPropertySchema>;
required?: string[];
};
}
export declare const SQL_AGENT_TOOLS: McpToolDefinition[];
/**
* Get tool definition by name
*/
export declare function getToolDefinition(name: string): McpToolDefinition | undefined;
/**
* Validate tool input against schema
*/
export declare function validateToolInput(toolName: string, input: Record<string, unknown>): {
valid: boolean;
error?: string;
};
//# sourceMappingURL=tool-definition.d.ts.map