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

Function addSpecCode

e2e/scenarios/connect-handoff.test.ts:46–52  ·  view source on GitHub ↗
(slug: string, specUrl: string)

Source from the content-addressed store, hash-verified

44// add-account modal must render a paste-a-token flow derived from the spec's
45// bare `http`/`bearer` security scheme.
46const addSpecCode = (slug: string, specUrl: string) => `
47const added = await tools.executor.openapi.addSpec({
48 spec: { kind: "url", url: ${JSON.stringify(specUrl)} },
49 slug: ${JSON.stringify(slug)},
50});
51return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error };
52`;
53
54const createHandoffCode = (slug: string) => `
55const handoff = await tools.executor.coreTools.connections.createHandoff({

Callers 1

runScenarioFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected