MCPcopy
hub / github.com/codeaashu/claude-code / logMCPDebug

Function logMCPDebug

src/utils/log.ts:314–326  ·  view source on GitHub ↗
(serverName: string, message: string)

Source from the content-addressed store, hash-verified

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

Callers 15

callFunction · 0.85
MCPRemoteServerMenuFunction · 0.85
handleChannelEnableFunction · 0.85
handleRemoteAuthFailureFunction · 0.85
client.tsFile · 0.85
cleanupFunction · 0.85
callFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected