@mastra/mcp-docs-server 0.13.36 → 0.13.37-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Flance.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +31 -31
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Freact.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +12 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +8 -8
- package/.docs/organized/changelogs/create-mastra.md +7 -7
- package/.docs/organized/changelogs/mastra.md +15 -15
- package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +10 -7
- package/.docs/raw/memory/overview.mdx +2 -2
- package/.docs/raw/memory/semantic-recall.mdx +4 -4
- package/.docs/raw/memory/storage/memory-with-mongodb.mdx +148 -0
- package/CHANGELOG.md +7 -0
- package/package.json +4 -4
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/agent-builder
|
|
2
2
|
|
|
3
|
+
## 0.2.3-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
8
|
+
- @mastra/core@0.23.2-alpha.0
|
|
9
|
+
- @mastra/memory@0.15.10-alpha.0
|
|
10
|
+
|
|
3
11
|
## 0.2.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -290,13 +298,5 @@
|
|
|
290
298
|
### Patch Changes
|
|
291
299
|
|
|
292
300
|
- Updated dependencies [[`0662d02`](https://github.com/mastra-ai/mastra/commit/0662d02ef16916e67531890639fcd72c69cfb6e2), [`6189844`](https://github.com/mastra-ai/mastra/commit/61898448e65bda02bb814fb15801a89dc6476938), [`d7a8f59`](https://github.com/mastra-ai/mastra/commit/d7a8f59154b0621aec4f41a6b2ea2b3882f03cb7), [`4dda259`](https://github.com/mastra-ai/mastra/commit/4dda2593b6343f9258671de5fb237aeba3ef6bb7), [`defed1c`](https://github.com/mastra-ai/mastra/commit/defed1ca8040cc8d42e645c5a50a1bc52a4918d7), [`79b39c1`](https://github.com/mastra-ai/mastra/commit/79b39c1def3bbd5d6ee2d2cc1e89ea378a940477), [`6991ced`](https://github.com/mastra-ai/mastra/commit/6991cedcb5a44a49d9fe58ef67926e1f96ba55b1), [`9cb9c42`](https://github.com/mastra-ai/mastra/commit/9cb9c422854ee81074989dd2d8dccc0500ba8d3e), [`8334859`](https://github.com/mastra-ai/mastra/commit/83348594d4f37b311ba4a94d679c5f8721d796d4)]:
|
|
293
|
-
- @mastra/core@0.16.1-alpha.0
|
|
294
|
-
- @mastra/memory@0.15.0-alpha.0
|
|
295
|
-
|
|
296
|
-
## 0.0.2
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- cf4e353: Agent Builder Template - adding in UI components to use agent builder template actions
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 167 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.16.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
8
|
+
- @mastra/core@0.23.2-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.16.6
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
- Add server apis to get scores by span ([#8237](https://github.com/mastra-ai/mastra/pull/8237))
|
|
292
299
|
|
|
293
300
|
- Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`b342a68`](https://github.com/mastra-ai/mastra/commit/b342a68e1399cf1ece9ba11bda112db89d21118c), [`a7243e2`](https://github.com/mastra-ai/mastra/commit/a7243e2e58762667a6e3921e755e89d6bb0a3282), [`7fceb0a`](https://github.com/mastra-ai/mastra/commit/7fceb0a327d678e812f90f5387c5bc4f38bd039e), [`303a9c0`](https://github.com/mastra-ai/mastra/commit/303a9c0d7dd58795915979f06a0512359e4532fb), [`df64f9e`](https://github.com/mastra-ai/mastra/commit/df64f9ef814916fff9baedd861c988084e7c41de), [`370f8a6`](https://github.com/mastra-ai/mastra/commit/370f8a6480faec70fef18d72e5f7538f27004301), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`683e5a1`](https://github.com/mastra-ai/mastra/commit/683e5a1466e48b686825b2c11f84680f296138e4), [`3679378`](https://github.com/mastra-ai/mastra/commit/3679378673350aa314741dc826f837b1984149bc), [`7775bc2`](https://github.com/mastra-ai/mastra/commit/7775bc20bb1ad1ab24797fb420e4f96c65b0d8ec), [`623ffaf`](https://github.com/mastra-ai/mastra/commit/623ffaf2d969e11e99a0224633cf7b5a0815c857), [`9fc1613`](https://github.com/mastra-ai/mastra/commit/9fc16136400186648880fd990119ac15f7c02ee4), [`61f62aa`](https://github.com/mastra-ai/mastra/commit/61f62aa31bc88fe4ddf8da6240dbcfbeb07358bd), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`e8f379d`](https://github.com/mastra-ai/mastra/commit/e8f379d390efa264c4e0874f9ac0cf8839b07777), [`652066b`](https://github.com/mastra-ai/mastra/commit/652066bd1efc6bb6813ba950ed1d7573e8b7d9d4), [`3e292ba`](https://github.com/mastra-ai/mastra/commit/3e292ba00837886d5d68a34cbc0d9b703c991883), [`418c136`](https://github.com/mastra-ai/mastra/commit/418c1366843d88e491bca3f87763899ce855ca29), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`67b0f00`](https://github.com/mastra-ai/mastra/commit/67b0f005b520335c71fb85cbaa25df4ce8484a81), [`c2a4919`](https://github.com/mastra-ai/mastra/commit/c2a4919ba6797d8bdb1509e02287496eef69303e), [`c84b7d0`](https://github.com/mastra-ai/mastra/commit/c84b7d093c4657772140cbfd2b15ef72f3315ed5), [`0130986`](https://github.com/mastra-ai/mastra/commit/0130986fc62d0edcc626dd593282661dbb9af141)]:
|
|
294
|
-
- @mastra/core@0.19.0
|
|
295
|
-
|
|
296
|
-
## 0.14.0-alpha.1
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Fix duplicate messages being created using clientTools with client-js sdk ([#8187](https://github.com/mastra-ai/mastra/pull/8187))
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3000 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.23.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Ensure model_generation spans end before agent_run spans. ([#9393](https://github.com/mastra-ai/mastra/pull/9393))
|
|
8
|
+
|
|
9
|
+
- Don't call `os.homedir()` at top level (but lazy invoke it) to accommodate sandboxed environments ([#9357](https://github.com/mastra-ai/mastra/pull/9357))
|
|
10
|
+
|
|
11
|
+
- Fix tool input validation to use schema-compat transformed schemas ([#9360](https://github.com/mastra-ai/mastra/pull/9360))
|
|
12
|
+
|
|
13
|
+
Previously, tool input validation used the original Zod schema while the LLM received a schema-compat transformed version. This caused validation failures when LLMs (like OpenAI o3 or Claude 3.5 Haiku) sent arguments matching the transformed schema but not the original.
|
|
14
|
+
|
|
15
|
+
For example:
|
|
16
|
+
- OpenAI o3 reasoning models convert `.optional()` to `.nullable()`, sending `null` values
|
|
17
|
+
- Claude 3.5 Haiku strips `min`/`max` string constraints, sending shorter strings
|
|
18
|
+
- Validation would reject these valid responses because it checked against the original schema
|
|
19
|
+
|
|
20
|
+
The fix ensures validation uses the same schema-compat processed schema that was sent to the LLM, eliminating this mismatch.
|
|
21
|
+
|
|
22
|
+
- Add import for WritableStream in execution-engine and dedupe llm.getModel in agent.ts ([#9341](https://github.com/mastra-ai/mastra/pull/9341))
|
|
23
|
+
|
|
24
|
+
- pass writableStream parameter to workflow execution ([#9339](https://github.com/mastra-ai/mastra/pull/9339))
|
|
25
|
+
|
|
26
|
+
- Add ability to pass agent options when wrapping an agent with createStep. This allows configuring agent execution settings when using agents as workflow steps. ([#9359](https://github.com/mastra-ai/mastra/pull/9359))
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`6bb26c4`](https://github.com/mastra-ai/mastra/commit/6bb26c4e82795d70515577a7cbd1e186c07ccf24), [`8d8f674`](https://github.com/mastra-ai/mastra/commit/8d8f67428ad1bcc944e2666179c886bae80120f5)]:
|
|
29
|
+
- @mastra/schema-compat@0.11.6-alpha.0
|
|
30
|
+
|
|
3
31
|
## 0.23.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
|
@@ -271,32 +299,4 @@
|
|
|
271
299
|
|
|
272
300
|
- Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
|
|
273
301
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
- added tracing of LLM steps & chunks ([#9058](https://github.com/mastra-ai/mastra/pull/9058))
|
|
277
|
-
|
|
278
|
-
- Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
|
|
279
|
-
|
|
280
|
-
## 0.21.2-alpha.0
|
|
281
|
-
|
|
282
|
-
### Patch Changes
|
|
283
|
-
|
|
284
|
-
- Update provider registry and model documentation with latest models and providers ([`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac))
|
|
285
|
-
|
|
286
|
-
- Add deprecation warnings for format:ai-sdk ([#9018](https://github.com/mastra-ai/mastra/pull/9018))
|
|
287
|
-
|
|
288
|
-
- network routing agent text delta ai-sdk streaming ([#8979](https://github.com/mastra-ai/mastra/pull/8979))
|
|
289
|
-
|
|
290
|
-
- Support writing custom top level stream chunks ([#8922](https://github.com/mastra-ai/mastra/pull/8922))
|
|
291
|
-
|
|
292
|
-
- fix(core): Fix Gemini message ordering validation errors (#7287, #8053) ([#8069](https://github.com/mastra-ai/mastra/pull/8069))
|
|
293
|
-
|
|
294
|
-
Fixes Gemini API "single turn requests" validation error by ensuring the first non-system message is from the user role. This resolves errors when:
|
|
295
|
-
- Messages start with assistant role (e.g., from memory truncation)
|
|
296
|
-
- Tool-call sequences begin with assistant messages
|
|
297
|
-
|
|
298
|
-
**Breaking Change**: Empty or system-only message lists now throw an error instead of adding a placeholder user message, preventing confusing LLM responses.
|
|
299
|
-
|
|
300
|
-
This fix handles both issue #7287 (tool-call ordering) and #8053 (single-turn validation) by inserting a placeholder user message when needed.
|
|
301
|
-
|
|
302
|
-
... 4579 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 4607 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/deployer-cloud
|
|
2
2
|
|
|
3
|
+
## 0.23.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`17e5a4e`](https://github.com/mastra-ai/mastra/commit/17e5a4e828a8ebc6148c76b42a139c0f9bf7e25f), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78), [`30f92b5`](https://github.com/mastra-ai/mastra/commit/30f92b5b3aa224289f2f0eff56babcfa7a87b772)]:
|
|
8
|
+
- @mastra/deployer@0.23.2-alpha.0
|
|
9
|
+
- @mastra/core@0.23.2-alpha.0
|
|
10
|
+
|
|
3
11
|
## 0.23.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -291,12 +299,4 @@
|
|
|
291
299
|
|
|
292
300
|
### Patch Changes
|
|
293
301
|
|
|
294
|
-
|
|
295
|
-
- @mastra/core@0.19.1
|
|
296
|
-
- @mastra/deployer@0.19.1
|
|
297
|
-
|
|
298
|
-
## 0.19.1-alpha.1
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
... 587 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 595 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/deployer-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.14.15-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`17e5a4e`](https://github.com/mastra-ai/mastra/commit/17e5a4e828a8ebc6148c76b42a139c0f9bf7e25f), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78), [`30f92b5`](https://github.com/mastra-ai/mastra/commit/30f92b5b3aa224289f2f0eff56babcfa7a87b772)]:
|
|
8
|
+
- @mastra/deployer@0.23.2-alpha.0
|
|
9
|
+
- @mastra/core@0.23.2-alpha.0
|
|
10
|
+
|
|
3
11
|
## 0.14.14
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -290,13 +298,5 @@
|
|
|
290
298
|
- @mastra/core@0.18.0-alpha.2
|
|
291
299
|
- @mastra/deployer@0.18.0-alpha.2
|
|
292
300
|
|
|
293
|
-
## 0.14.2-alpha.0
|
|
294
|
-
|
|
295
|
-
### Patch Changes
|
|
296
|
-
|
|
297
|
-
- Updated dependencies [[`a61f23f`](https://github.com/mastra-ai/mastra/commit/a61f23fbbca4b88b763d94f1d784c47895ed72d7), [`d1dc606`](https://github.com/mastra-ai/mastra/commit/d1dc6067b0557a71190b68d56ee15b48c26d2411), [`d3bd4d4`](https://github.com/mastra-ai/mastra/commit/d3bd4d482a685bbb67bfa89be91c90dca3fa71ad)]:
|
|
298
|
-
- @mastra/core@0.17.2-alpha.0
|
|
299
|
-
- @mastra/deployer@0.17.2-alpha.0
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3950 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/deployer-netlify
|
|
2
2
|
|
|
3
|
+
## 0.13.15-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Do not apply ESM shim to output as Netlify should handle this already ([#9361](https://github.com/mastra-ai/mastra/pull/9361))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`17e5a4e`](https://github.com/mastra-ai/mastra/commit/17e5a4e828a8ebc6148c76b42a139c0f9bf7e25f), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78), [`30f92b5`](https://github.com/mastra-ai/mastra/commit/30f92b5b3aa224289f2f0eff56babcfa7a87b772)]:
|
|
10
|
+
- @mastra/deployer@0.23.2-alpha.0
|
|
11
|
+
- @mastra/core@0.23.2-alpha.0
|
|
12
|
+
|
|
3
13
|
## 0.13.14
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -289,14 +299,4 @@
|
|
|
289
299
|
|
|
290
300
|
### Patch Changes
|
|
291
301
|
|
|
292
|
-
|
|
293
|
-
- Updated dependency [`fs-extra@^11.3.2` ↗︎](https://www.npmjs.com/package/fs-extra/v/11.3.2) (from `^11.3.1`, in `dependencies`)
|
|
294
|
-
- Updated dependencies [[`288745a`](https://github.com/mastra-ai/mastra/commit/288745a19aa9557db3ab3c877d667ff59f14d79c), [`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb)]:
|
|
295
|
-
- @mastra/deployer@0.17.2-alpha.1
|
|
296
|
-
- @mastra/core@0.17.2-alpha.1
|
|
297
|
-
|
|
298
|
-
## 0.13.2-alpha.0
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
... 3679 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3689 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 0.12.15-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`17e5a4e`](https://github.com/mastra-ai/mastra/commit/17e5a4e828a8ebc6148c76b42a139c0f9bf7e25f), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78), [`30f92b5`](https://github.com/mastra-ai/mastra/commit/30f92b5b3aa224289f2f0eff56babcfa7a87b772)]:
|
|
8
|
+
- @mastra/deployer@0.23.2-alpha.0
|
|
9
|
+
- @mastra/core@0.23.2-alpha.0
|
|
10
|
+
|
|
3
11
|
## 0.12.14
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -291,12 +299,4 @@
|
|
|
291
299
|
|
|
292
300
|
## 0.12.2-alpha.1
|
|
293
301
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
- dependencies updates: ([#8007](https://github.com/mastra-ai/mastra/pull/8007))
|
|
297
|
-
- Updated dependency [`fs-extra@^11.3.2` ↗︎](https://www.npmjs.com/package/fs-extra/v/11.3.2) (from `^11.3.1`, in `dependencies`)
|
|
298
|
-
- Updated dependencies [[`288745a`](https://github.com/mastra-ai/mastra/commit/288745a19aa9557db3ab3c877d667ff59f14d79c), [`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb)]:
|
|
299
|
-
- @mastra/deployer@0.17.2-alpha.1
|
|
300
|
-
- @mastra/core@0.17.2-alpha.1
|
|
301
|
-
|
|
302
|
-
... 3637 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3645 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.23.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add exportConditions options to nodeResolve plugin to ensure proper handling of Node.js export condition resolution during production builds. ([#9394](https://github.com/mastra-ai/mastra/pull/9394))
|
|
8
|
+
|
|
9
|
+
- Add better error handling during `mastra build` for `ERR_MODULE_NOT_FOUND` cases. ([#9338](https://github.com/mastra-ai/mastra/pull/9338))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
12
|
+
- @mastra/core@0.23.2-alpha.0
|
|
13
|
+
- @mastra/server@0.23.2-alpha.0
|
|
14
|
+
|
|
3
15
|
## 0.23.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
- @mastra/core@0.20.2-alpha.0
|
|
287
299
|
- @mastra/server@0.20.2-alpha.0
|
|
288
300
|
|
|
289
|
-
## 0.20.1
|
|
290
|
-
|
|
291
|
-
### Patch Changes
|
|
292
|
-
|
|
293
|
-
- fix: custom API routes now properly respect authentication requirements ([#8469](https://github.com/mastra-ai/mastra/pull/8469))
|
|
294
|
-
|
|
295
|
-
Fixed a critical bug where custom routes were bypassing authentication when they should have been protected by default. The issue was in the `isProtectedPath` function which only checked pattern-based protection but ignored custom route configurations.
|
|
296
|
-
- Custom routes are now protected by default or when specified with `requiresAuth: true`
|
|
297
|
-
- Custom routes properly inherit protection from parent patterns (like `/api/*`)
|
|
298
|
-
- Routes with explicit `requiresAuth: false` continue to work as public endpoints
|
|
299
|
-
- Enhanced `isProtectedPath` to consider both pattern matching and custom route auth config
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 4891 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
+
## 0.3.9-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix eval filtering to use NULL checks instead of length function for compatibility with LanceDB 0.22.x ([#9340](https://github.com/mastra-ai/mastra/pull/9340))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
10
|
+
- @mastra/core@0.23.2-alpha.0
|
|
11
|
+
|
|
3
12
|
## 0.3.8
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
|
|
290
299
|
## 0.2.10
|
|
291
300
|
|
|
292
|
-
### Patch Changes
|
|
293
|
-
|
|
294
|
-
- [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
|
|
295
|
-
|
|
296
|
-
- Updated dependencies []:
|
|
297
|
-
- @mastra/core@0.15.2
|
|
298
|
-
|
|
299
|
-
## 0.2.9
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 416 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.13.37-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
8
|
+
- @mastra/core@0.23.2-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.13.36
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -292,11 +299,4 @@
|
|
|
292
299
|
- Updated dependencies [[`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb)]:
|
|
293
300
|
- @mastra/core@0.17.2-alpha.1
|
|
294
301
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
### Patch Changes
|
|
298
|
-
|
|
299
|
-
- Updated dependencies [[`a61f23f`](https://github.com/mastra-ai/mastra/commit/a61f23fbbca4b88b763d94f1d784c47895ed72d7), [`d1dc606`](https://github.com/mastra-ai/mastra/commit/d1dc6067b0557a71190b68d56ee15b48c26d2411), [`d3bd4d4`](https://github.com/mastra-ai/mastra/commit/d3bd4d482a685bbb67bfa89be91c90dca3fa71ad)]:
|
|
300
|
-
- @mastra/core@0.17.2-alpha.0
|
|
301
|
-
|
|
302
|
-
... 2122 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2129 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 0.15.10-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`6bb26c4`](https://github.com/mastra-ai/mastra/commit/6bb26c4e82795d70515577a7cbd1e186c07ccf24), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`8d8f674`](https://github.com/mastra-ai/mastra/commit/8d8f67428ad1bcc944e2666179c886bae80120f5), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
8
|
+
- @mastra/schema-compat@0.11.6-alpha.0
|
|
9
|
+
- @mastra/core@0.23.2-alpha.0
|
|
10
|
+
|
|
3
11
|
## 0.15.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -291,12 +299,4 @@
|
|
|
291
299
|
|
|
292
300
|
### Patch Changes
|
|
293
301
|
|
|
294
|
-
|
|
295
|
-
- 38020d5: Fix memory pagination not working when using query() method
|
|
296
|
-
|
|
297
|
-
The Memory.query() method was ignoring pagination parameters in the selectBy option, always returning all messages instead of the requested page. This fix ensures pagination works correctly by using storage.getMessagesPaginated() when pagination is requested, while maintaining backward compatibility with storage.getMessages() for non-paginated queries.
|
|
298
|
-
|
|
299
|
-
- Updated dependencies [8fbf79e]
|
|
300
|
-
- Updated dependencies [fd83526]
|
|
301
|
-
|
|
302
|
-
... 3227 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3235 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @mastra/mssql
|
|
2
2
|
|
|
3
|
+
## 0.5.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Implemented AI tracing and observability features ([#9368](https://github.com/mastra-ai/mastra/pull/9368))
|
|
8
|
+
- Added createAISpan, updateAISpan, getAITrace, getAITracesPaginated
|
|
9
|
+
- Added batchCreateAISpans, batchUpdateAISpans, batchDeleteAITraces
|
|
10
|
+
- Automatic performance indexes for AI spans
|
|
11
|
+
|
|
12
|
+
Implemented workflow update methods
|
|
13
|
+
- Added updateWorkflowResults with row-level locking (UPDLOCK, HOLDLOCK)
|
|
14
|
+
- Added updateWorkflowState with row-level locking
|
|
15
|
+
- Concurrent update protection for parallel workflow execution
|
|
16
|
+
|
|
17
|
+
Added index management API
|
|
18
|
+
- Added createIndex, listIndexes, describeIndex, dropIndex methods
|
|
19
|
+
- Exposed index management methods directly on store instance
|
|
20
|
+
- Support for composite indexes, unique constraints, and filtered indexes
|
|
21
|
+
|
|
22
|
+
Documentation improvements
|
|
23
|
+
- Comprehensive README with complete API reference (58 methods)
|
|
24
|
+
- Detailed feature descriptions for all storage capabilities
|
|
25
|
+
- Index management examples and best practices
|
|
26
|
+
- Updated to reflect all atomic transaction usage
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
31
|
+
- @mastra/core@0.23.2-alpha.0
|
|
32
|
+
|
|
3
33
|
## 0.4.7
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -269,34 +299,4 @@
|
|
|
269
299
|
|
|
270
300
|
## 0.3.4
|
|
271
301
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
- [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
|
|
275
|
-
|
|
276
|
-
- Updated dependencies []:
|
|
277
|
-
- @mastra/core@0.15.1
|
|
278
|
-
|
|
279
|
-
## 0.3.3
|
|
280
|
-
|
|
281
|
-
### Patch Changes
|
|
282
|
-
|
|
283
|
-
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
284
|
-
|
|
285
|
-
- Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
|
|
286
|
-
- @mastra/core@0.15.0
|
|
287
|
-
|
|
288
|
-
## 0.3.3-alpha.0
|
|
289
|
-
|
|
290
|
-
### Patch Changes
|
|
291
|
-
|
|
292
|
-
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
293
|
-
|
|
294
|
-
- Updated dependencies [[`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01)]:
|
|
295
|
-
- @mastra/core@0.14.2-alpha.1
|
|
296
|
-
|
|
297
|
-
## 0.3.2
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
... 256 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 286 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 6.7.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update MainSidebar component to fit required changes in Cloud CTA link ([#9364](https://github.com/mastra-ai/mastra/pull/9364))
|
|
8
|
+
|
|
9
|
+
- Render zod unions and discriminated unions correctly in dynamic form. ([#9365](https://github.com/mastra-ai/mastra/pull/9365))
|
|
10
|
+
|
|
11
|
+
- Move some components to playground-ui for usage in cloud ([#9358](https://github.com/mastra-ai/mastra/pull/9358))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
14
|
+
- @mastra/core@0.23.2-alpha.0
|
|
15
|
+
- @mastra/client-js@0.16.7-alpha.0
|
|
16
|
+
- @mastra/react@0.0.13-alpha.0
|
|
17
|
+
|
|
3
18
|
## 6.7.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -283,20 +298,5 @@
|
|
|
283
298
|
|
|
284
299
|
- Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
|
|
285
300
|
|
|
286
|
-
- handle error case in react sdk ([#8676](https://github.com/mastra-ai/mastra/pull/8676))
|
|
287
|
-
|
|
288
|
-
- Make sure to convert the agent instructions when showing them ([#8702](https://github.com/mastra-ai/mastra/pull/8702))
|
|
289
|
-
|
|
290
|
-
- Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
|
|
291
|
-
|
|
292
|
-
- Refactor EntryList component and Scorer and Observability pages ([#8652](https://github.com/mastra-ai/mastra/pull/8652))
|
|
293
|
-
|
|
294
|
-
- fix maxSteps model settings not being passed to generate and stream endpoints ([#8627](https://github.com/mastra-ai/mastra/pull/8627))
|
|
295
|
-
|
|
296
|
-
- Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
|
|
297
|
-
|
|
298
|
-
- Updated dependencies [[`f920afd`](https://github.com/mastra-ai/mastra/commit/f920afdf8725d14d73f895f51a24bb7c79bb4fba), [`2ddb851`](https://github.com/mastra-ai/mastra/commit/2ddb8519c4b6f1d31be10ffd33b41d2b649a04ff), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`2a90197`](https://github.com/mastra-ai/mastra/commit/2a90197276e8439a1ee8371c10cde4d6a23bddef), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`c3ef11f`](https://github.com/mastra-ai/mastra/commit/c3ef11f76e1931cf8f041e9eccf3b382260da022), [`78cfb6b`](https://github.com/mastra-ai/mastra/commit/78cfb6b66fe88bc848105fccb6459fd75413ec87), [`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), [`5f7c6a9`](https://github.com/mastra-ai/mastra/commit/5f7c6a986cd9469279820961f8da0a0321fbbd71), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`59d036d`](https://github.com/mastra-ai/mastra/commit/59d036d4c2706b430b0e3f1f1e0ee853ce16ca04)]:
|
|
299
|
-
- @mastra/react@0.0.6-alpha.0
|
|
300
|
-
- @mastra/core@0.21.0-alpha.0
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3870 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/react-hooks
|
|
2
2
|
|
|
3
|
+
## 0.0.13-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies []:
|
|
8
|
+
- @mastra/client-js@0.16.7-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.0.12
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -292,11 +299,4 @@
|
|
|
292
299
|
|
|
293
300
|
### Patch Changes
|
|
294
301
|
|
|
295
|
-
|
|
296
|
-
- @mastra/client-js@0.14.1-alpha.1
|
|
297
|
-
|
|
298
|
-
## 0.0.2-alpha.0
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
... 29 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 36 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/schema-compat
|
|
2
2
|
|
|
3
|
+
## 0.11.6-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix Zod v4 toJSONSchema bug with z.record() single-argument form ([#9355](https://github.com/mastra-ai/mastra/pull/9355))
|
|
8
|
+
|
|
9
|
+
Zod v4 has a bug in the single-argument form of `z.record(valueSchema)` where it incorrectly assigns the value schema to `keyType` instead of `valueType`, leaving `valueType` undefined. This causes `toJSONSchema()` to throw "Cannot read properties of undefined (reading '\_zod')" when processing schemas containing `z.record()` fields.
|
|
10
|
+
|
|
11
|
+
This fix patches affected schemas before conversion by detecting records with missing `valueType` and correctly assigning the schema to `valueType` while setting `keyType` to `z.string()` (the default). The patch recursively handles nested schemas including those wrapped in `.optional()`, `.nullable()`, arrays, unions, and objects.
|
|
12
|
+
|
|
13
|
+
- Improved reliability of string field types in tool schema compatibility ([#9362](https://github.com/mastra-ai/mastra/pull/9362))
|
|
14
|
+
|
|
3
15
|
## 0.11.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 0.23.2-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
8
|
+
- @mastra/core@0.23.2-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.23.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -292,11 +299,4 @@
|
|
|
292
299
|
|
|
293
300
|
## 0.20.1-alpha.0
|
|
294
301
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
- Updated dependencies [[`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0)]:
|
|
298
|
-
- @mastra/core@0.20.1-alpha.0
|
|
299
|
-
|
|
300
|
-
## 0.20.0
|
|
301
|
-
|
|
302
|
-
... 3888 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3895 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.17.6-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update MainSidebar component to fit required changes in Cloud CTA link ([#9364](https://github.com/mastra-ai/mastra/pull/9364))
|
|
8
|
+
|
|
3
9
|
## 0.17.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -292,11 +298,5 @@
|
|
|
292
298
|
|
|
293
299
|
- Add conditional chaining to scorer.agentNames return ([#8199](https://github.com/mastra-ai/mastra/pull/8199))
|
|
294
300
|
|
|
295
|
-
- Show model that worked when there are model fallbacks ([#8167](https://github.com/mastra-ai/mastra/pull/8167))
|
|
296
|
-
|
|
297
|
-
- Add types in the streamVNext codepath, fixes for various issues across multiple packages surfaced from type issues, align return types. ([#8010](https://github.com/mastra-ai/mastra/pull/8010))
|
|
298
|
-
|
|
299
|
-
- Add model fallbacks to playground ([#7427](https://github.com/mastra-ai/mastra/pull/7427))
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1792 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.17.6-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Use dynamic model for scorers in create cli ([#9342](https://github.com/mastra-ai/mastra/pull/9342))
|
|
8
|
+
|
|
9
|
+
- Update MainSidebar component to fit required changes in Cloud CTA link ([#9364](https://github.com/mastra-ai/mastra/pull/9364))
|
|
10
|
+
|
|
11
|
+
- Better handle errors during `mastra start` and throw them with Mastra's logger. Also add special error handling for `ERR_MODULE_NOT_FOUND` cases. ([#9338](https://github.com/mastra-ai/mastra/pull/9338))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`17e5a4e`](https://github.com/mastra-ai/mastra/commit/17e5a4e828a8ebc6148c76b42a139c0f9bf7e25f), [`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78), [`30f92b5`](https://github.com/mastra-ai/mastra/commit/30f92b5b3aa224289f2f0eff56babcfa7a87b772)]:
|
|
14
|
+
- @mastra/deployer@0.23.2-alpha.0
|
|
15
|
+
- @mastra/core@0.23.2-alpha.0
|
|
16
|
+
|
|
3
17
|
## 0.17.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -285,18 +299,4 @@
|
|
|
285
299
|
|
|
286
300
|
- add client search to all entities ([#8523](https://github.com/mastra-ai/mastra/pull/8523))
|
|
287
301
|
|
|
288
|
-
|
|
289
|
-
fixed an issue with provider ID rendering in playground UI
|
|
290
|
-
|
|
291
|
-
- Fix useStreamWorkflow unmounting breaking stream call ([#8449](https://github.com/mastra-ai/mastra/pull/8449))
|
|
292
|
-
|
|
293
|
-
- Remove shell from dev ([#8466](https://github.com/mastra-ai/mastra/pull/8466))
|
|
294
|
-
|
|
295
|
-
- UX for the agents page ([#8517](https://github.com/mastra-ai/mastra/pull/8517))
|
|
296
|
-
|
|
297
|
-
- add icons into playground titles + a link to the entity doc ([#8518](https://github.com/mastra-ai/mastra/pull/8518))
|
|
298
|
-
|
|
299
|
-
- Updated dependencies [[`c621613`](https://github.com/mastra-ai/mastra/commit/c621613069173c69eb2c3ef19a5308894c6549f0), [`ee17cec`](https://github.com/mastra-ai/mastra/commit/ee17cec065f4454740c9cc8f8a841027a5990f57), [`12b1189`](https://github.com/mastra-ai/mastra/commit/12b118942445e4de0dd916c593e33ec78dc3bc73), [`42ffed3`](https://github.com/mastra-ai/mastra/commit/42ffed311b9d8750652bbc55c773be62c989fcc6), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`076b092`](https://github.com/mastra-ai/mastra/commit/076b0924902ff0f49d5712d2df24c4cca683713f), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa), [`c582906`](https://github.com/mastra-ai/mastra/commit/c5829065a346260f96c4beb8af131b94804ae3ad), [`fa2eb96`](https://github.com/mastra-ai/mastra/commit/fa2eb96af16c7d433891a73932764960d3235c1d), [`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`a739d0c`](https://github.com/mastra-ai/mastra/commit/a739d0c8b37cd89569e04a6ca0827083c6167e19), [`a9c4cb7`](https://github.com/mastra-ai/mastra/commit/a9c4cb7d6a35de23ca51066f166a66e0e4cca418), [`603e927`](https://github.com/mastra-ai/mastra/commit/603e9279db8bf8a46caf83881c6b7389ccffff7e), [`cd45982`](https://github.com/mastra-ai/mastra/commit/cd4598291cda128a88738734ae6cbef076ebdebd), [`874f74d`](https://github.com/mastra-ai/mastra/commit/874f74da4b1acf6517f18132d035612c3ecc394a), [`b728a45`](https://github.com/mastra-ai/mastra/commit/b728a45ab3dba59da0f5ee36b81fe246659f305d), [`0baf2ba`](https://github.com/mastra-ai/mastra/commit/0baf2bab8420277072ef1f95df5ea7b0a2f61fe7), [`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0), [`a6d69c5`](https://github.com/mastra-ai/mastra/commit/a6d69c5fb50c0875b46275811fece5862f03c6a0), [`84199af`](https://github.com/mastra-ai/mastra/commit/84199af8673f6f9cb59286ffb5477a41932775de), [`7f431af`](https://github.com/mastra-ai/mastra/commit/7f431afd586b7d3265075e73106eb73167edbb86), [`26e968d`](https://github.com/mastra-ai/mastra/commit/26e968db2171ded9e4d47aa1b4f19e1e771158d0), [`cbd3fb6`](https://github.com/mastra-ai/mastra/commit/cbd3fb65adb03a7c0df193cb998aed5ac56675ee)]:
|
|
300
|
-
- @mastra/core@0.20.1
|
|
301
|
-
|
|
302
|
-
... 6323 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 6337 more lines hidden. See full changelog in package directory.
|
|
@@ -23,13 +23,13 @@ export const weatherAgent = new Agent({
|
|
|
23
23
|
});
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
> See [
|
|
26
|
+
> See [Using AI SDK with Mastra](/models#use-ai-sdk-with-mastra) for more information.
|
|
27
27
|
|
|
28
28
|
## Streaming
|
|
29
29
|
|
|
30
30
|
The recommended way of using Mastra and AI SDK together is by installing the `@mastra/ai-sdk` package. `@mastra/ai-sdk` provides custom API routes and utilities for streaming Mastra agents in AI SDK-compatible formats. Including chat, workflow, and network route handlers, along with utilities and exported types for UI integrations.
|
|
31
31
|
|
|
32
|
-
<Tabs items={["npm", "
|
|
32
|
+
<Tabs items={["npm", "pnpm", "yarn", "bun"]}>
|
|
33
33
|
<Tabs.Tab>
|
|
34
34
|
```bash copy
|
|
35
35
|
npm install @mastra/ai-sdk
|
|
@@ -37,12 +37,12 @@ The recommended way of using Mastra and AI SDK together is by installing the `@m
|
|
|
37
37
|
</Tabs.Tab>
|
|
38
38
|
<Tabs.Tab>
|
|
39
39
|
```bash copy
|
|
40
|
-
|
|
40
|
+
pnpm add @mastra/ai-sdk
|
|
41
41
|
```
|
|
42
42
|
</Tabs.Tab>
|
|
43
43
|
<Tabs.Tab>
|
|
44
44
|
```bash copy
|
|
45
|
-
|
|
45
|
+
yarn add @mastra/ai-sdk
|
|
46
46
|
```
|
|
47
47
|
</Tabs.Tab>
|
|
48
48
|
<Tabs.Tab>
|
|
@@ -197,6 +197,7 @@ Here's an example: For a [nested agent stream within a tool](/docs/streaming/too
|
|
|
197
197
|
|
|
198
198
|
import { useChat } from "@ai-sdk/react";
|
|
199
199
|
import { AgentTool } from '../ui/agent-tool';
|
|
200
|
+
import { DefaultChatTransport } from 'ai';
|
|
200
201
|
import type { AgentDataPart } from "@mastra/ai-sdk";
|
|
201
202
|
|
|
202
203
|
export default function Page() {
|
|
@@ -349,7 +350,7 @@ Mastra supports AI SDK UI hooks for connecting frontend components directly to a
|
|
|
349
350
|
|
|
350
351
|
Install the required AI SDK React package:
|
|
351
352
|
|
|
352
|
-
<Tabs items={["npm", "
|
|
353
|
+
<Tabs items={["npm", "pnpm", "yarn", "bun"]}>
|
|
353
354
|
<Tabs.Tab>
|
|
354
355
|
```bash copy
|
|
355
356
|
npm install @ai-sdk/react
|
|
@@ -357,12 +358,12 @@ Install the required AI SDK React package:
|
|
|
357
358
|
</Tabs.Tab>
|
|
358
359
|
<Tabs.Tab>
|
|
359
360
|
```bash copy
|
|
360
|
-
|
|
361
|
+
pnpm add @ai-sdk/react
|
|
361
362
|
```
|
|
362
363
|
</Tabs.Tab>
|
|
363
364
|
<Tabs.Tab>
|
|
364
365
|
```bash copy
|
|
365
|
-
|
|
366
|
+
yarn add @ai-sdk/react
|
|
366
367
|
```
|
|
367
368
|
</Tabs.Tab>
|
|
368
369
|
<Tabs.Tab>
|
|
@@ -382,6 +383,7 @@ The `useChat()` hook handles real-time chat interactions between your frontend a
|
|
|
382
383
|
|
|
383
384
|
import { useChat } from "@ai-sdk/react";
|
|
384
385
|
import { useState } from "react";
|
|
386
|
+
import { DefaultChatTransport } from 'ai';
|
|
385
387
|
|
|
386
388
|
export function Chat() {
|
|
387
389
|
const [inputValue, setInputValue] = useState('')
|
|
@@ -471,6 +473,7 @@ export async function POST(req: Request) {
|
|
|
471
473
|
|
|
472
474
|
import { useChat } from "@ai-sdk/react";
|
|
473
475
|
import { useState } from "react";
|
|
476
|
+
import { DefaultChatTransport } from 'ai';
|
|
474
477
|
|
|
475
478
|
export function ChatExtra() {
|
|
476
479
|
const [inputValue, setInputValue] = useState('')
|
|
@@ -51,7 +51,7 @@ That memory instance has options you can configure for working memory, conversat
|
|
|
51
51
|
|
|
52
52
|
## Different types of memory
|
|
53
53
|
|
|
54
|
-
Mastra supports three types of memory: working memory, conversation history, and semantic recall.
|
|
54
|
+
Mastra supports three types of memory: working memory, conversation history, and semantic recall.
|
|
55
55
|
|
|
56
56
|
[**Working memory**](./working-memory.mdx) stores persistent user-specific details such as names, preferences, goals, and other structured data. (Compare this to ChatGPT where you can ask it to tell you about yourself). This is implemented as a block of Markdown text that the agent is able to update over time (or alternately, as a Zod schema)
|
|
57
57
|
|
|
@@ -69,7 +69,7 @@ All memory types are [thread-scoped](./working-memory.mdx#thread-scoped-memory-d
|
|
|
69
69
|
|
|
70
70
|
To persist and recall information between conversations, memory requires a storage adapter.
|
|
71
71
|
|
|
72
|
-
Supported options include [LibSQL](/docs/memory/storage/memory-with-libsql), [MongoDB](/docs/memory/storage/memory-with-mongodb), [Postgres](/docs/memory/storage/memory-with-pg), and [Upstash](/docs/memory/storage/memory-with-upstash)
|
|
72
|
+
Supported options include [LibSQL](/docs/memory/storage/memory-with-libsql.mdx), [MongoDB](/docs/memory/storage/memory-with-mongodb.mdx), [Postgres](/docs/memory/storage/memory-with-pg.mdx), and [Upstash](/docs/memory/storage/memory-with-upstash.mdx)
|
|
73
73
|
|
|
74
74
|
We use LibSQL out of the box because it is file-based or in-memory, so it is easy to install and works well with the playground.
|
|
75
75
|
|
|
@@ -92,10 +92,10 @@ const agent = new Agent({
|
|
|
92
92
|
|
|
93
93
|
**Storage/vector code Examples**:
|
|
94
94
|
|
|
95
|
-
- [LibSQL](/docs/memory/storage/memory-with-libsql)
|
|
96
|
-
- [MongoDB](/docs/memory/storage/memory-with-mongodb)
|
|
97
|
-
- [Postgres](/docs/memory/storage/memory-with-pg)
|
|
98
|
-
- [Upstash](/docs/memory/storage/memory-with-upstash)
|
|
95
|
+
- [LibSQL](/docs/memory/storage/memory-with-libsql.mdx)
|
|
96
|
+
- [MongoDB](/docs/memory/storage/memory-with-mongodb.mdx)
|
|
97
|
+
- [Postgres](/docs/memory/storage/memory-with-pg.mdx)
|
|
98
|
+
- [Upstash](/docs/memory/storage/memory-with-upstash.mdx)
|
|
99
99
|
|
|
100
100
|
### Embedder configuration
|
|
101
101
|
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Example: Memory with MongoDB | Memory | Mastra Docs"
|
|
3
|
+
description: Example for how to use Mastra's memory system with MongoDB storage and vector capabilities.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Memory with MongoDB
|
|
7
|
+
|
|
8
|
+
This example demonstrates how to use Mastra's memory system with MongoDB as the storage backend.
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
This example uses the `openai` model and requires a MongoDB database. Make sure to add the following to your `.env` file:
|
|
13
|
+
|
|
14
|
+
```bash filename=".env" copy
|
|
15
|
+
OPENAI_API_KEY=<your-api-key>
|
|
16
|
+
MONGODB_URI=<your-connection-string>
|
|
17
|
+
MONGODB_DB_NAME=<your-db-name>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
And install the following package:
|
|
21
|
+
|
|
22
|
+
```bash copy
|
|
23
|
+
npm install @mastra/mongodb
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Adding memory to an agent
|
|
27
|
+
|
|
28
|
+
To add MongoDB memory to an agent use the `Memory` class and create a new `storage` key using `MongoDBStore`. The configuration supports both local and remote MongoDB instances.
|
|
29
|
+
|
|
30
|
+
```typescript filename="src/mastra/agents/example-mongodb-agent.ts" showLineNumbers copy
|
|
31
|
+
import { Memory } from "@mastra/memory";
|
|
32
|
+
import { Agent } from "@mastra/core/agent";
|
|
33
|
+
import { openai } from "@ai-sdk/openai";
|
|
34
|
+
import { MongoDBStore } from "@mastra/mongodb";
|
|
35
|
+
|
|
36
|
+
export const mongodbAgent = new Agent({
|
|
37
|
+
name: "mongodb-agent",
|
|
38
|
+
instructions: "You are an AI agent with the ability to automatically recall memories from previous interactions.",
|
|
39
|
+
model: openai("gpt-4o"),
|
|
40
|
+
memory: new Memory({
|
|
41
|
+
storage: new MongoDBStore({
|
|
42
|
+
url: process.env.MONGODB_URI!,
|
|
43
|
+
dbName: process.env.MONGODB_DB_NAME!
|
|
44
|
+
}),
|
|
45
|
+
options: {
|
|
46
|
+
threads: {
|
|
47
|
+
generateTitle: true
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
});
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Vector embeddings with MongoDB
|
|
55
|
+
|
|
56
|
+
Embeddings are numeric vectors used by memory's `semanticRecall` to retrieve related messages by meaning (not keywords).
|
|
57
|
+
|
|
58
|
+
> Note: You must use a deployment hosted on MongoDB Atlas to successfully use the MongoDB Vector database.
|
|
59
|
+
|
|
60
|
+
This setup uses FastEmbed, a local embedding model, to generate vector embeddings.
|
|
61
|
+
To use this, install `@mastra/fastembed`:
|
|
62
|
+
|
|
63
|
+
```bash copy
|
|
64
|
+
npm install @mastra/fastembed
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Add the following to your agent:
|
|
68
|
+
|
|
69
|
+
```typescript filename="src/mastra/agents/example-mongodb-agent.ts" showLineNumbers copy
|
|
70
|
+
import { Memory } from "@mastra/memory";
|
|
71
|
+
import { Agent } from "@mastra/core/agent";
|
|
72
|
+
import { openai } from "@ai-sdk/openai";
|
|
73
|
+
import { MongoDBStore, MongoDBVector } from "@mastra/mongodb";
|
|
74
|
+
import { fastembed } from "@mastra/fastembed";
|
|
75
|
+
|
|
76
|
+
export const mongodbAgent = new Agent({
|
|
77
|
+
name: "mongodb-agent",
|
|
78
|
+
instructions: "You are an AI agent with the ability to automatically recall memories from previous interactions.",
|
|
79
|
+
model: openai("gpt-4o"),
|
|
80
|
+
memory: new Memory({
|
|
81
|
+
storage: new MongoDBStore({
|
|
82
|
+
url: process.env.MONGODB_URI!,
|
|
83
|
+
dbName: process.env.MONGODB_DB_NAME!
|
|
84
|
+
}),
|
|
85
|
+
vector: new MongoDBVector({
|
|
86
|
+
uri: process.env.MONGODB_URI!,
|
|
87
|
+
dbName: process.env.MONGODB_DB_NAME!
|
|
88
|
+
}),
|
|
89
|
+
embedder: fastembed,
|
|
90
|
+
options: {
|
|
91
|
+
lastMessages: 10,
|
|
92
|
+
semanticRecall: {
|
|
93
|
+
topK: 3,
|
|
94
|
+
messageRange: 2
|
|
95
|
+
},
|
|
96
|
+
threads: {
|
|
97
|
+
generateTitle: true // generates descriptive thread titles automatically
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Usage example
|
|
105
|
+
|
|
106
|
+
Use `memoryOptions` to scope recall for this request. Set `lastMessages: 5` to limit recency-based recall, and use `semanticRecall` to fetch the `topK: 3` most relevant messages, including `messageRange: 2` neighboring messages for context around each match.
|
|
107
|
+
|
|
108
|
+
```typescript filename="src/test-mongodb-agent.ts" showLineNumbers copy
|
|
109
|
+
import "dotenv/config";
|
|
110
|
+
|
|
111
|
+
import { mastra } from "./mastra";
|
|
112
|
+
|
|
113
|
+
const threadId = "123";
|
|
114
|
+
const resourceId = "user-456";
|
|
115
|
+
|
|
116
|
+
const agent = mastra.getAgent("mongodbAgent");
|
|
117
|
+
|
|
118
|
+
const message = await agent.stream("My name is Mastra", {
|
|
119
|
+
memory: {
|
|
120
|
+
thread: threadId,
|
|
121
|
+
resource: resourceId
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
await message.textStream.pipeTo(new WritableStream());
|
|
126
|
+
|
|
127
|
+
const stream = await agent.stream("What's my name?", {
|
|
128
|
+
memory: {
|
|
129
|
+
thread: threadId,
|
|
130
|
+
resource: resourceId
|
|
131
|
+
},
|
|
132
|
+
memoryOptions: {
|
|
133
|
+
lastMessages: 5,
|
|
134
|
+
semanticRecall: {
|
|
135
|
+
topK: 3,
|
|
136
|
+
messageRange: 2
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
for await (const chunk of stream.textStream) {
|
|
142
|
+
process.stdout.write(chunk);
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Related
|
|
147
|
+
|
|
148
|
+
- [Calling Agents](../agents/calling-agents.mdx)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.13.37-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`2afd345`](https://github.com/mastra-ai/mastra/commit/2afd3450825b76e41f7973baddf13867ea042e40), [`eefc89e`](https://github.com/mastra-ai/mastra/commit/eefc89ee69f05bb71661473a807fc7dc03d56f17), [`0fe7adb`](https://github.com/mastra-ai/mastra/commit/0fe7adb0f20f59a6bb41f235d01f8b7a880ea6e7), [`a42e496`](https://github.com/mastra-ai/mastra/commit/a42e49686a7486e2e9e9397fa98e5ff7a71dc1b0), [`3670db7`](https://github.com/mastra-ai/mastra/commit/3670db7e8e798f9d65fac5bfb732134a1f26ba7b), [`fc843ff`](https://github.com/mastra-ai/mastra/commit/fc843ff4d1d149317b6324553ce5ad7972062a78)]:
|
|
8
|
+
- @mastra/core@0.23.2-alpha.0
|
|
9
|
+
|
|
3
10
|
## 0.13.36
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.37-alpha.0",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"uuid": "^11.1.0",
|
|
34
34
|
"zod": "^3.25.76",
|
|
35
35
|
"zod-to-json-schema": "^3.24.6",
|
|
36
|
-
"@mastra/core": "0.23.
|
|
36
|
+
"@mastra/core": "0.23.2-alpha.0",
|
|
37
37
|
"@mastra/mcp": "^0.14.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"tsx": "^4.19.4",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
51
|
"vitest": "^3.2.4",
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
52
|
+
"@internal/lint": "0.0.55",
|
|
53
|
+
"@mastra/core": "0.23.2-alpha.0"
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://mastra.ai",
|
|
56
56
|
"repository": {
|