@wonderwhy-er/desktop-commander
Version:
MCP server for terminal operations and file editing
29 lines (28 loc) • 885 B
TypeScript
export interface MCPDeviceOptions {
persistSession?: boolean;
}
export declare class MCPDevice {
private baseServerUrl;
private remoteChannel;
private deviceId?;
private isShuttingDown;
private configPath;
private persistSession;
private desktop;
/** Call ids already handled by THIS process (insertion-ordered, bounded). */
private seenCallIds;
constructor(options?: MCPDeviceOptions);
private setupShutdownHandlers;
start(): Promise<void>;
loadPersistedConfig(): Promise<any>;
savePersistedConfig(): Promise<void>;
fetchSupabaseConfig(): Promise<{
supabaseUrl: any;
anonKey: any;
}>;
/** Record a handled call id, evicting the oldest once the cap is reached. */
private rememberCallId;
handleNewToolCall(payload: any): Promise<void>;
shutdown(): Promise<void>;
}