endfield-mcp
Version:
MCP Server for Arknights: Endfield (TypeScript / stdio + Streamable HTTP)
26 lines (25 loc) • 889 B
TypeScript
/**
* Story full-text search.
*
* Uses the pre-built `search.json` index (concatenated text per scene) to
* answer regex queries across all 9271 dialogue scenes without loading
* each conv file. Returns matching entries with the conv key and a
* snippet around the match.
*
* Depends on `./storyCore.js` for the store accessor and catalog entries.
*/
import type { StoryEntry } from "./storyTypes.js";
/** Reset the search caches. Called by the barrel orchestrator. */
export declare function clearSearchCache(): void;
/**
* Full-text search across all dialogue scenes.
*
* Uses the pre-built search.json index (concatenated text per scene).
* Returns matching entries with the conv key and a snippet around the
* match.
*/
export declare function searchStories(pattern: string, maxResults?: number): Array<{
key: string;
snippet: string;
entry: StoryEntry;
}>;