UNPKG

tryaii-mcp-server

Version:

TryAII MCP Server - 15+ AI models with comparison, cost tracking, and collective intelligence

54 lines 1.45 kB
export interface ApiKeyConfig { openai?: string; anthropic?: string; google?: string; deepseek?: string; xai?: string; mistral?: string; brave?: string; } export interface ApiKeyResult { keys: ApiKeyConfig; useUserBalance: boolean; fallbackUsed: string[]; summary: string; } export declare class ApiKeyService { constructor(); /** * 🔑 Smart API Key Resolution * Priority: User keys (free) > TryAII keys (paid) * Returns configuration for MCP process and billing info */ resolveApiKeys(userProvidedKeys?: ApiKeyConfig): ApiKeyResult; /** * Generates human-readable summary of key resolution */ private generateKeySummary; /** * Validates API key format for specific provider */ private isValidApiKey; /** * Gets environment variables for MCP process */ getEnvironmentForMCP(apiKeys: ApiKeyConfig): Record<string, string>; /** * Gets configuration summary for debugging */ getConfigurationStatus(): { userKeys: string[]; tryaiiKeys: string[]; totalAvailable: number; coverage: string; }; /** * Gets count of available providers */ getAvailableProvidersCount(apiKeys: ApiKeyConfig): number; /** * Gets list of available providers */ getAvailableProviders(apiKeys: ApiKeyConfig): string[]; } //# sourceMappingURL=ApiKeyService.d.ts.map