@mickdarling/dollhousemcp
Version:
DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.
32 lines • 922 B
TypeScript
/**
* Filesystem and string manipulation utilities
*/
/**
* Generate an anonymous ID for users without identity
*/
export declare function generateAnonymousId(): string;
/**
* Generate a unique ID for personas
*/
export declare function generateUniqueId(personaName: string, author?: string): string;
/**
* Convert text to URL-safe slug
*/
export declare function slugify(text: string): string;
/**
* Ensure a directory exists, create if it doesn't
*/
export declare function ensureDirectory(dirPath: string): Promise<void>;
/**
* Check if a file exists
*/
export declare function fileExists(filePath: string): Promise<boolean>;
/**
* Get file size in bytes
*/
export declare function getFileSize(filePath: string): Promise<number>;
/**
* Create a backup of a directory
*/
export declare function createBackup(sourcePath: string, backupPath: string): Promise<void>;
//# sourceMappingURL=filesystem.d.ts.map