@mastra/mcp-docs-server 0.13.26 → 0.13.27

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.
Files changed (104) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +9 -9
  2. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +2 -0
  3. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +13 -13
  4. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +11 -0
  5. package/.docs/organized/changelogs/%40mastra%2Fastra.md +11 -11
  6. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +10 -10
  7. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +10 -10
  8. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +23 -23
  9. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +10 -10
  10. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +10 -10
  11. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +11 -11
  12. package/.docs/organized/changelogs/%40mastra%2Fcore.md +61 -61
  13. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +10 -10
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +24 -24
  15. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +20 -20
  16. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +20 -20
  17. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +22 -22
  18. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +45 -45
  19. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +17 -17
  20. package/.docs/organized/changelogs/%40mastra%2Fevals.md +10 -10
  21. package/.docs/organized/changelogs/%40mastra%2Flance.md +11 -11
  22. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +10 -10
  23. package/.docs/organized/changelogs/%40mastra%2Floggers.md +10 -10
  24. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +16 -16
  25. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +10 -10
  26. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +12 -12
  27. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +10 -10
  28. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +11 -11
  29. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +11 -11
  30. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +10 -10
  31. package/.docs/organized/changelogs/%40mastra%2Fpg.md +10 -10
  32. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +11 -11
  33. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +65 -65
  34. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +10 -10
  35. package/.docs/organized/changelogs/%40mastra%2Frag.md +12 -12
  36. package/.docs/organized/changelogs/%40mastra%2Freact.md +18 -0
  37. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +12 -0
  38. package/.docs/organized/changelogs/%40mastra%2Fserver.md +27 -27
  39. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +11 -11
  40. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +11 -11
  41. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +10 -10
  42. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +10 -10
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +11 -11
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +11 -11
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +11 -11
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +11 -11
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +9 -0
  48. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +14 -14
  49. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +10 -10
  50. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +10 -10
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +10 -10
  52. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +11 -11
  53. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +11 -11
  54. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +10 -10
  55. package/.docs/organized/changelogs/create-mastra.md +47 -47
  56. package/.docs/organized/changelogs/mastra.md +63 -63
  57. package/.docs/organized/code-examples/agent.md +19 -14
  58. package/.docs/organized/code-examples/heads-up-game.md +5 -5
  59. package/.docs/raw/agents/agent-memory.mdx +86 -125
  60. package/.docs/raw/agents/input-processors.mdx +3 -3
  61. package/.docs/raw/agents/output-processors.mdx +4 -4
  62. package/.docs/raw/agents/overview.mdx +11 -52
  63. package/.docs/raw/agents/using-tools-and-mcp.mdx +34 -29
  64. package/.docs/raw/deployment/serverless-platforms/vercel-deployer.mdx +18 -0
  65. package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +4 -8
  66. package/.docs/raw/getting-started/installation.mdx +2 -3
  67. package/.docs/raw/getting-started/model-providers.mdx +28 -123
  68. package/.docs/raw/memory/semantic-recall.mdx +1 -1
  69. package/.docs/raw/reference/agents/agent.mdx +1 -1
  70. package/.docs/raw/reference/agents/generate.mdx +255 -218
  71. package/.docs/raw/reference/agents/generateLegacy.mdx +528 -0
  72. package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +3 -4
  73. package/.docs/raw/reference/agents/migration-guide.mdx +291 -0
  74. package/.docs/raw/reference/client-js/agents.mdx +14 -8
  75. package/.docs/raw/reference/deployer/vercel.mdx +26 -0
  76. package/.docs/raw/reference/streaming/ChunkType.mdx +4 -4
  77. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +13 -13
  78. package/.docs/raw/reference/streaming/agents/stream.mdx +351 -178
  79. package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +515 -0
  80. package/.docs/raw/reference/{rag → vectors}/astra.mdx +2 -2
  81. package/.docs/raw/reference/{rag → vectors}/chroma.mdx +2 -2
  82. package/.docs/raw/reference/{rag → vectors}/couchbase.mdx +2 -2
  83. package/.docs/raw/reference/{rag → vectors}/lance.mdx +2 -2
  84. package/.docs/raw/reference/{rag → vectors}/libsql.mdx +2 -4
  85. package/.docs/raw/reference/{rag → vectors}/mongodb.mdx +2 -2
  86. package/.docs/raw/reference/{rag → vectors}/opensearch.mdx +2 -2
  87. package/.docs/raw/reference/{rag → vectors}/pg.mdx +2 -2
  88. package/.docs/raw/reference/{rag → vectors}/pinecone.mdx +2 -2
  89. package/.docs/raw/reference/{rag → vectors}/qdrant.mdx +2 -2
  90. package/.docs/raw/reference/{rag → vectors}/s3vectors.mdx +2 -2
  91. package/.docs/raw/reference/{rag → vectors}/turbopuffer.mdx +2 -2
  92. package/.docs/raw/reference/{rag → vectors}/upstash.mdx +2 -2
  93. package/.docs/raw/reference/{rag → vectors}/vectorize.mdx +2 -2
  94. package/.docs/raw/streaming/events.mdx +4 -4
  95. package/.docs/raw/streaming/overview.mdx +9 -11
  96. package/.docs/raw/streaming/tool-streaming.mdx +3 -3
  97. package/.docs/raw/streaming/workflow-streaming.mdx +3 -3
  98. package/CHANGELOG.md +16 -0
  99. package/package.json +5 -5
  100. package/.docs/organized/code-examples/agent-network.md +0 -322
  101. package/.docs/raw/getting-started/model-capability.mdx +0 -11
  102. package/.docs/raw/reference/agents/generateVNext.mdx +0 -557
  103. package/.docs/raw/reference/agents/getDefaultVNextStreamOptions.mdx +0 -67
  104. package/.docs/raw/reference/streaming/agents/streamVNext.mdx +0 -673
