(serverName: string, message: string)
| 313 | } |
| 314 | |
| 315 | export function logMCPDebug(serverName: string, message: string): void { |
| 316 | try { |
| 317 | // If sink not attached, queue the event |
| 318 | if (errorLogSink === null) { |
| 319 | errorQueue.push({ type: 'mcpDebug', serverName, message }) |
| 320 | return |
| 321 | } |
| 322 | |
| 323 | errorLogSink.logMCPDebug(serverName, message) |
| 324 | } catch { |
| 325 | // Silently fail |
| 326 | } |
| 327 | } |
| 328 | |
| 329 | /** |
| 330 | * Captures the last API request for inclusion in bug reports. |
no outgoing calls
no test coverage detected