MCPcopy
hub / github.com/claude-code-best/claude-code / logMCPError

Function logMCPError

src/utils/log.ts:299–311  ·  view source on GitHub ↗
(serverName: string, error: unknown)

Source from the content-addressed store, hash-verified

297}
298
299export function logMCPError(serverName: string, error: unknown): void {
300 try {
301 // If sink not attached, queue the event
302 if (errorLogSink === null) {
303 errorQueue.push({ type: 'mcpError', serverName, error })
304 return
305 }
306
307 errorLogSink.logMCPError(serverName, error)
308 } catch {
309 // Silently fail
310 }
311}
312
313export function logMCPDebug(serverName: string, message: string): void {
314 try {

Callers 15

callFunction · 0.85
callFunction · 0.85
runElicitationHooksFunction · 0.85
client.tsFile · 0.85
getPromptForCommandFunction · 0.85
reconnectMcpServerImplFunction · 0.85
processServerFunction · 0.85
prefetchAllMcpResourcesFunction · 0.85
transformMCPResultFunction · 0.85
callMCPToolFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected