mcp-casual-interview
Version:
MCP server for casual interview preparation workflow management
28 lines • 1 kB
TypeScript
import { Result } from 'neverthrow';
export interface FileSystemError {
type: 'FileNotFound' | 'PermissionDenied' | 'DirectoryCreationFailed' | 'FileReadError' | 'FileWriteError' | 'JsonParseError' | 'Unknown';
message: string;
path: string;
cause?: unknown;
}
/**
* Get the data directory for storing application files
*/
export declare const getDataDirectory: () => string;
/**
* Ensure directory exists, creating it if necessary
*/
export declare const ensureDirectory: (dirPath: string) => Promise<Result<void, FileSystemError>>;
/**
* Save data to JSON file
*/
export declare const saveJsonFile: <T>(filePath: string, data: T) => Promise<Result<void, FileSystemError>>;
/**
* Read JSON file and parse it
*/
export declare const readJsonFile: <T>(filePath: string) => Promise<Result<T, FileSystemError>>;
/**
* Check if file exists
*/
export declare const fileExists: (filePath: string) => Promise<Result<boolean, FileSystemError>>;
//# sourceMappingURL=filesystem.d.ts.map