@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/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Remove deprecated mcp options MastraMCPClient/MCPConfigurationOptions/MCPConfiguration ([#9084](https://github.com/mastra-ai/mastra/pull/9084))
8
+
9
+ ### Patch Changes
10
+
11
+ - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
12
+
13
+ - Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
14
+ - @mastra/core@0.22.0
15
+
16
+ ## 0.14.0-alpha.0
17
+
18
+ ### Minor Changes
19
+
20
+ - Remove deprecated mcp options MastraMCPClient/MCPConfigurationOptions/MCPConfiguration ([#9084](https://github.com/mastra-ai/mastra/pull/9084))
21
+
22
+ ### Patch Changes
23
+
24
+ - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
25
+
26
+ - Updated dependencies [[`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb)]:
27
+ - @mastra/core@0.22.0-alpha.1
28
+
3
29
  ## 0.13.5
4
30
 
5
31
  ### Patch Changes
@@ -199,7 +199,7 @@ export declare class InternalMastraMCPClient extends MastraBase {
199
199
  } & {
200
200
  nextCursor: z.ZodOptional<z.ZodString>;
201
201
  } & {
202
- resources: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
202
+ resources: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
203
203
  name: z.ZodString;
204
204
  title: z.ZodOptional<z.ZodString>;
205
205
  }, {
@@ -207,7 +207,21 @@ export declare class InternalMastraMCPClient extends MastraBase {
207
207
  description: z.ZodOptional<z.ZodString>;
208
208
  mimeType: z.ZodOptional<z.ZodString>;
209
209
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
210
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
210
+ }>, {
211
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
212
+ src: z.ZodString;
213
+ mimeType: z.ZodOptional<z.ZodString>;
214
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
216
+ src: z.ZodString;
217
+ mimeType: z.ZodOptional<z.ZodString>;
218
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
219
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
220
+ src: z.ZodString;
221
+ mimeType: z.ZodOptional<z.ZodString>;
222
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
224
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
211
225
  name: z.ZodString;
212
226
  title: z.ZodOptional<z.ZodString>;
213
227
  }, {
@@ -215,7 +229,21 @@ export declare class InternalMastraMCPClient extends MastraBase {
215
229
  description: z.ZodOptional<z.ZodString>;
216
230
  mimeType: z.ZodOptional<z.ZodString>;
217
231
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
218
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
232
+ }>, {
233
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
+ src: z.ZodString;
235
+ mimeType: z.ZodOptional<z.ZodString>;
236
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
237
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
238
+ src: z.ZodString;
239
+ mimeType: z.ZodOptional<z.ZodString>;
240
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
241
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
242
+ src: z.ZodString;
243
+ mimeType: z.ZodOptional<z.ZodString>;
244
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
245
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
246
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
219
247
  name: z.ZodString;
220
248
  title: z.ZodOptional<z.ZodString>;
221
249
  }, {
@@ -223,6 +251,20 @@ export declare class InternalMastraMCPClient extends MastraBase {
223
251
  description: z.ZodOptional<z.ZodString>;
224
252
  mimeType: z.ZodOptional<z.ZodString>;
225
253
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
254
+ }>, {
255
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
+ src: z.ZodString;
257
+ mimeType: z.ZodOptional<z.ZodString>;
258
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
259
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
260
+ src: z.ZodString;
261
+ mimeType: z.ZodOptional<z.ZodString>;
262
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
263
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
264
+ src: z.ZodString;
265
+ mimeType: z.ZodOptional<z.ZodString>;
266
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
267
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
226
268
  }>, z.ZodTypeAny, "passthrough">>, "many">;
227
269
  }, z.ZodTypeAny, "passthrough">>;
228
270
  readResource(uri: string): Promise<z.objectOutputType<{
@@ -273,7 +315,7 @@ export declare class InternalMastraMCPClient extends MastraBase {
273
315
  } & {
274
316
  nextCursor: z.ZodOptional<z.ZodString>;
275
317
  } & {
276
- resourceTemplates: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
318
+ resourceTemplates: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
277
319
  name: z.ZodString;
278
320
  title: z.ZodOptional<z.ZodString>;
279
321
  }, {
@@ -281,7 +323,21 @@ export declare class InternalMastraMCPClient extends MastraBase {
281
323
  description: z.ZodOptional<z.ZodString>;
282
324
  mimeType: z.ZodOptional<z.ZodString>;
283
325
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
284
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
326
+ }>, {
327
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
328
+ src: z.ZodString;
329
+ mimeType: z.ZodOptional<z.ZodString>;
330
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
331
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
332
+ src: z.ZodString;
333
+ mimeType: z.ZodOptional<z.ZodString>;
334
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
336
+ src: z.ZodString;
337
+ mimeType: z.ZodOptional<z.ZodString>;
338
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
339
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
340
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
285
341
  name: z.ZodString;
286
342
  title: z.ZodOptional<z.ZodString>;
287
343
  }, {
@@ -289,7 +345,21 @@ export declare class InternalMastraMCPClient extends MastraBase {
289
345
  description: z.ZodOptional<z.ZodString>;
290
346
  mimeType: z.ZodOptional<z.ZodString>;
291
347
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
292
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
348
+ }>, {
349
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
350
+ src: z.ZodString;
351
+ mimeType: z.ZodOptional<z.ZodString>;
352
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
353
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
354
+ src: z.ZodString;
355
+ mimeType: z.ZodOptional<z.ZodString>;
356
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
357
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
358
+ src: z.ZodString;
359
+ mimeType: z.ZodOptional<z.ZodString>;
360
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
362
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<{
293
363
  name: z.ZodString;
294
364
  title: z.ZodOptional<z.ZodString>;
295
365
  }, {
@@ -297,6 +367,20 @@ export declare class InternalMastraMCPClient extends MastraBase {
297
367
  description: z.ZodOptional<z.ZodString>;
298
368
  mimeType: z.ZodOptional<z.ZodString>;
299
369
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
370
+ }>, {
371
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
372
+ src: z.ZodString;
373
+ mimeType: z.ZodOptional<z.ZodString>;
374
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
375
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
376
+ src: z.ZodString;
377
+ mimeType: z.ZodOptional<z.ZodString>;
378
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
379
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
380
+ src: z.ZodString;
381
+ mimeType: z.ZodOptional<z.ZodString>;
382
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
383
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
300
384
  }>, z.ZodTypeAny, "passthrough">>, "many">;
301
385
  }, z.ZodTypeAny, "passthrough">>;
302
386
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":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
@@ -22,7 +22,6 @@ export interface MCPClientOptions {
22
22
  * ```typescript
23
23
  * import { MCPClient } from '@mastra/mcp';
24
24
  * import { Agent } from '@mastra/core/agent';
25
- * import { openai } from '@ai-sdk/openai';
26
25
  *
27
26
  * const mcp = new MCPClient({
28
27
  * servers: {
@@ -41,7 +40,7 @@ export interface MCPClientOptions {
41
40
  * const agent = new Agent({
42
41
  * name: 'Multi-tool Agent',
43
42
  * instructions: 'You have access to multiple tools.',
44
- * model: openai('gpt-4'),
43
+ * model: 'openai/gpt-4o',
45
44
  * tools: await mcp.getTools(),
46
45
  * });
47
46
  * ```
@@ -376,16 +375,16 @@ export declare class MCPClient extends MastraBase {
376
375
  } | {
377
376
  [x: string]: unknown;
378
377
  type: "image";
379
- data: string;
380
378
  mimeType: string;
379
+ data: string;
381
380
  _meta?: {
382
381
  [x: string]: unknown;
383
382
  } | undefined;
384
383
  } | {
385
384
  [x: string]: unknown;
386
385
  type: "audio";
387
- data: string;
388
386
  mimeType: string;
387
+ data: string;
389
388
  _meta?: {
390
389
  [x: string]: unknown;
391
390
  } | undefined;
@@ -399,6 +398,12 @@ export declare class MCPClient extends MastraBase {
399
398
  } | undefined;
400
399
  title?: string | undefined;
401
400
  description?: string | undefined;
401
+ icons?: {
402
+ [x: string]: unknown;
403
+ src: string;
404
+ mimeType?: string | undefined;
405
+ sizes?: string[] | undefined;
406
+ }[] | undefined;
402
407
  mimeType?: string | undefined;
403
408
  } | {
404
409
  [x: string]: unknown;
@@ -481,7 +486,7 @@ export declare class MCPClient extends MastraBase {
481
486
  * const agent = new Agent({
482
487
  * name: 'Multi-tool Agent',
483
488
  * instructions: 'You have access to weather and stock tools.',
484
- * model: openai('gpt-4'),
489
+ * model: 'openai/gpt-4',
485
490
  * tools: await mcp.getTools(), // weather_getWeather, stockPrice_getPrice
486
491
  * });
487
492
  * ```
@@ -501,7 +506,7 @@ export declare class MCPClient extends MastraBase {
501
506
  * const agent = new Agent({
502
507
  * name: 'Dynamic Agent',
503
508
  * instructions: 'You can use tools dynamically.',
504
- * model: openai('gpt-4'),
509
+ * model: 'openai/gpt-4',
505
510
  * });
506
511
  *
507
512
  * const response = await agent.stream(prompt, {
@@ -522,6 +527,12 @@ export declare class MCPClient extends MastraBase {
522
527
  } | undefined;
523
528
  title?: string | undefined;
524
529
  description?: string | undefined;
530
+ icons?: {
531
+ [x: string]: unknown;
532
+ src: string;
533
+ mimeType?: string | undefined;
534
+ sizes?: string[] | undefined;
535
+ }[] | undefined;
525
536
  mimeType?: string | undefined;
526
537
  }[]>>;
527
538
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/client/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAI5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wHAAwH;IACxH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACnD,iFAAiF;IACjF,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC,OAAO,CAAC,aAAa,CAAiD;IACtE,OAAO,CAAC,EAAE,CAAS;IACnB,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,cAAc,CAA8C;IACpE,OAAO,CAAC,iBAAiB,CAA8B;IAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;gBACS,IAAI,EAAE,gBAAgB;IA0ClC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,I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/dist/index.cjs CHANGED
@@ -828,8 +828,13 @@ var InternalMastraMCPClient = class extends base.MastraBase {
828
828
  var MastraMCPClient = class extends InternalMastraMCPClient {
829
829
  constructor(args) {
830
830
  super(args);
831
- this.logger.warn(
832
- "[DEPRECATION] MastraMCPClient is deprecated and will be removed in a future release. Please use MCPClient instead."
831
+ throw new error.MastraError(
832
+ {
833
+ id: "MASTRA_MCP_CLIENT_DEPRECATED",
834
+ domain: error.ErrorDomain.MCP,
835
+ category: error.ErrorCategory.USER,
836
+ text: "[DEPRECATION] MastraMCPClient is deprecated and will be removed in a future release. Please use MCPClient instead."
837
+ }
833
838
  );
834
839
  }
835
840
  };
@@ -1435,7 +1440,7 @@ To fix this you have three different options:
1435
1440
  * const agent = new Agent({
1436
1441
  * name: 'Multi-tool Agent',
1437
1442
  * instructions: 'You have access to weather and stock tools.',
1438
- * model: openai('gpt-4'),
1443
+ * model: 'openai/gpt-4',
1439
1444
  * tools: await mcp.getTools(), // weather_getWeather, stockPrice_getPrice
1440
1445
  * });
1441
1446
  * ```
@@ -1475,7 +1480,7 @@ To fix this you have three different options:
1475
1480
  * const agent = new Agent({
1476
1481
  * name: 'Dynamic Agent',
1477
1482
  * instructions: 'You can use tools dynamically.',
1478
- * model: openai('gpt-4'),
1483
+ * model: 'openai/gpt-4',
1479
1484
  * });
1480
1485
  *
1481
1486
  * const response = await agent.stream(prompt, {
@@ -1602,13 +1607,18 @@ var MCPConfiguration = class extends MCPClient {
1602
1607
  */
1603
1608
  constructor(args) {
1604
1609
  super(args);
1605
- this.logger.warn(
1606
- `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.`
1610
+ throw new error.MastraError(
1611
+ {
1612
+ id: "MCP_CLIENT_CONFIGURATION_DEPRECATED",
1613
+ domain: error.ErrorDomain.MCP,
1614
+ category: error.ErrorCategory.USER,
1615
+ 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."
1616
+ }
1607
1617
  );
1608
1618
  }
1609
1619
  };
1610
1620
 
1611
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/utils/stream.js
1621
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/utils/stream.js
1612
1622
  var StreamingApi = class {
1613
1623
  writer;
1614
1624
  encoder;
@@ -1675,7 +1685,7 @@ var StreamingApi = class {
1675
1685
  }
1676
1686
  };
1677
1687
 
1678
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/helper/streaming/utils.js
1688
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/helper/streaming/utils.js
1679
1689
  var isOldBunVersion = () => {
1680
1690
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
1681
1691
  if (version === void 0) {
@@ -1686,7 +1696,7 @@ var isOldBunVersion = () => {
1686
1696
  return result;
1687
1697
  };
1688
1698
 
1689
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/utils/html.js
1699
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/utils/html.js
1690
1700
  var HtmlEscapedCallbackPhase = {
1691
1701
  Stringify: 1};
1692
1702
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -1717,7 +1727,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
1717
1727
  }
1718
1728
  };
1719
1729
 
1720
- // ../../node_modules/.pnpm/hono@4.9.7/node_modules/hono/dist/helper/streaming/sse.js
1730
+ // ../../node_modules/.pnpm/hono@4.10.1/node_modules/hono/dist/helper/streaming/sse.js
1721
1731
  var SSEStreamingApi = class extends StreamingApi {
1722
1732
  constructor(writable, readable) {
1723
1733
  super(writable, readable);
@@ -2131,7 +2141,7 @@ var MCPServer = class extends mcp.MCPServerBase {
2131
2141
  * name: 'Helper',
2132
2142
  * description: 'A helpful assistant',
2133
2143
  * instructions: 'You are helpful.',
2134
- * model: openai('gpt-4o-mini'),
2144
+ * model: 'openai/gpt-4o-mini',
2135
2145
  * });
2136
2146
  *
2137
2147
  * const server = new MCPServer({