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

Method setOnControlRequestResolved

src/cli/structuredIO.ts:328–332  ·  view source on GitHub ↗

* Register a callback invoked when a can_use_tool control_response arrives * from the SDK consumer (via stdin). Used by the bridge to cancel the * stale permission prompt on the remote client when the SDK consumer wins the race.

(
    callback: ((requestId: string) => void) | undefined,
  )

Source from the content-addressed store, hash-verified

326 * stale permission prompt on the remote client when the SDK consumer wins the race.
327 */
328 setOnControlRequestResolved(
329 callback: ((requestId: string) => void) | undefined,
330 ): void {
331 this.onControlRequestResolved = callback
332 }
333
334 private async processLine(
335 line: string,

Callers 1

runHeadlessStreamingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected