Builds the RFC 9728 Protected Resource Metadata URL for a given MCP server URL by inserting /.well-known/oauth-protected-resource ahead of the path.
/.well-known/oauth-protected-resource
getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp'))// → 'https://api.example.com/.well-known/oauth-protected-resource/mcp' Copy
getOAuthProtectedResourceMetadataUrl(new URL('https://api.example.com/mcp'))// → 'https://api.example.com/.well-known/oauth-protected-resource/mcp'
Builds the RFC 9728 Protected Resource Metadata URL for a given MCP server URL by inserting
/.well-known/oauth-protected-resourceahead of the path.