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

Function updateSpecCode

e2e/scenarios/openapi-update-spec.test.ts:102–113  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

100 );
101
102const updateSpecCode = (slug: string) => `
103const updated = await tools.executor.openapi.updateSpec({
104 slug: ${JSON.stringify(slug)},
105});
106return updated.ok ? {
107 ok: true,
108 slug: updated.data.slug,
109 toolCount: updated.data.toolCount,
110 addedTools: updated.data.addedTools,
111 removedTools: updated.data.removedTools,
112} : { ok: false, error: updated.error };
113`;
114
115/** Run the agent tool and approve its catalog-changing action. */
116const executeJson = (session: McpSession, code: string) =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected