part 1Foundations: before OAuth·lesson 1.5 of 5·2 min read
Discovery and the /.well-known/ prefix
How does a client go from "I only know a URL" to "I know everything I need"? This lesson explains the /.well-known/ prefix (RFC 8615), the three .well-known discovery documents used in MCP authorization, and the difference between inserting and appending the path when a URL has one.
In this lesson
Explain what /.well-known/ is (RFC 8615) and why it exists.
List the three .well-known documents that MCP uses.
Tell inserting from appending the path when the URL has one.
The chicken-and-egg problem
For the client to configure itself, someone has to tell it where things are. But how does it ask, if it does not know whom to ask? The solution is to agree on a fixed path that everyone knows in advance. RFC 8615 reserves the /.well-known/ prefix on any domain for these discovery documents.
The .well-known documents used in MCP authorization
Path
Published by
What it says
Standard
In MCP since
/.well-known/oauth-protected-resource
MCP server
Which authorization servers issue tokens for me
RFC 9728
2025-06-18
/.well-known/oauth-authorization-server
Authorization server
My endpoints (authorize, token, register) and what I support
Notice that they form a chain: the MCP server points to the authorization server, and the authorization server describes its endpoints. The client only needs the first link.
MCP server URL
└─▶ /.well-known/oauth-protected-resource "my tokens are issued by auth.example.com"
└─▶ /.well-known/oauth-authorization-server "authorize is at…, token at…"
└─▶ OAuth flow
Inserting vs. appending: when the URL has a path
If the identifier is https://auth.example.com/tenant1, where does .well-known go? There are two conventions, and MCP uses both: