Skip to content

Commit f4e5893

Browse files
committed
Add Accept header to auth metadata request
1 parent bf81793 commit f4e5893

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/client/auth.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,10 @@ export async function discoverAuthorizationServerMetadata(
750750
protocolVersion?: string;
751751
} = {}
752752
): Promise<AuthorizationServerMetadata | undefined> {
753-
const headers = { 'MCP-Protocol-Version': protocolVersion };
753+
const headers = {
754+
'MCP-Protocol-Version': protocolVersion,
755+
'Accept': 'application/json',
756+
};
754757

755758
// Get the list of URLs to try
756759
const urlsToTry = buildDiscoveryUrls(authorizationServerUrl);

0 commit comments

Comments
 (0)