@ai-sdk/mcp 2.0.0-beta.6 → 2.0.0-beta.7
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 +6 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/tool/mcp-http-transport.ts +1 -1
- package/src/tool/mcp-sse-transport.ts +1 -1
- package/src/tool/mcp-transport.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -247,7 +247,7 @@ type MCPTransportConfig = {
|
|
|
247
247
|
* Controls how HTTP redirects are handled for transport requests.
|
|
248
248
|
* - `'follow'`: Follow redirects automatically (standard fetch behavior).
|
|
249
249
|
* - `'error'`: Reject any redirect response with an error.
|
|
250
|
-
* @default '
|
|
250
|
+
* @default 'error'
|
|
251
251
|
*/
|
|
252
252
|
redirect?: 'follow' | 'error';
|
|
253
253
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -247,7 +247,7 @@ type MCPTransportConfig = {
|
|
|
247
247
|
* Controls how HTTP redirects are handled for transport requests.
|
|
248
248
|
* - `'follow'`: Follow redirects automatically (standard fetch behavior).
|
|
249
249
|
* - `'error'`: Reject any redirect response with an error.
|
|
250
|
-
* @default '
|
|
250
|
+
* @default 'error'
|
|
251
251
|
*/
|
|
252
252
|
redirect?: 'follow' | 'error';
|
|
253
253
|
};
|
package/dist/index.js
CHANGED
|
@@ -1073,7 +1073,7 @@ var SseMCPTransport = class {
|
|
|
1073
1073
|
url,
|
|
1074
1074
|
headers,
|
|
1075
1075
|
authProvider,
|
|
1076
|
-
redirect = "
|
|
1076
|
+
redirect = "error"
|
|
1077
1077
|
}) {
|
|
1078
1078
|
this.connected = false;
|
|
1079
1079
|
this.url = new URL(url);
|
|
@@ -1279,7 +1279,7 @@ var HttpMCPTransport = class {
|
|
|
1279
1279
|
url,
|
|
1280
1280
|
headers,
|
|
1281
1281
|
authProvider,
|
|
1282
|
-
redirect = "
|
|
1282
|
+
redirect = "error"
|
|
1283
1283
|
}) {
|
|
1284
1284
|
this.inboundReconnectAttempts = 0;
|
|
1285
1285
|
this.reconnectionOptions = {
|