@mastra/mcp-docs-server 0.13.2-alpha.3 → 0.13.3-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.
Files changed (117) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +33 -0
  2. package/.docs/organized/changelogs/%40mastra%2Fagui.md +48 -0
  3. package/.docs/organized/changelogs/%40mastra%2Fastra.md +30 -30
  4. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +30 -30
  5. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +33 -33
  6. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +98 -98
  7. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +41 -41
  8. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +42 -42
  9. package/.docs/organized/changelogs/%40mastra%2Fcore.md +77 -77
  10. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +29 -29
  11. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +106 -106
  12. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +101 -101
  13. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +99 -99
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +111 -111
  15. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +35 -35
  16. package/.docs/organized/changelogs/%40mastra%2Fevals.md +26 -26
  17. package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +29 -29
  18. package/.docs/organized/changelogs/%40mastra%2Fgithub.md +26 -26
  19. package/.docs/organized/changelogs/%40mastra%2Flance.md +32 -0
  20. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +35 -35
  21. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +59 -59
  22. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +29 -29
  23. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +31 -31
  24. package/.docs/organized/changelogs/%40mastra%2Fmem0.md +26 -26
  25. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +56 -56
  26. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +44 -44
  27. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +30 -17
  28. package/.docs/organized/changelogs/%40mastra%2Fpg.md +57 -57
  29. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +29 -29
  30. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +126 -126
  31. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +29 -29
  32. package/.docs/organized/changelogs/%40mastra%2Frag.md +27 -27
  33. package/.docs/organized/changelogs/%40mastra%2Fragie.md +26 -26
  34. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +13 -0
  35. package/.docs/organized/changelogs/%40mastra%2Fserver.md +88 -88
  36. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +29 -29
  37. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +33 -33
  38. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +38 -38
  39. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +35 -35
  40. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +26 -26
  41. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +26 -26
  42. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +25 -0
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +26 -26
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +26 -26
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +23 -23
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +26 -26
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +26 -26
  48. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +26 -26
  49. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +26 -26
  50. package/.docs/organized/changelogs/create-mastra.md +43 -43
  51. package/.docs/organized/changelogs/mastra.md +123 -123
  52. package/.docs/organized/code-examples/a2a.md +1 -30
  53. package/.docs/organized/code-examples/agent-network.md +26 -115
  54. package/.docs/organized/code-examples/agent.md +1 -29
  55. package/.docs/organized/code-examples/agui.md +0 -22
  56. package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -16
  57. package/.docs/organized/code-examples/assistant-ui.md +1 -16
  58. package/.docs/organized/code-examples/bird-checker-with-express.md +1 -19
  59. package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +1 -20
  60. package/.docs/organized/code-examples/bird-checker-with-nextjs.md +1 -18
  61. package/.docs/organized/code-examples/client-side-tools.md +1 -18
  62. package/.docs/organized/code-examples/crypto-chatbot.md +4 -25
  63. package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -26
  64. package/.docs/organized/code-examples/fireworks-r1.md +1 -21
  65. package/.docs/organized/code-examples/mcp-configuration.md +1 -24
  66. package/.docs/organized/code-examples/mcp-registry-registry.md +1 -22
  67. package/.docs/organized/code-examples/memory-per-resource-example.md +0 -14
  68. package/.docs/organized/code-examples/memory-todo-agent.md +1 -20
  69. package/.docs/organized/code-examples/memory-with-context.md +1 -20
  70. package/.docs/organized/code-examples/memory-with-libsql.md +1 -21
  71. package/.docs/organized/code-examples/memory-with-mem0.md +1 -21
  72. package/.docs/organized/code-examples/memory-with-pg.md +1 -22
  73. package/.docs/organized/code-examples/memory-with-processors.md +1 -17
  74. package/.docs/organized/code-examples/memory-with-upstash.md +1 -24
  75. package/.docs/organized/code-examples/openapi-spec-writer.md +1 -21
  76. package/.docs/organized/code-examples/quick-start.md +1 -21
  77. package/.docs/organized/code-examples/stock-price-tool.md +1 -21
  78. package/.docs/organized/code-examples/weather-agent.md +1 -20
  79. package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -22
  80. package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -20
  81. package/.docs/organized/code-examples/workflow-with-memory.md +1 -21
  82. package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -22
  83. package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +3 -2
  84. package/.docs/raw/course/01-first-agent/11-creating-transactions-tool.md +1 -1
  85. package/.docs/raw/course/03-agent-memory/24-working-memory-in-practice.md +0 -3
  86. package/.docs/raw/course/03-agent-memory/29-memory-best-practices.md +0 -6
  87. package/.docs/raw/course/04-workflows/05-chaining-steps-together.md +6 -5
  88. package/.docs/raw/course/04-workflows/18-understanding-conditional-branching.md +6 -3
  89. package/.docs/raw/deployment/cloud-providers/amazon-ec2.mdx +81 -0
  90. package/.docs/raw/deployment/cloud-providers/azure-app-services.mdx +136 -0
  91. package/.docs/raw/deployment/cloud-providers/index.mdx +2 -0
  92. package/.docs/raw/deployment/serverless-platforms/cloudflare-deployer.mdx +111 -0
  93. package/.docs/raw/deployment/{deployment.mdx → serverless-platforms/index.mdx} +5 -10
  94. package/.docs/raw/deployment/serverless-platforms/netlify-deployer.mdx +94 -0
  95. package/.docs/raw/deployment/serverless-platforms/vercel-deployer.mdx +91 -0
  96. package/.docs/raw/frameworks/ai-sdk-v5.mdx +91 -0
  97. package/.docs/raw/frameworks/web-frameworks/next-js.mdx +56 -18
  98. package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +456 -0
  99. package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +28 -9
  100. package/.docs/raw/getting-started/model-providers.mdx +118 -127
  101. package/.docs/raw/memory/overview.mdx +30 -0
  102. package/.docs/raw/reference/agents/generate.mdx +3 -3
  103. package/.docs/raw/reference/agents/getModel.mdx +1 -1
  104. package/.docs/raw/reference/agents/stream.mdx +3 -3
  105. package/.docs/raw/reference/deployer/cloudflare.mdx +4 -119
  106. package/.docs/raw/reference/deployer/netlify.mdx +4 -83
  107. package/.docs/raw/reference/deployer/vercel.mdx +4 -51
  108. package/.docs/raw/reference/memory/Memory.mdx +71 -2
  109. package/.docs/raw/reference/observability/logger.mdx +70 -0
  110. package/.docs/raw/reference/rag/pg.mdx +15 -0
  111. package/.docs/raw/reference/storage/postgresql.mdx +17 -0
  112. package/.docs/raw/reference/workflows/step.mdx +8 -1
  113. package/.docs/raw/workflows/overview.mdx +1 -1
  114. package/dist/{chunk-P5AHYMUI.js → chunk-7QXT2IEP.js} +48 -11
  115. package/dist/prepare-docs/prepare.js +1 -1
  116. package/dist/stdio.js +1 -1
  117. package/package.json +6 -6
