UNPKG

@dollhousemcp/mcp-server

Version:

DollhouseMCP - A Model Context Protocol (MCP) server that enables dynamic AI persona management from markdown files, allowing Claude and other compatible AI assistants to activate and switch between different behavioral personas.

47 lines 1.2 kB
/** * Code Scanner - Static code analysis for security vulnerabilities * Detects common security issues in source code */ import type { SecurityScanner, SecurityFinding, ScanContext } from '../types.js'; interface CodeScannerConfig { enabled: boolean; rules: string[]; exclude?: string[]; } export declare class CodeScanner implements SecurityScanner { name: string; private config; private rules; constructor(config: CodeScannerConfig); /** * Load security rules based on configuration */ private loadRules; /** * Scan files for security vulnerabilities */ scan(context: ScanContext): Promise<SecurityFinding[]>; /** * Get list of files to scan */ private getFilesToScan; /** * Scan a single file for vulnerabilities */ private scanFile; /** * Find pattern matches in content */ private findPatternMatches; /** * Convert string index to line and column */ private getLineAndColumn; /** * Calculate confidence level for a finding */ private calculateConfidence; isEnabled(): boolean; } export {}; //# sourceMappingURL=CodeScanner.d.ts.map