@mastra/mcp-docs-server 0.13.30 → 0.13.31

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 (88) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +4 -0
  2. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +15 -15
  3. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +4 -0
  4. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +22 -22
  5. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +48 -6
  6. package/.docs/organized/changelogs/%40mastra%2Fastra.md +16 -16
  7. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +16 -16
  8. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +16 -16
  9. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +28 -28
  10. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +16 -16
  11. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +16 -16
  12. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +16 -16
  13. package/.docs/organized/changelogs/%40mastra%2Fcore.md +120 -120
  14. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +17 -17
  15. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +37 -37
  16. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +41 -41
  17. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +41 -41
  18. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +41 -41
  19. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +65 -65
  20. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +16 -16
  21. package/.docs/organized/changelogs/%40mastra%2Fevals.md +33 -33
  22. package/.docs/organized/changelogs/%40mastra%2Flance.md +16 -16
  23. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +16 -16
  24. package/.docs/organized/changelogs/%40mastra%2Floggers.md +17 -17
  25. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +23 -23
  26. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +16 -16
  27. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +16 -16
  28. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +30 -30
  29. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +16 -16
  30. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +16 -16
  31. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +16 -16
  32. package/.docs/organized/changelogs/%40mastra%2Fpg.md +41 -41
  33. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +16 -16
  34. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +71 -71
  35. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +16 -16
  36. package/.docs/organized/changelogs/%40mastra%2Frag.md +16 -16
  37. package/.docs/organized/changelogs/%40mastra%2Freact.md +41 -0
  38. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +15 -0
  39. package/.docs/organized/changelogs/%40mastra%2Fserver.md +37 -37
  40. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +16 -16
  41. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +19 -19
  42. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +16 -16
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +17 -17
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +16 -16
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +16 -16
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +16 -16
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +17 -17
  48. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +15 -0
  49. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +16 -16
  50. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +16 -16
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +16 -16
  52. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +17 -17
  53. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +16 -16
  54. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +16 -16
  55. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +16 -16
  56. package/.docs/organized/changelogs/create-mastra.md +41 -41
  57. package/.docs/organized/changelogs/mastra.md +73 -73
  58. package/.docs/organized/code-examples/heads-up-game.md +5 -5
  59. package/.docs/raw/agents/agent-memory.mdx +1 -1
  60. package/.docs/raw/agents/networks.mdx +0 -2
  61. package/.docs/raw/agents/overview.mdx +71 -38
  62. package/.docs/raw/agents/using-tools.mdx +1 -1
  63. package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +284 -266
  64. package/.docs/raw/reference/agents/generate.mdx +13 -5
  65. package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +1 -1
  66. package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +2 -2
  67. package/.docs/raw/reference/agents/getInstructions.mdx +1 -1
  68. package/.docs/raw/reference/agents/getLLM.mdx +1 -1
  69. package/.docs/raw/reference/agents/getMemory.mdx +1 -1
  70. package/.docs/raw/reference/agents/getModel.mdx +1 -1
  71. package/.docs/raw/reference/agents/getScorers.mdx +1 -1
  72. package/.docs/raw/reference/cli/create-mastra.mdx +16 -0
  73. package/.docs/raw/reference/cli/mastra.mdx +7 -1
  74. package/.docs/raw/reference/streaming/ChunkType.mdx +1 -1
  75. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +1 -2
  76. package/.docs/raw/reference/streaming/agents/stream.mdx +18 -10
  77. package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +2 -2
  78. package/.docs/raw/reference/tools/create-tool.mdx +1 -1
  79. package/.docs/raw/reference/tools/graph-rag-tool.mdx +2 -2
  80. package/.docs/raw/reference/tools/vector-query-tool.mdx +2 -2
  81. package/.docs/raw/reference/vectors/pg.mdx +83 -2
  82. package/.docs/raw/server-db/runtime-context.mdx +4 -2
  83. package/.docs/raw/streaming/events.mdx +108 -0
  84. package/.docs/raw/streaming/overview.mdx +41 -1
  85. package/.docs/raw/tools-mcp/overview.mdx +2 -38
  86. package/.docs/raw/workflows/overview.mdx +137 -229
  87. package/CHANGELOG.md +14 -0
  88. package/package.json +4 -4
