Update simpleStreamableHttp.ts

This commit is contained in:
Olivier Chafik 2025-06-18 11:23:57 +01:00
commit 4a88cac4c6
No known key found for this signature in database

View file

@ -314,8 +314,8 @@ if (useOAuth) {
if (!data.resource) {
throw new Error('Resource Indicator (RFC8707) missing');
}
if (data.resource !== expectedOAuthResource) {
throw new Error(`Expected resource indicator ${expectedOAuthResource}, got: ${data.resource}`);
if (data.resource !== mcpServerUrl) {
throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.resource}`);
}
}