import type { McpServerInfo, NormalizedMcpServerInfo } from "@tambo-ai/client"; /** * Derives a short, meaningful key from a server URL. * Strips TLDs and common prefixes to get a human-readable identifier. * For example, "https://mcp.linear.app/mcp" becomes "linear". * @returns A lowercased, human-readable key derived from the URL */ export declare function deriveServerKey(url: string): string; /** * Normalizes an MCP server info object, ensuring it has a serverKey. * If serverKey is not provided, derives it from the URL. * @returns The normalized MCP server info object */ export declare function normalizeServerInfo(server: McpServerInfo | string): NormalizedMcpServerInfo; /** * Deduplicates MCP servers by connection identity and ensures serverKey uniqueness. * First deduplicates by connection (url + transport), then ensures serverKey uniqueness * by appending -2, -3, etc. to duplicate serverKeys. * @param servers - Array of normalized MCP server info objects * @returns Array of deduplicated servers with unique serverKeys */ export declare function deduplicateMcpServers(servers: NormalizedMcpServerInfo[]): NormalizedMcpServerInfo[]; //# sourceMappingURL=mcp-server-utils.d.ts.map