René's URL Explorer Experiment


Title: feat(http): add --authorization-server flag to override OAuth AS URL by Anika-Sol · Pull Request #2900 · github/github-mcp-server · GitHub

Open Graph Title: feat(http): add --authorization-server flag to override OAuth AS URL by Anika-Sol · Pull Request #2900 · github/github-mcp-server

X Title: feat(http): add --authorization-server flag to override OAuth AS URL by Anika-Sol · Pull Request #2900 · github/github-mcp-server

Description: Summary Adds a --authorization-server CLI flag (and GITHUB_AUTHORIZATION_SERVER env var) to the http subcommand, allowing operators to override the authorization server URL advertised in the OAuth Protected Resource Metadata (/.well-known/oauth-protected-resource). Why When deploying the MCP server against GitHub Enterprise Server, GHES does not natively support RFC 8414, RFC 7591, or PKCE — making direct MCP OAuth impossible. A common solution is to deploy a thin OAuth proxy in front of GHES that implements the MCP OAuth spec. However, the MCP server always derives authorization_servers from GITHUB_HOST, so clients are pointed at GHES directly instead of the proxy. Without this flag, operators must intercept /.well-known/oauth-protected-resource at the ingress layer as a workaround. The AuthorizationServer field already exists in pkg/http/oauth/oauth.Config with the conditional in place — it simply wasn't reachable from any configuration surface. What changed Added AuthorizationServer string field to pkg/http/server.go ServerConfig Wired cfg.AuthorizationServer into the oauth.Config struct in RunHTTPServer Added --authorization-server flag on httpCmd in cmd/github-mcp-server/main.go Added viper binding so GITHUB_AUTHORIZATION_SERVER env var works automatically MCP impact No tool or API changes — only affects OAuth metadata discovery; no tools, schemas, or API behavior changed Prompts tested (tool changes only) N/A Security / limits Auth / permissions considered — when set, this flag redirects clients to a different authorization server. Operators are responsible for ensuring the configured URL points to a trusted proxy. No change to token validation or API access control. Tool renaming 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 Adds a --authorization-server CLI flag (and GITHUB_AUTHORIZATION_SERVER env var) to the http subcommand, allowing operators to override the authorization server URL advertised in the OAuth ...

X Description: Summary Adds a --authorization-server CLI flag (and GITHUB_AUTHORIZATION_SERVER env var) to the http subcommand, allowing operators to override the authorization server URL advertised in the OAuth ...

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

X: @github

direct link

