- Notifications
You must be signed in to change notification settings - Fork950
Closed as not planned
Description
Description
When callingget_pull_request_comments
on pull requests with many comments, the response can exceed the maximum allowed tokens (25,000), causing the tool to fail.
Steps to Reproduce
- Use the
get_pull_request_comments
MCP tool on a pull request with extensive comment history - The tool returns an error when the response exceeds 25,000 tokens
Expected Behavior
The tool should handle large responses gracefully, either by:
- Implementing automatic pagination
- Providing clear pagination parameters in the tool interface
- Offering filtering options to reduce response size
Actual Behavior
The tool fails with the error:
Error: MCP tool "get_pull_request_comments" response (26688 tokens) exceeds maximum allowed tokens (25000). Please use pagination, filtering, or limit parameters to reduce the response size.
Suggested Solution
Add pagination support or response limiting parameters to theget_pull_request_comments
tool to handle pull requests with extensive comment histories.
Metadata
Metadata
Assignees
Labels
No labels