Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix large file read issue in filesystem #480

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chavan-arvind
Copy link

@chavan-arvind chavan-arvind commented Jan 5, 2025

Fixes #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.

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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Filesystem cannot read large file
1 participant