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

Function execute

e2e/scenarios/custom-tools.test.ts:204–208  ·  view source on GitHub ↗
(target: TargetShape, identity: Identity, code: string)

Source from the content-addressed store, hash-verified

202 request(target, identity, path, { method: "DELETE" });
203
204const execute = (target: TargetShape, identity: Identity, code: string): Promise<ExecuteResponse> =>
205 postJson<ExecuteResponse>(target, identity, "/api/executions", {
206 code,
207 autoApprove: true,
208 }).then((response) => response.body);
209
210const addSourceThroughConsole = (input: {
211 readonly target: TargetShape;

Callers 1

Calls 1

postJsonFunction · 0.70

Tested by

no test coverage detected