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

Function skyCallProgram

packages/plugins/mcp/src/sdk/codex-sky-tools.ts:252–258  ·  view source on GitHub ↗
(tool: SkyToolDefinition, args: unknown)

Source from the content-addressed store, hash-verified

250 * `null` so a caller always gets a well-formed body.
251 */
252export const skyCallProgram = (tool: SkyToolDefinition, args: unknown): string => {
253 const call = tool.takesArgs ? `sky.${tool.method}(${jsLiteral(args)})` : `sky.${tool.method}()`;
254 return [
255 `globalThis.sky ??= (await import(${JSON.stringify(SKY_PACKAGE)})).sky;`,
256 writeJsonResult([], `await ${call}`),
257 ].join("\n");
258};

Callers 1

#surfaceProgramMethod · 0.90

Calls 2

jsLiteralFunction · 0.90
writeJsonResultFunction · 0.90

Tested by

no test coverage detected