MCPcopy Create free account
hub / github.com/freecodexyz/free-code / onAllow

Function onAllow

src/hooks/useDirectConnect.ts:132–142  ·  view source on GitHub ↗
(updatedInput, _permissionUpdates, _feedback)

Source from the content-addressed store, hash-verified

130 )
131 },
132 onAllow(updatedInput, _permissionUpdates, _feedback) {
133 const response: RemotePermissionResponse = {
134 behavior: 'allow',
135 updatedInput,
136 }
137 manager.respondToPermissionRequest(requestId, response)
138 setToolUseConfirmQueue(queue =>
139 queue.filter(item => item.toolUseID !== request.tool_use_id),
140 )
141 setIsLoading(true)
142 },
143 onReject(feedback?: string) {
144 const response: RemotePermissionResponse = {
145 behavior: 'deny',

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected