UNPKG

reactbits-mcp-server

Version:

MCP Server for React Bits - Access 99+ React components with animations, backgrounds, and UI elements

20 lines (19 loc) 696 B
/** * Validate and sanitize input parameters for MCP requests * @param method - The method name being called * @param params - The parameters to validate * @returns Validated and sanitized parameters */ export declare function validateAndSanitizeParams(method: string, params: any): any; /** * Validate component name format * @param componentName - Component name to validate * @returns True if valid, false otherwise */ export declare function isValidComponentName(componentName: string): boolean; /** * Validate category name * @param category - Category to validate * @returns True if valid, false otherwise */ export declare function isValidCategory(category: string): boolean;