René's URL Explorer Experiment


Title: Reject unsupported pagination params in pull_request_read by muhammadumer-waheed · Pull Request #3336 · github/github-mcp-server · GitHub

Open Graph Title: Reject unsupported pagination params in pull_request_read by muhammadumer-waheed · Pull Request #3336 · github/github-mcp-server

X Title: Reject unsupported pagination params in pull_request_read by muhammadumer-waheed · Pull Request #3336 · github/github-mcp-server

Description: Summary pull_request_read now returns a validation error when a pagination parameter is passed that the selected method does not use, instead of silently dropping it. Why A pagination parameter that the selected method cannot honour was silently dropped: an agent following the schema and passing after to e.g. get_files would get the first page back again with no signal that anything was ignored. Silent parameter drops are worst-case for agentic callers, since the tool reports success with a plausible payload and the model has no reason to retry. Fixes #3316 What changed Added validatePaginationParamsForMethod in pkg/github/pullrequests.go, called before the tool dispatches on method: after is rejected for all methods except get_review_comments (with a hint to use get_review_comments for cursor-based pagination) page is rejected for get_review_comments, which uses cursor-based pagination perPage remains accepted for every method Added table-driven tests covering both rejection cases plus positive cases confirming page/perPage still work for get_files and perPage/after still work for get_review_comments. MCP impact No tool or API changes Tool schema or behavior changed New tool added The pull_request_read input schema is unchanged; behavior only: passing a pagination parameter the selected method does not honour now returns an error naming the method and the parameter, instead of silently returning the first page. Prompts tested (tool changes only) "Show me the files changed in PR #42, page 2 with 10 per page" → get_files with page/perPage: accepted (covered by unit test) "Get the review comments on PR #42 after cursor cursor-page-2" → get_review_comments with after: accepted (covered by unit test) "Get the files changed in PR #42 after cursor cursor-page-2" → get_files with after: now errors with method "get_files" uses page/perPage pagination; "after" is not supported (covered by unit test) Security / limits No security or limits impact Auth / permissions considered Data exposure, filtering, or token/size limits considered Tool renaming I am renaming tools as part of this PR (e.g. a part of a consolidation effort) I have added the new tool aliases in deprecated_tool_aliases.go I am not renaming tools as part of this PR Lint & tests Linted locally with ./script/lint Tested locally with ./script/test Docs Not needed Updated (README / docs / examples)

Open Graph Description: Summary pull_request_read now returns a validation error when a pagination parameter is passed that the selected method does not use, instead of silently dropping it. Why A pagination parameter tha...

X Description: Summary pull_request_read now returns a validation error when a pagination parameter is passed that the selected method does not use, instead of silently dropping it. Why A pagination parameter tha...

Opengraph URL: https://github.com/github/github-mcp-server/pull/3336

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:230eba7d-6495-bfa5-99db-b2f0ac878043
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF5C:26387A:E9173:13C770:6B05D7C0
html-safe-nonce6c6e2c83a93c6e9cfec3250dde99f8963662a62c8b628aafa6dcd31be7b8912c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjVDOjI2Mzg3QTpFOTE3MzoxM0M3NzA6NkIwNUQ3QzAiLCJ2aXNpdG9yX2lkIjoiMjI0NDM0NDI4MDUzNTkxNDQzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac60b278618222f301a1673909e08a6002a06cd887b582f76451efe1725f525b9b
hovercard-subject-tagpull_request:4640332319
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/github/github-mcp-server/pull/3336/files
twitter:imagehttps://avatars.githubusercontent.com/u/273130505?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/273130505?s=400&v=4
og:image:altSummary pull_request_read now returns a validation error when a pagination parameter is passed that the selected method does not use, instead of silently dropping it. Why A pagination parameter tha...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7cc8361bc0396e5c33704280422dd7a38c5b91f6190589faea57461f56967249
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id942771284
octolytics-dimension-repository_nwogithub/github-mcp-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id942771284
octolytics-dimension-repository_network_root_nwogithub/github-mcp-server
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseab4da203740f827015a12d36851c8de196e908bf
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/pull/3336/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F3336%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F3336%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/pull/3336/files
Reloadhttps://github.com/github/github-mcp-server/pull/3336/files
Reloadhttps://github.com/github/github-mcp-server/pull/3336/files
githubhttps://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Codehttps://github.com/github/github-mcp-server
Issues238 (238)https://github.com/github/github-mcp-server/issues
Pull requests226 (226)https://github.com/github/github-mcp-server/pulls
Discussionshttps://github.com/github/github-mcp-server/discussions
Actionshttps://github.com/github/github-mcp-server/actions
Security and quality2 (2)https://github.com/github/github-mcp-server/security
Insightshttps://github.com/github/github-mcp-server/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
muhammadumer-waheedhttps://github.com/muhammadumer-waheed
github:mainhttps://github.com/github/github-mcp-server/tree/main
muhammadumer-waheed:fix/pr-read-pagination-param-validationhttps://github.com/muhammadumer-waheed/github-mcp-server/tree/fix/pr-read-pagination-param-validation
Conversation 0 https://github.com/github/github-mcp-server/pull/3336
Commits 1 https://github.com/github/github-mcp-server/pull/3336/commits
Checks 1 https://github.com/github/github-mcp-server/pull/3336/checks
Findings https://github.com/github/github-mcp-server/pull/3336/findings
Files changed https://github.com/github/github-mcp-server/pull/3336/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/3336/files
Reject unsupported pagination params in pull_request_read https://github.com/github/github-mcp-server/pull/3336/files#top
Show all changes 1 commit https://github.com/github/github-mcp-server/pull/3336/files
be5dfb0 Reject unsupported pagination params in pull_request_read muhammadumer-waheed Sep 25, 2026 https://github.com/github/github-mcp-server/pull/3336/commits/be5dfb0428da26ba475f153b21598b0fad121dfd
Clear filters https://github.com/github/github-mcp-server/pull/3336/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/3336/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/3336/files
pullrequests.go https://github.com/github/github-mcp-server/pull/3336/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
pullrequests_test.go https://github.com/github/github-mcp-server/pull/3336/files#diff-efebb180e5ae7933bb1c29403a3c82937a5716357f0c9538781f23770635872f
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/pullrequests.gohttps://github.com/github/github-mcp-server/pull/3336/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
View file https://github.com/github/github-mcp-server/blob/be5dfb0428da26ba475f153b21598b0fad121dfd/pkg/github/pullrequests.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/3336/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/3336/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
https://github.com/github/github-mcp-server/pull/3336/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
https://github.com/github/github-mcp-server/pull/3336/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
https://github.com/github/github-mcp-server/pull/3336/files#diff-c2e2a7250ef597d08ee5d429159bc89c4b862a7ed6cbcf30b8231a3ec599d190
https://github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/github/pullrequests_test.gohttps://github.com/github/github-mcp-server/pull/3336/files#diff-efebb180e5ae7933bb1c29403a3c82937a5716357f0c9538781f23770635872f
View file https://github.com/github/github-mcp-server/blob/be5dfb0428da26ba475f153b21598b0fad121dfd/pkg/github/pullrequests_test.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/3336/{{ revealButtonHref }}
https://github.com/github/github-mcp-server/pull/3336/files#diff-efebb180e5ae7933bb1c29403a3c82937a5716357f0c9538781f23770635872f
https://github.com/github/github-mcp-server/pull/3336/files#diff-efebb180e5ae7933bb1c29403a3c82937a5716357f0c9538781f23770635872f
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.