@mastra/mcp-docs-server 0.13.2-alpha.2 → 0.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +15 -15
  2. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +8 -8
  3. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +8 -8
  4. package/.docs/organized/changelogs/%40mastra%2Fcore.md +8 -8
  5. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +15 -15
  6. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +8 -8
  7. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +8 -8
  8. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +8 -8
  9. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +8 -8
  10. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +8 -8
  11. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +8 -8
  12. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +26 -26
  13. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
  14. package/.docs/organized/changelogs/%40mastra%2Fserver.md +7 -7
  15. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +8 -8
  16. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +8 -8
  17. package/.docs/organized/changelogs/create-mastra.md +7 -7
  18. package/.docs/organized/changelogs/mastra.md +10 -10
  19. package/.docs/raw/course/01-first-agent/04-project-structure.md +8 -3
  20. package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +5 -3
  21. package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +21 -6
  22. package/.docs/raw/course/01-first-agent/11-creating-transactions-tool.md +5 -3
  23. package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +2 -2
  24. package/.docs/raw/course/04-workflows/01-introduction-to-workflows.md +44 -0
  25. package/.docs/raw/course/04-workflows/02-understanding-steps.md +53 -0
  26. package/.docs/raw/course/04-workflows/03-creating-your-first-step.md +57 -0
  27. package/.docs/raw/course/04-workflows/04-creating-a-second-step.md +58 -0
  28. package/.docs/raw/course/04-workflows/05-chaining-steps-together.md +57 -0
  29. package/.docs/raw/course/04-workflows/06-registering-with-mastra.md +24 -0
  30. package/.docs/raw/course/04-workflows/07-using-playground.md +58 -0
  31. package/.docs/raw/course/04-workflows/08-running-workflows-programmatically.md +77 -0
  32. package/.docs/raw/course/04-workflows/09-adding-a-third-step.md +70 -0
  33. package/.docs/raw/course/04-workflows/10-updating-the-workflow.md +55 -0
  34. package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +67 -0
  35. package/.docs/raw/course/04-workflows/12-using-agent-in-workflow.md +91 -0
  36. package/.docs/raw/course/04-workflows/13-creating-ai-enhanced-workflow.md +75 -0
  37. package/.docs/raw/course/04-workflows/14-understanding-parallel-execution.md +38 -0
  38. package/.docs/raw/course/04-workflows/15-creating-parallel-steps.md +115 -0
  39. package/.docs/raw/course/04-workflows/16-building-parallel-workflow.md +100 -0
  40. package/.docs/raw/course/04-workflows/17-testing-parallel-performance.md +40 -0
  41. package/.docs/raw/course/04-workflows/18-understanding-conditional-branching.md +61 -0
  42. package/.docs/raw/course/04-workflows/19-creating-conditional-steps.md +128 -0
  43. package/.docs/raw/course/04-workflows/20-building-conditional-workflow.md +60 -0
  44. package/.docs/raw/course/04-workflows/21-testing-conditional-logic.md +58 -0
  45. package/.docs/raw/course/04-workflows/22-conclusion.md +58 -0
  46. package/package.json +4 -4
@@ -1,5 +1,18 @@
1
1
  # @mastra/client-js
2
2
 
3
+ ## 0.10.6-alpha.6
4
+
5
+ ### Patch Changes
6
+
7
+ - c0d41f6: Fix streaming for agent tool calls
8
+
9
+ ## 0.10.6-alpha.5
10
+
11
+ ### Patch Changes
12
+
13
+ - bee3fe4: Fix client side tool calling
14
+ - @mastra/core@0.10.7-alpha.5
15
+
3
16
  ## 0.10.6-alpha.4
4
17
 
5
18
  ### Patch Changes
@@ -285,18 +298,5 @@
285
298
  Highlight borders for conditions too on workflow graph
286
299
  Fix watch stream
287
300
  - 5343f93: Move emitter to symbol to make private
