* Tries to discover OAuth metadata at a specific URL
(url: URL, protocolVersion: string, fetchFn: FetchLike = fetch)
| 809 | * Tries to discover OAuth metadata at a specific URL |
| 810 | */ |
| 811 | async function tryMetadataDiscovery(url: URL, protocolVersion: string, fetchFn: FetchLike = fetch): Promise<Response | undefined> { |
| 812 | const headers = { |
| 813 | 'MCP-Protocol-Version': protocolVersion |
| 814 | }; |
| 815 | return await fetchWithCorsRetry(url, headers, fetchFn); |
| 816 | } |
| 817 | |
| 818 | /** |
| 819 | * Determines if fallback to root discovery should be attempted |
no test coverage detected
searching dependent graphs…