@@ -1,5 +1,67 @@
1
1
  # mastra
2
2
 
3
+ ## 0.14.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
8
+
9
+ ### Patch Changes
10
+
11
+ - Remove log drains UI from the playground ([#8379](https://github.com/mastra-ai/mastra/pull/8379))
12
+
13
+ - add refetch interval to traces to make it feel "instant" ([#8386](https://github.com/mastra-ai/mastra/pull/8386))
14
+
15
+ - better memory message ([#8382](https://github.com/mastra-ai/mastra/pull/8382))
16
+
17
+ - Add doc url to netlify gateway ([#8356](https://github.com/mastra-ai/mastra/pull/8356))
18
+
19
+ - fix codeblock line number color contrast for legacy traces ([#8385](https://github.com/mastra-ai/mastra/pull/8385))
20
+
21
+ - Model router documentation and playground UI improvements ([#8372](https://github.com/mastra-ai/mastra/pull/8372))
22
+
23
+ **Documentation generation (`@mastra/core`):**
24
+ - Fixed inverted dynamic model selection logic in provider examples
25
+ - Improved copy: replaced marketing language with action-oriented descriptions
26
+ - Added generated file comments with timestamps to all MDX outputs so maintainers know not to directly edit generated files
27
+
28
+ **Playground UI model picker (`@mastra/playground-ui`):**
29
+ - Fixed provider field clearing when typing in model input
30
+ - Added responsive layout (stacks on mobile, side-by-side on desktop)
31
+ - Improved general styling of provider/model pickers
32
+
33
+ **Environment variables (`@mastra/deployer`):**
34
+ - Properly handle array of env vars (e.g., NETLIFY_TOKEN, NETLIFY_SITE_ID)
35
+ - Added correct singular/plural handling for "environment variable(s)"
36
+
37
+ - fix playground message history initial state for v1 models ([#8427](https://github.com/mastra-ai/mastra/pull/8427))
38
+
39
+ - show thread list in desc order ([#8381](https://github.com/mastra-ai/mastra/pull/8381))
40
+
41
+ - Fix an issue preventing showing working memory and semantic recall in the playground ([#8358](https://github.com/mastra-ai/mastra/pull/8358))
42
+
43
+ - Fix shell option breaking server start on windows env ([#8377](https://github.com/mastra-ai/mastra/pull/8377))
44
+
45
+ - Add observe strean to get streans after workflow has been interrupted ([#8318](https://github.com/mastra-ai/mastra/pull/8318))
46
+
47
+ - Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`989a4db`](https://github.com/mastra-ai/mastra/commit/989a4dbbaf07a2794d0e1863714c6d10f1244d6b), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`03622f8`](https://github.com/mastra-ai/mastra/commit/03622f86e9d7342197f80f95333ea3ff65c783ae), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
48
+ - @mastra/core@0.20.0-alpha.0
49
+ - @mastra/deployer@0.20.0-alpha.0
50
+ - @mastra/mcp@0.13.3-alpha.0
51
+ - @mastra/loggers@0.10.15-alpha.0
52
+
53
+ ## 0.13.4
54
+
55
+ ### Patch Changes
56
+
57
+ - disable network label when memory is not enabled OR the agent has no subagents ([#8341](https://github.com/mastra-ai/mastra/pull/8341))
58
+
59
+ - Added Mastra model router to Playground UI ([#8332](https://github.com/mastra-ai/mastra/pull/8332))
60
+
61
+ - Updated dependencies [[`4a70ccc`](https://github.com/mastra-ai/mastra/commit/4a70ccc5cfa12ae9c2b36545a5814cd98e5a0ead), [`0992b8b`](https://github.com/mastra-ai/mastra/commit/0992b8bf0f4f1ba7ad9940883ec4bb8d867d3105), [`283bea0`](https://github.com/mastra-ai/mastra/commit/283bea07adbaf04a27fa3ad2df611095e0825195)]:
62
+ - @mastra/core@0.19.1
63
+ - @mastra/deployer@0.19.1
64
+
3
65
  ## 0.13.4-alpha.1
4
66
 
5
67
  ### Patch Changes
@@ -236,67 +298,5 @@
236
298
 
237
299
  - Playground ui -pass runtimeContext to client SDK get methods ([#7767](https://github.com/mastra-ai/mastra/pull/7767))
238
300
 
239
- - fix markdown rendering in agent in agent text-delta ([#7851](https://github.com/mastra-ai/mastra/pull/7851))
240
-
241
- - fix error message when fetching observability things ([#7956](https://github.com/mastra-ai/mastra/pull/7956))
242
-
243
- - fix workflows runs fetching and displaying ([#7852](https://github.com/mastra-ai/mastra/pull/7852))
244
-
245
- - fix empty state for scorers on agent page ([#7846](https://github.com/mastra-ai/mastra/pull/7846))
246
-
247
- - Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`b1c155b`](https://github.com/mastra-ai/mastra/commit/b1c155b57ce702674f207f1d4c6a4ebf94225f44), [`790f7d1`](https://github.com/mastra-ai/mastra/commit/790f7d17895d7a5f75b6b5d2d794c2e820b99d4c), [`3cd6538`](https://github.com/mastra-ai/mastra/commit/3cd6538811fc94f84a19dbd1064f46cb42e38c1d), [`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`fb84c21`](https://github.com/mastra-ai/mastra/commit/fb84c21859d09bdc8f158bd5412bdc4b5835a61c), [`5802bf5`](https://github.com/mastra-ai/mastra/commit/5802bf57f6182e4b67c28d7d91abed349a8d14f3), [`5bda53a`](https://github.com/mastra-ai/mastra/commit/5bda53a9747bfa7d876d754fc92c83a06e503f62), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`f26a8fd`](https://github.com/mastra-ai/mastra/commit/f26a8fd99fcb0497a5d86c28324430d7f6a5fb83), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382), [`7e82fbf`](https://github.com/mastra-ai/mastra/commit/7e82fbf3715175e274d2015eb59fb7f57dc9b09d), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`6047778`](https://github.com/mastra-ai/mastra/commit/6047778e501df460648f31decddf8e443f36e373), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`9d4fc09`](https://github.com/mastra-ai/mastra/commit/9d4fc09b2ad55caa7738c7ceb3a905e454f74cdd), [`05c7abf`](https://github.com/mastra-ai/mastra/commit/05c7abfe105a015b7760c9bf33ff4419727502a0), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`d75ccf0`](https://github.com/mastra-ai/mastra/commit/d75ccf06dfd2582b916aa12624e3cd61b279edf1), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`60c9cec`](https://github.com/mastra-ai/mastra/commit/60c9cec7048a79a87440f7840c383875bd710d93), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6c33d7f`](https://github.com/mastra-ai/mastra/commit/6c33d7f7242804c32e969ad3ab33ff4a6aebda8b), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`aee4f00`](https://github.com/mastra-ai/mastra/commit/aee4f00e61e1a42e81a6d74ff149dbe69e32695a), [`f0ab020`](https://github.com/mastra-ai/mastra/commit/f0ab02034532a4afb71a1ef4fe243f9a8dffde84), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4), [`897995e`](https://github.com/mastra-ai/mastra/commit/897995e630d572fe2891e7ede817938cabb43251), [`0fed8f2`](https://github.com/mastra-ai/mastra/commit/0fed8f2aa84b167b3415ea6f8f70755775132c8d), [`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689), [`1a1fbe6`](https://github.com/mastra-ai/mastra/commit/1a1fbe66efb7d94abc373ed0dd9676adb8122454), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`87fd07f`](https://github.com/mastra-ai/mastra/commit/87fd07ff35387a38728967163460231b5d33ae3b), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`36f39c0`](https://github.com/mastra-ai/mastra/commit/36f39c00dc794952dc3c11aab91c2fa8bca74b11), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
248
- - @mastra/core@0.17.0
249
- - @mastra/deployer@0.17.0
250
- - @mastra/loggers@0.10.12
251
- - @mastra/mcp@0.13.0
252
-
253
- ## 0.13.0-alpha.5
254
-
255
- ### Patch Changes
256
-
257
- - fix error message when fetching observability things ([#7956](https://github.com/mastra-ai/mastra/pull/7956))
258
-
259
- - Updated dependencies [[`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689)]:
260
- - @mastra/core@0.17.0-alpha.7
261
- - @mastra/deployer@0.17.0-alpha.7
262
-
263
- ## 0.13.0-alpha.4
264
-
265
- ### Patch Changes
266
-
267
- - clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
268
-
269
- - fix scorers table link full row ([#7915](https://github.com/mastra-ai/mastra/pull/7915))
270
-
271
- - adjust the way we display scorers in agent metadata ([#7910](https://github.com/mastra-ai/mastra/pull/7910))
272
-
273
- - Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6c33d7f`](https://github.com/mastra-ai/mastra/commit/6c33d7f7242804c32e969ad3ab33ff4a6aebda8b), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e)]:
274
- - @mastra/core@0.17.0-alpha.6
275
- - @mastra/deployer@0.17.0-alpha.6
276
- - @mastra/loggers@0.10.12-alpha.1
277
- - @mastra/mcp@0.13.0-alpha.2
278
-
279
- ## 0.13.0-alpha.3
280
-
281
- ### Patch Changes
282
-
283
- - update playground workflows to use createRunAsync instead of createRun ([#7903](https://github.com/mastra-ai/mastra/pull/7903))
284
-
285
- - Updated dependencies [[`6047778`](https://github.com/mastra-ai/mastra/commit/6047778e501df460648f31decddf8e443f36e373)]:
286
- - @mastra/core@0.17.0-alpha.5
287
- - @mastra/deployer@0.17.0-alpha.5
288
-
289
- ## 0.13.0-alpha.2
290
-
291
- ### Patch Changes
292
-
293
- - Updated dependencies [[`fb84c21`](https://github.com/mastra-ai/mastra/commit/fb84c21859d09bdc8f158bd5412bdc4b5835a61c), [`9d4fc09`](https://github.com/mastra-ai/mastra/commit/9d4fc09b2ad55caa7738c7ceb3a905e454f74cdd), [`d75ccf0`](https://github.com/mastra-ai/mastra/commit/d75ccf06dfd2582b916aa12624e3cd61b279edf1), [`0fed8f2`](https://github.com/mastra-ai/mastra/commit/0fed8f2aa84b167b3415ea6f8f70755775132c8d), [`87fd07f`](https://github.com/mastra-ai/mastra/commit/87fd07ff35387a38728967163460231b5d33ae3b)]:
294
- - @mastra/core@0.17.0-alpha.4
295
- - @mastra/mcp@0.13.0-alpha.1
296
- - @mastra/deployer@0.17.0-alpha.4
297
-
298
- ## 0.13.0-alpha.1
299
-
300
- ### Minor Changes
301
301
 
302
- ... 5829 more lines hidden. See full changelog in package directory.
302
+ ... 5891 more lines hidden. See full changelog in package directory.
@@ -180,7 +180,7 @@ const agent = mastra.getAgent('chefAgent');
180
180
  const responsesAgent = mastra.getAgent('chefAgentResponses');
181
181
  const agentThatHarassesYou = mastra.getAgent('agentThatHarassesYou');
182
182
 
183
- const stream = await agentThatHarassesYou.streamVNext('I want to fight you');
183
+ const stream = await agentThatHarassesYou.stream('I want to fight you');
184
184
 
185
185
  for await (const chunk of stream.textStream) {
186
186
  console.log(`frontend received chunk: ${chunk}`);
@@ -737,13 +737,13 @@ export const chefModelV2Agent = new Agent({
737
737
  You explain cooking steps clearly and offer substitutions when needed, maintaining a friendly and encouraging tone throughout.
738
738
  `,
739
739
  model: 'netlify/openai/gpt-4.1',
740
- // tools: {
741
- // cookingTool,
742
- // weatherInfo,
743
- // },
744
- // workflows: {
745
- // myWorkflow,
746
- // },
740
+ tools: {
741
+ cookingTool,
742
+ weatherInfo,
743
+ },
744
+ workflows: {
745
+ myWorkflow,
746
+ },
747
747
  scorers: ({ mastra }) => {
748
748
  if (!mastra) {
749
749
  throw new Error('Mastra not found');
@@ -754,7 +754,7 @@ export const chefModelV2Agent = new Agent({
754
754
  scorer1: { scorer: scorer1, sampling: { rate: 1, type: 'ratio' } },
755
755
  };
756
756
  },
757
- // memory,
757
+ memory,
758
758
  });
759
759
 
760
760
  const weatherAgent = new Agent({
@@ -762,8 +762,8 @@ const weatherAgent = new Agent({
762
762
  instructions: `You are a weather agent that can help you get weather information for a given city`,
763
763
  description: `An agent that can help you get weather information for a given city`,
764
764
  model: openai_v5('gpt-4o-mini'),
765
- workflows: {
766
- myWorkflow,
765
+ tools: {
766
+ weatherInfo,
767
767
  },
768
768
  });
769
769
 
@@ -836,9 +836,14 @@ export const mastra = new Mastra({
836
836
  scorers: {
837
837
  testScorer,
838
838
  },
839
- // telemetry: {
840
- // enabled: false,
841
- // }
839
+ telemetry: {
840
+ enabled: false,
841
+ },
842
+ observability: {
843
+ default: {
844
+ enabled: true,
845
+ },
846
+ },
842
847
  });
843
848
 
844
849
  ```
@@ -7,15 +7,15 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@ai-sdk/openai": "^1.3.23",
10
- "@mastra/core": "^0.18.0",
11
- "@mastra/libsql": "^0.14.3",
12
- "@mastra/loggers": "^0.10.13",
13
- "@mastra/memory": "^0.15.3",
10
+ "@mastra/core": "^0.19.1",
11
+ "@mastra/libsql": "^0.15.0",
12
+ "@mastra/loggers": "^0.10.14",
13
+ "@mastra/memory": "^0.15.4",
14
14
  "zod": "^3.25.76"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/node": "^24.3.0",
18
- "mastra": "^0.13.2",
18
+ "mastra": "^0.13.4",
19
19
  "typescript": "^5.9.2"
20
20
  }
21
21
  }
@@ -7,190 +7,151 @@ description: Documentation on how agents in Mastra use memory to store conversat
7
7
 
8
8
  Agents in Mastra can leverage a powerful memory system to store conversation history, recall relevant information, and maintain persistent context across interactions. This allows agents to have more natural, stateful conversations.
9
9
 
10
- ## Enabling Memory for an Agent
10
+ ## Enabling memory for an agent
11
11
 
12
- To enable memory, simply instantiate the `Memory` class and pass it to your agent's configuration. You also need to install the memory package and a storage adapter:
12
+ To enable memory, instantiate the `Memory` class and pass it to your agent's configuration using the `memory` parameter. You also need to install the memory package and a storage adapter:
13
13
 
14
14
  ```bash npm2yarn copy
15
15
  npm install @mastra/memory@latest @mastra/libsql@latest
16
16
  ```
17
17
 
18
- ```typescript
18
+ ```typescript {2-3, 10-14} filename="src/mastra/agents/test-agent.ts" showLineNumbers copy
19
19
  import { Agent } from "@mastra/core/agent";
20
20
  import { Memory } from "@mastra/memory";
21
21
  import { LibSQLStore } from "@mastra/libsql";
22
22
  import { openai } from "@ai-sdk/openai";
23
23
 
24
- const memory = new Memory({
25
- storage: new LibSQLStore({
26
- url: "file:../../memory.db",
27
- }),
28
- });
29
-
30
- const agent = new Agent({
31
- name: "MyMemoryAgent",
24
+ export const testAgent = new Agent({
25
+ name: "test-agent",
32
26
  instructions: "You are a helpful assistant with memory.",
33
27
  model: openai("gpt-4o"),
34
- memory, // Attach the memory instance
28
+ memory: new Memory({
29
+ storage: new LibSQLStore({
30
+ url: "file:../../memory.db"
31
+ })
32
+ })
35
33
  });
36
34
  ```
37
35
 
38
- This basic setup uses the default settings. Visit the [Memory documentation](/docs/memory/overview) for more configuration info.
36
+ This basic setup uses the default settings. Visit the [Memory documentation](../memory/overview.mdx) for more configuration info.
37
+
38
+ ## Memory in agent calls
39
+
40
+ When calling `.generate()` or `.stream()`, include a `memory` object with both `resource` and `thread` to enable memory.
39
41
 
40
- ## Dynamic Memory Configuration
42
+ - `resource`: A stable identifier for the user or entity.
43
+ - `thread`: An ID that isolates a specific conversation or session.
44
+
45
+ These fields tell the agent where to store and retrieve context, enabling persistent, thread-aware memory across interactions.
46
+
47
+ ```typescript {3-4}
48
+ const response = await testAgent.generate("Remember my favorite color is blue.", {
49
+ memory: {
50
+ resource: "user_alice",
51
+ thread: "preferences_thread",
52
+ }
53
+ });
54
+ ```
41
55
 
42
- Similar to how you can configure dynamic [instructions, models, and tools](./dynamic-agents.mdx), you can also configure memory dynamically using runtime context. This allows you to:
56
+ To recall information stored in memory, call the agent with the same `resource` and `thread` values used in the original interaction.
43
57
 
44
- - Use different memory systems based on user tiers or preferences
45
- - Switch between memory configurations for different environments
46
- - Enable or disable memory features based on feature flags
47
- - Customize memory behavior based on user context
58
+ ```typescript {3-4}
59
+ const response = await testAgent.generate("What's my favorite color?", {
60
+ memory: {
61
+ resource: "user_alice",
62
+ thread: "preferences_thread",
63
+ }
64
+ });
65
+ ```
48
66
 
49
- ### Example: User Tier-Based Memory
67
+ ## Memory with `RuntimeContext`
50
68
 
51
- ```typescript
69
+ You can configure memory dynamically using [RuntimeContext](./runtime-context.mdx), just like `instructions`, `models`, and `tools`. This gives you fine-grained control over memory behavior. For example, you can select different memory systems per user, enable features conditionally, or adapt configurations across environments.
70
+
71
+ ### Agent configuration
72
+
73
+ ```typescript {18-20} filename="src/mastra/agents/test-agent.ts" showLineNumbers copy
52
74
  import { Agent } from "@mastra/core/agent";
53
75
  import { Memory } from "@mastra/memory";
54
76
  import { LibSQLStore } from "@mastra/libsql";
55
- import { PostgresStore } from "@mastra/pg";
56
77
  import { openai } from "@ai-sdk/openai";
57
78
 
58
- // Create different memory instances for different user tiers
59
79
  const premiumMemory = new Memory({
60
- storage: new LibSQLStore({ url: "file:premium.db" }),
61
- options: {
62
- semanticRecall: { topK: 10, messageRange: 5 }, // More context for premium users
63
- workingMemory: { enabled: true },
64
- },
80
+ // ...
65
81
  });
66
82
 
67
83
  const standardMemory = new Memory({
68
- storage: new LibSQLStore({ url: "file:standard.db" }),
69
- options: {
70
- semanticRecall: { topK: 3, messageRange: 2 }, // Basic recall for standard users
71
- workingMemory: { enabled: false },
72
- },
84
+ // ...
73
85
  });
74
86
 
75
- const agent = new Agent({
76
- name: "TieredMemoryAgent",
87
+ export const testAgent = new Agent({
88
+ name: "test-agent",
77
89
  instructions: "You are a helpful assistant with tiered memory capabilities.",
78
90
  model: openai("gpt-4o"),
79
91
  memory: ({ runtimeContext }) => {
80
92
  const userTier = runtimeContext.get("userTier");
81
93
  return userTier === "premium" ? premiumMemory : standardMemory;
82
- },
83
- });
84
- ```
85
-
86
- ### Example: Environment-Based Memory
87
-
88
- ```typescript
89
- const agent = new Agent({
90
- name: "EnvironmentAwareAgent",
91
- instructions: "You are a helpful assistant.",
92
- model: openai("gpt-4o"),
93
- memory: ({ runtimeContext }) => {
94
- const environment = runtimeContext.get("environment");
95
-
96
- if (environment === "test") {
97
- // Use local storage for testing
98
- return new Memory({
99
- storage: new LibSQLStore({ url: ":memory:" }),
100
- options: {
101
- workingMemory: { enabled: true },
102
- },
103
- });
104
- } else if (environment === "production") {
105
- // Use production database
106
- return new Memory({
107
- storage: new PostgresStore({ connectionString: process.env.PRODUCTION_DB_URL }),
108
- options: {
109
- workingMemory: { enabled: true },
110
- },
111
- });
112
- }
113
-
114
- // Development environment
115
- return new Memory({
116
- storage: new LibSQLStore({ url: "file:dev.db" }),
117
- });
118
- },
119
- });
120
- ```
121
-
122
- ### Example: Async Memory Configuration
123
-
124
- ```typescript
125
- const agent = new Agent({
126
- name: "AsyncMemoryAgent",
127
- instructions: "You are a helpful assistant.",
128
- model: openai("gpt-4o"),
129
- memory: async ({ runtimeContext }) => {
130
- const userId = runtimeContext.get("userId");
131
-
132
- // Simulate async memory setup (e.g., database lookup)
133
- await new Promise(resolve => setTimeout(resolve, 10));
134
-
135
- return new Memory({
136
- storage: new LibSQLStore({
137
- url: `file:user_${userId}.db`
138
- }),
139
- });
140
- },
94
+ }
141
95
  });
142
96
  ```
143
97
 
144
- ### Using Dynamic Memory
98
+ ### Agent usage
145
99
 
146
- When using dynamic memory, pass the runtime context to your agent calls:
100
+ Pass a configured `RuntimeContext` instance to an agent to enable conditional logic during execution. This allows the agent to adapt its behavior based on runtime values.
147
101
 
148
- ```typescript
102
+ ```typescript {1,4,6, 13} showLineNumbers copy
149
103
  import { RuntimeContext } from "@mastra/core/runtime-context";
150
104
 
151
- // Create runtime context with user information
105
+ const testAgent = mastra.getAgent("testAgent");
152
106
  const runtimeContext = new RuntimeContext();
107
+
153
108
  runtimeContext.set("userTier", "premium");
154
- runtimeContext.set("environment", "production");
155
109
 
156
- // Use the agent with runtime context
157
- const response = await agent.generate("Remember my favorite color is blue.", {
110
+ const response = await testAgent.generate("Remember my favorite color is blue.", {
158
111
  memory: {
159
112
  resource: "user_alice",
160
- thread: { id: "preferences_thread" },
113
+ thread: { id: "preferences_thread" }
161
114
  },
162
- runtimeContext, // Pass the runtime context
115
+ runtimeContext
163
116
  });
164
117
  ```
165
118
 
166
- ## Using Memory in Agent Calls
167
119
 
168
- To utilize memory during interactions, you **must** provide a `memory` object with `resource` and `thread` properties when calling the agent's `stream()` or `generate()` methods.
120
+ ## Async memory configuration
169
121
 
170
- - `resource`: Typically identifies the user or entity (e.g., `user_123`).
171
- - `thread`: Identifies a specific conversation thread (e.g., `support_chat_456`).
122
+ Memory can be configured asynchronously to support use cases like fetching user-specific settings from a database, validating access with Auth, or loading additional data from a remote service.
172
123
 
173
- ```typescript
174
- // Example agent call using memory
175
- await agent.stream("Remember my favorite color is blue.", {
176
- memory: {
177
- resource: "user_alice",
178
- thread: "preferences_thread",
179
- },
124
+ ```typescript {18, 22} filename="src/mastra/agents/test-agent.ts" showLineNumbers copy
125
+ import { Agent } from "@mastra/core/agent";
126
+ import { Memory } from "@mastra/memory";
127
+ import { LibSQLStore } from "@mastra/libsql";
128
+ import { openai } from "@ai-sdk/openai";
129
+
130
+ const premiumMemory = new Memory({
131
+ // ...
180
132
  });
181
133
 
182
- // Later in the same thread...
183
- const response = await agent.stream("What's my favorite color?", {
184
- memory: {
185
- resource: "user_alice",
186
- thread: "preferences_thread",
187
- },
134
+ const standardMemory = new Memory({
135
+ // ...
188
136
  });
189
- // Agent will use memory to recall the favorite color.
190
- ```
191
137
 
192
- These IDs ensure that conversation history and context are correctly stored and retrieved for the appropriate user and conversation.
138
+ export const testAgent = new Agent({
139
+ name: "test-agent",
140
+ instructions: "You are a helpful assistant with tiered memory capabilities.",
141
+ model: openai("gpt-4o"),
142
+ memory: async ({ runtimeContext }) => {
143
+ const userId = runtimeContext.get("userId");
144
+
145
+ // Example database lookup using `userId`
146
+ const userTier = await query(`SELECT user_tier FROM users WHERE userId = $1`, [userId]);
147
+
148
+ return userTier === "premium" ? premiumMemory : standardMemory;
149
+ }
150
+ });
151
+ ```
193
152
 
194
- ## Next Steps
153
+ ## Related
195
154
 
196
- Keep exploring Mastra's [memory capabilities](/docs/memory/overview) like threads, conversation history, semantic recall, and working memory.
155
+ - [Working Memory](../memory/working-memory.mdx)
156
+ - [Semantic Recall](../memory/semantic-recall.mdx)
157
+ - [Threads and Resources](../memory/threads-and-resources.mdx)
@@ -262,14 +262,14 @@ When creating custom processors:
262
262
 
263
263
  ## Integration with Agent Methods
264
264
 
265
- Input processors work with the `generate()`, `stream()`, and `streamVNext()` methods. The entire processor pipeline completes before the agent begins generating or streaming a response.
265
+ Input processors work with the `generate()` and `stream()` methods. The entire processor pipeline completes before the agent begins generating or streaming a response.
266
266
 
267
267
  ```typescript copy showLineNumbers
268
268
  // Processors run before generate()
269
269
  const result = await agent.generate('Hello');
270
270
 
271
- // Processors also run before streamVNext()
272
- const stream = await agent.streamVNext('Hello');
271
+ // Processors also run before stream()
272
+ const stream = await agent.stream('Hello');
273
273
  for await (const chunk of stream) {
274
274
  console.log(chunk);
275
275
  }
@@ -259,7 +259,7 @@ When creating custom output processors:
259
259
 
260
260
  ## Integration with Agent Methods
261
261
 
262
- Output processors work with both `generate()` and `streamVNext()` methods. The processor pipeline completes after the agent generates a response but before it's returned to the user.
262
+ Output processors work with both `generate()` and `stream()` methods. The processor pipeline completes after the agent generates a response but before it's returned to the user.
263
263
 
264
264
  ```typescript copy showLineNumbers
265
265
  // Processors run after generate() but before returning result
@@ -267,8 +267,8 @@ const result = await agent.generate('Hello');
267
267
  console.log(result.text); // Processed text
268
268
  console.log(result.object); // Structured data if applicable
269
269
 
270
- // Processors also run during streamVNext() for each part
271
- const stream = await agent.streamVNext('Hello');
270
+ // Processors also run during stream() for each part
271
+ const stream = await agent.stream('Hello');
272
272
  for await (const part of stream) {
273
273
  console.log(part); // Processed parts
274
274
  }
@@ -287,7 +287,7 @@ const result = await agent.generate('Hello', {
287
287
  });
288
288
 
289
289
  // Same for streaming
290
- const stream = await agent.streamVNext('Hello', {
290
+ const stream = await agent.stream('Hello', {
291
291
  outputProcessors: [
292
292
  new TokenLimiterProcessor({ maxTokens: 500 }),
293
293
  ],