UNPKG

@sofianedjerbi/knowledge-tree-mcp

Version:

MCP server for hierarchical project knowledge management

26 lines 1.06 kB
/** * Scoring logic for category detection * Assigns scores based on where matches are found */ import { MatchScore } from './types.js'; /** * Scores a potential category match based on where it was found */ export declare function scoreMatch(category: string, source: MatchScore['source'], matchedKeyword?: string): MatchScore; /** * Finds matches in tags and scores them highly */ export declare function findTagMatches(tags: string[], technologies: Record<string, string>, categories: Record<string, string[]>): MatchScore[]; /** * Finds matches in title with position-based scoring */ export declare function findTitleMatches(title: string, technologies: Record<string, string>, categories: Record<string, string[]>): MatchScore[]; /** * Aggregates scores for categories that appear multiple times */ export declare function aggregateScores(matches: MatchScore[]): MatchScore[]; /** * Gets the best category match based on scores */ export declare function getBestMatch(matches: MatchScore[]): string | null; //# sourceMappingURL=scorer.d.ts.map