/** * MCP Protocol Logger * * Two separate logs: * 1. Communication log (mcp-protocol.jsonl) - All MCP requests/responses including handshake * 2. Error log (mcp-errors.jsonl) - All errors that occur during MCP operations * * - Only active when NCP_DEBUG=true * - Rotation settings configurable via ~/.ncp/settings.json * - Auto-rotates by trimming top lines (default: 2000 lines = 1000 request/response pairs) */ export declare class MCPProtocolLogger { private protocolLogPath; private errorLogPath; private enabled; private writeQueue; private rotationEnabled; private maxLines; private settingsLoaded; constructor(); /** * Load rotation settings from global config */ private loadSettings; /** * Log MCP initialize handshake (request + response) */ logInitialize(clientInfo: any, serverInfo: any, protocolVersion: string): Promise; /** * Log an MCP request */ logRequest(method: string, params: any): Promise; /** * Log an MCP response */ logResponse(method: string, result: any, error?: any): Promise; /** * Log an error to the error log */ logError(error: any, context?: string): Promise; /** * Append a line to the specified log file with rotation */ private appendLine; /** * Clear the protocol log */ clear(): Promise; /** * Read recent protocol logs * @param count Number of request/response pairs to return (default: 100) */ readRecent(count?: number): Promise; } export declare const mcpProtocolLogger: MCPProtocolLogger; //# sourceMappingURL=mcp-protocol-logger.d.ts.map