* Implementation for logMCPDebug - writes MCP debug message to log file.
(serverName: string, message: string)
| 198 | * Implementation for logMCPDebug - writes MCP debug message to log file. |
| 199 | */ |
| 200 | function logMCPDebugImpl(serverName: string, message: string): void { |
| 201 | logForDebugging(`MCP server "${serverName}": ${message}`) |
| 202 | |
| 203 | const logFile = getMCPLogsPath(serverName) |
| 204 | |
| 205 | const debugInfo = { |
| 206 | debug: message, |
| 207 | timestamp: new Date().toISOString(), |
| 208 | sessionId: getSessionId(), |
| 209 | cwd: getFsImplementation().cwd(), |
| 210 | } |
| 211 | |
| 212 | getLogWriter(logFile).write(debugInfo) |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Initialize the error log sink. |
nothing calls this directly
no test coverage detected