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

Function resolve

src/services/mcp/channelPermissions.ts:228–238  ·  view source on GitHub ↗
(requestId, behavior, fromServer)

Source from the content-addressed store, hash-verified

226 },
227
228 resolve(requestId, behavior, fromServer) {
229 const key = requestId.toLowerCase()
230 const resolver = pending.get(key)
231 if (!resolver) return false
232 // Delete BEFORE calling — if resolver throws or re-enters, the
233 // entry is already gone. Also handles duplicate events (second
234 // emission falls through — server bug or network dup, ignore).
235 pending.delete(key)
236 resolver({ behavior, fromServer })
237 return true
238 },
239 }
240}
241

Callers 15

onAbortFunction · 0.70
cleanupFunction · 0.70
prefetchAllMcpResourcesFunction · 0.70
onAbortFunction · 0.70
findAvailablePortFunction · 0.70
resolveOnceFunction · 0.70
resolveOnceFunction · 0.70
onDataFunction · 0.70
macro.tsFile · 0.50
doneFunction · 0.50

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected