MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / invokeEnvelope

Function invokeEnvelope

e2e/scenarios/tool-call-contract.test.ts:128–132  ·  view source on GitHub ↗
(session: McpSession, address: string, args: unknown = {})

Source from the content-addressed store, hash-verified

126
127/** Invoke a dynamic tool by full address and parse the envelope it returns. */
128const invokeEnvelope = (session: McpSession, address: string, args: unknown = {}) =>
129 Effect.map(
130 executeApproved(session, invokeByAddressCode(address, args)),
131 (result) => JSON.parse(result.text) as ToolEnvelope,
132 );
133
134// ---------------------------------------------------------------------------
135// 1 + 2: success and the not-found error identity.

Callers 1

Calls 2

executeApprovedFunction · 0.70
invokeByAddressCodeFunction · 0.70

Tested by

no test coverage detected