sfcc-dev-mcp
Version:
MCP server for Salesforce B2C Commerce Cloud development assistance including logs, debugging, and development tools
87 lines • 2.81 kB
TypeScript
/**
* Main log client - lightweight orchestrator that composes specialized modules
*/
import { Logger } from '../../utils/logger.js';
import type { LogLevel, LogSearchOptions, WebDAVClientConfig } from './log-types.js';
interface SFCCConfig {
hostname?: string;
username?: string;
password?: string;
clientId?: string;
clientSecret?: string;
}
export declare class SFCCLogClient {
private logger;
private webdavManager;
private fileReader;
private fileDiscovery;
private processor;
private analyzer;
constructor(config: SFCCConfig | WebDAVClientConfig, logger?: Logger);
/**
* Get the latest log entries for a specific log level
*/
getLatestLogs(level: LogLevel, limit: number, date?: string): Promise<string>;
/**
* Get list of log files for a specific date (backward compatibility)
*/
getLogFiles(date?: string): Promise<Array<{
filename: string;
lastmod: string;
}>>;
/**
* Generate a comprehensive summary of logs for a specific date
*/
summarizeLogs(date?: string): Promise<string>;
/**
* Search for specific patterns across log files
*/
searchLogs(options: LogSearchOptions): Promise<string>;
searchLogs(pattern: string, logLevel?: LogLevel, limit?: number, date?: string): Promise<string>;
/**
* List available log files with metadata
*/
listLogFiles(): Promise<string>;
/**
* Get the complete contents of a specific log file
*/
getLogFileContents(filename: string, maxBytes?: number, tailOnly?: boolean): Promise<string>;
/**
* Format log file contents for display
*/
private formatLogFileContents;
/**
* Get advanced log analysis with patterns and recommendations
*/
getAdvancedAnalysis(date?: string): Promise<string>;
/**
* Test WebDAV connection
*/
testConnection(): Promise<boolean>;
/**
* Get log statistics for a date range
*/
getLogStats(date?: string): Promise<string>;
/**
* Get latest job log files
*/
getLatestJobLogFiles(limit?: number): Promise<string>;
/**
* Search job logs by job name
*/
searchJobLogsByName(jobName: string, limit?: number): Promise<string>;
/**
* Get job log entries for a specific log level or all levels
*/
getJobLogEntries(level?: LogLevel | 'all', limit?: number, jobName?: string): Promise<string>;
/**
* Search for patterns in job logs
*/
searchJobLogs(pattern: string, level?: LogLevel | 'all', limit?: number, jobName?: string): Promise<string>;
/**
* Get job execution summary for a specific job
*/
getJobExecutionSummary(jobName: string): Promise<string>;
}
export {};
//# sourceMappingURL=log-client.d.ts.map