File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -887,7 +887,8 @@ describe('OAuth Authorization', () => {
887
887
const calls = mockFetch . mock . calls ;
888
888
const [ , options ] = calls [ 0 ] ;
889
889
expect ( options . headers ) . toEqual ( {
890
- 'MCP-Protocol-Version' : '2025-01-01'
890
+ 'MCP-Protocol-Version' : '2025-01-01' ,
891
+ Accept : 'application/json'
891
892
} ) ;
892
893
} ) ;
893
894
Original file line number Diff line number Diff line change @@ -735,7 +735,10 @@ export async function discoverAuthorizationServerMetadata(
735
735
protocolVersion ?: string ;
736
736
} = { }
737
737
) : Promise < AuthorizationServerMetadata | undefined > {
738
- const headers = { 'MCP-Protocol-Version' : protocolVersion } ;
738
+ const headers = {
739
+ 'MCP-Protocol-Version' : protocolVersion ,
740
+ Accept : 'application/json'
741
+ } ;
739
742
740
743
// Get the list of URLs to try
741
744
const urlsToTry = buildDiscoveryUrls ( authorizationServerUrl ) ;
You can’t perform that action at this time.
0 commit comments