export interface ServerConnection { url: string; port: number; pid?: number; lastConnected?: Date; status: 'connected' | 'connecting' | 'disconnected' | 'error'; error?: Error; } export interface ServerStatusEvent { name: string; status: 'running' | 'stopped' | 'error'; connection?: { url: string; port: number; pid?: number; }; error?: Error; } export interface Tool { name: string; description: string; version: string; parameters: Record; } export interface ToolCall { function_name: string; parameters: Record; } export interface ToolResult { success: boolean; data?: unknown; error?: Error; }