UNPKG

tryaii-mcp-server

Version:

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

110 lines 2.98 kB
#!/usr/bin/env node /** * TryAII MCP Server - NPM Package Bridge * * This connects Claude Desktop to the hosted TryAII server using standardized * API calls with clear naming conventions and proper error handling. */ /** * TryAII API Client - Standardized interface for all server interactions * * Naming Convention: {action}_{subject}_{qualifier?} * - get_*: Retrieve data * - execute_*: Perform actions * - check_*: Status checks */ declare class TryAIIApiClient { private baseUrl; private apiKey; constructor(baseUrl: string, apiKey?: string); /** * Make HTTP request with standardized headers and error handling */ private makeRequest; /** * Get available AI models with filtering capabilities * Route: GET /api/models */ get_available_models(filters?: { provider?: string; }): Promise<any>; /** * Execute chat conversation with a specific model * Route: POST /api/chat */ execute_chat_conversation(params: { modelId: string; message: string; conversationHistory?: Array<{ role: string; content: string; }>; enableWebSearch?: boolean; temperature?: number; maxTokens?: number; }): Promise<any>; /** * Execute brains query (multi-model intelligence) */ execute_brains_query(params: { question: string; enableWebSearch?: boolean; temperature?: number; maxTokens?: number; }): Promise<any>; /** * Execute model comparison analysis * Route: POST /api/compare */ execute_model_comparison(params: { modelIds: string[]; message: string; enableWebSearch?: boolean; temperature?: number; maxTokens?: number; }): Promise<any>; /** * Get detailed information about a specific model * Route: GET /api/models/{modelId} */ get_model_information(modelId: string): Promise<any>; /** * Check server health and status * Route: GET /health */ check_server_health(): Promise<any>; /** * Get MCP manifest and capabilities * Route: GET /mcp/manifest */ get_mcp_capabilities(): Promise<any>; /** * Get model registry data */ get_model_registry(): Promise<any>; /** * Get server status information */ get_server_status(): Promise<any>; } declare class TryAIIMCPBridge { private server; private apiClient; constructor(); private setupHandlers; /** * Handle tool calls with standardized routing */ private handleToolCall; /** * Handle resource reads with standardized routing */ private handleResourceRead; /** * Provide helpful fallback responses when server is unavailable */ private getFallbackResponse; start(): Promise<void>; } export { TryAIIApiClient, TryAIIMCPBridge }; //# sourceMappingURL=mcp-standalone.d.ts.map