Repository navigation
docs(http): document --authorization-server for RFC 7591 DCR clients - #3847
Open
RealThanhNguyxn wants to merge 2 commits into
Open
RealThanhNguyxn wants to merge 2 commits into
RealThanhNguyxn wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The change removes the only documentation for configuring request-state encryption and the related deployment requirement, while the server behavior and tests still depend on it.
1 open issue
What changed in this PR
Updates Streamable HTTP documentation to explain configuring external OAuth 2.1 / RFC 7591 Dynamic Client Registration proxies for GitHub.com and GHES deployments, including limitations of the hosted MCP endpoint.
Changes:
- Documents
--authorization-serverandGITHUB_AUTHORIZATION_SERVERproxy configuration. - Adds a self-hosted GitHub.com example and hosted endpoint guidance for DCR-dependent clients.
- Removes the existing request-state encryption and
delete_repositoryconfiguration documentation.
| File | Description |
|---|---|
| docs/streamable-http.md | Expands OAuth proxy guidance with GitHub.com examples and hosted endpoint limitations while modifying adjacent HTTP deployment and request-state encryption documentation. |
Review effort: Lite (dynamic)
| Equivalent environment variable: `GITHUB_TRUST_PROXY_HEADERS=1`. Only enable this when the upstream proxy is trusted to set or strip these headers; otherwise prefer `--base-url`. When `--base-url` is set, it always takes precedence and `--trust-proxy-headers` has no effect. | ||
|
|
||
| ### With an OAuth Proxy (GHES / non-standard authorization server) | ||
| ### With an OAuth Proxy (GHES / RFC 7591 DCR clients) |
…clarification Keep main's request-state encryption section and the note that the override only changes advertised metadata. Describe what an OAuth proxy must provide and that the flag does not apply to the hosted server.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Documents using
--authorization-server(GITHUB_AUTHORIZATION_SERVER) with an OAuth proxy when self-hosting HTTP mode ongithub.comfor MCP clients that can only register through RFC 7591 Dynamic Client Registration.Related to #3519 and #2532.
Why
The authorization server metadata for
https://github.com/login/oauthdoes not advertise aregistration_endpoint, so clients that require Dynamic Client Registration cannot complete OAuth discovery against it.github-mcp-server httpalready supports--authorization-serverto advertise a proxy in/.well-known/oauth-protected-resource; the docs only described it for GHES.What changed
Only
docs/streamable-http.md, section With an OAuth Proxy:github.comfor clients that require Dynamic Client Registration, with a CLI example using--base-urland--authorization-server.Authorizationheader (it rejects other bearer tokens), so the proxy must hand clients a GitHub access token, or sit in front of the MCP endpoint and replace its own token with a GitHub token.https://api.githubcopilot.com/mcp/advertiseshttps://github.com/login/oauthand does not support Dynamic Client Registration.The existing sentence that the override only changes the advertised metadata, and the
GITHUB_MCP_SERVER_MRTR_STATE_KEYsection, are unchanged.MCP impact
Prompts tested (tool changes only)
Security / limits
Tool renaming
deprecated_tool_aliases.goLint & tests
./script/lint./script/testdocs/streamable-http.md.Docs