MCPcopy Create free account
hub / github.com/Noumena-Network/code / logMCPError

Function logMCPError

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

Source from the content-addressed store, hash-verified

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

Callers 15

runElicitationHooksFunction · 0.50
client.tsFile · 0.50
getPromptForCommandFunction · 0.50
reconnectMcpServerImplFunction · 0.50
processServerFunction · 0.50
prefetchAllMcpResourcesFunction · 0.50
transformMCPResultFunction · 0.50
callMCPToolFunction · 0.50
setupSdkMcpClientsFunction · 0.50
getMcpHeadersFromHelperFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected