UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

60 lines 1.94 kB
/** * Memory Loading Tool * * MCP tool for loading, exploring, and managing memory entities in the * memory-centric architecture system. */ import { MemoryEntityManager } from '../utils/memory-entity-manager.js'; import { discoverAdrsInDirectory } from '../utils/adr-discovery.js'; interface MemoryLoadingParams { query?: { entityTypes?: string[]; tags?: string[]; textQuery?: string; relationshipTypes?: string[]; confidenceThreshold?: number; relevanceThreshold?: number; timeRange?: { from: string; to: string; }; contextFilters?: { projectPhase?: string; businessDomain?: string; technicalStack?: string[]; environmentalFactors?: string[]; }; limit?: number; sortBy?: 'relevance' | 'confidence' | 'lastModified' | 'created' | 'accessCount'; includeRelated?: boolean; relationshipDepth?: number; }; action?: 'load_adrs' | 'query_entities' | 'get_entity' | 'find_related' | 'get_intelligence' | 'create_snapshot'; entityId?: string; maxDepth?: number; forceReload?: boolean; } export declare class MemoryLoadingTool { private adrDiscoveryFn?; private memoryManager; private memoryTransformer; private logger; private config; constructor(memoryManager?: MemoryEntityManager, adrDiscoveryFn?: typeof discoverAdrsInDirectory | undefined); initialize(): Promise<void>; execute(params: MemoryLoadingParams): Promise<{ content: Array<{ type: 'text'; text: string; }>; isError?: boolean; }>; private loadAdrsIntoMemory; private queryMemoryEntities; private getMemoryEntity; private findRelatedEntities; private getMemoryIntelligence; private createMemorySnapshot; } export {}; //# sourceMappingURL=memory-loading-tool.d.ts.map