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

Method setOnControlRequestSent

src/cli/structuredIO.ts:317–321  ·  view source on GitHub ↗

* Register a callback invoked whenever a can_use_tool control_request * is written to stdout. Used by the bridge to forward permission * requests to the remote client.

(
    callback: ((request: SDKControlRequest) => void) | undefined,
  )

Source from the content-addressed store, hash-verified

315 * requests to the remote client.
316 */
317 setOnControlRequestSent(
318 callback: ((request: SDKControlRequest) => void) | undefined,
319 ): void {
320 this.onControlRequestSent = callback
321 }
322
323 /**
324 * Register a callback invoked when a can_use_tool control_response arrives

Callers 1

runHeadlessStreamingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected