MCPcopy
hub / github.com/coder/mux / readFile

Function readFile

src/node/services/tools/file_edit_replace.test.ts:28–30  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

26};
27
28const readFile = async (filePath: string): Promise<string> => {
29 return await fs.readFile(filePath, "utf-8");
30};
31
32const executeStringReplace = async (
33 tool: ReturnType<typeof createFileEditReplaceStringTool>,

Callers 9

evaluateCatalogCandidateFunction · 0.70
loadPolicyTextFunction · 0.50
loadMethod · 0.50
loadExcludedItemsMethod · 0.50
getChangedAttachmentsMethod · 0.50
getCachedLibSourceFileFunction · 0.50

Calls 1

readFileMethod · 0.65

Tested by

no test coverage detected