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

Function addSpecCode

e2e/scenarios/connect-handoff-session.test.ts:33–39  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

31const EMULATOR_SPEC_URL = `${EMULATOR_BASE}/openapi.json`;
32
33const addSpecCode = (slug: string) => `
34const added = await tools.executor.openapi.addSpec({
35 spec: { kind: "url", url: ${JSON.stringify(EMULATOR_SPEC_URL)} },
36 slug: ${JSON.stringify(slug)},
37});
38return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error };
39`;
40
41const createHandoffCode = (slug: string) => `
42const handoff = await tools.executor.coreTools.connections.createHandoff({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected