@mastra/mcp 0.13.5 → 0.14.0

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.js CHANGED
@@ -821,8 +821,13 @@ var InternalMastraMCPClient = class extends MastraBase {
821
821
  var MastraMCPClient = class extends InternalMastraMCPClient {
822
822
  constructor(args) {
823
823
  super(args);
824
- this.logger.warn(
825
- "[DEPRECATION] MastraMCPClient is deprecated and will be removed in a future release. Please use MCPClient instead."
824
+ throw new MastraError(
825
+ {
826
+ id: "MASTRA_MCP_CLIENT_DEPRECATED",
827
+ domain: ErrorDomain.MCP,
828
+ category: ErrorCategory.USER,
829
+ text: "[DEPRECATION] MastraMCPClient is deprecated and will be removed in a future release. Please use MCPClient instead."
830
+ }
826
831
  );
827
832
  }
828
833
  };
@@ -1428,7 +1433,7 @@ To fix this you have three different options:
1428
1433
  * const agent = new Agent({
1429
1434
  * name: 'Multi-tool Agent',
1430
1435
  * instructions: 'You have access to weather and stock tools.',
1431
- * model: openai('gpt-4'),
1436
+ * model: 'openai/gpt-4',
1432
1437
  * tools: await mcp.getTools(), // weather_getWeather, stockPrice_getPrice
1433
1438
  * });
1434
1439
  * ```
@@ -1468,7 +1473,7 @@ To fix this you have three different options:
1468
1473
  * const agent = new Agent({
1469
1474
  * name: 'Dynamic Agent',
1470
1475
  * instructions: 'You can use tools dynamically.',
1471
- * model: openai('gpt-4'),
1476
+ * model: 'openai/gpt-4',
1472
1477
  * });
1473
1478
  *
1474
1479
  * const response = await agent.stream(prompt, {
@@ -1595,13 +1600,18 @@ var MCPConfiguration = class extends MCPClient {
1595
1600
  */
1596
1601
  constructor(args) {
1597
1602
  super(args);
1598
- this.logger.warn(
1599
- `MCPConfiguration has been renamed to MCPClient and MCPConfiguration is deprecated. The API is identical but the MCPConfiguration export will be removed in the future. Update your imports now to prevent future errors.`
1603
+ throw new MastraError(
1604
+ {
1605
+ id: "MCP_CLIENT_CONFIGURATION_DEPRECATED",
1606
+ domain: ErrorDomain.MCP,
1607
+ category: ErrorCategory.USER,
1608
+ text: "[DEPRECATION] MCPConfiguration has been renamed to MCPClient and MCPConfiguration is deprecated. The API is identical but the MCPConfiguration export will be removed in the future. Update your imports now to prevent future errors."
1609
+ }
1600
1610
  );
1601
1611
  }
1602
1612
  };
1603
1613
 
1604
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/utils/stream.js
1614
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/utils/stream.js
1605
1615
  var StreamingApi = class {
1606
1616
  writer;
1607
1617
  encoder;
@@ -1668,7 +1678,7 @@ var StreamingApi = class {
1668
1678
  }
1669
1679
  };
1670
1680
 
1671
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/helper/streaming/utils.js
1681
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/helper/streaming/utils.js
1672
1682
  var isOldBunVersion = () => {
1673
1683
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
1674
1684
  if (version === void 0) {
@@ -1679,7 +1689,7 @@ var isOldBunVersion = () => {
1679
1689
  return result;
1680
1690
  };
1681
1691
 
1682
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/utils/html.js
1692
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/utils/html.js
1683
1693
  var HtmlEscapedCallbackPhase = {
1684
1694
  Stringify: 1};
1685
1695
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -1710,7 +1720,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
1710
1720
  }
1711
1721
  };
1712
1722
 
1713
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/helper/streaming/sse.js
1723
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/helper/streaming/sse.js
1714
1724
  var SSEStreamingApi = class extends StreamingApi {
1715
1725
  constructor(writable, readable) {
1716
1726
  super(writable, readable);
@@ -2124,7 +2134,7 @@ var MCPServer = class extends MCPServerBase {
2124
2134
  * name: 'Helper',
2125
2135
  * description: 'A helpful assistant',
2126
2136
  * instructions: 'You are helpful.',
2127
- * model: openai('gpt-4o-mini'),
2137
+ * model: 'openai/gpt-4o-mini',
2128
2138
  * });
2129
2139
  *
2130
2140
  * const server = new MCPServer({