@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.
37 lines • 1.2 kB
TypeScript
/**
* Search for content in the collection
*/
import { GitHubClient } from './GitHubClient.js';
import { CollectionCache } from '../cache/CollectionCache.js';
export declare class CollectionSearch {
private githubClient;
private collectionCache;
private searchBaseUrl;
constructor(githubClient: GitHubClient, collectionCache?: CollectionCache);
/**
* Search collection for content matching query
* Falls back to cached data when GitHub API is not available or not authenticated
*/
searchCollection(query: string): Promise<any[]>;
/**
* Search cached collection items
*/
private searchFromCache;
/**
* Search seed data for matching items with fuzzy matching
*/
private searchSeedData;
/**
* Convert cache items to GitHub API format for consistent response structure
*/
private convertCacheItemsToGitHubFormat;
/**
* Update cache with fresh data from GitHub API items
*/
private updateCacheFromGitHubItems;
/**
* Format search results
*/
formatSearchResults(items: any[], query: string, personaIndicator?: string): string;
}
//# sourceMappingURL=CollectionSearch.d.ts.map