288
- - f622cfa: Make some properties of CreateMemoryThreadParams optional
289
- - 6015bdf: Leverage defaultAgentStreamOption, defaultAgentGenerateOption in playground
290
- - Updated dependencies [d70b807]
291
- - Updated dependencies [6d16390]
292
- - Updated dependencies [1e4a421]
293
- - Updated dependencies [200d0da]
294
- - Updated dependencies [bf5f17b]
295
- - Updated dependencies [5343f93]
296
- - Updated dependencies [38aee50]
297
- - Updated dependencies [5c41100]
298
- - Updated dependencies [d6a759b]
299
- - Updated dependencies [6015bdf]
300
- - @mastra/core@0.10.1
301
-
302
- ... 1305 more lines hidden. See full changelog in package directory.
301
+
302
+ ... 1318 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/cloudflare-d1
2
2
 
3
+ ## 0.12.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e6b8e5: dependencies updates:
8
+ - Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
9
+
3
10
  ## 0.12.0-alpha.3
4
11
 
5
12
  ### Minor Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [0b8b868]
292
299
  - Updated dependencies [9e1eff5]
293
300
  - Updated dependencies [6fa1ad1]
294
- - Updated dependencies [c28d7a0]
295
- - Updated dependencies [edf1e88]
296
- - @mastra/core@0.9.4
297
-
298
- ## 0.1.9-alpha.4
299
-
300
- ### Patch Changes
301
301
 
302
- ... 320 more lines hidden. See full changelog in package directory.
302
+ ... 327 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/cloudflare
2
2
 
3
+ ## 0.11.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e6b8e5: dependencies updates:
8
+ - Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
9
+
3
10
  ## 0.11.0-alpha.3
4
11
 
5
12
  ### Minor Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [973e5ac]
292
299
  - Updated dependencies [daf942f]
293
300
  - Updated dependencies [0b8b868]
294
- - Updated dependencies [9e1eff5]
295
- - Updated dependencies [6fa1ad1]
296
- - Updated dependencies [c28d7a0]
297
- - Updated dependencies [edf1e88]
298
- - @mastra/core@0.9.4
299
-
300
- ## 0.1.4-alpha.4
301
301
 
302
- ... 514 more lines hidden. See full changelog in package directory.
302
+ ... 521 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/core
2
2
 
3
+ ## 0.10.7-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a853c43]
8
+ - @mastra/schema-compat@0.10.3-alpha.1
9
+
3
10
  ## 0.10.7-alpha.4
4
11
 
5
12
  ### Patch Changes
@@ -291,12 +298,5 @@
291
298
 
292
299
  ### Patch Changes
293
300
 
294
- - ee77e78: Type fixes for dynamodb and MessageList
295
- - 2901125: feat: set mastra server middleware after Mastra has been initialized
296
-
297
- ## 0.10.2-alpha.0
298
-
299
- ### Patch Changes
300
-
301
301
 
302
- ... 1933 more lines hidden. See full changelog in package directory.
302
+ ... 1940 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,19 @@
1
1
  # @mastra/deployer-cloudflare
2
2
 
3
+ ## 0.10.7-alpha.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e6b8e5: dependencies updates:
8
+ - Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
9
+
10
+ ## 0.10.7-alpha.5
11
+
12
+ ### Patch Changes
13
+
14
+ - @mastra/core@0.10.7-alpha.5
15
+ - @mastra/deployer@0.10.7-alpha.5
16
+
3
17
  ## 0.10.7-alpha.4
4
18
 
5
19
  ### Patch Changes
@@ -284,19 +298,5 @@
284
298
 
285
299
  ### Patch Changes
286
300
 
287
- - Updated dependencies [2b0fc7e]
288
- - @mastra/core@0.10.3
289
- - @mastra/deployer@0.10.3
290
-
291
- ## 0.10.3-alpha.0
292
-
293
- ### Patch Changes
294
-
295
- - Updated dependencies [2b0fc7e]
296
- - @mastra/core@0.10.3-alpha.0
297
- - @mastra/deployer@0.10.3-alpha.0
298
-
299
- ## 0.10.2
300
-
301
301
 
302
- ... 2487 more lines hidden. See full changelog in package directory.
302
+ ... 2501 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/deployer-netlify
2
2
 
3
+ ## 0.11.0-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - @mastra/core@0.10.7-alpha.5
8
+ - @mastra/deployer@0.10.7-alpha.5
9
+
3
10
  ## 0.11.0-alpha.4
