UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

53 lines 1.55 kB
/** * MCP Tools for rule generation and validation * Implements prompt-driven architectural rule management * Enhanced with Generated Knowledge Prompting (GKP) for architectural governance expertise */ /** * Generate architectural rules from ADRs and code patterns * Enhanced with Generated Knowledge Prompting for architectural governance expertise */ export declare function generateRules(args: { source?: 'adrs' | 'patterns' | 'both'; adrDirectory?: string; projectPath?: string; existingRules?: Array<{ id: string; name: string; description: string; }>; outputFormat?: 'json' | 'yaml' | 'both'; knowledgeEnhancement?: boolean; enhancedMode?: boolean; }): Promise<any>; /** * Validate code against architectural rules */ export declare function validateRules(args: { filePath?: string; fileContent?: string; fileName?: string; rules: Array<{ id: string; name: string; description: string; pattern: string; severity: string; message: string; }>; validationType?: 'file' | 'function' | 'component' | 'module'; reportFormat?: 'summary' | 'detailed' | 'json'; }): Promise<any>; /** * Create machine-readable rule set */ export declare function createRuleSet(args: { name: string; description?: string; adrRules?: any[]; patternRules?: any[]; rules?: any[]; outputFormat?: 'json' | 'yaml' | 'both'; author?: string; }): Promise<any>; //# sourceMappingURL=rule-generation-tool.d.ts.map