UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

143 lines 3.73 kB
#!/usr/bin/env node /** * MCP ADR Analysis Server * Main entry point for the Model Context Protocol server * * This server provides Tools, Resources, and Prompts for analyzing * Architectural Decision Records and project architecture. */ /** * Main server class */ export declare class McpAdrAnalysisServer { private server; private maskingConfig; private config; private logger; private kgManager; constructor(); /** * Validate configuration and project setup */ private validateConfiguration; /** * Public health check method for testing */ healthCheck(): Promise<void>; /** * Setup MCP protocol handlers */ private setupHandlers; /** * Tool implementations */ private checkAIExecutionStatus; private getWorkflowGuidance; private getDevelopmentGuidance; private analyzeProjectEcosystem; private getArchitecturalContext; private generateAdrsFromPrd; private generateAdrTodo; private compareAdrProgress; /** * Perform local ADR progress analysis without relying on AI execution */ private performLocalAdrProgressAnalysis; /** * Parse TODO.md content to extract tasks */ private parseTodoTasks; /** * Map TODO tasks to ADRs to identify alignment */ private mapTasksToAdrs; /** * Check file existence for completed tasks */ private performFileExistenceChecks; /** * Analyze code for mock vs production implementation */ private performMockVsProductionAnalysis; /** * Content masking tool implementations */ private analyzeContentSecurity; private generateContentMasking; private configureCustomPatterns; private applyBasicContentMasking; private validateContentMasking; private manageCache; private configureOutputMasking; /** * Helper method to get domains based on PRD type */ private getPrdTypeDomains; /** * Helper method to get domains for ecosystem analysis based on technology focus */ private getEcosystemAnalysisDomains; /** * Helper method to create base ADR generation prompt */ private createBaseAdrPrompt; /** * ADR suggestion tool implementations */ private suggestAdrs; private generateAdrFromDecision; private discoverExistingAdrs; /** * Research integration tool implementations */ private incorporateResearch; private createResearchTemplate; private requestActionConfirmation; /** * Rule generation and validation tool implementations */ private generateRules; private validateRules; private createRuleSet; /** * Environment analysis tool implementation */ private analyzeEnvironment; /** * Research question generation tool implementation */ private generateResearchQuestions; /** * Deployment analysis tool implementation */ private analyzeDeploymentProgress; /** * Apply content masking to MCP response */ /** * Track tool execution in knowledge graph */ private trackToolExecution; private applyOutputMasking; /** * Read MCP resource with prompt-driven caching */ private readResource; /** * Start the server */ start(): Promise<void>; /** * File system tool implementations */ private readFile; private writeFile; private listDirectory; private manageTodoJson; private generateDeploymentGuidance; private smartGitPush; private deploymentReadiness; private troubleshootGuidedWorkflow; private smartScore; } //# sourceMappingURL=index.d.ts.map