UNPKG

@simonecoelhosfo/optimizely-mcp-server

Version:

Optimizely MCP Server for AI assistants with integrated CLI tools

29 lines 1.01 kB
/** * MCP Debug Logger for STDIO communication * * IMPORTANT: In MCP servers, stdout is reserved for JSON-RPC communication. * All debug output must go to stderr or log files to avoid breaking the protocol. */ export declare class MCPDebugLogger { private static logFile; private static isInitialized; static initialize(logPath?: string, projectRoot?: string): void; private static writeLog; /** * Log incoming MCP requests */ static logRequest(method: string, params: any, id?: string | number): void; /** * Log outgoing MCP responses */ static logResponse(result: any, id?: string | number, error?: any): void; /** * Log raw STDIO communication */ static logRawMessage(direction: 'IN' | 'OUT', message: string): void; /** * Create a wrapped handler that logs all interactions */ static wrapHandler<T extends (...args: any[]) => any>(handlerName: string, handler: T): T; } //# sourceMappingURL=MCPDebugLogger.d.ts.map