@dollhousemcp/mcp-server
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.
21 lines • 719 B
TypeScript
export declare class YamlValidator {
private static readonly YAML_BOMB_LIMITS;
private static purifyWindow;
private static purify;
static parsePersonaMetadataSafely(yamlContent: string): any;
private static sanitizeMetadata;
/**
* Initialize DOMPurify instance if not already initialized
*/
private static initializePurify;
/**
* Sanitize string input using DOMPurify to prevent XSS attacks
* This replaces the regex-based approach with a more robust solution
*/
private static sanitizeString;
/**
* Reset static DOMPurify cache (useful for long-running processes)
*/
static resetCache(): void;
}
//# sourceMappingURL=yamlValidator.d.ts.map