@mastra/mcp-docs-server 0.13.31-alpha.0 → 0.13.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +2 -0
- package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +8 -8
- package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +2 -0
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +10 -6
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +9 -9
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +8 -8
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Freact.md +9 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +8 -8
- package/.docs/organized/changelogs/create-mastra.md +9 -9
- package/.docs/organized/changelogs/mastra.md +16 -16
- package/.docs/raw/agents/overview.mdx +4 -37
- package/.docs/raw/tools-mcp/overview.mdx +2 -38
- package/.docs/raw/workflows/overview.mdx +137 -229
- package/CHANGELOG.md +7 -0
- package/package.json +4 -4
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @internal/lint
|
|
2
2
|
|
|
3
|
+
## 0.0.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
8
|
+
- @mastra/core@0.21.1
|
|
9
|
+
|
|
3
10
|
## 0.0.45
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
|
|
292
299
|
## 0.0.18
|
|
293
300
|
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- @mastra/core@0.11.1
|
|
297
|
-
|
|
298
|
-
## 0.0.17
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 398 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/ai-sdk
|
|
2
2
|
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update README to include more usage examples ([#8817](https://github.com/mastra-ai/mastra/pull/8817))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
10
|
+
- @mastra/core@0.21.1
|
|
11
|
+
|
|
3
12
|
## 0.2.1-alpha.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -290,9 +299,4 @@
|
|
|
290
299
|
|
|
291
300
|
## 0.0.1-alpha.0
|
|
292
301
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
- [#7263](https://github.com/mastra-ai/mastra/pull/7263) [`9beaeff`](https://github.com/mastra-ai/mastra/commit/9beaeffa4a97b1d5fd01a7f8af8708b16067f67c) Thanks [@wardpeet](https://github.com/wardpeet)! - Create new `@mastra/ai-sdk` package to better support `useChat()`
|
|
296
|
-
|
|
297
|
-
- Updated dependencies [[`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715), [`ff89505`](https://github.com/mastra-ai/mastra/commit/ff895057c8c7e91a5535faef46c5e5391085ddfa), [`183dc95`](https://github.com/mastra-ai/mastra/commit/183dc95596f391b977bd1a2c050b8498dac74891), [`a1111e2`](https://github.com/mastra-ai/mastra/commit/a1111e24e705488adfe5e0a6f20c53bddf26cb22), [`61debef`](https://github.com/mastra-ai/mastra/commit/61debefd80ad3a7ed5737e19df6a23d40091689a), [`9beaeff`](https://github.com/mastra-ai/mastra/commit/9beaeffa4a97b1d5fd01a7f8af8708b16067f67c), [`9eee594`](https://github.com/mastra-ai/mastra/commit/9eee594e35e0ca2a650fcc33fa82009a142b9ed0), [`979912c`](https://github.com/mastra-ai/mastra/commit/979912cfd180aad53287cda08af771df26454e2c), [`7dcf4c0`](https://github.com/mastra-ai/mastra/commit/7dcf4c04f44d9345b1f8bc5d41eae3f11ac61611), [`ad78bfc`](https://github.com/mastra-ai/mastra/commit/ad78bfc4ea6a1fff140432bf4f638e01af7af668), [`0ce418a`](https://github.com/mastra-ai/mastra/commit/0ce418a1ccaa5e125d4483a9651b635046152569), [`8387952`](https://github.com/mastra-ai/mastra/commit/838795227b4edf758c84a2adf6f7fba206c27719), [`5eca5d2`](https://github.com/mastra-ai/mastra/commit/5eca5d2655788863ea0442a46c9ef5d3c6dbe0a8)]:
|
|
298
|
-
- @mastra/core@0.15.3-alpha.4
|
|
302
|
+
... 8 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.16.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
8
|
+
- @mastra/core@0.21.1
|
|
9
|
+
|
|
3
10
|
## 0.16.1-alpha.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
|
|
292
299
|
## 0.13.1
|
|
293
300
|
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- fix workflow resuming issue in the playground ([#7988](https://github.com/mastra-ai/mastra/pull/7988))
|
|
297
|
-
|
|
298
|
-
- Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
|
|
299
|
-
- @mastra/core@0.17.1
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2913 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update provider registry with latest models and providers ([`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a))
|
|
8
|
+
|
|
9
|
+
- Update provider registry and model documentation with latest models and providers ([`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2))
|
|
10
|
+
|
|
11
|
+
- Ability to call agents as tools with .generate()/.stream() ([#8863](https://github.com/mastra-ai/mastra/pull/8863))
|
|
12
|
+
|
|
13
|
+
- Add runId to `agent-execution-event-{string}` and `workflow-execution-event-{string}` event streamed in network ([#8862](https://github.com/mastra-ai/mastra/pull/8862))
|
|
14
|
+
|
|
3
15
|
## 0.21.1-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -287,16 +299,4 @@
|
|
|
287
299
|
|
|
288
300
|
- Marked OTEL based telemetry as deprecated. ([#8586](https://github.com/mastra-ai/mastra/pull/8586))
|
|
289
301
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
- Fix TypeScript errors with provider-defined tools by updating ai-v5 and openai-v5 to matching provider-utils versions. This ensures npm deduplicates to a single provider-utils instance, resolving type incompatibility issues when passing provider tools to Agent. ([#8584](https://github.com/mastra-ai/mastra/pull/8584))
|
|
293
|
-
|
|
294
|
-
Also adds deprecation warning to Agent import from root path to encourage using the recommended subpath import.
|
|
295
|
-
|
|
296
|
-
- UX for the agents page ([#8517](https://github.com/mastra-ai/mastra/pull/8517))
|
|
297
|
-
|
|
298
|
-
- add icons into playground titles + a link to the entity doc ([#8518](https://github.com/mastra-ai/mastra/pull/8518))
|
|
299
|
-
|
|
300
|
-
## 0.20.1-alpha.4
|
|
301
|
-
|
|
302
|
-
... 4246 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 4258 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/deployer-cloud
|
|
2
2
|
|
|
3
|
+
## 0.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
8
|
+
- @mastra/deployer@0.21.1
|
|
9
|
+
- @mastra/core@0.21.1
|
|
10
|
+
|
|
3
11
|
## 0.21.1-alpha.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -291,12 +299,4 @@
|
|
|
291
299
|
|
|
292
300
|
## 0.17.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
|
-
... 490 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 498 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.14.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
|
|
8
|
+
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
9
|
+
- Have more control over the versions in the future to not have breakages over night
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
12
|
+
- @mastra/deployer@0.21.1
|
|
13
|
+
- @mastra/core@0.21.1
|
|
14
|
+
|
|
3
15
|
## 0.14.9-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
- @mastra/core@0.16.3
|
|
287
299
|
- @mastra/deployer@0.16.3
|
|
288
300
|
|
|
289
|
-
## 0.13.7-alpha.0
|
|
290
|
-
|
|
291
|
-
### Patch Changes
|
|
292
|
-
|
|
293
|
-
- Updated dependencies [[`b4379f7`](https://github.com/mastra-ai/mastra/commit/b4379f703fd74474f253420e8c3a684f2c4b2f8e), [`b4379f7`](https://github.com/mastra-ai/mastra/commit/b4379f703fd74474f253420e8c3a684f2c4b2f8e), [`dd9119b`](https://github.com/mastra-ai/mastra/commit/dd9119b175a8f389082f75c12750e51f96d65dca), [`d34aaa1`](https://github.com/mastra-ai/mastra/commit/d34aaa1da5d3c5f991740f59e2fe6d28d3e2dd91), [`ce1e580`](https://github.com/mastra-ai/mastra/commit/ce1e580f6391e94a0c6816a9c5db0a21566a262f), [`b2babfa`](https://github.com/mastra-ai/mastra/commit/b2babfa9e75b22f2759179e71d8473f6dc5421ed), [`d8c3ba5`](https://github.com/mastra-ai/mastra/commit/d8c3ba516f4173282d293f7e64769cfc8738d360), [`a566c4e`](https://github.com/mastra-ai/mastra/commit/a566c4e92d86c1671707c54359b1d33934f7cc13), [`0666082`](https://github.com/mastra-ai/mastra/commit/06660820230dcb1fa7c1d51c8254107afd68cd67), [`af333aa`](https://github.com/mastra-ai/mastra/commit/af333aa30fe6d1b127024b03a64736c46eddeca2), [`3863c52`](https://github.com/mastra-ai/mastra/commit/3863c52d44b4e5779968b802d977e87adf939d8e), [`6424c7e`](https://github.com/mastra-ai/mastra/commit/6424c7ec38b6921d66212431db1e0958f441b2a7), [`db94750`](https://github.com/mastra-ai/mastra/commit/db94750a41fd29b43eb1f7ce8e97ba8b9978c91b), [`a66a371`](https://github.com/mastra-ai/mastra/commit/a66a3716b00553d7f01842be9deb34f720b10fab), [`69fc3cd`](https://github.com/mastra-ai/mastra/commit/69fc3cd0fd814901785bdcf49bf536ab1e7fd975)]:
|
|
294
|
-
- @mastra/core@0.16.3-alpha.0
|
|
295
|
-
- @mastra/deployer@0.16.3-alpha.0
|
|
296
|
-
|
|
297
|
-
## 0.13.6
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3856 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer-netlify
|
|
2
2
|
|
|
3
|
+
## 0.13.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
|
|
8
|
+
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
9
|
+
- Have more control over the versions in the future to not have breakages over night
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
12
|
+
- @mastra/deployer@0.21.1
|
|
13
|
+
- @mastra/core@0.21.1
|
|
14
|
+
|
|
3
15
|
## 0.13.9-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -287,16 +299,4 @@
|
|
|
287
299
|
- @mastra/core@0.16.3-alpha.0
|
|
288
300
|
- @mastra/deployer@0.16.3-alpha.0
|
|
289
301
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
### Patch Changes
|
|
293
|
-
|
|
294
|
-
- Updated dependencies [[`61926ef`](https://github.com/mastra-ai/mastra/commit/61926ef40d415b805a63527cffe27a50542e15e5)]:
|
|
295
|
-
- @mastra/core@0.16.2
|
|
296
|
-
- @mastra/deployer@0.16.2
|
|
297
|
-
|
|
298
|
-
## 0.12.6-alpha.0
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
... 3581 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3593 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 0.12.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
|
|
8
|
+
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
9
|
+
- Have more control over the versions in the future to not have breakages over night
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
12
|
+
- @mastra/deployer@0.21.1
|
|
13
|
+
- @mastra/core@0.21.1
|
|
14
|
+
|
|
3
15
|
## 0.12.9-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -287,16 +299,4 @@
|
|
|
287
299
|
|
|
288
300
|
### Patch Changes
|
|
289
301
|
|
|
290
|
-
|
|
291
|
-
- @mastra/core@0.16.3-alpha.0
|
|
292
|
-
- @mastra/deployer@0.16.3-alpha.0
|
|
293
|
-
|
|
294
|
-
## 0.11.22
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- Updated dependencies [[`61926ef`](https://github.com/mastra-ai/mastra/commit/61926ef40d415b805a63527cffe27a50542e15e5)]:
|
|
299
|
-
- @mastra/core@0.16.2
|
|
300
|
-
- @mastra/deployer@0.16.2
|
|
301
|
-
|
|
302
|
-
... 3539 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3551 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add undici to global external list ([#8877](https://github.com/mastra-ai/mastra/pull/8877))
|
|
8
|
+
|
|
9
|
+
- Small fix for adding ESM shims when e.g. `__dirname` is used ([#8898](https://github.com/mastra-ai/mastra/pull/8898))
|
|
10
|
+
|
|
11
|
+
- Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
|
|
12
|
+
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
13
|
+
- Have more control over the versions in the future to not have breakages over night
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
16
|
+
- @mastra/core@0.21.1
|
|
17
|
+
- @mastra/server@0.21.1
|
|
18
|
+
|
|
3
19
|
## 0.21.1-alpha.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -282,21 +298,5 @@
|
|
|
282
298
|
|
|
283
299
|
- Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
284
300
|
- @mastra/core@0.20.0-alpha.0
|
|
285
|
-
- @mastra/server@0.20.0-alpha.0
|
|
286
|
-
|
|
287
|
-
## 0.19.1
|
|
288
|
-
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- Added Mastra model router to Playground UI ([#8332](https://github.com/mastra-ai/mastra/pull/8332))
|
|
292
|
-
|
|
293
|
-
- Updated dependencies [[`4a70ccc`](https://github.com/mastra-ai/mastra/commit/4a70ccc5cfa12ae9c2b36545a5814cd98e5a0ead), [`0992b8b`](https://github.com/mastra-ai/mastra/commit/0992b8bf0f4f1ba7ad9940883ec4bb8d867d3105), [`283bea0`](https://github.com/mastra-ai/mastra/commit/283bea07adbaf04a27fa3ad2df611095e0825195)]:
|
|
294
|
-
- @mastra/core@0.19.1
|
|
295
|
-
- @mastra/server@0.19.1
|
|
296
|
-
|
|
297
|
-
## 0.19.1-alpha.1
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 4745 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.13.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
8
|
+
- @mastra/core@0.21.1
|
|
9
|
+
|
|
3
10
|
## 0.13.31-alpha.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
|
|
292
299
|
- Updated dependencies [[`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
|
|
293
300
|
- @mastra/core@0.17.0-alpha.3
|
|
294
|
-
- @mastra/mcp@0.12.1-alpha.0
|
|
295
|
-
|
|
296
|
-
## 0.13.22-alpha.2
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [[`60c9cec`](https://github.com/mastra-ai/mastra/commit/60c9cec7048a79a87440f7840c383875bd710d93), [`897995e`](https://github.com/mastra-ai/mastra/commit/897995e630d572fe2891e7ede817938cabb43251)]:
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2047 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/pg
|
|
2
2
|
|
|
3
|
+
## 0.17.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add configuration documentation and tests for PgVector and PostgresStore, including examples for connection methods, SSL configuration, and pool options ([#8723](https://github.com/mastra-ai/mastra/pull/8723))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
10
|
+
- @mastra/core@0.21.1
|
|
11
|
+
|
|
3
12
|
## 0.17.4-alpha.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
### Patch Changes
|
|
290
299
|
|
|
291
300
|
- Updated dependencies [8fbf79e]
|
|
292
|
-
- @mastra/core@0.16.0-alpha.1
|
|
293
|
-
|
|
294
|
-
## 0.14.7-alpha.0
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
299
|
-
- Updated dependencies [fd83526]
|
|
300
|
-
- Updated dependencies [d0b90ab]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2534 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 6.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`9ba695e`](https://github.com/mastra-ai/mastra/commit/9ba695e9ff977b8f13cc71df3b452775757361e5), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
10
|
+
- @mastra/core@0.21.1
|
|
11
|
+
- @mastra/react@0.0.7
|
|
12
|
+
- @mastra/client-js@0.16.1
|
|
13
|
+
|
|
3
14
|
## 6.5.1-alpha.0
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -287,16 +298,5 @@
|
|
|
287
298
|
- Updated dependencies [[`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0)]:
|
|
288
299
|
- @mastra/core@0.20.1-alpha.0
|
|
289
300
|
- @mastra/client-js@0.15.1-alpha.0
|
|
290
|
-
- @mastra/react@0.0.4-alpha.0
|
|
291
|
-
|
|
292
|
-
## 6.3.0
|
|
293
|
-
|
|
294
|
-
### Minor Changes
|
|
295
|
-
|
|
296
|
-
- Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- dependencies updates: ([#8298](https://github.com/mastra-ai/mastra/pull/8298))
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3709 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/react-hooks
|
|
2
2
|
|
|
3
|
+
## 0.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add @mastra/react to peer deps ([#8857](https://github.com/mastra-ai/mastra/pull/8857))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @mastra/client-js@0.16.1
|
|
11
|
+
|
|
3
12
|
## 0.0.7-alpha.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 0.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
8
|
+
- @mastra/core@0.21.1
|
|
9
|
+
|
|
3
10
|
## 0.21.1-alpha.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -292,11 +299,4 @@
|
|
|
292
299
|
|
|
293
300
|
## 0.18.0-alpha.3
|
|
294
301
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
- Add model fallback handlers and apis ([#7378](https://github.com/mastra-ai/mastra/pull/7378))
|
|
298
|
-
|
|
299
|
-
- Delayed streamVNext breaking change notice by 1 week ([#8121](https://github.com/mastra-ai/mastra/pull/8121))
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
... 3749 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3756 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.17.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
|
|
8
|
+
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
9
|
+
- Have more control over the versions in the future to not have breakages over night
|
|
10
|
+
|
|
3
11
|
## 0.17.0-alpha.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -291,12 +299,4 @@
|
|
|
291
299
|
|
|
292
300
|
- Fix getting tool link path from agent in playground ui tools page ([#8135](https://github.com/mastra-ai/mastra/pull/8135))
|
|
293
301
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- Add model fallback handlers and apis ([#7378](https://github.com/mastra-ai/mastra/pull/7378))
|
|
299
|
-
|
|
300
|
-
- Fix DateTimePicker style issue ([#8106](https://github.com/mastra-ai/mastra/pull/8106))
|
|
301
|
-
|
|
302
|
-
... 1742 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1750 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- - Remove the `mastra deploy` CLI command. Use the deploy instructions of your individual platform. ([#8798](https://github.com/mastra-ai/mastra/pull/8798))
|
|
8
|
+
- Remove `--env` flag from `mastra build` command
|
|
9
|
+
- Remove `--port` flag from `mastra dev`. Use `server.port` on the `new Mastra()` class instead.
|
|
10
|
+
- Validate `--components` and `--llm` flags for `mastra create` and `mastra init`
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`5253cd2`](https://github.com/mastra-ai/mastra/commit/5253cd2d5b2cf4558963fa73c6a6b36c72f8875f), [`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`11e9e8f`](https://github.com/mastra-ai/mastra/commit/11e9e8f4fb09a493ea00deda49081788f16e753b), [`00bf52b`](https://github.com/mastra-ai/mastra/commit/00bf52b89a93e6bffaaaf1714316870ad8af6572), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
15
|
+
- @mastra/deployer@0.21.1
|
|
16
|
+
- @mastra/core@0.21.1
|
|
17
|
+
|
|
3
18
|
## 0.17.0-alpha.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -283,20 +298,5 @@
|
|
|
283
298
|
- Model router documentation and playground UI improvements ([#8372](https://github.com/mastra-ai/mastra/pull/8372))
|
|
284
299
|
|
|
285
300
|
**Documentation generation (`@mastra/core`):**
|
|
286
|
-
- Fixed inverted dynamic model selection logic in provider examples
|
|
287
|
-
- Improved copy: replaced marketing language with action-oriented descriptions
|
|
288
|
-
- Added generated file comments with timestamps to all MDX outputs so maintainers know not to directly edit generated files
|
|
289
|
-
|
|
290
|
-
**Playground UI model picker (`@mastra/playground-ui`):**
|
|
291
|
-
- Fixed provider field clearing when typing in model input
|
|
292
|
-
- Added responsive layout (stacks on mobile, side-by-side on desktop)
|
|
293
|
-
- Improved general styling of provider/model pickers
|
|
294
|
-
|
|
295
|
-
**Environment variables (`@mastra/deployer`):**
|
|
296
|
-
- Properly handle array of env vars (e.g., NETLIFY_TOKEN, NETLIFY_SITE_ID)
|
|
297
|
-
- Added correct singular/plural handling for "environment variable(s)"
|
|
298
|
-
|
|
299
|
-
- fix playground message history initial state for v1 models ([#8427](https://github.com/mastra-ai/mastra/pull/8427))
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 6218 more lines hidden. See full changelog in package directory.
|
|
@@ -137,7 +137,7 @@ instructions: {
|
|
|
137
137
|
|
|
138
138
|
Register your agent in the Mastra instance to make it available throughout your application. Once registered, it can be called from workflows, tools, or other agents, and has access to shared resources such as memory, logging, and observability features:
|
|
139
139
|
|
|
140
|
-
```typescript showLineNumbers filename="src/mastra/index.ts" copy
|
|
140
|
+
```typescript {6} showLineNumbers filename="src/mastra/index.ts" copy
|
|
141
141
|
import { Mastra } from "@mastra/core/mastra";
|
|
142
142
|
import { testAgent } from './agents/test-agent';
|
|
143
143
|
|
|
@@ -156,7 +156,7 @@ const testAgent = mastra.getAgent("testAgent");
|
|
|
156
156
|
```
|
|
157
157
|
<Callout type="info">
|
|
158
158
|
<p>
|
|
159
|
-
`mastra.getAgent()` is preferred over a direct import, since it
|
|
159
|
+
`mastra.getAgent()` is preferred over a direct import, since it provides access to the Mastra instance configuration (logger, telemetry, storage, registered agents, and vector stores).
|
|
160
160
|
</p>
|
|
161
161
|
</Callout>
|
|
162
162
|
|
|
@@ -412,42 +412,9 @@ export const testAgent = new Agent({
|
|
|
412
412
|
|
|
413
413
|
> See [Runtime Context](../server-db/runtime-context.mdx) for more information.
|
|
414
414
|
|
|
415
|
-
## Testing
|
|
416
|
-
There are two ways to run and test agents.
|
|
415
|
+
## Testing with Mastra Playground
|
|
417
416
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
### Mastra Playground
|
|
421
|
-
|
|
422
|
-
With the Mastra Dev Server running you can test an agent from the Mastra Playground by visiting [http://localhost:4111/agents](http://localhost:4111/agents) in your browser.
|
|
423
|
-
|
|
424
|
-
> For more information, see the [Local Dev Playground](/docs/server-db/local-dev-playground) documentation.
|
|
425
|
-
|
|
426
|
-
### Command line
|
|
427
|
-
|
|
428
|
-
Create an agent response using `.generate()` or `.stream()`.
|
|
429
|
-
|
|
430
|
-
```typescript {7} filename="src/test-agent.ts" showLineNumbers copy
|
|
431
|
-
import "dotenv/config";
|
|
432
|
-
|
|
433
|
-
import { mastra } from "./mastra";
|
|
434
|
-
|
|
435
|
-
const agent = mastra.getAgent("testAgent");
|
|
436
|
-
|
|
437
|
-
const response = await agent.generate("Help me organize my day");
|
|
438
|
-
|
|
439
|
-
console.log(response.text);
|
|
440
|
-
```
|
|
441
|
-
|
|
442
|
-
> See [.generate()](../../reference/agents/generate.mdx) or [.stream()](../../reference/agents/stream.mdx) for more information.
|
|
443
|
-
|
|
444
|
-
To test this agent, run the following:
|
|
445
|
-
|
|
446
|
-
```bash copy
|
|
447
|
-
npx tsx src/test-agent.ts
|
|
448
|
-
```
|
|
449
|
-
|
|
450
|
-
</Steps>
|
|
417
|
+
Use the Mastra [Playground](../server-db/local-dev-playground.mdx) to test agents with different messages, inspect tool calls and responses, and debug agent behavior.
|
|
451
418
|
|
|
452
419
|
## Related
|
|
453
420
|
|
|
@@ -87,43 +87,7 @@ export const testTool = createTool({
|
|
|
87
87
|
|
|
88
88
|
> See [Runtime Context](../server-db/runtime-context.mdx) for more information.
|
|
89
89
|
|
|
90
|
-
## Testing
|
|
91
|
-
There are two ways to run and test tools.
|
|
90
|
+
## Testing with Mastra Playground
|
|
92
91
|
|
|
93
|
-
|
|
92
|
+
Use the Mastra [Playground](../server-db/local-dev-playground.mdx) to test tools with different inputs, inspect execution results, and verify tool behavior.
|
|
94
93
|
|
|
95
|
-
### Mastra Playground
|
|
96
|
-
|
|
97
|
-
With the Mastra Dev Server running you can test a tool from the Mastra Playground by visiting [http://localhost:4111/tools](http://localhost:4111/tools) in your browser.
|
|
98
|
-
|
|
99
|
-
> For more information, see the [Local Dev Playground](/docs/server-db/local-dev-playground) documentation.
|
|
100
|
-
|
|
101
|
-
### Command line
|
|
102
|
-
|
|
103
|
-
Invoke a tool using `.execute()`.
|
|
104
|
-
|
|
105
|
-
```typescript filename="src/test-tool.ts" showLineNumbers copy
|
|
106
|
-
import { RuntimeContext } from "@mastra/core/runtime-context";
|
|
107
|
-
import { testTool } from "./mastra/tools/test-tool";
|
|
108
|
-
|
|
109
|
-
const runtimeContext = new RuntimeContext();
|
|
110
|
-
|
|
111
|
-
const result = await testTool.execute({
|
|
112
|
-
context: {
|
|
113
|
-
value: "foo"
|
|
114
|
-
},
|
|
115
|
-
runtimeContext
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
console.log(result);
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
> See [createTool()](../../reference/tools/create-tool.mdx) for more information.
|
|
122
|
-
|
|
123
|
-
To test this tool, run the following:
|
|
124
|
-
|
|
125
|
-
```bash copy
|
|
126
|
-
npx tsx src/test-tool.ts
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
</Steps>
|
|
@@ -3,360 +3,268 @@ title: "Handling Complex LLM Operations | Workflows | Mastra"
|
|
|
3
3
|
description: "Workflows in Mastra help you orchestrate complex sequences of tasks with features like branching, parallel execution, resource suspension, and more."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
import { Steps } from "nextra/components";
|
|
6
|
+
import { Steps, Callout, Tabs } from "nextra/components";
|
|
7
7
|
|
|
8
8
|
# Workflows overview
|
|
9
9
|
|
|
10
|
-
Workflows
|
|
10
|
+
Workflows let you define complex sequences of tasks using clear, structured steps rather than relying on the reasoning of a single agent. They give you full control over how tasks are broken down, how data moves between them, and what gets executed when.
|
|
11
11
|
|
|
12
12
|

|
|
13
13
|
|
|
14
|
-
## When to use
|
|
14
|
+
## When to use workflows
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Use workflows for tasks that are clearly defined upfront and involve multiple steps with a specific execution order. They give you fine-grained control over how data flows and transforms between steps, and which primitives are called at each stage.
|
|
17
17
|
|
|
18
|
-
1. Handle a user question like “Can I return my last order?”
|
|
19
|
-
2. Fetch user-specific data from a database using their `user_id`.
|
|
20
|
-
3. Check return eligibility via an external API or business logic.
|
|
21
|
-
4. Make a conditional decision (e.g. approve, deny, escalate) based on the data.
|
|
22
|
-
5. Generate a tailored response based on the outcome.
|
|
23
18
|
|
|
24
|
-
Each of these tasks is created as a **step** in a workflow, giving you fine-grained control over data flow, execution order, and side effects.
|
|
25
19
|
|
|
26
20
|
> **📹 Watch**: → An introduction to workflows, and how they compare to agents [YouTube (7 minutes)](https://youtu.be/0jg2g3sNvgw)
|
|
27
21
|
|
|
28
|
-
##
|
|
22
|
+
## Core principles
|
|
29
23
|
|
|
30
|
-
|
|
24
|
+
Mastra workflows operate using these principles:
|
|
31
25
|
|
|
32
26
|
- Defining **steps** with `createStep`, specifying input/output schemas and business logic.
|
|
33
27
|
- Composing **steps** with `createWorkflow` to define the execution flow.
|
|
34
28
|
- Running **workflows** to execute the entire sequence, with built-in support for suspension, resumption, and streaming results.
|
|
35
29
|
|
|
36
|
-
|
|
30
|
+
## Creating a workflow step
|
|
37
31
|
|
|
38
|
-
|
|
32
|
+
Steps are the building blocks of workflows. Create a step using `createStep()` with `inputSchema` and `outputSchema` to define the data it accepts and returns.
|
|
39
33
|
|
|
40
|
-
|
|
34
|
+
```typescript {6,9,14} filename="src/mastra/workflows/test-workflow.ts" showLineNumbers copy
|
|
35
|
+
import { createStep } from "@mastra/core/workflows";
|
|
41
36
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
To use workflows, install the required dependencies:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npm install @mastra/core
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Import the necessary functions from the `workflows` subpath:
|
|
52
|
-
|
|
53
|
-
```typescript filename="src/mastra/workflows/test-workflow.ts" showLineNumbers copy
|
|
54
|
-
import { createWorkflow, createStep } from "@mastra/core/workflows";
|
|
55
|
-
import { z } from "zod";
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### Create step
|
|
59
|
-
|
|
60
|
-
Steps are the building blocks of workflows. Create a step using `createStep`:
|
|
61
|
-
|
|
62
|
-
```typescript filename="src/mastra/workflows/test-workflow.ts" showLineNumbers copy
|
|
63
|
-
const step1 = createStep({...});
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
> See [createStep](../../reference/workflows/step.mdx) for more information.
|
|
67
|
-
|
|
68
|
-
### Create workflow
|
|
69
|
-
|
|
70
|
-
Create a workflow using `createWorkflow` and complete it with `.commit()`.
|
|
71
|
-
|
|
72
|
-
```typescript {6,17} filename="src/mastra/workflows/test-workflow.ts" showLineNumbers copy
|
|
73
|
-
import { createWorkflow, createStep } from "@mastra/core/workflows";
|
|
74
|
-
import { z } from "zod";
|
|
75
|
-
|
|
76
|
-
const step1 = createStep({...});
|
|
77
|
-
|
|
78
|
-
export const testWorkflow = createWorkflow({
|
|
79
|
-
id: "test-workflow",
|
|
80
|
-
description: 'Test workflow',
|
|
37
|
+
const step1 = createStep({
|
|
38
|
+
id: "step-1",
|
|
81
39
|
inputSchema: z.object({
|
|
82
|
-
|
|
40
|
+
message: z.string()
|
|
83
41
|
}),
|
|
84
42
|
outputSchema: z.object({
|
|
85
|
-
|
|
43
|
+
formatted: z.string()
|
|
86
44
|
}),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
45
|
+
execute: async ({ inputData }) => {
|
|
46
|
+
const { message } = inputData;
|
|
47
|
+
return {
|
|
48
|
+
formatted: message.toUpperCase()
|
|
49
|
+
};
|
|
90
50
|
}
|
|
91
|
-
})
|
|
92
|
-
.then(step1)
|
|
93
|
-
.commit();
|
|
51
|
+
});
|
|
94
52
|
```
|
|
95
53
|
|
|
96
|
-
> See [
|
|
54
|
+
> See the [Step Class](../../reference/workflows/step.mdx) for a full list of configuration options.
|
|
97
55
|
|
|
98
|
-
|
|
56
|
+
## Creating a workflow
|
|
99
57
|
|
|
100
|
-
|
|
58
|
+
Create a workflow using `createWorkflow()` with `inputSchema` and `outputSchema` to define the data it accepts and returns. Add steps using `.then()` and complete the workflow with `.commit()`.
|
|
101
59
|
|
|
102
|
-
```typescript {
|
|
60
|
+
```typescript {9,12,15,16} filename="src/mastra/workflows/test-workflow.ts" showLineNumbers copy
|
|
103
61
|
import { createWorkflow, createStep } from "@mastra/core/workflows";
|
|
104
62
|
import { z } from "zod";
|
|
105
63
|
|
|
106
64
|
const step1 = createStep({...});
|
|
107
|
-
const step2 = createStep({...});
|
|
108
65
|
|
|
109
66
|
export const testWorkflow = createWorkflow({
|
|
110
67
|
id: "test-workflow",
|
|
111
|
-
description: 'Test workflow',
|
|
112
68
|
inputSchema: z.object({
|
|
113
|
-
|
|
69
|
+
message: z.string()
|
|
114
70
|
}),
|
|
115
71
|
outputSchema: z.object({
|
|
116
72
|
output: z.string()
|
|
117
73
|
})
|
|
118
74
|
})
|
|
119
75
|
.then(step1)
|
|
120
|
-
.then(step2)
|
|
121
76
|
.commit();
|
|
77
|
+
|
|
122
78
|
```
|
|
123
79
|
|
|
124
|
-
>
|
|
80
|
+
> See the [Workflow Class](../../reference/workflows/workflow.mdx) for a full list of configuration options.
|
|
125
81
|
|
|
126
|
-
|
|
82
|
+
### Understanding control flow
|
|
127
83
|
|
|
128
|
-
|
|
84
|
+
Workflows can be composed using a number of different methods. The method you choose determines how each step's schema should be structured.
|
|
129
85
|
|
|
130
|
-
|
|
131
|
-
import { createWorkflow, createStep, cloneStep } from "@mastra/core/workflows";
|
|
132
|
-
import { z } from "zod";
|
|
86
|
+
> See [Control Flow](./control-flow.mdx) for more information.
|
|
133
87
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
88
|
+
#### Composing steps
|
|
89
|
+
|
|
90
|
+
When using `.then()`, steps run sequentially. The `inputSchema` of each step must match the `outputSchema` of the step before it. The final step’s `outputSchema` doesn’t need to match the workflow’s `outputSchema`, which can be defined independently.
|
|
91
|
+
|
|
92
|
+
```typescript {4,7,14,17,24,27} filename="src/mastra/workflows/test-workflow.ts" showLineNumbers copy
|
|
93
|
+
const step1 = createStep({
|
|
94
|
+
//...
|
|
95
|
+
inputSchema: z.object({
|
|
96
|
+
message: z.string()
|
|
97
|
+
}),
|
|
98
|
+
outputSchema: z.object({
|
|
99
|
+
formatted: z.string()
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const step2 = createStep({
|
|
104
|
+
// ...
|
|
105
|
+
inputSchema: z.object({
|
|
106
|
+
formatted: z.string()
|
|
107
|
+
}),
|
|
108
|
+
outputSchema: z.object({
|
|
109
|
+
emphasized: z.string()
|
|
110
|
+
})
|
|
111
|
+
});
|
|
137
112
|
|
|
138
113
|
export const testWorkflow = createWorkflow({
|
|
139
|
-
|
|
140
|
-
description: 'Test workflow',
|
|
114
|
+
// ...
|
|
141
115
|
inputSchema: z.object({
|
|
142
|
-
|
|
116
|
+
message: z.string()
|
|
143
117
|
}),
|
|
144
118
|
outputSchema: z.object({
|
|
145
119
|
output: z.string()
|
|
146
120
|
})
|
|
147
121
|
})
|
|
148
122
|
.then(step1)
|
|
149
|
-
.then(clonedStep)
|
|
150
123
|
.then(step2)
|
|
151
124
|
.commit();
|
|
152
125
|
```
|
|
153
126
|
|
|
154
|
-
|
|
127
|
+
### Registering a workflow
|
|
155
128
|
|
|
156
|
-
Register
|
|
129
|
+
Register your workflow in the Mastra instance to make it available throughout your application. Once registered, it can be called from agents or tools and has access to shared resources such as logging and observability features:
|
|
157
130
|
|
|
158
|
-
```typescript {
|
|
131
|
+
```typescript {6} filename="src/mastra/index.ts" showLineNumbers copy
|
|
159
132
|
import { Mastra } from "@mastra/core/mastra";
|
|
160
|
-
import { PinoLogger } from "@mastra/loggers";
|
|
161
|
-
import { LibSQLStore } from "@mastra/libsql";
|
|
162
|
-
|
|
163
133
|
import { testWorkflow } from "./workflows/test-workflow";
|
|
164
134
|
|
|
165
135
|
export const mastra = new Mastra({
|
|
136
|
+
// ...
|
|
166
137
|
workflows: { testWorkflow },
|
|
167
|
-
storage: new LibSQLStore({
|
|
168
|
-
// stores telemetry, evals, ... into memory storage, if it needs to persist, change to file:../mastra.db
|
|
169
|
-
url: ":memory:"
|
|
170
|
-
}),
|
|
171
|
-
logger: new PinoLogger({
|
|
172
|
-
name: "Mastra",
|
|
173
|
-
level: "info"
|
|
174
|
-
})
|
|
175
138
|
});
|
|
176
139
|
```
|
|
177
140
|
|
|
178
|
-
##
|
|
179
|
-
|
|
180
|
-
Use `RuntimeContext` to access request-specific values. This lets you conditionally adjust behavior based on the context of the request.
|
|
181
|
-
|
|
182
|
-
```typescript filename="src/mastra/workflows/test-workflow.ts" showLineNumbers
|
|
183
|
-
export type UserTier = {
|
|
184
|
-
"user-tier": "enterprise" | "pro";
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
const stepOne = createStep({
|
|
188
|
-
// ...
|
|
189
|
-
execute: async ({ runtimeContext }) => {
|
|
190
|
-
const userTier = runtimeContext.get("user-tier") as UserTier["user-tier"];
|
|
141
|
+
## Referencing a workflow
|
|
191
142
|
|
|
192
|
-
|
|
193
|
-
? 1000
|
|
194
|
-
: 50;
|
|
143
|
+
You can run workflows from agents, tools, the Mastra Client, or the command line. Get a reference by calling `.getWorkflow()` on your `mastra` or `mastraClient` instance, depending on your setup:
|
|
195
144
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
});
|
|
145
|
+
```typescript showLineNumbers copy
|
|
146
|
+
const testWorkflow = mastra.getWorkflow("testWorkflow");
|
|
199
147
|
```
|
|
148
|
+
<Callout type="info">
|
|
149
|
+
<p>
|
|
150
|
+
`mastra.getWorkflow()` is preferred over a direct import, since it provides access to the Mastra instance configuration (logger, telemetry, storage, registered agents, and vector stores).
|
|
151
|
+
</p>
|
|
152
|
+
</Callout>
|
|
200
153
|
|
|
201
|
-
|
|
202
|
-
There are two ways to run and test workflows.
|
|
203
|
-
|
|
204
|
-
<Steps>
|
|
205
|
-
|
|
206
|
-
### Mastra Playground
|
|
207
|
-
|
|
208
|
-
With the Mastra Dev Server running you can run the workflow from the Mastra Playground by visiting [http://localhost:4111/workflows](http://localhost:4111/workflows) in your browser.
|
|
209
|
-
|
|
210
|
-
> For more information, see the [Local Dev Playground](../server-db/local-dev-playground.mdx) documentation.
|
|
154
|
+
> See [Running Workflows](../../examples/workflows/running-workflows.mdx) for more information.
|
|
211
155
|
|
|
212
|
-
|
|
156
|
+
## Running workflows
|
|
213
157
|
|
|
214
|
-
|
|
158
|
+
Workflows can be run in two modes: start waits for all steps to complete before returning, and stream emits events during execution. Choose the approach that fits your use case: start when you only need the final result, and stream when you want to monitor progress or trigger actions as steps complete.
|
|
215
159
|
|
|
216
|
-
|
|
217
|
-
|
|
160
|
+
<Tabs items={["Start", "Stream"]}>
|
|
161
|
+
<Tabs.Tab>
|
|
162
|
+
Create a workflow run instance using `createRunAsync()`, then call `.start()` with `inputData` matching the workflow's `inputSchema`. The workflow executes all steps and returns the final result.
|
|
218
163
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
const run = await mastra.getWorkflow("testWorkflow").createRunAsync();
|
|
164
|
+
```typescript showLineNumbers copy
|
|
165
|
+
const run = await testWorkflow.createRunAsync();
|
|
222
166
|
|
|
223
167
|
const result = await run.start({
|
|
224
168
|
inputData: {
|
|
225
|
-
|
|
169
|
+
message: "Hello world"
|
|
226
170
|
}
|
|
227
171
|
});
|
|
228
172
|
|
|
229
173
|
console.log(result);
|
|
230
|
-
|
|
231
|
-
if (result.status === 'success') {
|
|
232
|
-
console.log(result.result.output);
|
|
233
|
-
}
|
|
234
174
|
```
|
|
235
|
-
>
|
|
236
|
-
|
|
237
|
-
|
|
175
|
+
</Tabs.Tab>
|
|
176
|
+
<Tabs.Tab>
|
|
177
|
+
Create a workflow run instance using `.createRunAsync()`, then call `.stream()` with `inputData` matching the workflow's `inputSchema`. The workflow emits events as each step executes, which you can iterate over to track progress.
|
|
238
178
|
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
```
|
|
179
|
+
```typescript showLineNumbers copy
|
|
180
|
+
const run = await testWorkflow.createRunAsync();
|
|
242
181
|
|
|
243
|
-
|
|
182
|
+
const result = await run.stream({
|
|
183
|
+
inputData: {
|
|
184
|
+
message: "Hello world"
|
|
185
|
+
}
|
|
186
|
+
});
|
|
244
187
|
|
|
245
|
-
|
|
188
|
+
for await (const chunk of result.stream) {
|
|
189
|
+
console.log(chunk);
|
|
190
|
+
}
|
|
191
|
+
```
|
|
192
|
+
</Tabs.Tab>
|
|
193
|
+
</Tabs>
|
|
246
194
|
|
|
247
|
-
|
|
195
|
+
## Workflow output
|
|
248
196
|
|
|
249
|
-
|
|
197
|
+
The workflow output includes the full execution lifecycle, showing the input and output for each step. It also includes the status of each step, the overall workflow status, and the final result. This gives you clear insight into how data moved through the workflow, what each step produced, and how the workflow completed.
|
|
250
198
|
|
|
251
199
|
```json
|
|
252
200
|
{
|
|
253
201
|
"status": "success",
|
|
254
202
|
"steps": {
|
|
255
|
-
|
|
203
|
+
"input": {
|
|
204
|
+
"message": "Hello world"
|
|
205
|
+
},
|
|
256
206
|
"step-1": {
|
|
257
|
-
|
|
207
|
+
"payload": {
|
|
208
|
+
"message": "Hello world"
|
|
209
|
+
},
|
|
258
210
|
"status": "success",
|
|
211
|
+
"output": {
|
|
212
|
+
"formatted": "HELLO WORLD"
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
"step-2": {
|
|
216
|
+
"payload": {
|
|
217
|
+
"formatted": "HELLO WORLD"
|
|
218
|
+
},
|
|
219
|
+
"status": "success",
|
|
220
|
+
"output": {
|
|
221
|
+
"emphasized": "HELLO WORLD!!!"
|
|
222
|
+
},
|
|
259
223
|
}
|
|
260
224
|
},
|
|
225
|
+
"input": {
|
|
226
|
+
"message": "Hello world"
|
|
227
|
+
},
|
|
261
228
|
"result": {
|
|
262
|
-
"
|
|
229
|
+
"emphasized": "HELLO WORLD!!!"
|
|
263
230
|
}
|
|
264
231
|
}
|
|
265
232
|
```
|
|
266
233
|
|
|
267
|
-
|
|
268
|
-
- **steps**: Lists each step in the workflow, including inputs and outputs
|
|
269
|
-
- **status**: Shows the outcome of each individual step
|
|
270
|
-
- **result**: Includes the final output of the workflow, typed according to the `outputSchema`
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
#### Status suspended
|
|
274
|
-
|
|
275
|
-
```json
|
|
276
|
-
{
|
|
277
|
-
"status": "suspended",
|
|
278
|
-
"steps": {
|
|
279
|
-
// ...
|
|
280
|
-
"step-1": {
|
|
281
|
-
// ...
|
|
282
|
-
"status": "suspended",
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
"suspended": [
|
|
286
|
-
[
|
|
287
|
-
"step-1"
|
|
288
|
-
]
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
```
|
|
292
|
-
|
|
293
|
-
- **suspended**: An optional array listing any steps currently awaiting input before continuing
|
|
294
|
-
|
|
295
|
-
#### Status failed
|
|
296
|
-
|
|
297
|
-
```json
|
|
298
|
-
{
|
|
299
|
-
"status": "failed",
|
|
300
|
-
"steps": {
|
|
301
|
-
// ...
|
|
302
|
-
"step-1": {
|
|
303
|
-
// ...
|
|
304
|
-
"status": "failed",
|
|
305
|
-
"error": "Test error",
|
|
306
|
-
}
|
|
307
|
-
},
|
|
308
|
-
"error": "Test error"
|
|
309
|
-
}
|
|
310
|
-
```
|
|
311
|
-
- **error**: An optional field that includes the error message if the workflow fails
|
|
234
|
+
## Using `RuntimeContext`
|
|
312
235
|
|
|
313
|
-
|
|
236
|
+
Use `RuntimeContext` to access request-specific values. This lets you conditionally adjust behavior based on the context of the request.
|
|
314
237
|
|
|
315
|
-
|
|
238
|
+
```typescript filename="src/mastra/workflows/test-workflow.ts" showLineNumbers
|
|
239
|
+
export type UserTier = {
|
|
240
|
+
"user-tier": "enterprise" | "pro";
|
|
241
|
+
};
|
|
316
242
|
|
|
317
|
-
|
|
318
|
-
|
|
243
|
+
const step1 = createStep({
|
|
244
|
+
// ...
|
|
245
|
+
execute: async ({ runtimeContext }) => {
|
|
246
|
+
const userTier = runtimeContext.get("user-tier") as UserTier["user-tier"];
|
|
319
247
|
|
|
320
|
-
const
|
|
248
|
+
const maxResults = userTier === "enterprise"
|
|
249
|
+
? 1000
|
|
250
|
+
: 50;
|
|
321
251
|
|
|
322
|
-
|
|
323
|
-
inputData: {
|
|
324
|
-
city: "London"
|
|
252
|
+
return { maxResults };
|
|
325
253
|
}
|
|
326
254
|
});
|
|
327
|
-
|
|
328
|
-
for await (const chunk of result.stream) {
|
|
329
|
-
console.log(chunk);
|
|
330
|
-
}
|
|
331
255
|
```
|
|
332
256
|
|
|
333
|
-
> See [
|
|
334
|
-
|
|
335
|
-
## Watch Workflow
|
|
336
|
-
|
|
337
|
-
A workflow can also be watched, allowing you to inspect each event that is emitted.
|
|
257
|
+
> See [Runtime Context](../server-db/runtime-context.mdx) for more information.
|
|
338
258
|
|
|
339
|
-
|
|
340
|
-
import { mastra } from "./mastra";
|
|
259
|
+
## Testing with Mastra Playground
|
|
341
260
|
|
|
342
|
-
|
|
261
|
+
Use the Mastra [Playground](../server-db/local-dev-playground.mdx) to easily run workflows with different inputs, visualize the execution lifecycle, see the inputs and outputs for each step, and inspect each part of the workflow in more detail.
|
|
343
262
|
|
|
344
|
-
run.watch((event) => {
|
|
345
|
-
console.log(event);
|
|
346
|
-
});
|
|
347
|
-
|
|
348
|
-
const result = await run.start({
|
|
349
|
-
inputData: {
|
|
350
|
-
city: "London"
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
> See [watch](../../reference/workflows/run-methods/watch.mdx) for more information.
|
|
356
263
|
|
|
357
264
|
## Related
|
|
358
265
|
|
|
359
|
-
|
|
266
|
+
For a closer look at workflows, see our [Workflow Guide](../../guides/guide/ai-recruiter.mdx), which walks through the core concepts with a practical example.
|
|
267
|
+
|
|
360
268
|
- [Parallel Steps workflow example](../../examples/workflows/parallel-steps.mdx)
|
|
361
269
|
- [Conditional Branching workflow example](../../examples/workflows/conditional-branching.mdx)
|
|
362
270
|
- [Inngest workflow example](../../examples/workflows/inngest-workflow.mdx)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.13.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
|
|
8
|
+
- @mastra/core@0.21.1
|
|
9
|
+
|
|
3
10
|
## 0.13.31-alpha.0
|
|
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.31
|
|
3
|
+
"version": "0.13.31",
|
|
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.21.1
|
|
36
|
+
"@mastra/core": "0.21.1",
|
|
37
37
|
"@mastra/mcp": "^0.13.5"
|
|
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.50",
|
|
53
|
+
"@mastra/core": "0.21.1"
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://mastra.ai",
|
|
56
56
|
"repository": {
|