@mastra/mcp-docs-server 0.13.0 → 0.13.1-alpha.2

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 +7 -0
  2. package/.docs/organized/changelogs/%40mastra%2Fagui.md +14 -0
  3. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +13 -13
  4. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +26 -26
  5. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +64 -64
  6. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +14 -14
  7. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +15 -15
  8. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +10 -10
  9. package/.docs/organized/changelogs/%40mastra%2Fcore.md +65 -65
  10. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +12 -0
  11. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +82 -82
  12. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +79 -79
  13. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +77 -77
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +94 -94
  15. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +54 -0
  16. package/.docs/organized/changelogs/%40mastra%2Fevals.md +13 -13
  17. package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +16 -16
  18. package/.docs/organized/changelogs/%40mastra%2Fgithub.md +13 -13
  19. package/.docs/organized/changelogs/%40mastra%2Flance.md +12 -0
  20. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +13 -13
  21. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +47 -47
  22. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +37 -37
  23. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +22 -22
  24. package/.docs/organized/changelogs/%40mastra%2Fmem0.md +13 -13
  25. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +32 -32
  26. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +27 -27
  27. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +12 -0
  28. package/.docs/organized/changelogs/%40mastra%2Fpg.md +51 -51
  29. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +108 -108
  30. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +13 -13
  31. package/.docs/organized/changelogs/%40mastra%2Frag.md +17 -17
  32. package/.docs/organized/changelogs/%40mastra%2Fragie.md +13 -13
  33. package/.docs/organized/changelogs/%40mastra%2Fserver.md +66 -66
  34. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +13 -13
  35. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +37 -37
  36. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +13 -13
  37. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +13 -13
  38. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +13 -13
  39. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +13 -13
  40. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +9 -0
  41. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +13 -13
  42. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +14 -14
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +24 -24
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +13 -13
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +13 -13
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +13 -13
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +13 -13
  48. package/.docs/organized/changelogs/create-mastra.md +35 -35
  49. package/.docs/organized/changelogs/mastra.md +124 -124
  50. package/.docs/organized/code-examples/agent.md +5 -2
  51. package/.docs/organized/code-examples/agui.md +4 -1
  52. package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -1
  53. package/.docs/organized/code-examples/fireworks-r1.md +1 -1
  54. package/.docs/organized/code-examples/memory-with-processors.md +2 -2
  55. package/.docs/organized/code-examples/openapi-spec-writer.md +1 -1
  56. package/.docs/organized/code-examples/quick-start.md +1 -1
  57. package/.docs/organized/code-examples/weather-agent.md +7 -1
  58. package/.docs/raw/course/01-first-agent/03-verifying-installation.md +4 -2
  59. package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +1 -1
  60. package/.docs/raw/course/02-agent-tools-mcp/15-updating-mcp-config-github.md +1 -1
  61. package/.docs/raw/course/02-agent-tools-mcp/20-updating-mcp-config-hackernews.md +1 -1
  62. package/.docs/raw/course/02-agent-tools-mcp/26-updating-mcp-config-filesystem.md +1 -1
  63. package/.docs/raw/course/03-agent-memory/03-installing-memory.md +4 -2
  64. package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +1 -1
  65. package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +3 -3
  66. package/.docs/raw/course/03-agent-memory/13-vector-store-configuration.md +27 -0
  67. package/.docs/raw/course/03-agent-memory/{13-what-is-semantic-recall.md → 14-what-is-semantic-recall.md} +1 -1
  68. package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +41 -0
  69. package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +28 -0
  70. package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +9 -9
  71. package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +10 -2
  72. package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +8 -1
  73. package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +8 -1
  74. package/.docs/raw/deployment/deployment.mdx +26 -97
  75. package/.docs/raw/deployment/overview.mdx +18 -3
  76. package/.docs/raw/deployment/web-framework.mdx +63 -0
  77. package/.docs/raw/frameworks/web-frameworks/astro.mdx +7 -1
  78. package/.docs/raw/frameworks/web-frameworks/next-js.mdx +1 -1
  79. package/.docs/raw/getting-started/installation.mdx +98 -558
  80. package/.docs/raw/getting-started/project-structure.mdx +3 -16
  81. package/.docs/raw/rag/vector-databases.mdx +4 -7
  82. package/.docs/raw/reference/agents/generate.mdx +35 -3
  83. package/.docs/raw/reference/agents/stream.mdx +35 -3
  84. package/.docs/raw/reference/client-js/memory.mdx +14 -0
  85. package/.docs/raw/reference/client-js/workflows.mdx +28 -0
  86. package/.docs/raw/reference/deployer/cloudflare.mdx +9 -3
  87. package/.docs/raw/reference/deployer/deployer.mdx +1 -1
  88. package/.docs/raw/reference/deployer/netlify.mdx +25 -4
  89. package/.docs/raw/reference/deployer/vercel.mdx +10 -4
  90. package/.docs/raw/workflows/control-flow.mdx +45 -171
  91. package/.docs/raw/workflows/input-data-mapping.mdx +21 -88
  92. package/.docs/raw/workflows/overview.mdx +24 -47
  93. package/.docs/raw/workflows/suspend-and-resume.mdx +46 -34
  94. package/.docs/raw/workflows/using-with-agents-and-tools.mdx +55 -191
  95. package/dist/_tsup-dts-rollup.d.ts +14 -0
  96. package/dist/{chunk-QWIXFGFR.js → chunk-P5AHYMUI.js} +126 -20
  97. package/dist/prepare-docs/prepare.js +1 -1
  98. package/dist/stdio.js +42 -17
  99. package/package.json +15 -15
  100. package/.docs/raw/course/03-agent-memory/15-configuring-semantic-recall.md +0 -46
  101. package/.docs/raw/course/03-agent-memory/16-vector-store-configuration.md +0 -37
  102. package/.docs/raw/course/03-agent-memory/18-disabling-semantic-recall.md +0 -24
  103. /package/.docs/raw/{deployment/client.mdx → client-js/overview.mdx} +0 -0
  104. /package/.docs/raw/course/03-agent-memory/{14-how-semantic-recall-works.md → 15-how-semantic-recall-works.md} +0 -0
