/** * Automation Tools for Gateway Type 3 * * Provides MCP tools for remote server management and script execution. * These tools interact with the Gateway Type 1 API to: * - Manage remote servers (add, list, test) * - Manage automation sessions * - Manage automation templates * - List SSH keys * - Execute scripts on remote servers * - View execution logs */ export interface AutomationToolResult { success: boolean; output?: string; error?: string; } export interface RemoteServer { id: string; name: string; description?: string; hostname: string; port: number; auth_type: 'password' | 'ssh_key' | 'ssh_key_passphrase'; username: string; status: string; tags: string[]; last_connection_test?: string; last_connection_status?: string; } export interface ServerCredentials { hostname: string; port: number; username: string; auth_type: string; password?: string; ssh_key?: string; passphrase?: string; } export interface RemoteScript { id: string; name: string; slug: string; description: string; category: string; parameters: ScriptParameter[]; timeout_seconds: number; tags: string[]; is_system: boolean; script_content: string; } export interface ScriptParameter { name: string; type: string; required: boolean; default?: any; description: string; sensitive?: boolean; } export interface ScriptExecutionLog { id: string; script_id: string; server_id: string; status: string; exit_code?: number; stdout?: string; stderr?: string; started_at: string; completed_at?: string; duration_ms?: number; } export declare class AutomationTools { private static instance; private client; private registryUrl; private apiKey; private sessionId; private serverMap; private scriptMap; constructor(registryUrl: string, apiKey: string); static getInstance(registryUrl?: string, apiKey?: string): AutomationTools; setSessionId(sessionId: string): void; getTools(): any[]; private resolveServerId; private resolveScriptSlug; executeTool(toolName: string, args: Record): Promise; private listServers; private addServer; private testServerConnection; private getServerInfo; private listScripts; private getScriptInfo; private executeScript; private getExecutionLogs; private listSessions; private createSession; private getSession; private deleteSession; private listTemplates; private createTemplate; private listSSHKeys; private buildEnvironmentExports; private createExecutionLog; private updateExecutionLog; private executeRemoteScript; } export default AutomationTools; //# sourceMappingURL=automation-tools.d.ts.map