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

Function buildSearchToolsCode

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

Source from the content-addressed store, hash-verified

394};
395
396export const buildSearchToolsCode = (input: {
397 query: string;
398 namespace?: string;
399 limit: number;
400}): string => {
401 const payload: Record<string, unknown> = {
402 query: input.query,
403 limit: input.limit,
404 };
405 if (input.namespace && input.namespace.trim().length > 0) {
406 payload.namespace = input.namespace;
407 }
408 return `return await tools.search(${JSON.stringify(payload)});`;
409};
410
411export const buildListIntegrationsCode = (input: { query?: string; limit: number }): string => {
412 const payload: Record<string, unknown> = {

Callers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected