MCPcopy Create free account
hub / github.com/EsperoTech/yaade / runScript

Function runScript

client/src/api/index.tsx:211–216  ·  view source on GitHub ↗
(script: Script, envName?: string)

Source from the content-addressed store, hash-verified

209 });
210
211const runScript = (script: Script, envName?: string): Promise<Response> =>
212 fetch(BASE_PATH + `api/run-script`, {
213 method: 'POST',
214 headers: DEFAULT_HEADERS,
215 body: JSON.stringify({ script, envName }),
216 });
217
218const takeScriptOwnership = (id: number): Promise<Response> =>
219 fetch(BASE_PATH + `api/scripts/${id}/take-ownership`, {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected