MCPcopy Create free account
hub / github.com/idosal/git-mcp / noopFallbackSearch

Function noopFallbackSearch

src/api/tools/repoHandlers/ThreejsRepoHandler.ts:162–185  ·  view source on GitHub ↗
({
  repoData,
  query,
  env,
  ctx,
}: {
  repoData: RepoData;
  query: string;
  env: Env;
  ctx: any;
})

Source from the content-addressed store, hash-verified

160}
161
162async function noopFallbackSearch({
163 repoData,
164 query,
165 env,
166 ctx,
167}: {
168 repoData: RepoData;
169 query: string;
170 env: Env;
171 ctx: any;
172}): Promise<{
173 searchQuery: string;
174 content: { type: "text"; text: string }[];
175}> {
176 return {
177 searchQuery: query,
178 content: [
179 {
180 type: "text",
181 text: `Please use the ${GET_REFERENCE_DOCS_LIST_TOOL_NAME} tool first to get the list of reference docs and manuals, and then use the ${GET_SPECIFIC_DOCS_CONTENT_TOOL_NAME} tool to get the content of the specific docs or manuals.`,
182 },
183 ],
184 };
185}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected