.well-known/oauth-protected-resource endpoint #1120
|
I'm in the weeds setting up Dynamic Client Registration for FastMCP protected endpoints to work with Claude Desktop. Even with CLI client testing I'm seeing calls to .well-known/oauth-protected-resource Why isn't this mentioned at all in the FastMCP docs? Can this be ignored? |
Replies: 2 comments 5 replies
|
so the calls you see for if server requires oauth (server would have to set this up to expose oauth metadata and require token exchange) :
if server doesn't require oauth (basically default behavior for now, so if you have no middleware to require the bearer token)
so for why it's not mentioned in the FastMCP docs, this is because this isn't related to anything FastMCP is doing on the server side, it's related to how the Claude Desktop mcp client is designed to attempt the dynamic client registration for any mcp server. you can either ignore it if your server doesn't require oauth, or if the server requires oauth, you have to set up the oauth requirement on the server side and expose the oauth metadata endpoint for the client to have a way to authenticate |
so the calls you see for
.well-known/oauth-protected-resource/oauth-authorization-serveretc. are requests from whatever client you have attempting to connect to the server. when the client is configured for dynamic client registration, it just means that when establishing connection, it will attempt to look for those oauth resources from the server to determine how to proceed. so one of a few things can happen:if server requires oauth (server would have to set this up to expose oauth metadata and require token exchange) :