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