@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.
29 lines • 1.1 kB
TypeScript
/**
* Security-specific error class for DollhouseMCP
*
* Used to indicate security violations, validation failures,
* and other security-related issues.
*/
export declare class SecurityError extends Error {
readonly code: string;
readonly severity: 'low' | 'medium' | 'high' | 'critical';
readonly details?: Record<string, any>;
constructor(message: string, code?: string, severity?: 'low' | 'medium' | 'high' | 'critical', details?: Record<string, any>);
/**
* Creates a SecurityError for content validation failures
*/
static contentValidation(message: string, patterns?: string[]): SecurityError;
/**
* Creates a SecurityError for YAML injection attempts
*/
static yamlInjection(message: string): SecurityError;
/**
* Creates a SecurityError for path traversal attempts
*/
static pathTraversal(message: string, path?: string): SecurityError;
/**
* Creates a SecurityError for token validation failures
*/
static tokenValidation(message: string): SecurityError;
}
//# sourceMappingURL=SecurityError.d.ts.map