ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
48 lines • 1.44 kB
TypeScript
/**
* Memory-Efficient Logger for AI-Debug MCP Server
* Prevents memory crashes during large-scale tool registration
*/
export declare class MemoryEfficientLogger {
private static logBuffer;
private static readonly MAX_BUFFER_SIZE;
private static duplicateToolCount;
private static registrationSummary;
/**
* Log tool registration with memory efficiency
* Batches duplicate messages and provides summaries
*/
static logToolRegistration(toolName: string, isDuplicate?: boolean): void;
/**
* Log handler registration with summary instead of verbose output
*/
static logHandlerRegistration(handlerName: string, toolCount: number): void;
/**
* Output registration summary instead of individual messages
*/
static outputRegistrationSummary(): void;
/**
* Add message to buffer with automatic flushing
*/
private static addToBuffer;
/**
* Flush buffer to console
*/
private static flushBuffer;
/**
* Memory monitoring utilities
*/
static logMemoryUsage(context: string): void;
/**
* Check if memory usage is approaching danger zone
*/
static isMemoryPressure(): boolean;
/**
* Force garbage collection if available
*/
static forceGC(): void;
/**
* Reset all counters and buffers
*/
static reset(): void;
}
//# sourceMappingURL=memory-efficient-logger.d.ts.map