Skip to content

docs(http): document --authorization-server for RFC 7591 DCR clients - #3847

Open
RealThanhNguyxn wants to merge 2 commits into
github:mainfrom
RealThanhNguyxn:docs/oauth-proxy-dcr-clarification
Open

RealThanhNguyxn wants to merge 2 commits into
github:mainfrom
RealThanhNguyxn:docs/oauth-proxy-dcr-clarification

Conversation

@RealThanhNguyxn

@RealThanhNguyxn RealThanhNguyxn commented Nov 14, 2026 •

Copy link
Copy Markdown

Summary

Documents using --authorization-server (GITHUB_AUTHORIZATION_SERVER) with an OAuth proxy when self-hosting HTTP mode on github.com for 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/oauth does not advertise a registration_endpoint, so clients that require Dynamic Client Registration cannot complete OAuth discovery against it. github-mcp-server http already supports --authorization-server to 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:

  • Says the GHES approach also works on github.com for clients that require Dynamic Client Registration, with a CLI example using --base-url and --authorization-server.
  • States what the proxy has to do: the server still expects a GitHub token in the Authorization header (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.
  • Adds a note that the flag only configures a self-hosted server: the hosted https://api.githubcopilot.com/mcp/ advertises https://github.com/login/oauth and does not support Dynamic Client Registration.

The existing sentence that the override only changes the advertised metadata, and the GITHUB_MCP_SERVER_MRTR_STATE_KEY section, are unchanged.

MCP impact

  • No tool or API changes
  • Tool schema or behavior changed
  • New tool added

Prompts tested (tool changes only)

  • N/A (documentation-only change)

Security / limits

  • No security or limits impact
  • Auth / permissions considered — documents that the server only accepts GitHub tokens whichever authorization server is advertised; no runtime auth logic changed.
  • 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
  • Documentation-only change in docs/streamable-http.md.

Docs

  • Not needed
  • Updated (README / docs / examples)

@RealThanhNguyxn
RealThanhNguyxn requested a review from a team as a code owner November 14, 2026 04:04
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 04:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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-server and GITHUB_AUTHORIZATION_SERVER proxy configuration.
  • Adds a self-hosted GitHub.com example and hosted endpoint guidance for DCR-dependent clients.
  • Removes the existing request-state encryption and delete_repository configuration 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)

Comment thread docs/streamable-http.md Outdated
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants