MCPcopy
hub / github.com/mixedbread-ai/mgrep / formatSearchResponse

Function formatSearchResponse

src/commands/search.ts:77–81  ·  view source on GitHub ↗
(response: SearchResponse, show_content: boolean)

Source from the content-addressed store, hash-verified

75}
76
77function formatSearchResponse(response: SearchResponse, show_content: boolean) {
78 return response.data
79 .map((chunk) => formatChunk(chunk, show_content))
80 .join("\n");
81}
82
83function isWebResult(chunk: ChunkType): boolean {
84 return (

Callers 1

search.tsFile · 0.85

Calls 1

formatChunkFunction · 0.85

Tested by

no test coverage detected