Domain: atooq@github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:33fdf0ac-e92c-9951-0ac3-aab44428497e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F74:298EBF:2D17783:3C1D7BC:6A651F4F
html-safe-nonce63d427968cd16269069ff67474750c3fea0b6c6dd828e0b0e4d4707aa79a0a80
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Rjc0OjI5OEVCRjoyRDE3NzgzOjNDMUQ3QkM6NkE2NTFGNEYiLCJ2aXNpdG9yX2lkIjoiNTY0OTc3MTc1MTU3MDQ4MDk3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc5c513302747dc336bd998b89bcbbf974d08247b33b667c7e323f896db52a1d2
hovercard-subject-tagpull_request:4077001654
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/2900/files
twitter:imagehttps://avatars.githubusercontent.com/u/1503135?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1503135?s=400&v=4
og:image:altSummary Adds a --authorization-server CLI flag (and GITHUB_AUTHORIZATION_SERVER env var) to the http subcommand, allowing operators to override the authorization server URL advertised in the OAuth ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b
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
release309153364422b3c499922d1a2a6404910a58ed8e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://atooq@github.com/github/github-mcp-server/pull/2900/files#start-of-content
https://atooq@github.com/
Sign in https://atooq@github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F2900%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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://atooq@github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fgithub-mcp-server%2Fpull%2F2900%2Ffiles
Sign up https://atooq@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://atooq@github.com/github/github-mcp-server/pull/2900/files
Reloadhttps://atooq@github.com/github/github-mcp-server/pull/2900/files
Reloadhttps://atooq@github.com/github/github-mcp-server/pull/2900/files
Please reload this pagehttps://atooq@github.com/github/github-mcp-server/pull/2900/files
github https://atooq@github.com/github
github-mcp-serverhttps://atooq@github.com/github/github-mcp-server
Notifications https://atooq@github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Fork 4.6k https://atooq@github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Star 31.7k https://atooq@github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server
Code https://atooq@github.com/github/github-mcp-server
Issues 171 https://atooq@github.com/github/github-mcp-server/issues
Pull requests 165 https://atooq@github.com/github/github-mcp-server/pulls
Discussions https://atooq@github.com/github/github-mcp-server/discussions
Actions https://atooq@github.com/github/github-mcp-server/actions
Models https://atooq@github.com/github/github-mcp-server/models
Security and quality 2 https://atooq@github.com/github/github-mcp-server/security
Insights https://atooq@github.com/github/github-mcp-server/pulse
Code https://atooq@github.com/github/github-mcp-server
Issues https://atooq@github.com/github/github-mcp-server/issues
Pull requests https://atooq@github.com/github/github-mcp-server/pulls
Discussions https://atooq@github.com/github/github-mcp-server/discussions
Actions https://atooq@github.com/github/github-mcp-server/actions
Models https://atooq@github.com/github/github-mcp-server/models
Security and quality https://atooq@github.com/github/github-mcp-server/security
Insights https://atooq@github.com/github/github-mcp-server/pulse
Sign up for GitHub https://atooq@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://atooq@github.com/login?return_to=%2Fgithub%2Fgithub-mcp-server%2Fissues%2Fnew%2Fchoose
Anika-Solhttps://atooq@github.com/Anika-Sol
github:mainhttps://atooq@github.com/github/github-mcp-server/tree/main
Anika-Sol:feat/authorization-server-overridehttps://atooq@github.com/Anika-Sol/github-mcp-server/tree/feat/authorization-server-override
Conversation 0 https://atooq@github.com/github/github-mcp-server/pull/2900
Findings https://atooq@github.com/github/github-mcp-server/pull/2900/findings
Commits 1 https://atooq@github.com/github/github-mcp-server/pull/2900/commits
Checks 0 https://atooq@github.com/github/github-mcp-server/pull/2900/checks
Files changed 3 https://atooq@github.com/github/github-mcp-server/pull/2900/files
feat(http): add --authorization-server flag to override OAuth AS URL https://atooq@github.com/github/github-mcp-server/pull/2900/files#top
Show all changes 1 commit https://atooq@github.com/github/github-mcp-server/pull/2900/files
84ca9bb feat(http): add --authorization-server flag to override OAuth AS URL Anika-Sol Jul 17, 2026 https://atooq@github.com/github/github-mcp-server/pull/2900/commits/84ca9bb046cf062d44fb3b13cf61adc136667625
Clear filters https://atooq@github.com/github/github-mcp-server/pull/2900/files
Please reload this pagehttps://atooq@github.com/github/github-mcp-server/pull/2900/files
Please reload this pagehttps://atooq@github.com/github/github-mcp-server/pull/2900/files
main.go https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
streamable-http.md https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-95ac8e59c197b5384466adb139af68f70ce010ffe22b5bb1b0b9397bfd1f3973
server.go https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-012838e0102e94f167e4c523990093e0d482d6a2ab18b28f0c0cb593177009d6
https://atooq@github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
cmd/github-mcp-server/main.gohttps://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
View file https://atooq@github.com/github/github-mcp-server/blob/84ca9bb046cf062d44fb3b13cf61adc136667625/cmd/github-mcp-server/main.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://atooq@github.com/github/github-mcp-server/pull/2900/{{ revealButtonHref }}
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-16cc821af690c1565901f6576e1d371fed84548c6ba3a205e5ef46be23b151cd
https://atooq@github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
docs/streamable-http.mdhttps://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-95ac8e59c197b5384466adb139af68f70ce010ffe22b5bb1b0b9397bfd1f3973
View file https://atooq@github.com/github/github-mcp-server/blob/84ca9bb046cf062d44fb3b13cf61adc136667625/docs/streamable-http.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://atooq@github.com/github/github-mcp-server/pull/2900/{{ revealButtonHref }}
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-95ac8e59c197b5384466adb139af68f70ce010ffe22b5bb1b0b9397bfd1f3973
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-95ac8e59c197b5384466adb139af68f70ce010ffe22b5bb1b0b9397bfd1f3973
https://atooq@github.com/github/github-mcp-server/blob/main/.github/CODEOWNERS#L1
pkg/http/server.gohttps://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-012838e0102e94f167e4c523990093e0d482d6a2ab18b28f0c0cb593177009d6
View file https://atooq@github.com/github/github-mcp-server/blob/84ca9bb046cf062d44fb3b13cf61adc136667625/pkg/http/server.go
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://atooq@github.com/github/github-mcp-server/pull/2900/{{ revealButtonHref }}
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-012838e0102e94f167e4c523990093e0d482d6a2ab18b28f0c0cb593177009d6
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-012838e0102e94f167e4c523990093e0d482d6a2ab18b28f0c0cb593177009d6
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-012838e0102e94f167e4c523990093e0d482d6a2ab18b28f0c0cb593177009d6
https://atooq@github.com/github/github-mcp-server/pull/2900/files#diff-012838e0102e94f167e4c523990093e0d482d6a2ab18b28f0c0cb593177009d6
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.