René's URL Explorer Experiment


Title: `get_file_contents` fetch refs improvements by almaleksia · Pull Request #1655 · github/github-mcp-server · GitHub

Open Graph Title: `get_file_contents` fetch refs improvements by almaleksia · Pull Request #1655 · github/github-mcp-server

X Title: `get_file_contents` fetch refs improvements by almaleksia · Pull Request #1655 · github/github-mcp-server

Description: Summary This PR improves ref resolution handling in get_file_contents tool. Sometimes LLM passes sha in ref parameter which results in failure. This PR autocorrects it allowing shas to be passed a...

Open Graph Description: Summary This PR improves ref resolution handling in get_file_contents tool. Sometimes LLM passes sha in ref parameter which results in failure. This PR autocorrects it allowing shas to be passed a...

X Description: Summary This PR improves ref resolution handling in get_file_contents tool. Sometimes LLM passes sha in ref parameter which results in failure. This PR autocorrects it allowing shas to be passed a...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:10905c5c-8508-cffa-c038-69f71cb67b75
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE298:24546C:3EEE170:530ADF0:6964AD13
html-safe-nonce5cd75dfab8085fe7da76770752a0d201cecd3db5abe989c0df73c9109ba345e7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjk4OjI0NTQ2QzozRUVFMTcwOjUzMEFERjA6Njk2NEFEMTMiLCJ2aXNpdG9yX2lkIjoiODAyMjI0OTQwNDU0MzMxNTIxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac89eab20bf0813cecadd1794c9cdb364432f474e54434c85e91566427aa67dc31
hovercard-subject-tagpull_request:3117709605
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/github/github-mcp-server/1655/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/599411f80ed6a94f9a7d7877e4903cc56b8dd4bd3da1a0ee59d270f2b21250fe/github/github-mcp-server/pull/1655
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/599411f80ed6a94f9a7d7877e4903cc56b8dd4bd3da1a0ee59d270f2b21250fe/github/github-mcp-server/pull/1655
og:image:altSummary This PR improves ref resolution handling in get_file_contents tool. Sometimes LLM passes sha in ref parameter which results in failure. This PR autocorrects it allowing shas to be passed a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealmaleksia
hostnamegithub.com
expected-hostnamegithub.com
None15579c46431b7fd25941c3b09010f74fd1890c7a35226839bbbf40ce70fb3057
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release499abb347cb197601d399c346cfeb4b3fa135d5c
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/github-mcp-server/pull/1655#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F1655
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F1655
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=github%2Fgithub-mcp-server
Reloadhttps://github.com/github/github-mcp-server/pull/1655
Reloadhttps://github.com/github/github-mcp-server/pull/1655
Reloadhttps://github.com/github/github-mcp-server/pull/1655
github https://github.com/github
github-mcp-serverhttps://github.com/github/github-mcp-server
Notifications https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Fork 3.4k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Star 25.8k https://github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Code https://github.com/github/github-mcp-server
Issues 135 https://github.com/github/github-mcp-server/issues
Pull requests 101 https://github.com/github/github-mcp-server/pulls
Discussions https://github.com/github/github-mcp-server/discussions
Actions https://github.com/github/github-mcp-server/actions
Models https://github.com/github/github-mcp-server/models
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/github/github-mcp-server/security
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
Insights https://github.com/github/github-mcp-server/pulse
Code https://github.com/github/github-mcp-server
Issues https://github.com/github/github-mcp-server/issues
Pull requests https://github.com/github/github-mcp-server/pulls
Discussions https://github.com/github/github-mcp-server/discussions
Actions https://github.com/github/github-mcp-server/actions
Models https://github.com/github/github-mcp-server/models
Security https://github.com/github/github-mcp-server/security
Insights https://github.com/github/github-mcp-server/pulse
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
Jump to bottomhttps://github.com/github/github-mcp-server/pull/1655#issue-comment-box
almaleksiahttps://github.com/almaleksia
mainhttps://github.com/github/github-mcp-server/tree/main
almaleksia/get_file_contents-fetch-refs-improvementshttps://github.com/github/github-mcp-server/tree/almaleksia/get_file_contents-fetch-refs-improvements
get_file_contents fetch refs improvements https://github.com/github/github-mcp-server/pull/1655#top
almaleksiahttps://github.com/almaleksia
mainhttps://github.com/github/github-mcp-server/tree/main
almaleksia/get_file_contents-fetch-refs-improvementshttps://github.com/github/github-mcp-server/tree/almaleksia/get_file_contents-fetch-refs-improvements
Conversation 15 https://github.com/github/github-mcp-server/pull/1655
Commits 6 https://github.com/github/github-mcp-server/pull/1655/commits
Checks 17 https://github.com/github/github-mcp-server/pull/1655/checks
Files changed https://github.com/github/github-mcp-server/pull/1655/files
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.co/hiddenchars
https://github.com/github/github-mcp-server/pull/{{ revealButtonHref }}
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
Dec 19, 2025https://github.com/github/github-mcp-server/pull/1655#issue-3747633670
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
almaleksiahttps://github.com/almaleksia
December 19, 2025 14:30https://github.com/github/github-mcp-server/pull/1655#commits-pushed-df21536
https://github.com/almaleksia
get_file_contents improvementshttps://github.com/github/github-mcp-server/pull/1655/commits/df21536f6da7bfb01c417b09dcb46b80c94a876e
df21536https://github.com/github/github-mcp-server/pull/1655/commits/df21536f6da7bfb01c417b09dcb46b80c94a876e
https://github.com/almaleksia
Merge branch 'main' ofhttps://github.com/github/github-mcp-server/pull/1655/commits/cccf36ede310aaf6c8cb34c2d0e87dc88fa07574
https://github.com/github/github-mcp-serverhttps://github.com/github/github-mcp-server
in…https://github.com/github/github-mcp-server/pull/1655/commits/cccf36ede310aaf6c8cb34c2d0e87dc88fa07574
cccf36ehttps://github.com/github/github-mcp-server/pull/1655/commits/cccf36ede310aaf6c8cb34c2d0e87dc88fa07574
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
code ownerhttps://github.com/github/github-mcp-server/blob/63c7db030a081b0ff1a4de7ab10f237da4fac491/.github/CODEOWNERS#L1
December 19, 2025 13:59https://github.com/github/github-mcp-server/pull/1655#event-21671431130
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
December 19, 2025 13:59https://github.com/github/github-mcp-server/pull/1655#event-21671431163
started reviewinghttps://github.com/copilot/tasks/pull/PR_kwDOODGMVM651Hkl?session_id=dcc237c0-15e6-4a71-a6d5-293cc9ac490b
almaleksiahttps://github.com/almaleksia
December 19, 2025 14:00https://github.com/github/github-mcp-server/pull/1655#event-21671440180
View session https://github.com/copilot/tasks/pull/PR_kwDOODGMVM651Hkl?session_id=dcc237c0-15e6-4a71-a6d5-293cc9ac490b
https://github.com/apps/copilot-pull-request-reviewer
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Dec 19, 2025 https://github.com/github/github-mcp-server/pull/1655#pullrequestreview-3598736366
View reviewed changes https://github.com/github/github-mcp-server/pull/1655/files
Copilothttps://github.com/apps/copilot-pull-request-reviewer
https://github.com/github/github-mcp-server/pull/1655#pullrequestreview-3598736366
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
pkg/github/repositories.gohttps://github.com/github/github-mcp-server/pull/1655/files#diff-396c76ab9d216fd1d9043c561bf2bfe57ade719aa0c0cedb47e85b3277714b92
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
pkg/github/repositories.gohttps://github.com/github/github-mcp-server/pull/1655/files#diff-396c76ab9d216fd1d9043c561bf2bfe57ade719aa0c0cedb47e85b3277714b92
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
pkg/github/repositories_test.gohttps://github.com/github/github-mcp-server/pull/1655/files#diff-1f37596d401182a6443ebc5cf77fd4451cb48bd6f8a3ca31742a7a29feed4279
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
pkg/github/repositories_test.gohttps://github.com/github/github-mcp-server/pull/1655/files#diff-1f37596d401182a6443ebc5cf77fd4451cb48bd6f8a3ca31742a7a29feed4279
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
pkg/github/repositories.gohttps://github.com/github/github-mcp-server/pull/1655/files#diff-396c76ab9d216fd1d9043c561bf2bfe57ade719aa0c0cedb47e85b3277714b92
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
pkg/github/repositories.gohttps://github.com/github/github-mcp-server/pull/1655/files#diff-396c76ab9d216fd1d9043c561bf2bfe57ade719aa0c0cedb47e85b3277714b92
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/almaleksia
Return custom errors when main ref is suppliedhttps://github.com/github/github-mcp-server/pull/1655/commits/f76807b7a1707ebbf31f78dc476111c328ff0d51
f76807bhttps://github.com/github/github-mcp-server/pull/1655/commits/f76807b7a1707ebbf31f78dc476111c328ff0d51
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
force-pushedhttps://github.com/github/github-mcp-server/compare/8988b78fba447fcea74d411bf6ff4962f4b5e0a0..f76807b7a1707ebbf31f78dc476111c328ff0d51
8988b78https://github.com/github/github-mcp-server/commit/8988b78fba447fcea74d411bf6ff4962f4b5e0a0
f76807bhttps://github.com/github/github-mcp-server/commit/f76807b7a1707ebbf31f78dc476111c328ff0d51
Compare https://github.com/github/github-mcp-server/compare/8988b78fba447fcea74d411bf6ff4962f4b5e0a0..f76807b7a1707ebbf31f78dc476111c328ff0d51
December 19, 2025 14:04https://github.com/github/github-mcp-server/pull/1655#event-21671518620
almaleksiahttps://github.com/almaleksia
December 19, 2025 15:06https://github.com/github/github-mcp-server/pull/1655#commits-pushed-4bdf0a4
https://github.com/almaleksia
Remove test for short shahttps://github.com/github/github-mcp-server/pull/1655/commits/4bdf0a4b58950bb416d213fde3bd8948c45f85e9
4bdf0a4https://github.com/github/github-mcp-server/pull/1655/commits/4bdf0a4b58950bb416d213fde3bd8948c45f85e9
https://github.com/almaleksia
Apply Copilot suggestionhttps://github.com/github/github-mcp-server/pull/1655/commits/0f9061b3a71964f3fa858c4b0e4205df2b1e9c1e
0f9061bhttps://github.com/github/github-mcp-server/pull/1655/commits/0f9061b3a71964f3fa858c4b0e4205df2b1e9c1e
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
Dec 19, 2025https://github.com/github/github-mcp-server/pull/1655#event-21671643536
https://github.com/mattdholloway
mattdhollowayhttps://github.com/mattdholloway
Dec 19, 2025 https://github.com/github/github-mcp-server/pull/1655#pullrequestreview-3598918136
View reviewed changes https://github.com/github/github-mcp-server/pull/1655/files/0e1c6e701973eb1e1b7611f04795271778efe928
mattdhollowayhttps://github.com/mattdholloway
https://github.com/github/github-mcp-server/pull/1655#pullrequestreview-3598918136
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/bretthowell714-source
bretthowell714-sourcehttps://github.com/bretthowell714-source
Dec 19, 2025 https://github.com/github/github-mcp-server/pull/1655#ref-issue-3748210948
looks great! looksLikeSHA is a really good idea legendSabbir/acode.plugin.astro#2 https://github.com/legendSabbir/acode.plugin.astro/issues/2
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
Dec 19, 2025 https://github.com/github/github-mcp-server/pull/1655#pullrequestreview-3599656636
View reviewed changes https://github.com/github/github-mcp-server/pull/1655/files/0e1c6e701973eb1e1b7611f04795271778efe928
SamMorrowDrumshttps://github.com/SamMorrowDrums
https://github.com/github/github-mcp-server/pull/1655#pullrequestreview-3599656636
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
Dec 22, 2025https://github.com/github/github-mcp-server/pull/1655#issuecomment-3681258699
@SamMorrowDrumshttps://github.com/SamMorrowDrums
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/almaleksia
Merge branch 'main' into almaleksia/get_file_contents-fetch-refs-impr…https://github.com/github/github-mcp-server/pull/1655/commits/0e1c6e701973eb1e1b7611f04795271778efe928
0e1c6e7https://github.com/github/github-mcp-server/pull/1655/commits/0e1c6e701973eb1e1b7611f04795271778efe928
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
2f31c15https://github.com/github/github-mcp-server/commit/2f31c15393d636f5aaa74f6824660d763b44998d
Dec 22, 2025https://github.com/github/github-mcp-server/pull/1655#event-21701140169
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
December 22, 2025 09:56https://github.com/github/github-mcp-server/pull/1655#event-21701142595
https://github.com/SamMorrowDrums
SamMorrowDrumshttps://github.com/SamMorrowDrums
Dec 22, 2025https://github.com/github/github-mcp-server/pull/1655#issuecomment-3681381176
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/almaleksia
almaleksiahttps://github.com/almaleksia
Dec 22, 2025 https://github.com/github/github-mcp-server/pull/1655#ref-pullrequest-3753475318
Fallback to default branch in get_file_contents when main doesn't exist #1669 https://github.com/github/github-mcp-server/pull/1669
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Jan 5, 2026 https://github.com/github/github-mcp-server/pull/1655#ref-issue-3782596252
[ca] Update GitHub MCP Server v0.26.3 → v0.27.0 githubnext/gh-aw#9024 https://github.com/githubnext/gh-aw/issues/9024
https://github.com/apps/copilot-swe-agent
Copilothttps://github.com/apps/copilot-swe-agent
Jan 5, 2026 https://github.com/github/github-mcp-server/pull/1655#ref-pullrequest-3782623635
Update GitHub MCP Server v0.26.3 → v0.27.0 githubnext/gh-aw#9025 https://github.com/githubnext/gh-aw/pull/9025
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F1655
Copilot code review https://github.com/apps/copilot-pull-request-reviewer
Copilot https://github.com/apps/copilot-pull-request-reviewer
https://github.com/github/github-mcp-server/pull/1655/files/8988b78fba447fcea74d411bf6ff4962f4b5e0a0
https://github.com/mattdholloway
mattdholloway https://github.com/mattdholloway
https://github.com/github/github-mcp-server/pull/1655/files/0e1c6e701973eb1e1b7611f04795271778efe928
https://github.com/SamMorrowDrums
SamMorrowDrums https://github.com/SamMorrowDrums
https://github.com/github/github-mcp-server/pull/1655/files/0e1c6e701973eb1e1b7611f04795271778efe928
Please reload this pagehttps://github.com/github/github-mcp-server/pull/1655
https://github.com/almaleksia
https://github.com/SamMorrowDrums
https://github.com/mattdholloway
https://github.com/apps/copilot-swe-agent
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

Viewport: width=device-width


URLs of crawlers that visited me.