UNPKG

mcp-ssh-tool

Version:

Model Context Protocol (MCP) SSH client server for remote automation

18 lines (17 loc) 915 B
import { PackageResult, ServiceResult, LinesInFileResult, PatchResult } from './types.js'; /** * Ensures a package is installed on the system */ export declare function ensurePackage(sessionId: string, packageName: string, sudoPassword?: string): Promise<PackageResult>; /** * Ensures a service is in the desired state */ export declare function ensureService(sessionId: string, serviceName: string, state: 'started' | 'stopped' | 'restarted' | 'enabled' | 'disabled', sudoPassword?: string): Promise<ServiceResult>; /** * Ensures specific lines exist in a file */ export declare function ensureLinesInFile(sessionId: string, filePath: string, lines: string[], createIfMissing?: boolean, sudoPassword?: string): Promise<LinesInFileResult>; /** * Applies a patch to a file */ export declare function applyPatch(sessionId: string, filePath: string, diff: string, sudoPassword?: string): Promise<PatchResult>;