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

Function addSpecCode

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

Source from the content-addressed store, hash-verified

28// does, and the platform derives the paste-a-token auth method from the
29// spec's security scheme.
30const addSpecCode = (slug: string, specUrl: string) => `
31const added = await tools.executor.openapi.addSpec({
32 spec: { kind: "url", url: ${JSON.stringify(specUrl)} },
33 slug: ${JSON.stringify(slug)},
34});
35return added.ok ? { ok: true, slug: added.data.slug, toolCount: added.data.toolCount } : { ok: false, error: added.error };
36`;
37
38const createHandoffCode = (slug: string) => `
39const handoff = await tools.executor.coreTools.connections.createHandoff({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected