UNPKG

@wonderwhy-er/desktop-commander

Version:

MCP server for terminal operations and file editing

39 lines (38 loc) 1.23 kB
import { ServerResult } from '../types.js'; /** * Resolve a file path to an absolute path for use in structured content. * This ensures "Open in folder" always has a valid absolute path. */ export declare function resolveAbsolutePath(filePath: string): string; /** * Handle read_file command */ export declare function handleReadFile(args: unknown): Promise<ServerResult>; /** * Handle read_multiple_files command */ export declare function handleReadMultipleFiles(args: unknown): Promise<ServerResult>; /** * Handle write_file command */ export declare function handleWriteFile(args: unknown): Promise<ServerResult>; /** * Handle create_directory command */ export declare function handleCreateDirectory(args: unknown): Promise<ServerResult>; /** * Handle list_directory command */ export declare function handleListDirectory(args: unknown): Promise<ServerResult>; /** * Handle move_file command */ export declare function handleMoveFile(args: unknown): Promise<ServerResult>; /** * Handle get_file_info command */ export declare function handleGetFileInfo(args: unknown): Promise<ServerResult>; /** * Handle write_pdf command */ export declare function handleWritePdf(args: unknown): Promise<ServerResult>;