@@ -1,5 +1,127 @@
1
1
  # mastra
2
2
 
3
+ ## 0.10.9-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 4e06e3f: timing not displayed correctly in traces
8
+ - 7e801dd: [MASTRA-4118] fixes issue with agent network loopStream where subsequent messages aren't present in playground on refresh
9
+ - d093c1e: Update example workflow to use existing weather agent
10
+ - a606c75: show right suspend schema for nested workflow on playground
11
+ - 1cbdfd0: update create-mastra gemini model to 2.5
12
+ - 1760a1c: Use workflow stream in playground instead of watch
13
+ - 038e5ae: Add cancel workflow run
14
+ - ac369c6: Show resume data on workflow graph
15
+ - 91c43b4: Use process.execPath for node in dev
16
+ - 976a62b: remove persistence capabilities in model settings components
17
+ - 4e809ad: Visualizations for .sleep()/.sleepUntil()/.waitForEvent()
18
+ - f78f399: Make AgentModelSettings shareable between cloud and playground
19
+ - 57929df: agent network display
20
+ - Updated dependencies [9dda1ac]
21
+ - Updated dependencies [9dda1ac]
22
+ - Updated dependencies [c984582]
23
+ - Updated dependencies [7e801dd]
24
+ - Updated dependencies [a606c75]
25
+ - Updated dependencies [7aa70a4]
26
+ - Updated dependencies [764f86a]
27
+ - Updated dependencies [1760a1c]
28
+ - Updated dependencies [038e5ae]
29
+ - Updated dependencies [7dda16a]
30
+ - Updated dependencies [6f87544]
31
+ - Updated dependencies [5ebfcdd]
32
+ - Updated dependencies [81a1b3b]
33
+ - Updated dependencies [b2d0c91]
34
+ - Updated dependencies [4e809ad]
35
+ - Updated dependencies [57929df]
36
+ - Updated dependencies [7e801dd]
37
+ - Updated dependencies [b7852ed]
38
+ - Updated dependencies [6320a61]
39
+ - @mastra/core@0.10.9-alpha.0
40
+ - @mastra/deployer@0.10.9-alpha.0
41
+
42
+ ## 0.10.8
43
+
44
+ ### Patch Changes
45
+
46
+ - a344ac7: Fix tool streaming in agent network
47
+ - Updated dependencies [b8f16b2]
48
+ - Updated dependencies [3e04487]
49
+ - Updated dependencies [a344ac7]
50
+ - Updated dependencies [dc4ca0a]
51
+ - @mastra/core@0.10.8
52
+ - @mastra/deployer@0.10.8
53
+
54
+ ## 0.10.8-alpha.1
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [b8f16b2]
59
+ - Updated dependencies [3e04487]
60
+ - Updated dependencies [dc4ca0a]
61
+ - @mastra/core@0.10.8-alpha.1
62
+ - @mastra/deployer@0.10.8-alpha.1
63
+
64
+ ## 0.10.8-alpha.0
65
+
66
+ ### Patch Changes
67
+
68
+ - a344ac7: Fix tool streaming in agent network
69
+ - Updated dependencies [a344ac7]
70
+ - @mastra/deployer@0.10.8-alpha.0
71
+ - @mastra/core@0.10.8-alpha.0
72
+
73
+ ## 0.10.7
74
+
75
+ ### Patch Changes
76
+
77
+ - 5d74aab: vNext network in playground
78
+ - 9102d89: Fix final output not showing on playground for previously suspended steps
79
+ - 17903a3: Remove install step from dev for telemetry
80
+ - 8e1b6e9: dependencies updates:
81
+ - Updated dependency [`zod@^3.25.67` ↗︎](https://www.npmjs.com/package/zod/v/3.25.67) (from `^3.25.57`, in `dependencies`)
82
+ - 21ffb97: Make dynamic form handle schema better
83
+ - be3d5a3: Remove recharts and ramada (unused deps)
84
+ - f9b4350: fix icons not showing on all agents
85
+ - Updated dependencies [8e1b6e9]
86
+ - Updated dependencies [36cd0f1]
87
+ - Updated dependencies [2eab82b]
88
+ - Updated dependencies [ee93d96]
89
+ - Updated dependencies [c00039d]
90
+ - Updated dependencies [15e9d26]
91
+ - Updated dependencies [d1baedb]
92
+ - Updated dependencies [d8f2d19]
93
+ - Updated dependencies [9bf1d55]
94
+ - Updated dependencies [4d21bf2]
95
+ - Updated dependencies [914684e]
96
+ - Updated dependencies [07d6d88]
97
+ - Updated dependencies [9d52b17]
98
+ - Updated dependencies [2097952]
99
+ - Updated dependencies [792c4c0]
100
+ - Updated dependencies [5d74aab]
101
+ - Updated dependencies [5d74aab]
102
+ - Updated dependencies [17903a3]
103
+ - Updated dependencies [a8b194f]
104
+ - Updated dependencies [4fb0cc2]
105
+ - Updated dependencies [d2a7a31]
106
+ - Updated dependencies [502fe05]
107
+ - Updated dependencies [144eb0b]
108
+ - Updated dependencies [8ba1b51]
109
+ - Updated dependencies [10a4f10]
110
+ - Updated dependencies [4efcfa0]
111
+ - Updated dependencies [0e17048]
112
+ - Updated dependencies [dc93062]
113
+ - @mastra/deployer@0.10.7
114
+ - @mastra/mcp@0.10.5
115
+ - @mastra/core@0.10.7
116
+
117
+ ## 0.10.7-alpha.5
118
+
119
+ ### Patch Changes
120
+
121
+ - f9b4350: fix icons not showing on all agents
122
+ - @mastra/core@0.10.7-alpha.5
123
+ - @mastra/deployer@0.10.7-alpha.5
124
+
3
125
  ## 0.10.7-alpha.4
4
126
 
5
127
  ### Patch Changes
@@ -176,127 +298,5 @@
176
298
  - Updated dependency [`@clack/prompts@^0.11.0` ↗︎](https://www.npmjs.com/package/@clack/prompts/v/0.11.0) (from `^0.8.2`, in `dependencies`)
177
299
  - Updated dependency [`@opentelemetry/instrumentation@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/instrumentation/v/0.202.0) (from `^0.57.2`, in `dependencies`)
178
300
  - Updated dependency [`posthog-node@4.18.0` ↗︎](https://www.npmjs.com/package/posthog-node/v/4.18.0) (from `4.16.0`, in `dependencies`)
179
- - Updated dependency [`yocto-spinner@^0.2.3` ↗︎](https://www.npmjs.com/package/yocto-spinner/v/0.2.3) (from `^0.1.2`, in `dependencies`)
180
- - Added dependency [`open@^10.1.2` ↗︎](https://www.npmjs.com/package/open/v/10.1.2) (to `dependencies`)
181
- - b40f365: dependencies updates:
182
- - Updated dependency [`@clack/prompts@^0.11.0` ↗︎](https://www.npmjs.com/package/@clack/prompts/v/0.11.0) (from `^0.8.2`, in `dependencies`)
183
- - Updated dependency [`@opentelemetry/instrumentation@^0.202.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/instrumentation/v/0.202.0) (from `^0.57.2`, in `dependencies`)
184
- - Updated dependency [`posthog-node@4.18.0` ↗︎](https://www.npmjs.com/package/posthog-node/v/4.18.0) (from `4.16.0`, in `dependencies`)
185
- - Updated dependency [`yocto-spinner@^0.2.3` ↗︎](https://www.npmjs.com/package/yocto-spinner/v/0.2.3) (from `^0.1.2`, in `dependencies`)
186
- - Updated dependencies [4051477]
187
- - Updated dependencies [c28ed65]
188
- - Updated dependencies [d70c420]
189
- - Updated dependencies [2a16996]
190
- - @mastra/deployer@0.10.6-alpha.3
191
- - @mastra/core@0.10.6-alpha.3
192
-
193
- ## 0.10.6-alpha.3
194
-
195
- ### Patch Changes
196
-
197
- - Updated dependencies [4b0f8a6]
198
- - Updated dependencies [ec7f824]
199
- - @mastra/core@0.10.6-alpha.2
200
- - @mastra/deployer@0.10.6-alpha.2
201
-
202
- ## 0.10.6-alpha.2
203
-
204
- ### Patch Changes
205
-
206
- - 143b4e4: Fix globbing of tools to only capture js/ts files
207
- - 44ba52d: Add proper error message when installation of mastra fails
208
- - 3270d9d: Fix runtime context being undefined
209
- - fc677d7: For final result for a workflow
210
- - Updated dependencies [ee9af57]
211
- - Updated dependencies [3270d9d]
212
- - Updated dependencies [751c894]
213
- - Updated dependencies [577ce3a]
214
- - Updated dependencies [9260b3a]
215
- - @mastra/deployer@0.10.6-alpha.1
216
- - @mastra/core@0.10.6-alpha.1
217
-
218
- ## 0.10.6-alpha.1
219
-
220
- ### Patch Changes
221
-
222
- - 47e7029: Add open browser functionality when running mastra dev
223
-
224
- ## 0.10.6-alpha.0
225
-
226
- ### Patch Changes
227
-
228
- - 02560d4: lift evals fetching to the playground package instead
229
- - 63f6b7d: dependencies updates:
230
- - Updated dependency [`execa@^9.6.0` ↗︎](https://www.npmjs.com/package/execa/v/9.6.0) (from `^9.5.2`, in `dependencies`)
231
- - Updated dependency [`json-schema-to-zod@^2.6.1` ↗︎](https://www.npmjs.com/package/json-schema-to-zod/v/2.6.1) (from `^2.6.0`, in `dependencies`)
232
- - Updated dependency [`shell-quote@^1.8.3` ↗︎](https://www.npmjs.com/package/shell-quote/v/1.8.3) (from `^1.8.2`, in `dependencies`)
233
- - Updated dependency [`strip-json-comments@^5.0.2` ↗︎](https://www.npmjs.com/package/strip-json-comments/v/5.0.2) (from `^5.0.1`, in `dependencies`)
234
- - Updated dependency [`zod@^3.25.57` ↗︎](https://www.npmjs.com/package/zod/v/3.25.57) (from `^3.25.56`, in `dependencies`)
235
- - 311132e: move useWorkflow to playground instead of playground-ui
236
- - 906f992: CLI error log
237
- - 53d3c37: Get workflows from an agent if not found from Mastra instance #5083
238
- - Updated dependencies [63f6b7d]
239
- - Updated dependencies [2d12edd]
240
- - Updated dependencies [63f6b7d]
241
- - Updated dependencies [63f6b7d]
242
- - Updated dependencies [36f1c36]
243
- - Updated dependencies [10d352e]
244
- - Updated dependencies [53d3c37]
245
- - @mastra/core@0.10.6-alpha.0
246
- - @mastra/deployer@0.10.6-alpha.0
247
- - @mastra/mcp@0.10.4-alpha.0
248
-
249
- ## 0.10.5
250
-
251
- ### Patch Changes
252
-
253
- - 1ba421d: fix the tools not showing on workflows attached to agents
254
- - 8725d02: Improve cli by reducing the amount of setups during interactive prompt
255
- - 13c97f9: Save run status, result and error in storage snapshot
256
- - Updated dependencies [8725d02]
257
- - Updated dependencies [13c97f9]
258
- - Updated dependencies [105f872]
259
- - @mastra/deployer@0.10.5
260
- - @mastra/core@0.10.5
261
-
262
- ## 0.10.4
263
-
264
- ### Patch Changes
265
301
 
266
- - e719504: don't start posthog when the browser is Brave
267
- - 8e1994a: Fix bug where port auto increments on restart
268
- - afd9fda: Reset retry-count on code change and only retry if server actually is running
269
-
270
- Fixes #4563
271
-
272
- - b4ee346: Reintroduce --env flag for mastra dev, build
273
- - f1f1f1b: Add basic filtering capabilities to logs
274
- - 125b1c6: Updated @mastra/mcp-docs-server configuration in create-mastra for Windows - the cmd /c workaround for Cursor/Windsurf is no longer required
275
- - 82090c1: Add pagination to logs
276
- - d1ed912: dependencies updates:
277
- - Updated dependency [`dotenv@^16.5.0` ↗︎](https://www.npmjs.com/package/dotenv/v/16.5.0) (from `^16.4.7`, in `dependencies`)
278
- - 1ccccff: dependencies updates:
279
- - Updated dependency [`zod@^3.25.56` ↗︎](https://www.npmjs.com/package/zod/v/3.25.56) (from `^3.24.3`, in `dependencies`)
280
- - 1ccccff: dependencies updates:
281
- - Updated dependency [`zod@^3.25.56` ↗︎](https://www.npmjs.com/package/zod/v/3.25.56) (from `^3.24.3`, in `dependencies`)
282
- - 26f0031: Removed @latest from @mastra/mcp-docs-server scaffolded configuration for Windsurf/Cursor/VSCode. There is an npx caching issue that causes @latest to break the MCP server for many users, and for now removing @latest makes it work. We will debug this more but for now having a working docs server is more important than it updating every time users start their IDE.
283
- - d7d41f0: Fix mastra dev cmd
284
- - 8f60de4: fix workflow output when the schema is a primitive
285
- - 4c4ee43: [fix] recreate resizable sidebar on workflow
286
- - a528bdb: Add dynamic port allocation if port is already in use
287
- - Updated dependencies [d1ed912]
288
- - Updated dependencies [d1ed912]
289
- - Updated dependencies [f595975]
290
- - Updated dependencies [d90c49f]
291
- - Updated dependencies [1ccccff]
292
- - 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.
302
+ ... 4092 more lines hidden. See full changelog in package directory.
@@ -2,25 +2,6 @@
2
2
  ```json
3
3
  {
4
4
  "name": "examples-a2a",
5
- "version": "1.0.0",
6
- "type": "module",
7
- "private": true,
8
- "description": "Example of using Mastra's A2A protocol with the client SDK",
9
- "main": "dist/index.js",
10
- "scripts": {
11
- "start": "tsx src/index.ts",
12
- "mastra:dev": "mastra dev",
13
- "build": "tsc",
14
- "dev": "tsx watch src/index.ts"
15
- },
16
- "keywords": [
17
- "mastra",
18
- "a2a",
19
- "agent-to-agent",
20
- "example"
21
- ],
22
- "author": "Mastra Team",
23
- "license": "MIT",
24
5
  "dependencies": {
25
6
  "@ai-sdk/openai": "^1.3.22",
26
7
  "@mastra/client-js": "latest",
@@ -33,18 +14,8 @@
33
14
  "mastra": "latest",
34
15
  "tsx": "^4.7.0",
35
16
  "typescript": "^5.3.3"
36
- },
37
- "pnpm": {
38
- "overrides": {
39
- "@mastra/core": "link:../../packages/core",
40
- "mastra": "link:../../packages/cli",
41
- "@mastra/client-js": "link:../../client-sdks/client-js",
42
- "@mastra/loggers": "link:../../packages/loggers"
43
- }
44
- },
45
- "packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f"
17
+ }
46
18
  }
47
-
48
19
  ```
49
20
 
50
21
  ### index.ts
@@ -2,18 +2,8 @@
2
2
  ```json
3
3
  {
4
4
  "name": "examples-agent-network",
5
- "type": "module",
6
- "private": true,
7
- "description": "",
8
- "main": "index.js",
9
- "version": "0.0.1",
10
- "scripts": {
11
- "start": "npx bun src/index.ts"
12
- },
13
- "keywords": [],
14
- "author": "",
15
- "license": "MIT",
16
5
  "dependencies": {
6
+ "@ai-sdk/anthropic": "^1.2.12",
17
7
  "@ai-sdk/openai": "^1.3.22",
18
8
  "@mastra/client-js": "latest",
19
9
  "@mastra/core": "latest",
@@ -21,19 +11,8 @@
21
11
  "@mastra/loggers": "latest",
22
12
  "@mastra/memory": "latest",
23
13
  "zod": "^3.25.67"
24
- },
25
- "pnpm": {
26
- "overrides": {
27
- "@mastra/client-js": "link:../../client-sdks/client-js",
28
- "@mastra/core": "link:../../packages/core",
29
- "@mastra/libsql": "link:../../stores/libsql",
30
- "@mastra/loggers": "link:../../packages/loggers",
31
- "@mastra/memory": "link:../../packages/memory"
32
- }
33
- },
34
- "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
14
+ }
35
15
  }
36
-
37
16
  ```
38
17
 
39
18
  ### agent-workflow.ts
@@ -111,107 +90,29 @@ main().catch(error => {
111
90
 
112
91
  ```
113
92
 
114
- ### mastra/agents/index.ts
115
- ```typescript
116
- import { openai } from '@ai-sdk/openai';
117
- import { Agent } from '@mastra/core/agent';
118
-
119
- export const primaryResearchAgent = new Agent({
120
- name: 'Primary Research Agent',
121
- instructions: `
122
- You are the primary research coordinator. Your job is to:
123
- 1. Analyze user queries to determine what type of research is needed
124
- 2. Break down complex research questions into manageable sub-questions
125
- 3. Synthesize information from specialized research agents into a coherent response
126
- 4. Ensure all claims are properly supported by evidence
127
- 5. Identify any gaps in the research that need further investigation
128
-
129
- You should maintain a neutral, objective tone and prioritize accuracy over speed.
130
- `,
131
- model: openai('gpt-4o'),
132
- });
133
-
134
- export const webSearchAgent = new Agent({
135
- name: 'Web Search Agent',
136
- instructions: `
137
- You are a web search specialist. Your job is to:
138
- 1. Find the most relevant and up-to-date information online for a given query
139
- 2. Evaluate the credibility of sources and prioritize reliable information
140
- 3. Extract key facts and data points from web content
141
- 4. Provide direct quotes and citations when appropriate
142
- 5. Summarize findings in a clear, concise manner
143
-
144
- Always include source URLs when reporting information.
145
-
146
- Use the "web_search_preview" tool to search the web for information.
147
- `,
148
- model: openai.responses('gpt-4o-mini'),
149
- tools: {
150
- web_search_preview: openai.tools.webSearchPreview(),
151
- },
152
- });
153
-
154
- export const academicResearchAgent = new Agent({
155
- name: 'Academic Research Agent',
156
- instructions: `
157
- You are an academic research specialist. Your job is to:
158
- 1. Analyze topics from an academic perspective
159
- 2. Identify key theories, frameworks, and scholarly debates relevant to a query
160
- 3. Provide historical context and development of ideas
161
- 4. Cite academic sources properly
162
- 5. Explain complex academic concepts in accessible language
163
-
164
- Prioritize peer-reviewed research and established academic sources.
165
- `,
166
- model: openai('gpt-4o'),
167
- });
168
-
169
- export const factCheckingAgent = new Agent({
170
- name: 'Fact Checking Agent',
171
- instructions: `
172
- You are a fact-checking specialist. Your job is to:
173
- 1. Verify claims made by other agents or in user queries
174
- 2. Identify potential misinformation or unsubstantiated claims
175
- 3. Cross-reference information across multiple reliable sources
176
- 4. Provide corrections with supporting evidence
177
- 5. Rate the confidence level of verified information
178
-
179
- Be thorough and skeptical, but fair in your assessments.
180
- `,
181
- model: openai('gpt-4o-mini'),
182
- });
183
-
184
- export const dataAnalysisAgent = new Agent({
185
- name: 'Data Analysis Agent',
186
- instructions: `
187
- You are a data analysis specialist. Your job is to:
188
- 1. Interpret numerical data and statistics related to research queries
189
- 2. Identify trends, patterns, and correlations in data
190
- 3. Evaluate the methodology behind data collection and analysis
191
- 4. Explain statistical concepts in accessible language
192
- 5. Create clear summaries of data-driven findings
193
-
194
- Always consider sample sizes, statistical significance, and potential biases in data.
195
- `,
196
- model: openai('gpt-4o'),
197
- });
198
-
199
- ```
200
-
201
93
  ### mastra/index.ts
202
94
  ```typescript
203
95
  import { Mastra } from '@mastra/core';
204
96
  import { PinoLogger } from '@mastra/loggers';
205
97
  // import { researchNetwork } from './network';
206
- import { webSearchAgent } from './agents';
98
+ import { webSearchAgent, synthesizeAgent } from './agents';
99
+ import { planningAgent } from './agents/planning';
100
+ import { travelAgent, summaryAgent } from './agents/travelAgent';
207
101
  // import { agentWorkflow } from './workflows';
208
102
  import { v_nextNetwork } from './network/v-next';
209
103
  import { LibSQLStore } from '@mastra/libsql';
210
104
  import { workflow1 } from './network/v-next';
105
+ import { travelAgentWorkflow } from './workflows/step4';
106
+ import { incrementWorkflow } from './workflows/step5';
107
+ import { weatherWorkflow } from './workflows/step3';
211
108
 
212
109
  export const mastra = new Mastra({
213
110
  agents: {
214
111
  webSearchAgent,
112
+ planningAgent,
113
+ travelAgent,
114
+ summaryTravelAgent: summaryAgent,
115
+ synthesizeAgent,
215
116
  },
216
117
  // networks: {
217
118
  // researchNetwork,
@@ -224,6 +125,9 @@ export const mastra = new Mastra({
224
125
  }),
225
126
  workflows: {
226
127
  workflow1,
128
+ travelAgentWorkflow,
129
+ incrementWorkflow,
130
+ weatherWorkflow,
227
131
  },
228
132
  logger: new PinoLogger({ name: 'Chef', level: 'info' }),
229
133
  serverMiddleware: [
@@ -279,12 +183,15 @@ export const researchNetwork = new AgentNetwork({
279
183
  ### mastra/network/v-next.ts
280
184
  ```typescript
281
185
  import { openai } from '@ai-sdk/openai';
186
+ import { anthropic } from '@ai-sdk/anthropic';
282
187
  import { NewAgentNetwork } from '@mastra/core/network/vNext';
283
188
  import { Agent } from '@mastra/core/agent';
284
189
  import { createStep, createWorkflow } from '@mastra/core/workflows';
285
190
  import { LibSQLStore } from '@mastra/libsql';
286
191
  import { Memory } from '@mastra/memory';
287
192
  import { z } from 'zod';
193
+ import { weatherAgent } from '../agents';
194
+ import { weatherTool } from '../tools';
288
195
 
289
196
  const memory = new Memory({
290
197
  storage: new LibSQLStore({
@@ -298,7 +205,7 @@ const agent1 = new Agent({
298
205
  'This agent is used to do research, but not create full responses. Answer in bullet points only and be concise.',
299
206
  description:
300
207
  'This agent is used to do research, but not create full responses. Answer in bullet points only and be concise.',
301
- model: openai('gpt-4o'),
208
+ model: anthropic('claude-3-5-sonnet-20240620'),
302
209
  });
303
210
 
304
211
  const agent2 = new Agent({
@@ -306,7 +213,7 @@ const agent2 = new Agent({
306
213
  description: 'This agent is used to do text synthesis on researched material. It writes articles in full paragraphs.',
307
214
  instructions:
308
215
  'This agent is used to do text synthesis on researched material. Write a full report based on the researched material. Do not use bullet points. Write full paragraphs. There should not be a single bullet point in the final report. You write articles.',
309
- model: openai('gpt-4o'),
216
+ model: anthropic('claude-3-5-sonnet-20240620'),
310
217
  });
311
218
 
312
219
  const agentStep1 = createStep({
@@ -367,11 +274,15 @@ export const v_nextNetwork = new NewAgentNetwork({
367
274
  id: 'test-network',
368
275
  name: 'Test Network',
369
276
  instructions:
370
- 'You can research cities. You can also synthesize research material. You can also write a full report based on the researched material.',
371
- model: openai('gpt-4o'),
277
+ 'You can research cities. You can also synthesize research material. You can also write a full report based on the researched material. You can also get weather information. workflow1 is the best primitive for researching an *individual* city and it should always be used when running multiple primitives to accomplish a task.',
278
+ model: anthropic('claude-3-5-sonnet-20240620'),
372
279
  agents: {
373
280
  agent1,
374
281
  agent2,
282
+ // weatherAgent,
283
+ },
284
+ tools: {
285
+ weatherTool,
375
286
  },
376
287
  workflows: {
377
288
  workflow1,
@@ -2,11 +2,6 @@
2
2
  ```json
3
3
  {
4
4
  "name": "examples-agent",
5
- "type": "module",
6
- "private": true,
7
- "description": "",
8
- "main": "index.js",
9
- "version": "0.0.1",
10
5
  "dependencies": {
11
6
  "@ai-sdk/openai": "latest",
12
7
  "@mastra/client-js": "latest",
@@ -20,31 +15,8 @@
20
15
  "fetch-to-node": "^2.1.0",
21
16
  "mastra": "latest",
22
17
  "zod": "^3.25.67"
23
- },
24
- "pnpm": {
25
- "overrides": {
26
- "@mastra/core": "link:../../packages/core",
27
- "@mastra/loggers": "link:../../packages/loggers",
28
- "@mastra/voice-openai": "link:../../voice/openai",
29
- "@mastra/memory": "link:../../packages/memory",
30
- "@mastra/client-js": "link:../../client-sdks/client-js",
31
- "@mastra/mcp": "link:../../packages/mcp",
32
- "@mastra/libsql": "link:../../stores/libsql",
33
- "mastra": "link:../../packages/cli"
34
- }
35
- },
36
- "scripts": {
37
- "start-deployed": "npx bun src/with-deployed.ts",
38
- "start": "npx bun src/index.ts",
39
- "mastra:build": "mastra build",
40
- "mastra:dev": "mastra dev"
41
- },
42
- "keywords": [],
43
- "author": "",
44
- "license": "MIT",
45
- "packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f"
18
+ }
46
19
  }
47
-
48
20
  ```
49
21
 
50
22
  ### client.ts
@@ -2,17 +2,6 @@
2
2
  ```json
3
3
  {
4
4
  "name": "examples-agui",
5
- "private": true,
6
- "version": "0.0.0",
7
- "type": "module",
8
- "scripts": {
9
- "mastra:dev": "mastra dev",
10
- "dev": "vite",
11
- "build": "tsc && vite build",
12
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
13
- "preview": "vite preview",
14
- "type-check": "tsc --noEmit"
15
- },
16
5
  "dependencies": {
17
6
  "@ai-sdk/openai": "^1.3.22",
18
7
  "@copilotkit/react-core": "^1.8.10",
@@ -28,16 +17,6 @@
28
17
  "react-dom": "^19.1.0",
29
18
  "zod": "^3.25.67"
30
19
  },
31
- "pnpm": {
32
- "overrides": {
33
- "@mastra/core": "link:../../packages/core",
34
- "@mastra/agui": "link:../../packages/agui",
35
- "@mastra/libsql": "link:../../stores/libsql",
36
- "@mastra/loggers": "link:../../packages/loggers",
37
- "@mastra/memory": "link:../../packages/memory",
38
- "mastra": "link:../../packages/cli"
39
- }
40
- },
41
20
  "devDependencies": {
42
21
  "@eslint/js": "^9.25.0",
43
22
  "@types/react": "^19.1.8",
@@ -53,7 +32,6 @@
53
32
  "vite": "^6.3.5"
54
33
  }
55
34
  }
56
-
57
35
  ```
58
36
 
59
37
  ### mastra/agents/index.ts
@@ -2,14 +2,6 @@
2
2
  ```json
3
3
  {
4
4
  "name": "mastra-ai-sdk-use-chat-example",
5
- "version": "0.1.1",
6
- "private": true,
7
- "scripts": {
8
- "dev": "next dev --turbopack",
9
- "build": "next build",
10
- "start": "next start",
11
- "lint": "next lint"
12
- },
13
5
  "dependencies": {
14
6
  "@ai-sdk/anthropic": "^1.2.12",
15
7
  "@ai-sdk/react": "^1.2.12",
@@ -19,11 +11,6 @@
19
11
  "react-dom": "^19.1.0",
20
12
  "zod": "^3.25.67"
21
13
  },
22
- "pnpm": {
23
- "overrides": {
24
- "@mastra/core": "link:../../packages/core"
25
- }
26
- },
27
14
  "devDependencies": {
28
15
  "@eslint/eslintrc": "^3.3.0",
29
16
  "@types/node": "^20.17.57",
@@ -34,10 +21,8 @@
34
21
  "postcss": "^8.5.3",
35
22
  "tailwindcss": "^3.4.17",
36
23
  "typescript": "^5.8.2"
37
- },
38
- "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
24
+ }
39
25
  }
40
-
41
26
  ```
42
27
 
43
28
  ### mastra/agents/index.ts
@@ -2,13 +2,6 @@
2
2
  ```json
3
3
  {
4
4
  "name": "examples-assistant-ui",
5
- "private": true,
6
- "scripts": {
7
- "dev": "next dev --turbo",
8
- "build": "next build",
9
- "start": "next start",
10
- "lint": "next lint"
11
- },
12
5
  "dependencies": {
13
6
  "@ai-sdk/openai": "latest",
14
7
  "@assistant-ui/react": "0.7.85",
@@ -21,11 +14,6 @@
21
14
  "tailwindcss-animate": "^1.0.7",
22
15
  "zod": "^3.25.67"
23
16
  },
24
- "pnpm": {
25
- "overrides": {
26
- "@mastra/client-js": "link:../../client-sdks/client-js"
27
- }
28
- },
29
17
  "devDependencies": {
30
18
  "@types/node": "^20.17.57",
31
19
  "@types/react": "^19.1.8",
@@ -35,9 +23,6 @@
35
23
  "postcss": "^8.5.3",
36
24
  "tailwindcss": "^3.4.17",
37
25
  "typescript": "^5.8.2"
38
- },
39
- "version": "0.0.0",
40
- "packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
26
+ }
41
27
  }
42
-
43
28
  ```