@ai-sdk/mcp 1.0.8 → 1.0.10

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/dist/index.mjs CHANGED
@@ -1345,6 +1345,10 @@ var HttpMCPTransport = class {
1345
1345
  (_c = this.onerror) == null ? void 0 : _c.call(this, error2);
1346
1346
  throw error2;
1347
1347
  }
1348
+ const isNotification = !("id" in message);
1349
+ if (isNotification) {
1350
+ return;
1351
+ }
1348
1352
  const contentType = response.headers.get("content-type") || "";
1349
1353
  if (contentType.includes("application/json")) {
1350
1354
  const data = await response.json();