/** * Security Handler * * Handles security scanning and vulnerability detection operations */ import type { MCPToolResult } from "../../types/mcp-types.js"; import type { SecuritySeverity, SecurityCategory } from "../../types/security.js"; /** * MCP handler for security scanning and vulnerability detection tools. * * Provides tools to scan code for security issues, check dependencies * for vulnerabilities, and detect hardcoded secrets or credentials. */ export declare class SecurityHandler { private projectRoot; private securityService; /** * @param projectRoot - Root directory of the project to analyze */ constructor(projectRoot: string); /** * Scan files for security issues */ handleSecurityScan(args: { files?: string[]; categories?: SecurityCategory[]; minSeverity?: SecuritySeverity; maxIssues?: number; }): Promise; /** * Check dependencies for vulnerabilities */ handleCheckDependencies(args: { includeDev?: boolean; minSeverity?: SecuritySeverity; includeOutdated?: boolean; }): Promise; /** * Detect secrets in files */ handleDetectSecrets(args: { files?: string[]; entropyThreshold?: number; minConfidence?: "high" | "medium" | "low"; }): Promise; /** * Get severity emoji */ private getSeverityEmoji; /** * Get risk emoji */ private getRiskEmoji; /** * Get confidence emoji */ private getConfidenceEmoji; /** * Format category name */ private formatCategory; /** * Format secret type */ private formatSecretType; /** * Convert severity to number */ private severityToNumber; } //# sourceMappingURL=security-handler.d.ts.map