@ai-sdk/mcp 2.0.57 → 2.0.60
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 +24 -0
- package/README.md +2 -2
- package/dist/index.js +169 -209
- package/dist/index.js.map +1 -1
- package/dist/mcp-stdio/index.js +23 -24
- package/dist/mcp-stdio/index.js.map +1 -1
- package/package.json +3 -3
- package/src/tool/mcp-stdio/get-environment.ts +23 -16
- package/src/tool/oauth.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @ai-sdk/mcp
|
|
2
2
|
|
|
3
|
+
## 2.0.60
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [af9597b]
|
|
8
|
+
- Updated dependencies [bc49f78]
|
|
9
|
+
- @ai-sdk/provider-utils@5.0.49
|
|
10
|
+
|
|
11
|
+
## 2.0.59
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- be877ff: Use `fetchUntrustedUrl` for OAuth metadata discovery, with an explicit opt-in
|
|
16
|
+
for the MCP protocol-version header. Protocol metadata remains available while
|
|
17
|
+
unknown headers are withheld from untrusted first-hop URLs.
|
|
18
|
+
- Updated dependencies [be877ff]
|
|
19
|
+
- @ai-sdk/provider-utils@5.0.48
|
|
20
|
+
|
|
21
|
+
## 2.0.58
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 1ffd453: fix(mcp): preserve explicit stdio transport environment values
|
|
26
|
+
|
|
3
27
|
## 2.0.57
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ try {
|
|
|
44
44
|
const tools = await mcpClient.tools();
|
|
45
45
|
|
|
46
46
|
const { text } = await generateText({
|
|
47
|
-
model: 'openai/gpt-
|
|
47
|
+
model: 'openai/gpt-6-astra',
|
|
48
48
|
tools,
|
|
49
49
|
stopWhen: isStepCount(10),
|
|
50
50
|
prompt: 'Use the available tools to answer the user question.',
|
|
@@ -84,7 +84,7 @@ const mcpClient = await createMCPClient({
|
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
const result = streamText({
|
|
87
|
-
model: 'openai/gpt-
|
|
87
|
+
model: 'openai/gpt-6-astra',
|
|
88
88
|
tools: await mcpClient.tools(),
|
|
89
89
|
prompt: 'Use the available tools to answer the user question.',
|
|
90
90
|
onEnd: async () => {
|