@ai-sdk/mcp 1.0.78 → 1.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/tool/oauth.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/mcp
|
|
2
2
|
|
|
3
|
+
## 1.0.80
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [1a4dbb1]
|
|
8
|
+
- @ai-sdk/provider@3.0.16
|
|
9
|
+
- @ai-sdk/provider-utils@4.0.51
|
|
10
|
+
|
|
11
|
+
## 1.0.79
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 3d2db73: fix(mcp): accept trailing slashes on origin-only OAuth issuers
|
|
16
|
+
|
|
3
17
|
## 1.0.78
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -837,7 +837,8 @@ function buildDiscoveryUrls(authorizationServerUrl) {
|
|
|
837
837
|
return urlsToTry;
|
|
838
838
|
}
|
|
839
839
|
function assertMetadataIssuerMatches(metadata, expectedIssuer) {
|
|
840
|
-
|
|
840
|
+
const issuerMatches = metadata.issuer === expectedIssuer || expectedIssuer === new URL(expectedIssuer).origin && metadata.issuer === `${expectedIssuer}/`;
|
|
841
|
+
if (!issuerMatches) {
|
|
841
842
|
throw new MCPClientOAuthError({
|
|
842
843
|
message: `OAuth authorization server metadata issuer ${metadata.issuer} does not match expected issuer ${expectedIssuer}`
|
|
843
844
|
});
|