loganalyzer-mcp
Version:
🚀 Debug server logs in under 30 seconds - AI-powered MCP server with rapid debugging, real-time monitoring, and actionable fixes
30 lines (29 loc) • 806 B
TypeScript
export declare class LogUtils {
/**
* Detect the format of log content
*/
static detectLogFormat(content: string): 'json' | 'plain';
/**
* Extract error patterns from log content
*/
static extractErrorPatterns(content: string): string[];
/**
* Truncate content to fit within context limits
*/
static truncateContent(content: string, maxTokens?: number): string;
/**
* Parse JSON logs safely
*/
static parseJsonLogs(content: string): any[];
/**
* Extract stack traces from content
*/
static extractStackTraces(content: string): string[];
/**
* Validate file path and check permissions
*/
static validateFilePath(filePath: string): Promise<{
valid: boolean;
error?: string;
}>;
}