@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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ai-sdk/mcp
2
2
 
3
+ ## 2.0.0-beta.7
4
+
5
+ ### Major Changes
6
+
7
+ - 23fa161: fix(mcp): setting redirect: error for MCP transport
8
+
3
9
  ## 2.0.0-beta.6
4
10
 
5
11
  ### Patch Changes
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 'follow'
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 'follow'
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 = "follow"
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 = "follow"
1282
+ redirect = "error"
1283
1283
  }) {
1284
1284
  this.inboundReconnectAttempts = 0;
1285
1285
  this.reconnectionOptions = {