Repository navigation
Let read_paper start at a byte offset the caller already holds - #35
Merged
Merged
Conversation
Callers that were given the start of a paper in context can continue from the byte count of that text instead of restarting at byte zero. offset is MCP-only, cannot be combined with cursor, and the returned cursor continues as before. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
read_paperaccepts an optionaloffset(MCP-only, UTF-8 byte offset,>= 0). Without a cursor, the first chunk starts at that byte; the returnednext_cursorthen continues as before.offsetandcursortogether are rejected withpass either cursor or offset, not both.Verification
uv run --offline pytest -q testsinmcp_server: 86 passed, including the newtest_read_paper_starts_at_an_offset_and_then_continues_with_a_cursor.ruffis not installed in this environment.Deploy note
The chat change (paperswithcode PR, branch
claude/paper-reader-read-offset) sendsoffset. Deploy this MCP server before enabling that chat change.🤖 Generated with Claude Code