MCPcopy Index your code
hub / github.com/codeaashu/claude-code / logMCPError

Function logMCPError

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

Source from the content-addressed store, hash-verified

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