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

Function buildListIntegrationsCode

apps/cli/src/tooling.ts:411–419  ·  view source on GitHub ↗
(input: { query?: string; limit: number })

Source from the content-addressed store, hash-verified

409};
410
411export const buildListIntegrationsCode = (input: { query?: string; limit: number }): string => {
412 const payload: Record<string, unknown> = {
413 limit: input.limit,
414 };
415 if (input.query && input.query.trim().length > 0) {
416 payload.query = input.query;
417 }
418 return `return await tools.executor.integrations.list(${JSON.stringify(payload)});`;
419};
420
421export const buildDescribeToolCode = (toolPath: string): string =>
422 `return await tools.describe.tool({ path: ${JSON.stringify(toolPath)} });`;

Callers 2

main.tsFile · 0.90
tools-cli.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected