Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix large file read issue in filesystem
Fixes modelcontextprotocol#478 Add functionality to handle reading large files in chunks. * Add a new function `readLargeFile` to read large files in chunks. * Update the `read_file` tool implementation to use `readLargeFile` for files larger than 1MB. * Improve error handling in the `read_file` tool to provide more detailed error messages. * Check file size before using `readLargeFile` to determine if the file exceeds the 1MB threshold. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/modelcontextprotocol/servers/issues/478?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information