UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

54 lines 1.67 kB
/** * ADR Knowledge Initializer * * Initializes the knowledge base with existing ADRs from the project * on first run of analyze_project_ecosystem. This ensures that future * ADR suggestions and analysis build on established architectural decisions. */ import { KnowledgeGraphManager } from './knowledge-graph-manager.js'; /** * ADR node structure for knowledge graph */ export interface AdrKnowledgeNode { id: string; type: 'adr'; title: string; status: string; date?: string; context: string; decision: string; consequences: string; filePath: string; metadata: { number?: string; category?: string; tags?: string[]; }; relationships: { relatedAdrs: string[]; supersedes?: string[]; supersededBy?: string[]; }; } /** * Initialize knowledge base with existing ADRs * * @param kgManager - Knowledge graph manager instance * @param adrDirectory - Directory containing ADRs * @param projectPath - Root project path * @returns Promise resolving to initialization result */ export declare function initializeAdrKnowledgeBase(kgManager: KnowledgeGraphManager, adrDirectory: string, projectPath: string): Promise<{ success: boolean; adrsIndexed: number; nodes: AdrKnowledgeNode[]; errors: string[]; }>; /** * Check if ADR knowledge base has been initialized * * @param kgManager - Knowledge graph manager instance * @returns Promise resolving to whether ADRs have been indexed */ export declare function isAdrKnowledgeBaseInitialized(kgManager: KnowledgeGraphManager): Promise<boolean>; //# sourceMappingURL=adr-knowledge-initializer.d.ts.map