import type { LTMcpServerRecord, LTMcpServerStatus, LTMcpToolManifest } from '../../types'; import type { CreateMcpServerInput } from './types'; export declare function createMcpServer(input: CreateMcpServerInput): Promise; export declare function getMcpServer(id: string): Promise; export declare function getMcpServerByName(name: string): Promise; export declare function updateMcpServer(id: string, updates: Partial>): Promise; export declare function deleteMcpServer(id: string): Promise; export declare function updateMcpServerStatus(id: string, status: LTMcpServerStatus, toolManifest?: LTMcpToolManifest[]): Promise; export declare function listMcpServers(filters: { status?: LTMcpServerStatus; auto_connect?: boolean; search?: string; tags?: string[]; limit?: number; offset?: number; }): Promise<{ servers: LTMcpServerRecord[]; total: number; }>; export declare function getAutoConnectServers(): Promise; /** * Find MCP servers by tags. * @param tags - Tags to filter by * @param match - 'any' (OR — server has at least one tag) or 'all' (AND — server has all tags) */ export declare function findServersByTags(tags: string[], match?: 'any' | 'all'): Promise; /** * Seed an MCP server at startup (insert-if-absent). * DB is the source of truth — if the row already exists, log drift warnings * but do not overwrite. Returns true if inserted, false if already existed. */ export declare function seedMcpServer(input: { name: string; description?: string; tags?: string[]; category?: string; compileHints?: string; credentialProviders?: string[]; toolManifest?: any[]; }): Promise; /** * Remove builtin MCP servers that are no longer declared in factory config. */ export declare function cleanStaleBuiltinServers(activeNames: string[]): Promise;