Skip to content

MCP Server Part 10: OAuth discovery#3767

Open
KoolADE85 wants to merge 2 commits intofeature/mcp-background-callbacksfrom
feature/mcp-oauth
Open

MCP Server Part 10: OAuth discovery#3767
KoolADE85 wants to merge 2 commits intofeature/mcp-background-callbacksfrom
feature/mcp-oauth

Conversation

@KoolADE85
Copy link
Copy Markdown
Contributor

Summary

Support OAuth so MCP clients can discover how to authenticate against an authorization server when connecting to the Dash MCP endpoint. Implements the discovery half of the MCP Authorization spec.

  • New mcp_authorization_server constructor arg (and DASH_MCP_AUTHORIZATION_SERVER env var). When set, registers an RFC 9728 Protected Resource Metadata endpoint at /.well-known/oauth-protected-resource/<mcp-path> advertising the authorization server.
  • Dash serves discovery metadata only — it does not enforce auth. Token validation, 401 responses, and WWW-Authenticate headers are the responsibility of the hosting platform (middleware, reverse proxy, etc.).

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.

1 participant