4
11
 
5
12
  ### Patch Changes
@@ -292,11 +299,4 @@
292
299
 
293
300
  ### Patch Changes
294
301
 
295
- - f0d559f: Fix peerdeps for alpha channel
296
- - Updated dependencies [ee77e78]
297
- - Updated dependencies [592a2db]
298
- - Updated dependencies [e5dc18d]
299
- - Updated dependencies [ab5adbe]
300
- - Updated dependencies [e8d2aff]
301
-
302
- ... 2447 more lines hidden. See full changelog in package directory.
302
+ ... 2454 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/deployer-vercel
2
2
 
3
+ ## 0.11.0-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - @mastra/core@0.10.7-alpha.5
8
+ - @mastra/deployer@0.10.7-alpha.5
9
+
3
10
  ## 0.11.0-alpha.4
4
11
 
5
12
  ### Patch Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [8dc94d8]
292
299
  - Updated dependencies [ecebbeb]
293
300
  - Updated dependencies [4187ed4]
294
- - Updated dependencies [79d5145]
295
- - Updated dependencies [12b7002]
296
- - Updated dependencies [f0d559f]
297
- - Updated dependencies [2901125]
298
- - @mastra/core@0.10.2
299
- - @mastra/deployer@0.10.2
300
-
301
301
 
302
- ... 2431 more lines hidden. See full changelog in package directory.
302
+ ... 2438 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.10.7-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - @mastra/core@0.10.7-alpha.5
8
+ - @mastra/server@0.10.7-alpha.5
9
+
3
10
  ## 0.10.7-alpha.4
4
11
 
5
12
  ### Patch Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [bebd27c]
292
299
  - Updated dependencies [f7f8293]
293
300
  - @mastra/core@0.10.4-alpha.1
294
- - @mastra/server@0.10.4-alpha.1
295
-
296
- ## 0.10.4-alpha.0
297
-
298
- ### Patch Changes
299
-
300
- - d1ed912: dependencies updates:
301
301
 
302
- ... 2512 more lines hidden. See full changelog in package directory.
302
+ ... 2519 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/dynamodb
2
2
 
