sfcc-dev-mcp
Version:
MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools
50 lines • 1.49 kB
TypeScript
/**
* Documentation Scanner
*
* Responsible for scanning the documentation directory structure and
* discovering SFCC class documentation files with security validation.
*
* Single Responsibility: File system operations and documentation discovery
*/
export interface SFCCClassInfo {
className: string;
packageName: string;
filePath: string;
content: string;
}
export declare class DocumentationScanner {
private logger;
constructor();
/**
* Check if a directory name represents an SFCC-specific directory
* SFCC directories include dw_ prefixed namespaces and TopLevel
* Excludes best-practices and sfra directories
*/
private isSFCCDirectory;
/**
* Validate file name for security concerns
*/
private validateFileName;
/**
* Validate file path for security concerns
*/
private validateFilePath;
/**
* Validate file content for security concerns
*/
private validateFileContent;
/**
* Read and validate a single documentation file
*/
private readDocumentationFile;
/**
* Scan a single package directory for documentation files
*/
private scanPackageDirectory;
/**
* Scan the docs directory and index all SFCC classes
* Only scans SFCC-specific directories, excluding best-practices and sfra
*/
scanDocumentation(docsPath: string): Promise<Map<string, SFCCClassInfo>>;
}
//# sourceMappingURL=documentation-scanner.d.ts.map