-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add character count to pagination footer #62
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
The pagination utility (src/utils/pagination.ts) splits large MCP tool outputs into pages. The navigation footer currently shows "Page X/Y" but does not indicate how much content is on the current page or the total content size. Adding a character/word count (e.g., "Page 2/5 (12,340 chars, 47,200 total)") would help the agent decide whether to request the next page or skip it.
Relevant files:
src/utils/pagination.ts— modify thepaginateSectionsfunction's footer generationtest/pagination.test.ts— add tests for the new footer format
Acceptance criteria:
- Pagination footer includes character count for current page and total
- Existing pagination tests still pass
- At least 2 new tests verify the character count in the footer
npm testpasses
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers