ai 7.0.163 → 7.0.164
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 +9 -0
- package/dist/index.js +1 -1
- package/dist/internal/index.js +1 -1
- package/docs/03-ai-sdk-core/16-mcp-tools.mdx +12 -0
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
package/dist/internal/index.js
CHANGED
|
@@ -185,6 +185,18 @@ transports by providing an `authProvider`.
|
|
|
185
185
|
|
|
186
186
|
</Note>
|
|
187
187
|
|
|
188
|
+
### OAuth Resource Binding
|
|
189
|
+
|
|
190
|
+
The MCP client includes the OAuth `resource` parameter in authorization,
|
|
191
|
+
authorization-code exchange, and token refresh requests. It uses the validated
|
|
192
|
+
resource from protected resource metadata when available. If metadata is
|
|
193
|
+
unavailable, it uses the configured MCP server URL with its fragment removed.
|
|
194
|
+
|
|
195
|
+
To customize resource validation and selection, implement
|
|
196
|
+
`OAuthClientProvider.validateResourceURL`. Return a `URL` to select a resource,
|
|
197
|
+
or throw to reject it. Returning `undefined` uses the canonical MCP server URL;
|
|
198
|
+
it does not omit the `resource` parameter.
|
|
199
|
+
|
|
188
200
|
### Shared OAuth Credential Storage
|
|
189
201
|
|
|
190
202
|
When multiple MCP clients or replicas share OAuth credentials, a rotating refresh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.164",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AI SDK by Vercel - build apps like ChatGPT, Claude, Gemini, and more with a single interface for any model using the Vercel AI Gateway or go direct to OpenAI, Anthropic, Google, or any other model provider.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@ai-sdk/gateway": "4.0.
|
|
45
|
+
"@ai-sdk/gateway": "4.0.137",
|
|
46
46
|
"@ai-sdk/provider": "4.0.36",
|
|
47
47
|
"@ai-sdk/provider-utils": "5.0.75"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@ai-sdk/amazon-bedrock": "5.0.
|
|
50
|
+
"@ai-sdk/amazon-bedrock": "5.0.134",
|
|
51
51
|
"@ai-sdk/deepseek": "3.0.80",
|
|
52
|
-
"@ai-sdk/google": "4.0.
|
|
52
|
+
"@ai-sdk/google": "4.0.113",
|
|
53
53
|
"@ai-sdk/groq": "4.0.77",
|
|
54
|
-
"@ai-sdk/huggingface": "2.0.
|
|
55
|
-
"@ai-sdk/moonshotai": "3.0.
|
|
56
|
-
"@ai-sdk/openai": "4.0.
|
|
54
|
+
"@ai-sdk/huggingface": "2.0.86",
|
|
55
|
+
"@ai-sdk/moonshotai": "3.0.86",
|
|
56
|
+
"@ai-sdk/openai": "4.0.110",
|
|
57
57
|
"@ai-sdk/test-server": "2.0.4",
|
|
58
58
|
"@ai-sdk/xai": "5.0.39",
|
|
59
59
|
"@edge-runtime/vm": "^5.0.0",
|