fusion-mcp-cli
Version:
CLI tool for Fusion MCP Hub - Manage custom and community MCP servers. Web App: https://fusion-mcp-hub.vercel.app (General) | https://fusion-mcp-prod.isc-code-connect.dal.app.cirrus.ibm.com (IBM)
57 lines • 1.8 kB
TypeScript
/**
* Get the default servers directory path
*/
export declare function getDefaultServersPath(): string;
/**
* Download file from URL
*/
export declare function downloadFile(url: string, outputPath: string): Promise<void>;
/**
* Extract zip file to directory
*/
export declare function extractZip(zipPath: string, outputDir: string): Promise<void>;
/**
* Create directory if it doesn't exist
*/
export declare function ensureDir(dirPath: string): Promise<void>;
/**
* Check if directory exists
*/
export declare function dirExists(dirPath: string): boolean;
/**
* Check if file exists
*/
export declare function fileExists(filePath: string): boolean;
/**
* Read JSON file
*/
export declare function readJsonFile(filePath: string): Promise<any>;
/**
* Write JSON file
*/
export declare function writeJsonFile(filePath: string, data: any): Promise<void>;
/**
* Get server metadata from local directory
*/
export declare function getLocalServerMetadata(serverDir: string): Promise<any | null>;
/**
* Save server metadata to local directory
*/
export declare function saveLocalServerMetadata(serverDir: string, metadata: any): Promise<void>;
/**
* Download and extract server package
*/
export declare function downloadAndExtractServer(serverId: string, serverName: string, downloadUrl: string, outputDir: string): Promise<string>;
/**
* Create a zip file from directory
*/
export declare function createZipFromDirectory(sourceDir: string, outputZipPath: string): Promise<void>;
/**
* Get list of files in directory
*/
export declare function getDirectoryFiles(dirPath: string, relativeTo?: string): Promise<string[]>;
/**
* Calculate file hash for comparison
*/
export declare function calculateFileHash(filePath: string): Promise<string>;
//# sourceMappingURL=file.d.ts.map