update latest protocol version

This commit is contained in:
ihrpr 2025-06-17 11:38:00 +01:00
commit 4f708a777f
No known key found for this signature in database

View file

@ -1,3 +1,4 @@
import { LATEST_PROTOCOL_VERSION } from '../types.js';
import {
discoverOAuthMetadata,
startAuthorization,
@ -202,7 +203,7 @@ describe("OAuth Authorization", () => {
const [url, options] = calls[0];
expect(url.toString()).toBe("https://auth.example.com/.well-known/oauth-authorization-server");
expect(options.headers).toEqual({
"MCP-Protocol-Version": "2025-03-26"
"MCP-Protocol-Version": LATEST_PROTOCOL_VERSION
});
});