MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / read

Method read

src/utils/files/binary.ts:33–43  ·  view source on GitHub ↗
(filePath: string, options?: ReadOptions)

Source from the content-addressed store, hash-verified

31 }
32
33 async read(filePath: string, options?: ReadOptions): Promise<FileResult> {
34 const instructions = this.getBinaryInstructions(filePath);
35
36 return {
37 content: instructions,
38 mimeType: 'text/plain',
39 metadata: {
40 isBinary: true
41 }
42 };
43 }
44
45 async write(path: string, content: any): Promise<void> {
46 throw new Error('Cannot write binary files directly. Use start_process with appropriate tools (Python, Node.js libraries, command-line utilities).');

Callers

nothing calls this directly

Calls 1

getBinaryInstructionsMethod · 0.95

Tested by

no test coverage detected