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

Method close

src/services/mcp/InProcessTransport.ts:37–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 async close(): Promise<void> {
38 if (this.closed) {
39 return
40 }
41 this.closed = true
42 this.onclose?.()
43 // Close the peer if it hasn't already closed
44 if (this.peer && !this.peer.closed) {
45 this.peer.closed = true
46 this.peer.onclose?.()
47 }
48 }
49}
50
51/**

Callers 8

client.tsFile · 0.45
cleanupFunction · 0.45
setupSdkMcpClientsFunction · 0.45
writeMcpjsonFileFunction · 0.45
findAvailablePortFunction · 0.45
cleanupFunction · 0.45
cleanupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected