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

Method emit

packages/mcp-client/src/manager.ts:207–215  ·  view source on GitHub ↗
(event: string, ...args: unknown[])

Source from the content-addressed store, hash-verified

205 // ── Private ──
206
207 private emit(event: string, ...args: unknown[]): void {
208 this.listeners.get(event)?.forEach(handler => {
209 try {
210 handler(...args)
211 } catch (err) {
212 this.deps.logger.error(`Error in ${event} handler:`, err)
213 }
214 })
215 }
216
217 private async refreshTools(
218 name: string,

Callers 15

connectMethod · 0.95
disconnectMethod · 0.95
refreshToolsMethod · 0.95
runWorkflowFunction · 0.45
emitTerminalPhaseDoneFunction · 0.45
emitFunction · 0.45
events.test.tsFile · 0.45
context.test.tsFile · 0.45
handleChangeFunction · 0.45
handleDeleteFunction · 0.45
notifyMethod · 0.45
setClassifierCheckingFunction · 0.45

Calls 3

handlerFunction · 0.70
getMethod · 0.65
errorMethod · 0.65

Tested by 5

createTestSocketFunction · 0.36
destroyMethod · 0.36
endMethod · 0.36
emitDataMethod · 0.36
fakePortsFunction · 0.36