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

Function handler

packages/mcp-client/src/connection.ts:125–133  ·  view source on GitHub ↗
(data: Buffer)

Source from the content-addressed store, hash-verified

123 let stderrOutput = ''
124
125 const handler = (data: Buffer) => {
126 if (stderrOutput.length < maxSize) {
127 try {
128 stderrOutput += data.toString()
129 } catch {
130 // Ignore errors from exceeding max string length
131 }
132 }
133 }
134
135 transport.stderr?.on('data', handler)
136

Callers 6

emitMethod · 0.70
useKeybindingFunction · 0.50
useKeybindingsFunction · 0.50
dispatchClickFunction · 0.50
dispatchMouseActionFunction · 0.50
processDispatchQueueFunction · 0.50

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected