UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

50 lines 1.59 kB
/** * Gitleaks integration for sensitive content detection * * Replaces custom secret detection with industry-standard gitleaks tool * while maintaining compatible interface with existing code */ export interface SensitiveMatch { pattern: { name: string; description: string; category: 'credentials' | 'secrets' | 'personal' | 'infrastructure' | 'development'; severity: 'critical' | 'high' | 'medium' | 'low'; }; match: string; line: number; column: number; context: string; confidence: number; suggestions: string[]; } export interface SensitiveContentResult { filePath: string; hasIssues: boolean; matches: SensitiveMatch[]; summary: { criticalCount: number; highCount: number; mediumCount: number; lowCount: number; totalCount: number; }; recommendations: string[]; } /** * Analyze content for sensitive information using gitleaks */ export declare function analyzeSensitiveContent(filePath: string, content: string): Promise<SensitiveContentResult>; /** * Quick check for obviously sensitive files (compatible with existing code) */ export declare function isObviouslySensitive(filePath: string): boolean; /** * Integration with existing content masking tool (compatible interface) */ export declare function integrateWithContentMasking(filePath: string, content: string): Promise<{ sensitiveAnalysis: SensitiveContentResult; maskingPrompt?: string; combinedRecommendations: string[]; }>; //# sourceMappingURL=gitleaks-detector.d.ts.map