@@ -1,5 +1,128 @@
1
1
  # mastra
2
2
 
3
+ ## 0.10.6-alpha.7
4
+
5
+ ### Patch Changes
6
+
7
+ - b29c802: Remove open browser
8
+ - Updated dependencies [bd1674f]
9
+ - Updated dependencies [69f76f7]
10
+ - @mastra/mcp@0.10.4-alpha.1
11
+ - @mastra/deployer@0.10.6-alpha.5
12
+
13
+ ## 0.10.6-alpha.6
14
+
15
+ ### Patch Changes
16
+
17
+ - 5f2aa3e: Move workflow hooks to playground
18
+ - Updated dependencies [12a95fc]
19
+ - Updated dependencies [51264a5]
20
+ - Updated dependencies [8e6f677]
21
+ - @mastra/core@0.10.6-alpha.5
22
+ - @mastra/deployer@0.10.6-alpha.5
23
+
24
+ ## 0.10.6-alpha.5
25
+
26
+ ### Patch Changes
27
+
28
+ - 084f6aa: Add logs to circular dependency to warn people when starting server might break
29
+ - Updated dependencies [79b9909]
30
+ - Updated dependencies [084f6aa]
31
+ - Updated dependencies [9589624]
32
+ - @mastra/deployer@0.10.6-alpha.4
33
+ - @mastra/core@0.10.6-alpha.4
34
+
35
+ ## 0.10.6-alpha.4
36
+
37
+ ### Patch Changes
38
+
39
+ - 4051477: dependencies updates:
40
+ - Updated dependency [`@clack/prompts@^0.11.0` ↗︎](https://www.npmjs.com/package/@clack/prompts/v/0.11.0) (from `^0.8.2`, in `dependencies`)
41
+ - Updated dependency [`@opentelemetry/instrumentation@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/instrumentation/v/0.202.0) (from `^0.57.2`, in `dependencies`)
42
+ - Updated dependency [`posthog-node@4.18.0` ↗︎](https://www.npmjs.com/package/posthog-node/v/4.18.0) (from `4.16.0`, in `dependencies`)
43
+ - Updated dependency [`yocto-spinner@^0.2.3` ↗︎](https://www.npmjs.com/package/yocto-spinner/v/0.2.3) (from `^0.1.2`, in `dependencies`)
44
+ - Added dependency [`open@^10.1.2` ↗︎](https://www.npmjs.com/package/open/v/10.1.2) (to `dependencies`)
45
+ - b40f365: dependencies updates:
46
+ - Updated dependency [`@clack/prompts@^0.11.0` ↗︎](https://www.npmjs.com/package/@clack/prompts/v/0.11.0) (from `^0.8.2`, in `dependencies`)
47
+ - Updated dependency [`@opentelemetry/instrumentation@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/instrumentation/v/0.202.0) (from `^0.57.2`, in `dependencies`)
48
+ - Updated dependency [`posthog-node@4.18.0` ↗︎](https://www.npmjs.com/package/posthog-node/v/4.18.0) (from `4.16.0`, in `dependencies`)
49
+ - Updated dependency [`yocto-spinner@^0.2.3` ↗︎](https://www.npmjs.com/package/yocto-spinner/v/0.2.3) (from `^0.1.2`, in `dependencies`)
50
+ - Updated dependencies [4051477]
51
+ - Updated dependencies [c28ed65]
52
+ - Updated dependencies [d70c420]
53
+ - Updated dependencies [2a16996]
54
+ - @mastra/deployer@0.10.6-alpha.3
55
+ - @mastra/core@0.10.6-alpha.3
56
+
57
+ ## 0.10.6-alpha.3
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [4b0f8a6]
62
+ - Updated dependencies [ec7f824]
63
+ - @mastra/core@0.10.6-alpha.2
64
+ - @mastra/deployer@0.10.6-alpha.2
65
+
66
+ ## 0.10.6-alpha.2
67
+
68
+ ### Patch Changes
69
+
70
+ - 143b4e4: Fix globbing of tools to only capture js/ts files
71
+ - 44ba52d: Add proper error message when installation of mastra fails
72
+ - 3270d9d: Fix runtime context being undefined
73
+ - fc677d7: For final result for a workflow
74
+ - Updated dependencies [ee9af57]
75
+ - Updated dependencies [3270d9d]
76
+ - Updated dependencies [751c894]
77
+ - Updated dependencies [577ce3a]
78
+ - Updated dependencies [9260b3a]
79
+ - @mastra/deployer@0.10.6-alpha.1
80
+ - @mastra/core@0.10.6-alpha.1
81
+
82
+ ## 0.10.6-alpha.1
83
+
84
+ ### Patch Changes
85
+
86
+ - 47e7029: Add open browser functionality when running mastra dev
87
+
88
+ ## 0.10.6-alpha.0
89
+
90
+ ### Patch Changes
91
+
92
+ - 02560d4: lift evals fetching to the playground package instead
93
+ - 63f6b7d: dependencies updates:
94
+ - Updated dependency [`execa@^9.6.0` ↗︎](https://www.npmjs.com/package/execa/v/9.6.0) (from `^9.5.2`, in `dependencies`)
95
+ - Updated dependency [`json-schema-to-zod@^2.6.1` ↗︎](https://www.npmjs.com/package/json-schema-to-zod/v/2.6.1) (from `^2.6.0`, in `dependencies`)
96
+ - Updated dependency [`shell-quote@^1.8.3` ↗︎](https://www.npmjs.com/package/shell-quote/v/1.8.3) (from `^1.8.2`, in `dependencies`)
97
+ - Updated dependency [`strip-json-comments@^5.0.2` ↗︎](https://www.npmjs.com/package/strip-json-comments/v/5.0.2) (from `^5.0.1`, in `dependencies`)
98
+ - Updated dependency [`zod@^3.25.57` ↗︎](https://www.npmjs.com/package/zod/v/3.25.57) (from `^3.25.56`, in `dependencies`)
99
+ - 311132e: move useWorkflow to playground instead of playground-ui
100
+ - 906f992: CLI error log
101
+ - 53d3c37: Get workflows from an agent if not found from Mastra instance #5083
102
+ - Updated dependencies [63f6b7d]
103
+ - Updated dependencies [2d12edd]
104
+ - Updated dependencies [63f6b7d]
105
+ - Updated dependencies [63f6b7d]
106
+ - Updated dependencies [36f1c36]
107
+ - Updated dependencies [10d352e]
108
+ - Updated dependencies [53d3c37]
109
+ - @mastra/core@0.10.6-alpha.0
110
+ - @mastra/deployer@0.10.6-alpha.0
111
+ - @mastra/mcp@0.10.4-alpha.0
112
+
113
+ ## 0.10.5
114
+
115
+ ### Patch Changes
116
+
117
+ - 1ba421d: fix the tools not showing on workflows attached to agents
118
+ - 8725d02: Improve cli by reducing the amount of setups during interactive prompt
119
+ - 13c97f9: Save run status, result and error in storage snapshot
120
+ - Updated dependencies [8725d02]
121
+ - Updated dependencies [13c97f9]
122
+ - Updated dependencies [105f872]
123
+ - @mastra/deployer@0.10.5
124
+ - @mastra/core@0.10.5
125
+
3
126
  ## 0.10.4
4
127
 
5
128
  ### Patch Changes
@@ -175,128 +298,5 @@
175
298
  - 6fd77b5: add docs and txt support for multi modal
176
299
  - 9faee5b: small fixes in the workflows graph
177
300
  - 631683f: move workflow runs list in playground-ui instead of playground
178
- - 068b850: fix: able to pass headers to playground components which are using the mastra client
179
- - 668af6d: Fix mastra dev server restarts
180
- - f0d559f: Fix peerdeps for alpha channel
181
- - f6ddf55: fix traces not showing and reduce API surface from playground ui
182
- - 9a31c09: Highlight steps in nested workflows on workflow graph
183
- - Updated dependencies [ee77e78]
184
- - Updated dependencies [592a2db]
185
- - Updated dependencies [e5dc18d]
186
- - Updated dependencies [ab5adbe]
187
- - Updated dependencies [e8d2aff]
188
- - Updated dependencies [1e8bb40]
189
- - Updated dependencies [1b5fc55]
190
- - Updated dependencies [195c428]
191
- - Updated dependencies [f73e11b]
192
- - Updated dependencies [37643b8]
193
- - Updated dependencies [99fd6cf]
194
- - Updated dependencies [1fcc048]
195
- - Updated dependencies [c5bf1ce]
196
- - Updated dependencies [f946acf]
197
- - Updated dependencies [add596e]
198
- - Updated dependencies [8dc94d8]
199
- - Updated dependencies [ecebbeb]
200
- - Updated dependencies [4187ed4]
201
- - Updated dependencies [79d5145]
202
- - Updated dependencies [12b7002]
203
- - Updated dependencies [f0d559f]
204
- - Updated dependencies [2901125]
205
- - @mastra/core@0.10.2
206
- - @mastra/mcp@0.10.2
207
- - @mastra/deployer@0.10.2
208
- - @mastra/loggers@0.10.1
209
-
210
- ## 0.10.2-alpha.9
211
-
212
- ### Patch Changes
213
-
214
- - 90e96de: Fix: prevent default flag from triggering interactive prompt
215
- - Updated dependencies [37643b8]
216
- - Updated dependencies [79d5145]
217
- - @mastra/core@0.10.2-alpha.8
218
- - @mastra/deployer@0.10.2-alpha.8
219
-
220
- ## 0.10.2-alpha.8
221
-
222
- ### Patch Changes
223
-
224
- - a399086: Bumping because we forgot to
225
- - @mastra/deployer@0.10.2-alpha.7
226
- - @mastra/core@0.10.2-alpha.7
227
-
228
- ## 0.10.2-alpha.7
229
-
230
- ### Patch Changes
231
-
232
- - 1fcc048: chore: generate sourcemaps in dev build
233
- - 6fd77b5: add docs and txt support for multi modal
234
- - 631683f: move workflow runs list in playground-ui instead of playground
235
- - Updated dependencies [99fd6cf]
236
- - Updated dependencies [1fcc048]
237
- - Updated dependencies [8dc94d8]
238
- - @mastra/core@0.10.2-alpha.6
239
- - @mastra/deployer@0.10.2-alpha.6
240
-
241
- ## 0.10.2-alpha.6
242
-
243
- ### Patch Changes
244
-
245
- - 1b5fc55: Fixed an issue where the playground wouldn't display images saved in memory. Fixed memory to always store images as strings. Removed duplicate storage of reasoning and file/image parts in storage dbs
246
- - 9666468: move the fetch traces call to the playground instead of playground-ui
247
- - 668af6d: Fix mastra dev server restarts
248
- - Updated dependencies [1b5fc55]
249
- - Updated dependencies [add596e]
250
- - Updated dependencies [ecebbeb]
251
- - @mastra/core@0.10.2-alpha.5
252
- - @mastra/deployer@0.10.2-alpha.5
253
-
254
- ## 0.10.2-alpha.5
255
-
256
- ### Patch Changes
257
-
258
- - 401bbae: Show workflow graph from stepGraph of previous runs when viewing a previous run
259
-
260
- ## 0.10.2-alpha.4
261
-
262
- ### Patch Changes
263
-
264
- - Updated dependencies [c5bf1ce]
265
- - Updated dependencies [12b7002]
266
- - @mastra/core@0.10.2-alpha.4
267
- - @mastra/deployer@0.10.2-alpha.4
268
-
269
- ## 0.10.2-alpha.3
270
-
271
- ### Patch Changes
272
-
273
- - f73e11b: fix telemetry disabled not working on playground
274
- - 068b850: fix: able to pass headers to playground components which are using the mastra client
275
- - Updated dependencies [ab5adbe]
276
- - Updated dependencies [195c428]
277
- - Updated dependencies [f73e11b]
278
- - Updated dependencies [f946acf]
279
- - @mastra/core@0.10.2-alpha.3
280
- - @mastra/deployer@0.10.2-alpha.3
281
-
282
- ## 0.10.2-alpha.2
283
-
284
- ### Patch Changes
285
-
286
- - 73fec0b: Mastra start cli command"
287
- - f0d559f: Fix peerdeps for alpha channel
288
- - f6ddf55: fix traces not showing and reduce API surface from playground ui
289
- - Updated dependencies [e8d2aff]
290
- - Updated dependencies [1e8bb40]
291
- - Updated dependencies [4187ed4]
292
- - Updated dependencies [f0d559f]
293
- - @mastra/deployer@0.10.2-alpha.2
294
- - @mastra/core@0.10.2-alpha.2
295
- - @mastra/loggers@0.10.1-alpha.0
296
- - @mastra/mcp@0.10.2-alpha.1
297
-
298
- ## 0.10.2-alpha.1
299
-
300
- ### Patch Changes
301
301
 
302
- ... 3711 more lines hidden. See full changelog in package directory.
302
+ ... 3834 more lines hidden. See full changelog in package directory.
@@ -16,7 +16,7 @@
16
16
  "@mastra/memory": "latest",
17
17
  "@mastra/voice-openai": "latest",
18
18
  "@mastra/libsql": "latest",
19
- "ai": "^4.3.15",
19
+ "ai": "^4.3.16",
20
20
  "fetch-to-node": "^2.1.0",
21
21
  "mastra": "latest",
22
22
  "zod": "^3.25.56"
@@ -441,7 +441,7 @@ export const dynamicAgent = new Agent({
441
441
  });
442
442
 
443
443
  export const chefAgentResponses = new Agent({
444
- name: 'Chef Agent',
444
+ name: 'Chef Agent Responses',
445
445
  instructions: `
446
446
  You are Michel, a practical and experienced home chef who helps people cook great meals with whatever
447
447
  ingredients they have available. Your first priority is understanding what ingredients and equipment the user has access to, then suggesting achievable recipes.
@@ -451,6 +451,9 @@ export const chefAgentResponses = new Agent({
451
451
  tools: {
452
452
  web_search_preview: openai.tools.webSearchPreview(),
453
453
  },
454
+ workflows: {
455
+ myWorkflow,
456
+ },
454
457
  });
455
458
 
456
459
  ```
@@ -21,16 +21,19 @@
21
21
  "@mastra/agui": "latest",
22
22
  "@mastra/core": "latest",
23
23
  "@mastra/libsql": "latest",
24
+ "@mastra/loggers": "latest",
24
25
  "@mastra/memory": "latest",
25
26
  "mastra": "latest",
26
27
  "react": "^19.1.0",
27
- "react-dom": "^19.1.0"
28
+ "react-dom": "^19.1.0",
29
+ "zod": "^3.25.57"
28
30
  },
29
31
  "pnpm": {
30
32
  "overrides": {
31
33
  "@mastra/core": "link:../../packages/core",
32
34
  "@mastra/agui": "link:../../packages/agui",
33
35
  "@mastra/libsql": "link:../../stores/libsql",
36
+ "@mastra/loggers": "link:../../packages/loggers",
34
37
  "@mastra/memory": "link:../../packages/memory",
35
38
  "mastra": "link:../../packages/cli"
36
39
  }
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@ai-sdk/anthropic": "^1.2.11",
14
+ "@ai-sdk/anthropic": "^1.2.12",
15
15
  "@ai-sdk/react": "^1.2.12",
16
16
  "@mastra/core": "latest",
17
17
  "next": "^15.3.1",
@@ -13,7 +13,7 @@
13
13
  "author": "",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@ai-sdk/anthropic": "^1.2.11",
16
+ "@ai-sdk/anthropic": "^1.2.12",
17
17
  "@ai-sdk/fireworks": "^0.2.14",
18
18
  "@mastra/core": "latest",
19
19
  "@mastra/mcp": "latest",
@@ -14,7 +14,7 @@
14
14
  "@ai-sdk/openai": "latest",
15
15
  "@mastra/core": "latest",
16
16
  "@mastra/memory": "latest",
17
- "ai": "^4.3.15",
17
+ "ai": "^4.3.16",
18
18
  "chalk": "^5.4.1",
19
19
  "dotenv": "^16.3.1",
20
20
  "js-tiktoken": "^1.0.13",
@@ -249,7 +249,7 @@ const interviewMemory = new Memory({
249
249
  export const interviewerAgent = new Agent({
250
250
  name: 'Forgetful Job Interviewer',
251
251
  instructions:
252
- "You are a professional job interviewer for a technology company. Conduct insightful interviews by asking relevant questions about skills, experience, and problem-solving abilities. Respond to candidate answers and ask follow-up questions. Keep the interview professional and engaging. Remember details the candidate shares earlier in the conversation. Sometimes you forget things by accident. The system will show you if you forgot. Don't be embarassed, you can admit when you forget something, you'll know when you do because there will be a message wrapped in <forgetten> tags. Don't refer to the user by their name, it comes across as too eager",
252
+ "You are a professional job interviewer for a technology company. Conduct insightful interviews by asking relevant questions about skills, experience, and problem-solving abilities. Respond to candidate answers and ask follow-up questions. Keep the interview professional and engaging. Remember details the candidate shares earlier in the conversation. Sometimes you forget things by accident. The system will show you if you forgot. Don't be embarrassed, you can admit when you forget something, you'll know when you do because there will be a message wrapped in <forgetten> tags. Don't refer to the user by their name, it comes across as too eager",
253
253
  model: openai('gpt-4o'),
254
254
  memory: interviewMemory,
255
255
  });
@@ -24,7 +24,7 @@
24
24
  "class-variance-authority": "^0.7.1",
25
25
  "clsx": "^2.1.1",
26
26
  "lucide-react": "^0.454.0",
27
- "next": "15.2.3",
27
+ "next": "15.2.4",
28
28
  "react": "^19.0.0",
29
29
  "react-dom": "^19.0.0",
30
30
  "react-syntax-highlighter": "^15.6.1",
@@ -19,7 +19,7 @@
19
19
  "zod": "^3.25.56"
20
20
  },
21
21
  "dependencies": {
22
- "@ai-sdk/anthropic": "^1.1.15",
22
+ "@ai-sdk/anthropic": "^1.2.12",
23
23
  "@ai-sdk/groq": "latest",
24
24
  "@ai-sdk/openai": "latest",
25
25
  "@mastra/core": "latest",
@@ -15,12 +15,14 @@
15
15
  "dependencies": {
16
16
  "@ai-sdk/openai": "^1.3.22",
17
17
  "@mastra/core": "latest",
18
+ "@mastra/libsql": "latest",
18
19
  "zod": "^3.25.56"
19
20
  },
20
21
  "version": "0.0.1",
21
22
  "pnpm": {
22
23
  "overrides": {
23
- "@mastra/core": "link:../../packages/core"
24
+ "@mastra/core": "link:../../packages/core",
25
+ "@mastra/libsql": "link:../../stores/libsql"
24
26
  }
25
27
  },
26
28
  "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
@@ -65,12 +67,16 @@ export const weatherReporterAgent = new Agent({
65
67
  ### mastra/index.ts
66
68
  ```typescript
67
69
  import { Mastra } from '@mastra/core';
70
+ import { LibSQLStore } from '@mastra/libsql';
68
71
 
69
72
  import { weatherAgent } from './agents';
70
73
  import { weatherWorkflow as legacyWeatherWorkflow } from './workflows';
71
74
  import { weatherWorkflow, weatherWorkflow2 } from './workflows/new-workflow';
72
75
 
73
76
  export const mastra = new Mastra({
77
+ storage: new LibSQLStore({
78
+ url: 'file:./mastra.db',
79
+ }),
74
80
  agents: { weatherAgent },
75
81
  legacy_workflows: { legacyWeatherWorkflow },
76
82
  workflows: { weatherWorkflow, weatherWorkflow2 },
@@ -1,11 +1,13 @@
1
1
  # Verifying Your Mastra Installation
2
2
 
3
- Before we begin building our agent, let's make sure you have Mastra properly installed. First, let's check if @mastra/core is in the package.json and there is a src/mastra directory. If so, you can skip this step.
3
+ Before we begin building our agent, let's make sure you have the right development environment set up. Let's check if you have Node.js 18.x or later installed.
4
+
5
+ Then, let's check if @mastra/core is in the package.json and there is a src/mastra directory. If so, you can skip this step.
4
6
 
5
7
  If you haven't installed Mastra yet, you can do so by running:
6
8
 
7
9
  ```bash
8
- npm create mastra@latest
10
+ npm -y create mastra@latest
9
11
  ```
10
12
 
11
13
  If you do need to install mastra, follow the on-screen prompts and make sure to:
@@ -24,7 +24,7 @@ export const financialAgent = new Agent({
24
24
  tools: { getTransactionsTool },
25
25
  memory: new Memory({
26
26
  storage: new LibSQLStore({
27
- url: "../../memory.db", // local file-system database. Location is relative to the output directory `.mastra/output`
27
+ url: "file:../../memory.db", // local file-system database. Location is relative to the output directory `.mastra/output`
28
28
  }),
29
29
  }), // Add memory here
30
30
  });
@@ -3,7 +3,7 @@
3
3
  Now, let's update your MCP configuration in `src/mastra/agents/index.ts` to include the GitHub server:
4
4
 
5
5
  ```typescript
6
- const mcp = new MCPConfiguration({
6
+ const mcp = new MCPClient({
7
7
  servers: {
8
8
  zapier: {
9
9
  url: new URL(process.env.ZAPIER_MCP_URL || ""),
@@ -5,7 +5,7 @@ Unlike the previous MCP servers that use URLs, the Hacker News MCP server can be
5
5
  Let's update your MCP configuration in `src/mastra/agents/index.ts` to include the Hacker News server:
6
6
 
7
7
  ```typescript
8
- const mcp = new MCPConfiguration({
8
+ const mcp = new MCPClient({
9
9
  servers: {
10
10
  zapier: {
11
11
  url: new URL(process.env.ZAPIER_MCP_URL || ""),
@@ -5,7 +5,7 @@ Now, let's update your MCP configuration in `src/mastra/agents/index.ts` to incl
5
5
  ```typescript
6
6
  import path from "path";
7
7
 
8
- const mcp = new MCPConfiguration({
8
+ const mcp = new MCPClient({
9
9
  servers: {
10
10
  zapier: {
11
11
  url: new URL(process.env.ZAPIER_MCP_URL || ""),
@@ -3,9 +3,11 @@
3
3
  Let's start by installing the Mastra memory package:
4
4
 
5
5
  ```bash
6
- npm install @mastra/memory
6
+ npm install @mastra/memory @mastra/libsql
7
7
  ```
8
8
 
9
9
  The `@mastra/memory` package provides all the functionality you need to add memory capabilities to your Mastra agents. It includes support for conversation history, semantic recall, and working memory.
10
10
 
11
- This package is separate from the core Mastra package, allowing you to only include it when you need memory capabilities in your project. This modular approach helps keep your project dependencies lean when you don't need all features.
11
+ The `@mastra/libsql` package is **one of many** storage adapters that complement the memory package. The purpose of a storage adapter is to provide a way to persist the memory data to a database or other storage system. The `@mastra/libsql` package provides a storage adapter for LibSQL, which is a fast, open-source fork of SQLite.
12
+
13
+ These packages are separate from the core Mastra package, allowing you to only include them when you need memory capabilities in your project. This modular approach helps keep your project dependencies lean when you don't need all features.
@@ -13,7 +13,7 @@ import { openai } from "@ai-sdk/openai";
13
13
  // Create a basic memory instance
14
14
  const memory = new Memory({
15
15
  storage: new LibSQLStore({
16
- url: "../../memory.db",
16
+ url: "file:../../memory.db", // relative path from the `.mastra/output` directory
17
17
  }),
18
18
  });
19
19
 
@@ -1,6 +1,6 @@
1
1
  # Configuring Conversation History
2
2
 
3
- By default, the `Memory` instance includes the last 40 messages from the current memory thread in each new request. You can customize this by configuring the `lastMessages` option:
3
+ By default, the `Memory` instance includes the last 10 messages from the current memory thread in each new request. You can customize this by configuring the `lastMessages` option:
4
4
 
5
5
  ```typescript
6
6
  import { Agent } from "@mastra/core/agent";
@@ -11,10 +11,10 @@ import { LibSQLStore } from "@mastra/libsql";
11
11
  // Create a memory instance with custom conversation history settings
12
12
  const memory = new Memory({
13
13
  storage: new LibSQLStore({
14
- url: "../../memory.db",
14
+ url: "file:../../memory.db",
15
15
  }),
16
16
  options: {
17
- lastMessages: 20, // Include the last 20 messages in the context
17
+ lastMessages: 20, // Include the last 20 messages in the context instead of the default 10
18
18
  },
19
19
  });
20
20
 
@@ -0,0 +1,27 @@
1
+ # Vector Store Configuration
2
+
3
+ In addition to the memory storage adapters, Mastra also provides vector store adapters useful for storing and retrieving vector embeddings. One of these is the `LibSQLVector` adapter, which provides a simple interface for storing and retrieving vector embeddings in a LibSQL vector database.
4
+
5
+ ```typescript
6
+ import { Memory } from "@mastra/memory";
7
+ import { LibSQLStore, LibSQLVector } from "@mastra/libsql";
8
+
9
+ const memory = new Memory({
10
+ storage: new LibSQLStore({
11
+ url: "file:../../memory.db", // relative path from the `.mastra/output` directory
12
+ }),
13
+ vector: new LibSQLVector({
14
+ connectionUrl: "file:../../vector.db", // relative path from the `.mastra/output` directory
15
+ }),
16
+ });
17
+ ```
18
+
19
+ Mastra supports several vector store options, including:
20
+
21
+ - LibSQL
22
+ - Chroma
23
+ - Pinecone
24
+ - Qdrant
25
+ - Postgres (with pgvector)
26
+
27
+ The vector store is responsible for storing and retrieving the vector embeddings used for semantic search.
@@ -1,6 +1,6 @@
1
1
  # Implementing Semantic Recall
2
2
 
3
- In this step, we'll explore semantic recall, a feature that helps agents maintain context across longer interactions when messages are no longer within recent conversation history.
3
+ One of the quickest ways to take advantage of the configured vector store is to use semantic recall.
4
4
 
5
5
  ## What is Semantic Recall?
6
6
 
@@ -0,0 +1,41 @@
1
+ # Configuring Semantic Recall
2
+
3
+ Let's update our agent with custom semantic recall settings:
4
+
5
+ ```typescript
6
+ import { Agent } from "@mastra/core/agent";
7
+ import { Memory } from "@mastra/memory";
8
+ import { openai } from "@ai-sdk/openai";
9
+ import { LibSQLStore, LibSQLVector } from "@mastra/libsql";
10
+
11
+ // Create a memory instance with semantic recall configuration
12
+ const memory = new Memory({
13
+ storage: new LibSQLStore({
14
+ url: "file:../../memory.db", // relative path from the `.mastra/output` directory
15
+ }), // Storage for message history
16
+ vector: new LibSQLVector({
17
+ connectionUrl: "file:../../vector.db", // relative path from the `.mastra/output` directory
18
+ }), // Vector database for semantic search
19
+ embedder: openai.embedding("text-embedding-3-small"), // Embedder for message embeddings
20
+ options: {
21
+ lastMessages: 20, // Include the last 20 messages in the context
22
+ semanticRecall: true, // Enable semantic recall with default settings
23
+ },
24
+ });
25
+
26
+ // Create an agent with the configured memory
27
+ export const memoryAgent = new Agent({
28
+ name: "MemoryAgent",
29
+ instructions: `
30
+ You are a helpful assistant with advanced memory capabilities.
31
+ You can remember previous conversations and user preferences.
32
+ When a user shares information about themselves, acknowledge it and remember it for future reference.
33
+ If asked about something mentioned earlier in the conversation, recall it accurately.
34
+ You can also recall relevant information from older conversations when appropriate.
35
+ `,
36
+ model: openai("gpt-4o"),
37
+ memory: memory,
38
+ });
39
+ ```
40
+
41
+ For semantic recall to work, you need to have a **vector store** configured. You also need to have an **embedder** configured. You may use any `@ai-sdk`-compatible embedding model for this. In this example, we're using OpenAI's `text-embedding-3-small` model.
@@ -0,0 +1,28 @@
1
+ # Advanced Configuration of Semantic Recall
2
+
3
+ We can configure semantic recall in more detail by setting options for the `semanticRecall` option:
4
+
5
+ ```typescript
6
+ const memory = new Memory({
7
+ storage: new LibSQLStore({
8
+ url: "file:../../memory.db", // relative path from the `.mastra/output` directory
9
+ }),
10
+ vector: new LibSQLVector({
11
+ connectionUrl: "file:../../vector.db", // relative path from the `.mastra/output` directory
12
+ }),
13
+ embedder: openai.embedding("text-embedding-3-small"),
14
+ options: {
15
+ semanticRecall: {
16
+ topK: 3,
17
+ messageRange: {
18
+ before: 2,
19
+ after: 1,
20
+ },
21
+ },
22
+ },
23
+ });
24
+ ```
25
+
26
+ The `topK` parameter controls how many semantically similar messages are retrieved. A higher value will retrieve more messages, which can be helpful for complex topics but may also include less relevant information. The default value is `2`.
27
+
28
+ The `messageRange` parameter controls how much context is included with each match. This is important because the matching message alone might not provide enough context to understand the conversation. Including messages before and after the match helps the agent understand the context of the matched message.
@@ -6,11 +6,18 @@ Let's update our agent with working memory capabilities:
6
6
  import { Agent } from "@mastra/core/agent";
7
7
  import { Memory } from "@mastra/memory";
8
8
  import { openai } from "@ai-sdk/openai";
9
+ import { LibSQLStore, LibSQLVector } from "@mastra/libsql";
9
10
 
10
11
  // Create a memory instance with working memory configuration
11
12
  const memory = new Memory({
13
+ storage: new LibSQLStore({
14
+ url: "file:../../memory.db", // relative path from the `.mastra/output` directory
15
+ }), // Storage for message history
16
+ vector: new LibSQLVector({
17
+ connectionUrl: "file:../../vector.db", // relative path from the `.mastra/output` directory
18
+ }), // Vector database for semantic search
19
+ embedder: openai.embedding("text-embedding-3-small"), // Embedder for message embeddings
12
20
  options: {
13
- lastMessages: 20,
14
21
  semanticRecall: {
15
22
  topK: 3,
16
23
  messageRange: {
@@ -20,7 +27,6 @@ const memory = new Memory({
20
27
  },
21
28
  workingMemory: {
22
29
  enabled: true,
23
- use: "tool-call", // Recommended setting
24
30
  },
25
31
  },
26
32
  });
@@ -52,12 +58,6 @@ export const memoryAgent = new Agent({
52
58
  The `workingMemory` configuration has several important options:
53
59
 
54
60
  - `enabled`: Whether working memory is enabled
55
- - `use`: How the agent interacts with working memory (recommended setting is "tool-call")
56
-
57
- The `use` option can be set to:
58
-
59
- - `"tool-call"`: The agent updates working memory via tool calls (recommended)
60
- - `"direct"`: The agent directly edits the working memory text
61
- - `"read-only"`: The agent can read but not update working memory
61
+ - `template`: A template for the working memory content
62
62
 
63
63
  The instructions for the agent are also important. They guide the agent on what information to store in working memory and how to use that information when responding to the user.