@@ -1,5 +1,77 @@
1
1
  # mastra
2
2
 
3
+ ## 0.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - - Remove the `mastra deploy` CLI command. Use the deploy instructions of your individual platform. ([#8798](https://github.com/mastra-ai/mastra/pull/8798))
8
+ - Remove `--env` flag from `mastra build` command
9
+ - Remove `--port` flag from `mastra dev`. Use `server.port` on the `new Mastra()` class instead.
10
+ - Validate `--components` and `--llm` flags for `mastra create` and `mastra init`
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
15
+ - @mastra/deployer@0.21.1
16
+ - @mastra/core@0.21.1
17
+
18
+ ## 0.17.0-alpha.0
19
+
20
+ ### Minor Changes
21
+
22
+ - - Remove the `mastra deploy` CLI command. Use the deploy instructions of your individual platform. ([#8798](https://github.com/mastra-ai/mastra/pull/8798))
23
+ - Remove `--env` flag from `mastra build` command
24
+ - Remove `--port` flag from `mastra dev`. Use `server.port` on the `new Mastra()` class instead.
25
+ - Validate `--components` and `--llm` flags for `mastra create` and `mastra init`
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
30
+ - @mastra/deployer@0.21.1-alpha.0
31
+ - @mastra/core@0.21.1-alpha.0
32
+
33
+ ## 0.16.0
34
+
35
+ ### Minor Changes
36
+
37
+ - Update peer dependencies to match core package version bump (0.21.0) ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
38
+
39
+ ### Patch Changes
40
+
41
+ - Use model-router in create-mastra starter template ([#8631](https://github.com/mastra-ai/mastra/pull/8631))
42
+
43
+ - Fix typo in playground causing semantic recall to always be false when enabled. ([#8640](https://github.com/mastra-ai/mastra/pull/8640))
44
+
45
+ - Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
46
+
47
+ - Create unified Sidebar component to use on Playground and Cloud ([#8655](https://github.com/mastra-ai/mastra/pull/8655))
48
+
49
+ - Use only zod validation in dynamic form ([#8802](https://github.com/mastra-ai/mastra/pull/8802))
50
+
51
+ - Add support for --debug options to build/dev commands to add more logging ([#8792](https://github.com/mastra-ai/mastra/pull/8792))
52
+
53
+ - Add div wrapper around entity tables to fix table vertical position ([#8758](https://github.com/mastra-ai/mastra/pull/8758))
54
+
55
+ - Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
56
+
57
+ - Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
58
+
59
+ - Customize AITraces type to seamlessly work on Cloud too ([#8759](https://github.com/mastra-ai/mastra/pull/8759))
60
+
61
+ - Refactor EntryList component and Scorer and Observability pages ([#8652](https://github.com/mastra-ai/mastra/pull/8652))
62
+
63
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
64
+
65
+ - Improve README ([#8819](https://github.com/mastra-ai/mastra/pull/8819))
66
+
67
+ - Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
68
+
69
+ - Updated dependencies [[`0fb6616`](https://github.com/mastra-ai/mastra/commit/0fb66169600ed2a3dc1297b1bfa8a7693ebb6e3c), [`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`1dbd76a`](https://github.com/mastra-ai/mastra/commit/1dbd76aff29cc764d3a1ac7bb01172fe59cb5992), [`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c), [`ca5a01f`](https://github.com/mastra-ai/mastra/commit/ca5a01f0dd4dabdbfde3beeaf92c7333e0f9bb39), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8), [`2ddb851`](https://github.com/mastra-ai/mastra/commit/2ddb8519c4b6f1d31be10ffd33b41d2b649a04ff), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`dfe856f`](https://github.com/mastra-ai/mastra/commit/dfe856f7f60ff4765b75930e7b5d82dd0f0f7d89), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`e0e1cf1`](https://github.com/mastra-ai/mastra/commit/e0e1cf1e37b9dc61099ab331a6d386e44b816310), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb)]:
70
+ - @mastra/deployer@0.21.0
71
+ - @mastra/core@0.21.0
72
+ - @mastra/loggers@0.10.16
73
+ - @mastra/mcp@0.13.5
74
+
3
75
  ## 0.16.0-alpha.1
4
76
 
5
77
  ### Minor Changes
@@ -226,77 +298,5 @@
226
298
  - Model router documentation and playground UI improvements ([#8372](https://github.com/mastra-ai/mastra/pull/8372))
227
299
 
228
300
  **Documentation generation (`@mastra/core`):**
229
- - Fixed inverted dynamic model selection logic in provider examples
230
- - Improved copy: replaced marketing language with action-oriented descriptions
231
- - Added generated file comments with timestamps to all MDX outputs so maintainers know not to directly edit generated files
232
-
233
- **Playground UI model picker (`@mastra/playground-ui`):**
234
- - Fixed provider field clearing when typing in model input
235
- - Added responsive layout (stacks on mobile, side-by-side on desktop)
236
- - Improved general styling of provider/model pickers
237
-
238
- **Environment variables (`@mastra/deployer`):**
239
- - Properly handle array of env vars (e.g., NETLIFY_TOKEN, NETLIFY_SITE_ID)
240
- - Added correct singular/plural handling for "environment variable(s)"
241
-
242
- - fix playground message history initial state for v1 models ([#8427](https://github.com/mastra-ai/mastra/pull/8427))
243
-
244
- - show thread list in desc order ([#8381](https://github.com/mastra-ai/mastra/pull/8381))
245
-
246
- - Fix an issue preventing showing working memory and semantic recall in the playground ([#8358](https://github.com/mastra-ai/mastra/pull/8358))
247
-
248
- - Fix shell option breaking server start on windows env ([#8377](https://github.com/mastra-ai/mastra/pull/8377))
249
-
250
- - Add observe strean to get streans after workflow has been interrupted ([#8318](https://github.com/mastra-ai/mastra/pull/8318))
251
-
252
- - 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)]:
253
- - @mastra/core@0.20.0
254
- - @mastra/deployer@0.20.0
255
- - @mastra/mcp@0.13.3
256
- - @mastra/loggers@0.10.15
257
-
258
- ## 0.14.0-alpha.0
259
-
260
- ### Minor Changes
261
-
262
- - 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))
263
-
264
- ### Patch Changes
265
-
266
- - Remove log drains UI from the playground ([#8379](https://github.com/mastra-ai/mastra/pull/8379))
267
-
268
- - add refetch interval to traces to make it feel "instant" ([#8386](https://github.com/mastra-ai/mastra/pull/8386))
269
-
270
- - better memory message ([#8382](https://github.com/mastra-ai/mastra/pull/8382))
271
-
272
- - Add doc url to netlify gateway ([#8356](https://github.com/mastra-ai/mastra/pull/8356))
273
-
274
- - fix codeblock line number color contrast for legacy traces ([#8385](https://github.com/mastra-ai/mastra/pull/8385))
275
-
276
- - Model router documentation and playground UI improvements ([#8372](https://github.com/mastra-ai/mastra/pull/8372))
277
-
278
- **Documentation generation (`@mastra/core`):**
279
- - Fixed inverted dynamic model selection logic in provider examples
280
- - Improved copy: replaced marketing language with action-oriented descriptions
281
- - Added generated file comments with timestamps to all MDX outputs so maintainers know not to directly edit generated files
282
-
283
- **Playground UI model picker (`@mastra/playground-ui`):**
284
- - Fixed provider field clearing when typing in model input
285
- - Added responsive layout (stacks on mobile, side-by-side on desktop)
286
- - Improved general styling of provider/model pickers
287
-
288
- **Environment variables (`@mastra/deployer`):**
289
- - Properly handle array of env vars (e.g., NETLIFY_TOKEN, NETLIFY_SITE_ID)
290
- - Added correct singular/plural handling for "environment variable(s)"
291
-
292
- - fix playground message history initial state for v1 models ([#8427](https://github.com/mastra-ai/mastra/pull/8427))
293
-
294
- - show thread list in desc order ([#8381](https://github.com/mastra-ai/mastra/pull/8381))
295
-
296
- - Fix an issue preventing showing working memory and semantic recall in the playground ([#8358](https://github.com/mastra-ai/mastra/pull/8358))
297
-
298
- - Fix shell option breaking server start on windows env ([#8377](https://github.com/mastra-ai/mastra/pull/8377))
299
-
300
- - Add observe strean to get streans after workflow has been interrupted ([#8318](https://github.com/mastra-ai/mastra/pull/8318))
301
301
 
302
- ... 6146 more lines hidden. See full changelog in package directory.
302
+ ... 6218 more lines hidden. See full changelog in package directory.
@@ -7,15 +7,15 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@ai-sdk/openai": "^1.3.23",
10
- "@mastra/core": "^0.20.2",
11
- "@mastra/libsql": "^0.15.1",
12
- "@mastra/loggers": "^0.10.15",
13
- "@mastra/memory": "^0.15.6",
10
+ "@mastra/core": "^0.21.0",
11
+ "@mastra/libsql": "^0.15.2",
12
+ "@mastra/loggers": "^0.10.16",
13
+ "@mastra/memory": "^0.15.7",
14
14
  "zod": "^3.25.76"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/node": "^24.3.0",
18
- "mastra": "^0.15.1",
18
+ "mastra": "^0.16.0",
19
19
  "typescript": "^5.9.2"
20
20
  }
21
21
  }
@@ -37,7 +37,7 @@ Mastra supports multiple storage providers. Popular options include:
37
37
  - [Cloudflare D1](../../reference/storage/cloudflare-d1.mdx)
38
38
 
39
39
  <Callout type="warning">
40
- `LibSQLStore` works well for local development and when deploying to [Mastra Cloud](../mastra-cloud/overview.mdx), but may not be supported by some [serverless platforms](../deployment/serverless-platforms/index.mdx) or [cloud providers](../deployment/cloud-providers/index.mdx).
40
+ `LibSQLStore` works well for local development and when deploying to [Mastra Cloud](../mastra-cloud/overview.mdx), but may not be supported by some [serverless platforms](../deployment/serverless-platforms) or [cloud providers](../deployment/cloud-providers).
41
41
  </Callout>
42
42
 
43
43
  ### Shared storage
@@ -65,7 +65,6 @@ const agentStep1 = createStep({
65
65
  text: z.string(),
66
66
  })
67
67
  },
68
- maxSteps: 1
69
68
  });
70
69
 
71
70
  return { text: resp.object.text };
@@ -88,7 +87,6 @@ const agentStep2 = createStep({
88
87
  text: z.string(),
89
88
  })
90
89
  },
91
- maxSteps: 1
92
90
  });
93
91
 
94
92
  return { text: resp.object.text };
@@ -137,7 +137,7 @@ instructions: {
137
137
 
138
138
  Register your agent in the Mastra instance to make it available throughout your application. Once registered, it can be called from workflows, tools, or other agents, and has access to shared resources such as memory, logging, and observability features:
139
139
 
140
- ```typescript showLineNumbers filename="src/mastra/index.ts" copy
140
+ ```typescript {6} showLineNumbers filename="src/mastra/index.ts" copy
141
141
  import { Mastra } from "@mastra/core/mastra";
142
142
  import { testAgent } from './agents/test-agent';
143
143
 
@@ -156,7 +156,7 @@ const testAgent = mastra.getAgent("testAgent");
156
156
  ```
157
157
  <Callout type="info">
158
158
  <p>
159
- `mastra.getAgent()` is preferred over a direct import, since it preserves the Mastra instance configuration (tools registered, telemetry, vector stores configuration for agent memory, etc.)
159
+ `mastra.getAgent()` is preferred over a direct import, since it provides access to the Mastra instance configuration (logger, telemetry, storage, registered agents, and vector stores).
160
160
  </p>
161
161
  </Callout>
162
162
 
@@ -251,12 +251,78 @@ const response = await testAgent.generate(
251
251
  keywords: z.array(z.string())
252
252
  })
253
253
  },
254
- maxSteps: 1
255
254
  }
256
255
  );
257
256
 
258
257
  console.log(response.object);
259
258
  ```
259
+
260
+ ### With Tool Calling
261
+
262
+ Use the `model` property to ensure that your agent can execute multi-step LLM calls with tool calling.
263
+
264
+ ```typescript showLineNumbers copy
265
+ import { z } from "zod";
266
+
267
+ const response = await testAgentWithTools.generate(
268
+ [
269
+ {
270
+ role: "system",
271
+ content: "Provide a summary and keywords for the following text:"
272
+ },
273
+ {
274
+ role: "user",
275
+ content: "Please use your test tool and let me know the results"
276
+ }
277
+ ],
278
+ {
279
+ structuredOutput: {
280
+ schema: z.object({
281
+ summary: z.string(),
282
+ keywords: z.array(z.string())
283
+ }),
284
+ model: "openai/gpt-4o"
285
+ },
286
+ }
287
+ );
288
+
289
+ console.log(response.object);
290
+ console.log(response.toolResults)
291
+ ```
292
+
293
+ ### Response format
294
+
295
+ By default `structuredOutput` will use `response_format` to pass the schema to the model provider. If the model provider does not natively support `response_format` it's possible that this will error or not give the desired results. To keep using the same model use `jsonPromptInjection` to bypass response format and inject a system prompt message to coerce the model to return structured output.
296
+
297
+ ```typescript showLineNumbers copy
298
+ import { z } from "zod";
299
+
300
+ const response = await testAgentThatDoesntSupportStructuredOutput.generate(
301
+ [
302
+ {
303
+ role: "system",
304
+ content: "Provide a summary and keywords for the following text:"
305
+ },
306
+ {
307
+ role: "user",
308
+ content: "Monkey, Ice Cream, Boat"
309
+ }
310
+ ],
311
+ {
312
+ structuredOutput: {
313
+ schema: z.object({
314
+ summary: z.string(),
315
+ keywords: z.array(z.string())
316
+ }),
317
+ jsonPromptInjection: true
318
+ },
319
+ }
320
+ );
321
+
322
+ console.log(response.object);
323
+ ```
324
+
325
+
260
326
  ## Working with images
261
327
 
262
328
  Agents can analyze and describe images by processing both the visual content and any text within them. To enable image analysis, pass an object with `type: 'image'` and the image URL in the `content` array. You can combine image content with text prompts to guide the agent's analysis.
@@ -346,42 +412,9 @@ export const testAgent = new Agent({
346
412
 
347
413
  > See [Runtime Context](../server-db/runtime-context.mdx) for more information.
348
414
 
349
- ## Testing agents locally
350
- There are two ways to run and test agents.
351
-
352
- <Steps>
353
-
354
- ### Mastra Playground
355
-
356
- With the Mastra Dev Server running you can test an agent from the Mastra Playground by visiting [http://localhost:4111/agents](http://localhost:4111/agents) in your browser.
357
-
358
- > For more information, see the [Local Dev Playground](/docs/server-db/local-dev-playground) documentation.
359
-
360
- ### Command line
361
-
362
- Create an agent response using `.generate()` or `.stream()`.
363
-
364
- ```typescript {7} filename="src/test-agent.ts" showLineNumbers copy
365
- import "dotenv/config";
366
-
367
- import { mastra } from "./mastra";
368
-
369
- const agent = mastra.getAgent("testAgent");
370
-
371
- const response = await agent.generate("Help me organize my day");
372
-
373
- console.log(response.text);
374
- ```
375
-
376
- > See [.generate()](../../reference/agents/generate.mdx) or [.stream()](../../reference/agents/stream.mdx) for more information.
377
-
378
- To test this agent, run the following:
379
-
380
- ```bash copy
381
- npx tsx src/test-agent.ts
382
- ```
415
+ ## Testing with Mastra Playground
383
416
 
384
- </Steps>
417
+ Use the Mastra [Playground](../server-db/local-dev-playground.mdx) to test agents with different messages, inspect tool calls and responses, and debug agent behavior.
385
418
 
386
419
  ## Related
387
420
 
@@ -91,5 +91,5 @@ export const weatherAgent = new Agent({
91
91
 
92
92
  - [Tools Overview](../tools-mcp/overview.mdx)
93
93
  - [Agent Memory](./agent-memory.mdx)
94
- - [Runtime Context](./runtime-context.mdx)
94
+ - [Runtime Context](../server-db/runtime-context.mdx)
95
95
  - [Calling Agents](../../examples/agents/calling-agents.mdx)