3
+ ## 0.12.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - ab52239: dependencies updates:
8
+ - Updated dependency [`@aws-sdk/lib-dynamodb@^3.830.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/lib-dynamodb/v/3.830.0) (from `^3.828.0`, in `dependencies`)
9
+
3
10
  ## 0.12.0-alpha.3
4
11
 
5
12
  ### Minor Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [2901125]
292
299
  - @mastra/core@0.10.2-alpha.1
293
300
 
294
- ## 0.10.0
295
-
296
- ### Patch Changes
297
-
298
- - b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
299
- - d2d4fe4: Add a DynamoDB storage connector using a single-table design pattern with ElectroDB.
300
-
301
301
 
302
- ... 56 more lines hidden. See full changelog in package directory.
302
+ ... 63 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,11 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 0.13.2-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - d2a783c: Minor lesson 1 course updates, added lesson 4 on workflows
8
+
3
9
  ## 0.13.2-alpha.2
4
10
 
5
11
  ### Patch Changes
@@ -292,11 +298,5 @@
292
298
  - Updated dependencies [f53a6ac]
293
299
  - Updated dependencies [5eb5a99]
294
300
  - Updated dependencies [7e632c5]
295
- - Updated dependencies [1e9fbfa]
296
- - Updated dependencies [eabdcd9]
297
- - Updated dependencies [90be034]
298
- - Updated dependencies [99f050a]
299
- - Updated dependencies [d0ee3c6]
300
- - Updated dependencies [b2ae5aa]
301
-
302
- ... 855 more lines hidden. See full changelog in package directory.
301
+
302
+ ... 861 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/mongodb
2
2
 
3
+ ## 0.12.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e6b8e5: dependencies updates:
8
+ - Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
9
+
3
10
  ## 0.12.0-alpha.3
4
11
 
5
12
  ### Minor Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [b2ae5aa]
292
299
  - Updated dependencies [a7292b0]
293
300
  - Updated dependencies [0dcb9f0]
294
- - @mastra/core@0.10.0-alpha.1
295
-
296
- ## 0.0.6-alpha.0
297
-
298
- ### Patch Changes
299
-
300
- - d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
301
301
 
302
- ... 287 more lines hidden. See full changelog in package directory.
302
+ ... 294 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,30 @@
1
1
  # @mastra/playground-ui
2
2
 
3
+ ## 5.1.7-alpha.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [c0d41f6]
8
+ - @mastra/client-js@0.10.6-alpha.6
9
+
10
+ ## 5.1.7-alpha.6
11
+
12
+ ### Patch Changes
13
+
14
+ - b9f5599: dependencies updates:
15
+ - Updated dependency [`@codemirror/lang-json@^6.0.2` ↗︎](https://www.npmjs.com/package/@codemirror/lang-json/v/6.0.2) (from `^6.0.1`, in `dependencies`)
16
+ - 5af21a8: fix: remove final output on workflows for now
17
+ - Updated dependencies [bee3fe4]
18
+ - @mastra/client-js@0.10.6-alpha.5
19
+ - @mastra/core@0.10.7-alpha.5
20
+
21
+ ## 5.1.7-alpha.5
22
+
23
+ ### Patch Changes
24
+
25
+ - d569c16: dependencies updates:
26
+ - Updated dependency [`react-code-block@1.1.3` ↗︎](https://www.npmjs.com/package/react-code-block/v/1.1.3) (from `1.1.1`, in `dependencies`)
27
+
3
28
  ## 5.1.7-alpha.4
4
29
 
5
30
  ### Patch Changes
@@ -274,29 +299,4 @@
274
299
 
275
300
  ### Patch Changes
276
301
 
277
- - Updated dependencies [925ab94]
278
- - @mastra/core@0.10.4-alpha.3
279
- - @mastra/client-js@0.10.3-alpha.3
280
-
281
- ## 5.1.4-alpha.3
282
-
283
- ### Patch Changes
284
-
285
- - Updated dependencies [48eddb9]
286
- - @mastra/core@0.10.4-alpha.2
287
- - @mastra/client-js@0.10.3-alpha.2
288
-
289
- ## 5.1.4-alpha.2
290
-
291
- ### Patch Changes
292
-
293
- - e719504: don't start posthog when the browser is Brave
294
-
295
- ## 5.1.4-alpha.1
296
-
297
- ### Patch Changes
298
-
299
- - 1ccccff: dependencies updates:
300
- - Updated dependency [`zod@^3.25.56` ↗︎](https://www.npmjs.com/package/zod/v/3.25.56) (from `^3.24.3`, in `dependencies`)
301
-
302
- ... 1649 more lines hidden. See full changelog in package directory.
302
+ ... 1674 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,11 @@
1
1
  # @mastra/schema-compat
2
2
 
3
+ ## 0.10.3-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a853c43: Allow for object.passthrough in schema compat (aka MCP tool support).
8
+
3
9
  ## 0.10.3-alpha.0
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,11 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.10.7-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - @mastra/core@0.10.7-alpha.5
8
+
3
9
  ## 0.10.7-alpha.4
4
10
 
5
11
  ### Patch Changes
@@ -292,11 +298,5 @@
292
298
 
293
299
  - c5bf1ce: Add backwards compat code for new MessageList in storage
294
300
  - Updated dependencies [c5bf1ce]
295
- - Updated dependencies [12b7002]
296
- - @mastra/core@0.10.2-alpha.4
297
-
298
- ## 0.10.2-alpha.3
299
-
300
- ### Patch Changes
301
301
 
302
- ... 2114 more lines hidden. See full changelog in package directory.
302
+ ... 2120 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/vectorize
2
2
 
3
+ ## 0.11.0-alpha.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e6b8e5: dependencies updates:
8
+ - Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
9
+
3
10
  ## 0.11.0-alpha.1
4
11
 
5
12
  ### Minor Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [8398d89]
292
299
  - @mastra/core@0.9.2
293
300
 
294
- ## 0.2.8-alpha.6
295
-
296
- ### Patch Changes
297
-
298
- - Updated dependencies [6052aa6]
299
- - Updated dependencies [7d8b7c7]
300
- - Updated dependencies [3a5f1e1]
301
301
 
302
- ... 1597 more lines hidden. See full changelog in package directory.
302
+ ... 1604 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,12 @@
1
1
  # @mastra/voice-cloudflare
2
2
 
3
+ ## 0.10.4-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e6b8e5: dependencies updates:
8
+ - Updated dependency [`cloudflare@^4.4.1` ↗︎](https://www.npmjs.com/package/cloudflare/v/4.4.1) (from `^4.3.0`, in `dependencies`)
9
+
3
10
  ## 0.10.4-alpha.0
4
11
 
5
12
  ### Patch Changes
@@ -291,12 +298,5 @@
291
298
  - Updated dependencies [26738f4]
292
299
  - Updated dependencies [4155f47]
293
300
  - Updated dependencies [7eeb2bc]
294
- - Updated dependencies [b804723]
295
- - Updated dependencies [8607972]
296
- - Updated dependencies [ccef9f9]
297
- - Updated dependencies [0097d50]
298
- - Updated dependencies [7eeb2bc]
299
- - Updated dependencies [17826a9]
300
- - Updated dependencies [7d8b7c7]
301
301
 
302
- ... 530 more lines hidden. See full changelog in package directory.
302
+ ... 537 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,11 @@
1
1
  # create-mastra
2
2
 
3
+ ## 0.10.6-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - f9b4350: fix icons not showing on all agents
8
+
3
9
  ## 0.10.6-alpha.2
4
10
 
5
11
  ### Patch Changes
@@ -293,10 +299,4 @@
293
299
 
294
300
  - 62c9e7d: Fix disappearing tool calls in streaming
295
301
 
296
- ## 0.3.2-alpha.0
297
-
298
- ### Patch Changes
299
-
300
- - b5d2de0: In vNext workflow serializedStepGraph, return only serializedStepFlow for steps created from a workflow
301
-
302
- ... 902 more lines hidden. See full changelog in package directory.
302
+ ... 908 more lines hidden. See full changelog in package directory.
@@ -1,5 +1,13 @@
1
1
  # mastra
2
2
 
3
+ ## 0.10.7-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - f9b4350: fix icons not showing on all agents
8
+ - @mastra/core@0.10.7-alpha.5
9
+ - @mastra/deployer@0.10.7-alpha.5
10
+
3
11
  ## 0.10.7-alpha.4
4
12
 
5
13
  ### Patch Changes
@@ -290,13 +298,5 @@
290
298
  - Updated dependencies [d90c49f]
291
299
  - Updated dependencies [1ccccff]
292
300
  - Updated dependencies [1ccccff]
293
- - Updated dependencies [afd9fda]
294
- - Updated dependencies [f6fd25f]
295
- - Updated dependencies [dffb67b]
296
- - Updated dependencies [f1f1f1b]
297
- - Updated dependencies [925ab94]
298
- - Updated dependencies [9597ee5]
299
- - Updated dependencies [f9816ae]
300
- - Updated dependencies [82090c1]
301
-
302
- ... 3970 more lines hidden. See full changelog in package directory.
301
+
302
+ ... 3978 more lines hidden. See full changelog in package directory.
@@ -4,9 +4,14 @@ Let's check that your project has the correct structure. You should have:
4
4
 
5
5
  1. A `src/mastra` directory that contains:
6
6
  - `index.ts` - The main entry point for your Mastra project
7
- - `agents/index.ts` - Where your agents are defined
8
- - `tools/index.ts` - Where your tools are defined
7
+ - `agents/` - Directory containing individual agent files
8
+ - `tools/` - Directory containing individual tool files
9
+ - `workflows/` - Directory containing individual workflow files
9
10
 
10
- If these files exist, you're ready to start building your agent!
11
+ If the CLI created your project, you should see files like:
12
+
13
+ - `agents/weather-agent.ts` - Example weather agent
14
+ - `tools/weather-tool.ts` - Example weather tool
15
+ - `workflows/weather-workflow.ts` - Example weather workflow
11
16
 
12
17
  This structure is important because it follows the Mastra convention for organizing your code. The `index.ts` file is the main entry point for your Mastra project, while the `agents` and `tools` directories contain the definitions for your agents and tools, respectively.
@@ -1,11 +1,13 @@
1
1
  # Creating Your Agent
2
2
 
3
- Let's create a simple agent that will help users analyze financial transaction data. We'll start by modifying the `agents/index.ts` file.
3
+ Let's create a simple agent that will help users analyze financial transaction data. We'll create a new file called `agents/financial-agent.ts`.
4
4
 
5
- First, make sure you have the necessary imports at the top of your file:
5
+ First, create the new agent file at src/mastra/agents/financial-agent.ts
6
+
7
+ Now add the necessary imports at the top of your file:
6
8
 
7
9
  ```typescript
8
- import { Agent } from "@mastra/core";
10
+ import { Agent } from "@mastra/core/agent";
9
11
  import { openai } from "@ai-sdk/openai";
10
12
  // We'll import our tool in a later step
11
13
  ```
@@ -1,18 +1,33 @@
1
1
  # Exporting Your Agent
2
2
 
3
- To make your agent available to the playground, you need to export it through the Mastra class in your `src/mastra/index.ts` file:
3
+ To make your agent available to the playground, you need to export it through the Mastra class in your `src/mastra/index.ts` file.
4
+
5
+ First, import the necessary dependencies and your agent:
4
6
 
5
7
  ```typescript
6
- import { Mastra } from "@mastra/core";
7
- import { financialAgent } from "./agents";
8
+ import { Mastra } from "@mastra/core/mastra";
9
+ import { PinoLogger } from "@mastra/loggers";
10
+ import { LibSQLStore } from "@mastra/libsql";
11
+ import { financialAgent } from "./agents/financial-agent";
8
12
 
9
- export const mastra: Mastra = new Mastra({
13
+ export const mastra = new Mastra({
10
14
  agents: {
11
15
  financialAgent,
12
16
  },
17
+ storage: new LibSQLStore({
18
+ url: ":memory:",
19
+ }),
20
+ logger: new PinoLogger({
21
+ name: "Mastra",
22
+ level: "info",
23
+ }),
13
24
  });
14
25
  ```
15
26
 
16
- This creates a new Mastra instance that includes your financial agent, making it available to the playground and any other parts of your application.
27
+ This creates a new Mastra instance that includes:
28
+
29
+ - Your financial agent
30
+ - In-memory storage for development
31
+ - A logger for debugging and monitoring
17
32
 
18
- The Mastra class is the main entry point for your Mastra project. It's responsible for registering your agents and making them available to the rest of your application. By adding your agent to the Mastra instance, you're telling Mastra that this agent should be available for use.
33
+ The Mastra class is the main entry point for your Mastra project. It's responsible for registering your agents and configuring the core services like storage and logging.
@@ -1,11 +1,13 @@
1
1
  # Creating the getTransactions Tool
2
2
 
3
- Let's create a tool that fetches transaction data from a Google Sheet. We'll add this to your `tools/index.ts` file.
3
+ Let's create a tool that fetches transaction data from a Google Sheet. We'll create a new file called `tools/get-transactions-tool.ts`.
4
4
 
5
- First, make sure you have the necessary imports:
5
+ First, create the new tool file at src/mastra/tools/get-transactions-tool.ts
6
+
7
+ Now add the necessary imports:
6
8
 
7
9
  ```typescript
8
- import { createTool } from "@mastra/core";
10
+ import { createTool } from "@mastra/core/tools";
9
11
  import { z } from "zod";
10
12
  ```
11
13
 
@@ -1,11 +1,11 @@
1
1
  # Connecting the Tool to Your Agent
2
2
 
3
- Now that we've created our tool, we need to connect it to our agent. Go back to your `agents/index.ts` file and update it:
3
+ Now that we've created our tool, we need to connect it to our agent. Go back to your `agents/financial-agent.ts` file and update it:
4
4
 
5
5
  1. Import the tool:
6
6
 
7
7
  ```typescript
8
- import { getTransactionsTool } from "../tools";
8
+ import { getTransactionsTool } from "../tools/get-transactions-tool";
9
9
  ```
10
10
 
11
11
  2. Add the tool to your agent: