@mastra/mcp 0.0.0-storage-20250225005900

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.
@@ -0,0 +1,19 @@
1
+
2
+ 
3
+ > @mastra/mcp@0.2.4-alpha.0 build /Users/ward/projects/mastra/mastra/packages/mcp
4
+ > tsup src/index.ts --format esm --experimental-dts --clean --treeshake
5
+
6
+ CLI Building entry: src/index.ts
7
+ CLI Using tsconfig: tsconfig.json
8
+ CLI tsup v8.3.6
9
+ TSC Build start
10
+ TSC ⚡️ Build success in 3268ms
11
+ DTS Build start
12
+ CLI Target: es2022
13
+ Analysis will use the bundled TypeScript version 5.7.3
14
+ Writing package typings: /Users/ward/projects/mastra/mastra/packages/mcp/dist/_tsup-dts-rollup.d.ts
15
+ DTS ⚡️ Build success in 1425ms
16
+ CLI Cleaning output folder
17
+ ESM Build start
18
+ ESM dist/index.js 2.19 KB
19
+ ESM ⚡️ Build success in 75ms
package/CHANGELOG.md ADDED
@@ -0,0 +1,695 @@
1
+ # @mastra/mcp
2
+
3
+ ## 0.0.0-storage-20250225005900
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7fceae1]
8
+ - Updated dependencies [f626fbb]
9
+ - Updated dependencies [8db2a28]
10
+ - @mastra/core@0.0.0-storage-20250225005900
11
+
12
+ ## 0.2.4-alpha.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies [7fceae1]
17
+ - Updated dependencies [f626fbb]
18
+ - @mastra/core@0.4.2-alpha.0
19
+
20
+ ## 0.2.3
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [ce44b9b]
25
+ - Updated dependencies [967da43]
26
+ - Updated dependencies [b405f08]
27
+ - @mastra/core@0.4.1
28
+
29
+ ## 0.2.2
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [2fc618f]
34
+ - Updated dependencies [fe0fd01]
35
+ - @mastra/core@0.4.0
36
+
37
+ ## 0.2.2-alpha.1
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [fe0fd01]
42
+ - @mastra/core@0.4.0-alpha.1
43
+
44
+ ## 0.2.2-alpha.0
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies [2fc618f]
49
+ - @mastra/core@0.4.0-alpha.0
50
+
51
+ ## 0.2.1
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [f205ede]
56
+ - @mastra/core@0.3.0
57
+
58
+ ## 0.2.0
59
+
60
+ ### Minor Changes
61
+
62
+ - 5b7d6fa: Added support for SSE MCP servers in the Mastra MCP client
63
+
64
+ ## 0.2.0-alpha.0
65
+
66
+ ### Minor Changes
67
+
68
+ - 5b7d6fa: Added support for SSE MCP servers in the Mastra MCP client
69
+
70
+ ## 0.1.1
71
+
72
+ ### Patch Changes
73
+
74
+ - 91ef439: Add eslint and ran autofix
75
+ - Updated dependencies [d59f1a8]
76
+ - Updated dependencies [91ef439]
77
+ - Updated dependencies [4a25be4]
78
+ - Updated dependencies [bf2e88f]
79
+ - Updated dependencies [2f0d707]
80
+ - Updated dependencies [aac1667]
81
+ - @mastra/core@0.2.1
82
+
83
+ ## 0.1.1-alpha.0
84
+
85
+ ### Patch Changes
86
+
87
+ - 91ef439: Add eslint and ran autofix
88
+ - Updated dependencies [d59f1a8]
89
+ - Updated dependencies [91ef439]
90
+ - Updated dependencies [4a25be4]
91
+ - Updated dependencies [bf2e88f]
92
+ - Updated dependencies [2f0d707]
93
+ - Updated dependencies [aac1667]
94
+ - @mastra/core@0.2.1-alpha.0
95
+
96
+ ## 0.1.0
97
+
98
+ ### Minor Changes
99
+
100
+ - 5916f9d: Update deps from fixed to ^
101
+ - 8b416d9: Breaking changes
102
+
103
+ ### Patch Changes
104
+
105
+ - e18cb18: MCP client
106
+ - bdaf834: publish packages
107
+ - b97ca96: Tracing into default storage
108
+ - 8468b7f: @mastra/mcp tsup bundling
109
+ - 9c10484: update all packages
110
+ - 70dabd9: Fix broken publish
111
+ - 0d5a03d: Vector store modules
112
+ - 9625602: Use mastra core splitted bundles in other packages
113
+ - 4f1d1a1: Enforce types ann cleanup package.json
114
+ - Updated dependencies [f537e33]
115
+ - Updated dependencies [6f2c0f5]
116
+ - Updated dependencies [e4d4ede]
117
+ - Updated dependencies [0be7181]
118
+ - Updated dependencies [dd6d87f]
119
+ - Updated dependencies [9029796]
120
+ - Updated dependencies [6fa4bd2]
121
+ - Updated dependencies [f031a1f]
122
+ - Updated dependencies [8151f44]
123
+ - Updated dependencies [d7d465a]
124
+ - Updated dependencies [4d4f6b6]
125
+ - Updated dependencies [73d112c]
126
+ - Updated dependencies [592e3cf]
127
+ - Updated dependencies [9d1796d]
128
+ - Updated dependencies [e897f1c]
129
+ - Updated dependencies [4a54c82]
130
+ - Updated dependencies [3967e69]
131
+ - Updated dependencies [8ae2bbc]
132
+ - Updated dependencies [e9d1b47]
133
+ - Updated dependencies [016493a]
134
+ - Updated dependencies [bc40916]
135
+ - Updated dependencies [93a3719]
136
+ - Updated dependencies [7d83b92]
137
+ - Updated dependencies [9fb3039]
138
+ - Updated dependencies [d5e12de]
139
+ - Updated dependencies [e1dd94a]
140
+ - Updated dependencies [07c069d]
141
+ - Updated dependencies [5cdfb88]
142
+ - Updated dependencies [837a288]
143
+ - Updated dependencies [685108a]
144
+ - Updated dependencies [c8ff2f5]
145
+ - Updated dependencies [5fdc87c]
146
+ - Updated dependencies [ae7bf94]
147
+ - Updated dependencies [8e7814f]
148
+ - Updated dependencies [66a03ec]
149
+ - Updated dependencies [7d87a15]
150
+ - Updated dependencies [b97ca96]
151
+ - Updated dependencies [23dcb23]
152
+ - Updated dependencies [033eda6]
153
+ - Updated dependencies [8105fae]
154
+ - Updated dependencies [e097800]
155
+ - Updated dependencies [1944807]
156
+ - Updated dependencies [30322ce]
157
+ - Updated dependencies [1874f40]
158
+ - Updated dependencies [685108a]
159
+ - Updated dependencies [f7d1131]
160
+ - Updated dependencies [79acad0]
161
+ - Updated dependencies [7a19083]
162
+ - Updated dependencies [382f4dc]
163
+ - Updated dependencies [1ebd071]
164
+ - Updated dependencies [0b74006]
165
+ - Updated dependencies [2f17a5f]
166
+ - Updated dependencies [f368477]
167
+ - Updated dependencies [7892533]
168
+ - Updated dependencies [9c10484]
169
+ - Updated dependencies [b726bf5]
170
+ - Updated dependencies [70dabd9]
171
+ - Updated dependencies [21fe536]
172
+ - Updated dependencies [176bc42]
173
+ - Updated dependencies [401a4d9]
174
+ - Updated dependencies [2e099d2]
175
+ - Updated dependencies [0b826f6]
176
+ - Updated dependencies [d68b532]
177
+ - Updated dependencies [75bf3f0]
178
+ - Updated dependencies [e6d8055]
179
+ - Updated dependencies [e2e76de]
180
+ - Updated dependencies [ccbc581]
181
+ - Updated dependencies [5950de5]
182
+ - Updated dependencies [fe3dcb0]
183
+ - Updated dependencies [78eec7c]
184
+ - Updated dependencies [a8a459a]
185
+ - Updated dependencies [0be7181]
186
+ - Updated dependencies [7b87567]
187
+ - Updated dependencies [b524c22]
188
+ - Updated dependencies [d7d465a]
189
+ - Updated dependencies [df843d3]
190
+ - Updated dependencies [4534e77]
191
+ - Updated dependencies [d6d8159]
192
+ - Updated dependencies [0bd142c]
193
+ - Updated dependencies [9625602]
194
+ - Updated dependencies [72d1990]
195
+ - Updated dependencies [f6ba259]
196
+ - Updated dependencies [2712098]
197
+ - Updated dependencies [eedb829]
198
+ - Updated dependencies [5285356]
199
+ - Updated dependencies [74b3078]
200
+ - Updated dependencies [cb290ee]
201
+ - Updated dependencies [b4d7416]
202
+ - Updated dependencies [e608d8c]
203
+ - Updated dependencies [06b2c0a]
204
+ - Updated dependencies [002d6d8]
205
+ - Updated dependencies [e448a26]
206
+ - Updated dependencies [8b416d9]
207
+ - Updated dependencies [fd494a3]
208
+ - Updated dependencies [dc90663]
209
+ - Updated dependencies [c872875]
210
+ - Updated dependencies [3c4488b]
211
+ - Updated dependencies [a7b016d]
212
+ - Updated dependencies [fd75f3c]
213
+ - Updated dependencies [7f24c29]
214
+ - Updated dependencies [2017553]
215
+ - Updated dependencies [a10b7a3]
216
+ - Updated dependencies [cf6d825]
217
+ - Updated dependencies [963c15a]
218
+ - Updated dependencies [7365b6c]
219
+ - Updated dependencies [5ee67d3]
220
+ - Updated dependencies [d38f7a6]
221
+ - Updated dependencies [38b7f66]
222
+ - Updated dependencies [2fa7f53]
223
+ - Updated dependencies [1420ae2]
224
+ - Updated dependencies [f6da688]
225
+ - Updated dependencies [3700be1]
226
+ - Updated dependencies [9ade36e]
227
+ - Updated dependencies [10870bc]
228
+ - Updated dependencies [2b01511]
229
+ - Updated dependencies [a870123]
230
+ - Updated dependencies [ccf115c]
231
+ - Updated dependencies [04434b6]
232
+ - Updated dependencies [5811de6]
233
+ - Updated dependencies [9f3ab05]
234
+ - Updated dependencies [66a5392]
235
+ - Updated dependencies [4b1ce2c]
236
+ - Updated dependencies [14064f2]
237
+ - Updated dependencies [f5dfa20]
238
+ - Updated dependencies [327ece7]
239
+ - Updated dependencies [da2e8d3]
240
+ - Updated dependencies [95a4697]
241
+ - Updated dependencies [d5fccfb]
242
+ - Updated dependencies [3427b95]
243
+ - Updated dependencies [538a136]
244
+ - Updated dependencies [e66643a]
245
+ - Updated dependencies [b5393f1]
246
+ - Updated dependencies [d2cd535]
247
+ - Updated dependencies [c2dd6b5]
248
+ - Updated dependencies [67637ba]
249
+ - Updated dependencies [836f4e3]
250
+ - Updated dependencies [5ee2e78]
251
+ - Updated dependencies [cd02c56]
252
+ - Updated dependencies [01502b0]
253
+ - Updated dependencies [16e5b04]
254
+ - Updated dependencies [d9c8dd0]
255
+ - Updated dependencies [9fb59d6]
256
+ - Updated dependencies [a9345f9]
257
+ - Updated dependencies [99f1847]
258
+ - Updated dependencies [04f3171]
259
+ - Updated dependencies [8769a62]
260
+ - Updated dependencies [d5ec619]
261
+ - Updated dependencies [27275c9]
262
+ - Updated dependencies [ae7bf94]
263
+ - Updated dependencies [4f1d1a1]
264
+ - Updated dependencies [ee4de15]
265
+ - Updated dependencies [202d404]
266
+ - Updated dependencies [a221426]
267
+ - @mastra/core@0.2.0
268
+
269
+ ## 0.1.0-alpha.52
270
+
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies [016493a]
274
+ - Updated dependencies [382f4dc]
275
+ - Updated dependencies [176bc42]
276
+ - Updated dependencies [d68b532]
277
+ - Updated dependencies [fe3dcb0]
278
+ - Updated dependencies [e448a26]
279
+ - Updated dependencies [fd75f3c]
280
+ - Updated dependencies [ccf115c]
281
+ - Updated dependencies [a221426]
282
+ - @mastra/core@0.2.0-alpha.110
283
+
284
+ ## 0.1.0-alpha.51
285
+
286
+ ### Patch Changes
287
+
288
+ - Updated dependencies [d5fccfb]
289
+ - @mastra/core@0.2.0-alpha.109
290
+
291
+ ## 0.1.0-alpha.50
292
+
293
+ ### Patch Changes
294
+
295
+ - Updated dependencies [5ee67d3]
296
+ - Updated dependencies [95a4697]
297
+ - @mastra/core@0.2.0-alpha.108
298
+
299
+ ## 0.1.0-alpha.49
300
+
301
+ ### Patch Changes
302
+
303
+ - Updated dependencies [66a5392]
304
+ - @mastra/core@0.2.0-alpha.107
305
+
306
+ ## 0.1.0-alpha.48
307
+
308
+ ### Patch Changes
309
+
310
+ - Updated dependencies [6f2c0f5]
311
+ - Updated dependencies [a8a459a]
312
+ - @mastra/core@0.2.0-alpha.106
313
+
314
+ ## 0.1.0-alpha.47
315
+
316
+ ### Patch Changes
317
+
318
+ - Updated dependencies [1420ae2]
319
+ - Updated dependencies [99f1847]
320
+ - @mastra/core@0.2.0-alpha.105
321
+
322
+ ## 0.1.0-alpha.46
323
+
324
+ ### Patch Changes
325
+
326
+ - b97ca96: Tracing into default storage
327
+ - Updated dependencies [5fdc87c]
328
+ - Updated dependencies [b97ca96]
329
+ - Updated dependencies [72d1990]
330
+ - Updated dependencies [cf6d825]
331
+ - Updated dependencies [10870bc]
332
+ - @mastra/core@0.2.0-alpha.104
333
+
334
+ ## 0.1.0-alpha.45
335
+
336
+ ### Patch Changes
337
+
338
+ - Updated dependencies [4534e77]
339
+ - @mastra/core@0.2.0-alpha.103
340
+
341
+ ## 0.1.0-alpha.44
342
+
343
+ ### Patch Changes
344
+
345
+ - Updated dependencies [a9345f9]
346
+ - @mastra/core@0.2.0-alpha.102
347
+
348
+ ## 0.1.0-alpha.43
349
+
350
+ ### Patch Changes
351
+
352
+ - 4f1d1a1: Enforce types ann cleanup package.json
353
+ - Updated dependencies [66a03ec]
354
+ - Updated dependencies [4f1d1a1]
355
+ - @mastra/core@0.2.0-alpha.101
356
+
357
+ ## 0.1.0-alpha.42
358
+
359
+ ### Patch Changes
360
+
361
+ - Updated dependencies [9d1796d]
362
+ - @mastra/core@0.2.0-alpha.100
363
+
364
+ ## 0.1.0-alpha.41
365
+
366
+ ### Patch Changes
367
+
368
+ - Updated dependencies [7d83b92]
369
+ - @mastra/core@0.2.0-alpha.99
370
+
371
+ ## 0.1.0-alpha.40
372
+
373
+ ### Patch Changes
374
+
375
+ - 70dabd9: Fix broken publish
376
+ - Updated dependencies [70dabd9]
377
+ - Updated dependencies [202d404]
378
+ - @mastra/core@0.2.0-alpha.98
379
+
380
+ ## 0.1.0-alpha.39
381
+
382
+ ### Patch Changes
383
+
384
+ - Updated dependencies [07c069d]
385
+ - Updated dependencies [7892533]
386
+ - Updated dependencies [e6d8055]
387
+ - Updated dependencies [5950de5]
388
+ - Updated dependencies [df843d3]
389
+ - Updated dependencies [a870123]
390
+ - @mastra/core@0.2.0-alpha.97
391
+
392
+ ## 0.1.0-alpha.38
393
+
394
+ ### Patch Changes
395
+
396
+ - Updated dependencies [74b3078]
397
+ - @mastra/core@0.2.0-alpha.96
398
+
399
+ ## 0.1.0-alpha.37
400
+
401
+ ### Patch Changes
402
+
403
+ - Updated dependencies [9fb59d6]
404
+ - @mastra/core@0.2.0-alpha.95
405
+
406
+ ## 0.1.0-alpha.36
407
+
408
+ ### Minor Changes
409
+
410
+ - 8b416d9: Breaking changes
411
+
412
+ ### Patch Changes
413
+
414
+ - 9c10484: update all packages
415
+ - Updated dependencies [9c10484]
416
+ - Updated dependencies [8b416d9]
417
+ - @mastra/core@0.2.0-alpha.94
418
+
419
+ ## 0.1.0-alpha.35
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies [5285356]
424
+ - @mastra/core@0.2.0-alpha.93
425
+
426
+ ## 0.1.0-alpha.34
427
+
428
+ ### Patch Changes
429
+
430
+ - Updated dependencies [4d4f6b6]
431
+ - @mastra/core@0.2.0-alpha.92
432
+
433
+ ## 0.1.0-alpha.33
434
+
435
+ ### Patch Changes
436
+
437
+ - Updated dependencies [d7d465a]
438
+ - Updated dependencies [d7d465a]
439
+ - Updated dependencies [2017553]
440
+ - Updated dependencies [a10b7a3]
441
+ - Updated dependencies [16e5b04]
442
+ - @mastra/core@0.2.0-alpha.91
443
+
444
+ ## 0.1.0-alpha.32
445
+
446
+ ### Patch Changes
447
+
448
+ - Updated dependencies [8151f44]
449
+ - Updated dependencies [e897f1c]
450
+ - Updated dependencies [3700be1]
451
+ - @mastra/core@0.2.0-alpha.90
452
+
453
+ ## 0.1.0-alpha.31
454
+
455
+ ### Patch Changes
456
+
457
+ - Updated dependencies [27275c9]
458
+ - @mastra/core@0.2.0-alpha.89
459
+
460
+ ## 0.1.0-alpha.30
461
+
462
+ ### Patch Changes
463
+
464
+ - Updated dependencies [ccbc581]
465
+ - @mastra/core@0.2.0-alpha.88
466
+
467
+ ## 0.1.0-alpha.29
468
+
469
+ ### Patch Changes
470
+
471
+ - Updated dependencies [7365b6c]
472
+ - @mastra/core@0.2.0-alpha.87
473
+
474
+ ## 0.1.0-alpha.28
475
+
476
+ ### Minor Changes
477
+
478
+ - 5916f9d: Update deps from fixed to ^
479
+
480
+ ### Patch Changes
481
+
482
+ - Updated dependencies [6fa4bd2]
483
+ - Updated dependencies [e2e76de]
484
+ - Updated dependencies [7f24c29]
485
+ - Updated dependencies [67637ba]
486
+ - Updated dependencies [04f3171]
487
+ - @mastra/core@0.2.0-alpha.86
488
+
489
+ ## 0.0.1-alpha.27
490
+
491
+ ### Patch Changes
492
+
493
+ - Updated dependencies [e9d1b47]
494
+ - @mastra/core@0.2.0-alpha.85
495
+
496
+ ## 0.0.1-alpha.26
497
+
498
+ ### Patch Changes
499
+
500
+ - Updated dependencies [2f17a5f]
501
+ - Updated dependencies [cb290ee]
502
+ - Updated dependencies [b4d7416]
503
+ - Updated dependencies [38b7f66]
504
+ - @mastra/core@0.2.0-alpha.84
505
+
506
+ ## 0.0.1-alpha.25
507
+
508
+ ### Patch Changes
509
+
510
+ - 9625602: Use mastra core splitted bundles in other packages
511
+ - Updated dependencies [30322ce]
512
+ - Updated dependencies [78eec7c]
513
+ - Updated dependencies [9625602]
514
+ - Updated dependencies [8769a62]
515
+ - @mastra/core@0.2.0-alpha.83
516
+
517
+ ## 0.0.1-alpha.24
518
+
519
+ ### Patch Changes
520
+
521
+ - Updated dependencies [73d112c]
522
+ - @mastra/core@0.1.27-alpha.82
523
+
524
+ ## 0.0.1-alpha.23
525
+
526
+ ### Patch Changes
527
+
528
+ - Updated dependencies [9fb3039]
529
+ - @mastra/core@0.1.27-alpha.81
530
+
531
+ ## 0.0.1-alpha.22
532
+
533
+ ### Patch Changes
534
+
535
+ - Updated dependencies [327ece7]
536
+ - @mastra/core@0.1.27-alpha.80
537
+
538
+ ## 0.0.1-alpha.21
539
+
540
+ ### Patch Changes
541
+
542
+ - Updated dependencies [21fe536]
543
+ - @mastra/core@0.1.27-alpha.79
544
+
545
+ ## 0.0.1-alpha.20
546
+
547
+ ### Patch Changes
548
+
549
+ - Updated dependencies [685108a]
550
+ - Updated dependencies [685108a]
551
+ - @mastra/core@0.1.27-alpha.78
552
+
553
+ ## 0.0.1-alpha.19
554
+
555
+ ### Patch Changes
556
+
557
+ - 8468b7f: @mastra/mcp tsup bundling
558
+ - Updated dependencies [8105fae]
559
+ - @mastra/core@0.1.27-alpha.77
560
+
561
+ ## 0.0.1-alpha.18
562
+
563
+ ### Patch Changes
564
+
565
+ - Updated dependencies [ae7bf94]
566
+ - Updated dependencies [ae7bf94]
567
+ - @mastra/core@0.1.27-alpha.76
568
+
569
+ ## 0.0.1-alpha.17
570
+
571
+ ### Patch Changes
572
+
573
+ - Updated dependencies [23dcb23]
574
+ - @mastra/core@0.1.27-alpha.75
575
+
576
+ ## 0.0.1-alpha.16
577
+
578
+ ### Patch Changes
579
+
580
+ - Updated dependencies [7b87567]
581
+ - @mastra/core@0.1.27-alpha.74
582
+
583
+ ## 0.0.1-alpha.15
584
+
585
+ ### Patch Changes
586
+
587
+ - Updated dependencies [3427b95]
588
+ - @mastra/core@0.1.27-alpha.73
589
+
590
+ ## 0.0.1-alpha.14
591
+
592
+ ### Patch Changes
593
+
594
+ - Updated dependencies [e4d4ede]
595
+ - Updated dependencies [06b2c0a]
596
+ - @mastra/core@0.1.27-alpha.72
597
+
598
+ ## 0.0.1-alpha.13
599
+
600
+ ### Patch Changes
601
+
602
+ - Updated dependencies [d9c8dd0]
603
+ - @mastra/core@0.1.27-alpha.71
604
+
605
+ ## 0.0.1-alpha.12
606
+
607
+ ### Patch Changes
608
+
609
+ - bdaf834: publish packages
610
+
611
+ ## 0.0.1-alpha.11
612
+
613
+ ### Patch Changes
614
+
615
+ - Updated dependencies [dd6d87f]
616
+ - Updated dependencies [04434b6]
617
+ - @mastra/core@0.1.27-alpha.70
618
+
619
+ ## 0.0.1-alpha.10
620
+
621
+ ### Patch Changes
622
+
623
+ - 0d5a03d: Vector store modules
624
+
625
+ ## 0.0.1-alpha.9
626
+
627
+ ### Patch Changes
628
+
629
+ - Updated dependencies [1944807]
630
+ - Updated dependencies [9ade36e]
631
+ - @mastra/core@0.1.27-alpha.69
632
+
633
+ ## 0.0.1-alpha.8
634
+
635
+ ### Patch Changes
636
+
637
+ - Updated dependencies [0be7181]
638
+ - Updated dependencies [0be7181]
639
+ - @mastra/core@0.1.27-alpha.68
640
+
641
+ ## 0.0.1-alpha.7
642
+
643
+ ### Patch Changes
644
+
645
+ - Updated dependencies [c8ff2f5]
646
+ - @mastra/core@0.1.27-alpha.67
647
+
648
+ ## 0.0.1-alpha.6
649
+
650
+ ### Patch Changes
651
+
652
+ - Updated dependencies [14064f2]
653
+ - @mastra/core@0.1.27-alpha.66
654
+
655
+ ## 0.0.1-alpha.5
656
+
657
+ ### Patch Changes
658
+
659
+ - Updated dependencies [e66643a]
660
+ - @mastra/core@0.1.27-alpha.65
661
+
662
+ ## 0.0.1-alpha.4
663
+
664
+ ### Patch Changes
665
+
666
+ - Updated dependencies [f368477]
667
+ - Updated dependencies [d5ec619]
668
+ - @mastra/core@0.1.27-alpha.64
669
+
670
+ ## 0.0.1-alpha.3
671
+
672
+ ### Patch Changes
673
+
674
+ - Updated dependencies [e097800]
675
+ - @mastra/core@0.1.27-alpha.63
676
+
677
+ ## 0.0.1-alpha.2
678
+
679
+ ### Patch Changes
680
+
681
+ - Updated dependencies [93a3719]
682
+ - @mastra/core@0.1.27-alpha.62
683
+
684
+ ## 0.0.1-alpha.1
685
+
686
+ ### Patch Changes
687
+
688
+ - Updated dependencies [dc90663]
689
+ - @mastra/core@0.1.27-alpha.61
690
+
691
+ ## 0.0.1-alpha.0
692
+
693
+ ### Patch Changes
694
+
695
+ - e18cb18: MCP client
package/LICENSE ADDED
@@ -0,0 +1,44 @@
1
+ Elastic License 2.0 (ELv2)
2
+
3
+ **Acceptance**
4
+ By using the software, you agree to all of the terms and conditions below.
5
+
6
+ **Copyright License**
7
+ The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
8
+
9
+ **Limitations**
10
+ You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
11
+
12
+ You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
13
+
14
+ You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
15
+
16
+ **Patents**
17
+ The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
18
+
19
+ **Notices**
20
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
21
+
22
+ If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
23
+
24
+ **No Other Rights**
25
+ These terms do not imply any licenses other than those expressly granted in these terms.
26
+
27
+ **Termination**
28
+ If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
29
+
30
+ **No Liability**
31
+ As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
32
+
33
+ **Definitions**
34
+ The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
35
+
36
+ _you_ refers to the individual or entity agreeing to these terms.
37
+
38
+ _your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
39
+
40
+ _your licenses_ are all the licenses granted to you for the software under these terms.
41
+
42
+ _use_ means anything you do with the software requiring one of your licenses.
43
+
44
+ _trademark_ means trademarks, service marks, and similar rights.
package/README.md ADDED
@@ -0,0 +1,133 @@
1
+ # @mastra/mcp
2
+
3
+ Model Context Protocol (MCP) client implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @mastra/mcp
9
+ ```
10
+
11
+ ## Overview
12
+
13
+ The `@mastra/mcp` package provides a client implementation for the Model Context Protocol (MCP), enabling Mastra to communicate with MCP-compatible AI models and tools. It wraps the official `@modelcontextprotocol/sdk` and provides Mastra-specific functionality.
14
+
15
+ ## Usage
16
+
17
+ ```typescript
18
+ import { MastraMCPClient } from '@mastra/mcp';
19
+
20
+ // Create a client with stdio server
21
+ const stdioClient = new MastraMCPClient({
22
+ name: 'my-stdio-client',
23
+ version: '1.0.0', // optional
24
+ server: {
25
+ command: 'your-mcp-server-command',
26
+ args: ['--your', 'args'],
27
+ },
28
+ capabilities: {}, // optional ClientCapabilities
29
+ });
30
+
31
+ // Or create a client with SSE server
32
+ const sseClient = new MastraMCPClient({
33
+ name: 'my-sse-client',
34
+ version: '1.0.0',
35
+ server: {
36
+ url: new URL('https://your-mcp-server.com/sse'),
37
+ requestInit: {
38
+ headers: { 'Authorization': 'Bearer your-token' }
39
+ }
40
+ }
41
+ });
42
+
43
+ // Connect to the MCP server
44
+ await client.connect();
45
+
46
+ // List available resources
47
+ const resources = await client.resources();
48
+
49
+ // Get available tools
50
+ const tools = await client.tools();
51
+
52
+ // Disconnect when done
53
+ await client.disconnect();
54
+ ```
55
+
56
+ ## Configuration
57
+
58
+ ### Required Parameters
59
+
60
+ - `name`: Name of the MCP client instance
61
+ - `server`: Either a StdioServerParameters or SSEClientParameters object:
62
+
63
+ #### StdioServerParameters
64
+ - `command`: Command to start the MCP server
65
+ - `args`: Array of command arguments
66
+
67
+ #### SSEClientParameters
68
+ - `url`: URL instance pointing to the SSE server
69
+ - `requestInit`: Optional fetch request configuration
70
+ - `eventSourceInit`: Optional EventSource configuration
71
+
72
+ ### Optional Parameters
73
+
74
+ - `version`: Client version (default: '1.0.0')
75
+ - `capabilities`: ClientCapabilities object for specifying supported features
76
+
77
+ ## Features
78
+
79
+ - Standard MCP client implementation
80
+ - Automatic tool conversion to Mastra format
81
+ - Resource discovery and management
82
+ - Multiple transport layers:
83
+ - Stdio-based for local servers
84
+ - SSE-based for remote servers
85
+ - Automatic error handling and logging
86
+ - Tool execution with context
87
+
88
+ ## Methods
89
+
90
+ ### `connect()`
91
+
92
+ Establishes connection with the MCP server.
93
+
94
+ ### `disconnect()`
95
+
96
+ Closes the connection with the MCP server.
97
+
98
+ ### `resources()`
99
+
100
+ Lists available resources from the MCP server.
101
+
102
+ ### `tools()`
103
+
104
+ Retrieves and converts MCP tools to Mastra-compatible format.
105
+
106
+ ## Tool Conversion
107
+
108
+ The package automatically converts MCP tools to Mastra's format:
109
+
110
+ ```typescript
111
+ const tools = await client.tools();
112
+ // Returns: { [toolName: string]: MastraTool }
113
+
114
+ // Each tool includes:
115
+ // - Converted JSON schema
116
+ // - Mastra-compatible execution wrapper
117
+ // - Error handling
118
+ // - Automatic context passing
119
+ ```
120
+
121
+ ## Error Handling
122
+
123
+ The client includes comprehensive error handling:
124
+
125
+ - Connection errors
126
+ - Tool execution errors
127
+ - Resource listing errors
128
+ - Schema conversion errors
129
+
130
+ ## Related Links
131
+
132
+ - [Model Context Protocol Specification](https://github.com/modelcontextprotocol/spec)
133
+ - [@modelcontextprotocol/sdk Documentation](https://github.com/modelcontextprotocol/sdk)
@@ -0,0 +1,28 @@
1
+ import type { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { Protocol } from '@modelcontextprotocol/sdk/shared/protocol.js';
3
+ import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
4
+ import type { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
5
+
6
+ declare class MastraMCPClient {
7
+ name: string;
8
+ private transport;
9
+ private client;
10
+ constructor({ name, version, server, capabilities, }: {
11
+ name: string;
12
+ server: StdioServerParameters | SSEClientParameters;
13
+ capabilities?: ClientCapabilities;
14
+ version?: string;
15
+ });
16
+ connect(): Promise<void>;
17
+ disconnect(): Promise<void>;
18
+ resources(): Promise<ReturnType<Protocol<any, any, any>['request']>>;
19
+ tools(): Promise<Record<string, any>>;
20
+ }
21
+ export { MastraMCPClient }
22
+ export { MastraMCPClient as MastraMCPClient_alias_1 }
23
+
24
+ declare type SSEClientParameters = {
25
+ url: URL;
26
+ } & ConstructorParameters<typeof SSEClientTransport>[1];
27
+
28
+ export { }
@@ -0,0 +1 @@
1
+ export { MastraMCPClient_alias_1 as MastraMCPClient } from './_tsup-dts-rollup.js';
package/dist/index.js ADDED
@@ -0,0 +1,79 @@
1
+ import { createTool } from '@mastra/core/tools';
2
+ import { jsonSchemaToModel } from '@mastra/core/utils';
3
+ import { Client } from '@modelcontextprotocol/sdk/client/index.js';
4
+ import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
5
+ import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
6
+ import { ListResourcesResultSchema } from '@modelcontextprotocol/sdk/types.js';
7
+
8
+ // src/client.ts
9
+ var MastraMCPClient = class {
10
+ name;
11
+ transport;
12
+ client;
13
+ constructor({
14
+ name,
15
+ version = "1.0.0",
16
+ server,
17
+ capabilities = {}
18
+ }) {
19
+ this.name = name;
20
+ if (`url` in server) {
21
+ this.transport = new SSEClientTransport(server.url, {
22
+ requestInit: server.requestInit,
23
+ eventSourceInit: server.eventSourceInit
24
+ });
25
+ } else {
26
+ this.transport = new StdioClientTransport(server);
27
+ }
28
+ this.client = new Client(
29
+ {
30
+ name,
31
+ version
32
+ },
33
+ {
34
+ capabilities
35
+ }
36
+ );
37
+ }
38
+ async connect() {
39
+ return await this.client.connect(this.transport);
40
+ }
41
+ async disconnect() {
42
+ return await this.client.close();
43
+ }
44
+ // TODO: do the type magic to return the right method type. Right now we get infinitely deep infered type errors from Zod without using "any"
45
+ async resources() {
46
+ return await this.client.request({ method: "resources/list" }, ListResourcesResultSchema);
47
+ }
48
+ async tools() {
49
+ const { tools } = await this.client.listTools();
50
+ const toolsRes = {};
51
+ tools.forEach((tool) => {
52
+ const s = jsonSchemaToModel(tool.inputSchema);
53
+ const mastraTool = createTool({
54
+ id: `${this.name}_${tool.name}`,
55
+ description: tool.description,
56
+ inputSchema: s,
57
+ execute: async ({ context }) => {
58
+ try {
59
+ const res = await this.client.callTool({
60
+ name: tool.name,
61
+ arguments: context
62
+ });
63
+ return res;
64
+ } catch (e) {
65
+ console.log("Error calling tool", tool.name);
66
+ console.error(e);
67
+ throw e;
68
+ }
69
+ }
70
+ });
71
+ if (tool.name) {
72
+ toolsRes[tool.name] = mastraTool;
73
+ }
74
+ });
75
+ return toolsRes;
76
+ }
77
+ };
78
+
79
+ export { MastraMCPClient };
@@ -0,0 +1,6 @@
1
+ import { createConfig } from '@internal/lint/eslint';
2
+
3
+ const config = await createConfig();
4
+
5
+ /** @type {import("eslint").Linter.Config[]} */
6
+ export default [...config];
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@mastra/mcp",
3
+ "version": "0.0.0-storage-20250225005900",
4
+ "description": "",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "./package.json": "./package.json"
16
+ },
17
+ "keywords": [],
18
+ "author": "",
19
+ "license": "ISC",
20
+ "dependencies": {
21
+ "@modelcontextprotocol/sdk": "^1.1.1",
22
+ "date-fns": "^4.1.0",
23
+ "zod": "^3.24.1",
24
+ "@mastra/core": "^0.0.0-storage-20250225005900"
25
+ },
26
+ "devDependencies": {
27
+ "@ai-sdk/anthropic": "^1.1.6",
28
+ "@microsoft/api-extractor": "^7.49.2",
29
+ "@types/node": "^22.13.1",
30
+ "tsup": "^8.0.1",
31
+ "typescript": "^5.7.3",
32
+ "vitest": "^3.0.4",
33
+ "eslint": "^9.20.1",
34
+ "@internal/lint": "0.0.0"
35
+ },
36
+ "scripts": {
37
+ "build": "tsup src/index.ts --format esm --experimental-dts --clean --treeshake",
38
+ "build:watch": "pnpm build --watch",
39
+ "test": "vitest run",
40
+ "lint": "eslint ."
41
+ }
42
+ }
@@ -0,0 +1,51 @@
1
+ import { anthropic } from '@ai-sdk/anthropic';
2
+ import { Agent } from '@mastra/core/agent';
3
+ import { describe, it, expect, beforeAll, afterAll } from 'vitest';
4
+
5
+ import { MastraMCPClient } from './client.js';
6
+
7
+ const everArtClient = new MastraMCPClient({
8
+ name: 'everart',
9
+ server: {
10
+ command: '/usr/local/bin/docker',
11
+ args: ['run', '-i', '--rm', '--network=host', '-e', 'EVERART_API_KEY', 'mcp/everart'],
12
+ env: {
13
+ EVERART_API_KEY: process.env.EVERART_API_KEY!,
14
+ },
15
+ },
16
+ });
17
+
18
+ const agent = new Agent({
19
+ name: 'everart',
20
+ instructions: 'You are my artist. Include the url in your response.',
21
+ model: anthropic('claude-3-5-sonnet-20241022'),
22
+ });
23
+
24
+ describe.skip('MastraMCPClient', () => {
25
+ beforeAll(async () => {
26
+ await everArtClient.connect();
27
+ });
28
+
29
+ afterAll(async () => {
30
+ await everArtClient.disconnect();
31
+ });
32
+
33
+ it('Converting tools into Mastra', async () => {
34
+ const list = await everArtClient.resources();
35
+
36
+ expect(list.resources.length).toBeGreaterThan(0);
37
+
38
+ // The MCP server tools are now available to your Mastra Agents
39
+ const tools = await everArtClient.tools();
40
+
41
+ const response = await agent.generate('Can you make me a picture of a dog?', {
42
+ toolsets: {
43
+ everart: tools,
44
+ },
45
+ });
46
+
47
+ console.log(response.text);
48
+
49
+ expect(Object.keys(tools).length).toBeGreaterThan(0);
50
+ }, 50000);
51
+ });
package/src/client.ts ADDED
@@ -0,0 +1,99 @@
1
+ import { createTool } from '@mastra/core/tools';
2
+ import { jsonSchemaToModel } from '@mastra/core/utils';
3
+ import { Client } from '@modelcontextprotocol/sdk/client/index.js';
4
+ import { SSEClientTransport } from '@modelcontextprotocol/sdk/client/sse.js';
5
+ import { StdioClientTransport } from '@modelcontextprotocol/sdk/client/stdio.js';
6
+ import type { StdioServerParameters } from '@modelcontextprotocol/sdk/client/stdio.js';
7
+ import type { Protocol } from '@modelcontextprotocol/sdk/shared/protocol.js';
8
+ import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
9
+ import type { ClientCapabilities } from '@modelcontextprotocol/sdk/types.js';
10
+ import { ListResourcesResultSchema } from '@modelcontextprotocol/sdk/types.js';
11
+
12
+ type SSEClientParameters = {
13
+ url: URL;
14
+ } & ConstructorParameters<typeof SSEClientTransport>[1];
15
+
16
+ export class MastraMCPClient {
17
+ name: string;
18
+ private transport: Transport;
19
+ private client: Client;
20
+ constructor({
21
+ name,
22
+ version = '1.0.0',
23
+ server,
24
+ capabilities = {},
25
+ }: {
26
+ name: string;
27
+ server: StdioServerParameters | SSEClientParameters;
28
+ capabilities?: ClientCapabilities;
29
+ version?: string;
30
+ }) {
31
+ this.name = name;
32
+
33
+ if (`url` in server) {
34
+ this.transport = new SSEClientTransport(server.url, {
35
+ requestInit: server.requestInit,
36
+ eventSourceInit: server.eventSourceInit,
37
+ });
38
+ } else {
39
+ this.transport = new StdioClientTransport(server);
40
+ }
41
+
42
+ this.client = new Client(
43
+ {
44
+ name,
45
+ version,
46
+ },
47
+ {
48
+ capabilities,
49
+ },
50
+ );
51
+ }
52
+
53
+ async connect() {
54
+ return await this.client.connect(this.transport);
55
+ }
56
+
57
+ async disconnect() {
58
+ return await this.client.close();
59
+ }
60
+
61
+ // TODO: do the type magic to return the right method type. Right now we get infinitely deep infered type errors from Zod without using "any"
62
+
63
+ async resources(): Promise<ReturnType<Protocol<any, any, any>['request']>> {
64
+ return await this.client.request({ method: 'resources/list' }, ListResourcesResultSchema);
65
+ }
66
+
67
+ async tools() {
68
+ const { tools } = await this.client.listTools();
69
+ const toolsRes: Record<string, any> = {};
70
+ tools.forEach(tool => {
71
+ const s = jsonSchemaToModel(tool.inputSchema);
72
+ const mastraTool = createTool({
73
+ id: `${this.name}_${tool.name}`,
74
+ description: tool.description,
75
+ inputSchema: s,
76
+ execute: async ({ context }) => {
77
+ try {
78
+ const res = await this.client.callTool({
79
+ name: tool.name,
80
+ arguments: context,
81
+ });
82
+
83
+ return res;
84
+ } catch (e) {
85
+ console.log('Error calling tool', tool.name);
86
+ console.error(e);
87
+ throw e;
88
+ }
89
+ },
90
+ });
91
+
92
+ if (tool.name) {
93
+ toolsRes[tool.name] = mastraTool;
94
+ }
95
+ });
96
+
97
+ return toolsRes;
98
+ }
99
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './client';
package/tsconfig.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "../../tsconfig.node.json",
3
+ "include": ["src/**/*"],
4
+ "exclude": ["node_modules", "**/*.test.ts"]
5
+ }
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'vitest/config';
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ globals: true,
6
+ include: ['src/**/*.test.ts'],
7
+ },
8
+ });