UNPKG

@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.

23 lines 834 B
/** * Shared utilities for search functionality */ /** * Normalize search terms for better matching * Handles spaces, dashes, underscores, and file extensions * * @param term - The search term to normalize * @param maxLength - Maximum allowed length for the search term (default: 1000) * @returns Normalized search term * @throws Error if term exceeds maxLength */ export declare function normalizeSearchTerm(term: string, maxLength?: number): string; /** * Validate search query length and content * * @param query - The search query to validate * @param maxLength - Maximum allowed length (default: 1000) * @returns true if valid * @throws Error with descriptive message if invalid */ export declare function validateSearchQuery(query: string, maxLength?: number): boolean; //# sourceMappingURL=searchUtils.d.ts.map