MCPcopy Create free account
hub / github.com/Houseofmvps/codesight / toolScan

Function toolScan

src/mcp-server.ts:115–119  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

113// =================== TOOL IMPLEMENTATIONS ===================
114
115async function toolScan(args: any): Promise<string> {
116 const result = await getScanResult(args.directory);
117 const outputContent = await writeOutput(result, resolve(cachedRoot!, ".codesight"));
118 return outputContent.replace(/Saves ~\d[\d,]* tokens/, `Saves ~${result.tokenStats.saved.toLocaleString()} tokens`);
119}
120
121async function toolGetRoutes(args: any): Promise<string> {
122 const result = await getScanResult(args.directory);

Callers

nothing calls this directly

Calls 2

getScanResultFunction · 0.85
writeOutputFunction · 0.85

Tested by

no test coverage detected