MCPcopy
hub / github.com/modelcontextprotocol/servers / readFileContent

Function readFileContent

src/filesystem/lib.ts:157–159  ·  view source on GitHub ↗
(filePath: string, encoding: string = 'utf-8')

Source from the content-addressed store, hash-verified

155}
156
157export async function readFileContent(filePath: string, encoding: string = 'utf-8'): Promise<string> {
158 return await fs.readFile(filePath, encoding as BufferEncoding);
159}
160
161export async function writeFileContent(filePath: string, content: string): Promise<void> {
162 try {

Callers 3

readTextFileHandlerFunction · 0.85
index.tsFile · 0.85
lib.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected