@mastra/mcp-docs-server 0.0.0-error-handler-fix-20251020202607 → 0.0.0-esbuild-bundle-worker-20260807182016

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 (1526) hide show
  1. package/.docs/course/01-first-agent/04-project-structure.md +19 -0
  2. package/.docs/course/01-first-agent/05-running-playground.md +19 -0
  3. package/.docs/course/01-first-agent/07-creating-your-agent.md +50 -0
  4. package/.docs/course/01-first-agent/08-exporting-your-agent.md +34 -0
  5. package/.docs/course/01-first-agent/09-testing-your-agent.md +12 -0
  6. package/.docs/course/01-first-agent/11-creating-transactions-tool.md +41 -0
  7. package/.docs/course/01-first-agent/12-connecting-tool-to-agent.md +29 -0
  8. package/.docs/course/01-first-agent/13-testing-your-tool.md +15 -0
  9. package/.docs/course/01-first-agent/15-installing-memory.md +13 -0
  10. package/.docs/course/01-first-agent/16-adding-memory-to-agent.md +33 -0
  11. package/.docs/course/01-first-agent/17-testing-memory.md +15 -0
  12. package/.docs/course/02-agent-tools-mcp/03-setting-up-mcp-configuration.md +21 -0
  13. package/.docs/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +11 -0
  14. package/.docs/course/02-agent-tools-mcp/05-updating-your-agent.md +20 -0
  15. package/.docs/course/02-agent-tools-mcp/07-what-is-zapier-mcp.md +23 -0
  16. package/.docs/course/02-agent-tools-mcp/08-getting-zapier-mcp-url.md +21 -0
  17. package/.docs/course/02-agent-tools-mcp/09-updating-mcp-config-zapier.md +29 -0
  18. package/.docs/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +29 -0
  19. package/.docs/course/02-agent-tools-mcp/12-troubleshooting-zapier.md +19 -0
  20. package/.docs/course/02-agent-tools-mcp/13-what-is-github-mcp.md +14 -0
  21. package/.docs/course/02-agent-tools-mcp/14-getting-github-mcp-url.md +40 -0
  22. package/.docs/course/02-agent-tools-mcp/15-updating-mcp-config-github.md +36 -0
  23. package/.docs/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +33 -0
  24. package/.docs/course/02-agent-tools-mcp/18-troubleshooting-github.md +17 -0
  25. package/.docs/course/02-agent-tools-mcp/20-updating-mcp-config-hackernews.md +36 -0
  26. package/.docs/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +38 -0
  27. package/.docs/course/02-agent-tools-mcp/26-updating-mcp-config-filesystem.md +43 -0
  28. package/.docs/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +45 -0
  29. package/.docs/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +78 -0
  30. package/.docs/course/02-agent-tools-mcp/32-conclusion.md +17 -0
  31. package/.docs/course/03-agent-memory/03-installing-memory.md +13 -0
  32. package/.docs/course/03-agent-memory/04-creating-basic-memory-agent.md +36 -0
  33. package/.docs/course/03-agent-memory/05-updating-mastra-export.md +18 -0
  34. package/.docs/course/03-agent-memory/07-understanding-memory-threads.md +49 -0
  35. package/.docs/course/03-agent-memory/08-configuring-conversation-history.md +36 -0
  36. package/.docs/course/03-agent-memory/09-using-memory-in-application.md +19 -0
  37. package/.docs/course/03-agent-memory/10-storage-configuration.md +29 -0
  38. package/.docs/course/03-agent-memory/12-handling-memory-frontend.md +62 -0
  39. package/.docs/course/03-agent-memory/13-vector-store-configuration.md +29 -0
  40. package/.docs/course/03-agent-memory/16-configuring-semantic-recall.md +42 -0
  41. package/.docs/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +73 -0
  42. package/.docs/course/03-agent-memory/21-configuring-working-memory.md +64 -0
  43. package/.docs/course/03-agent-memory/22-custom-working-memory-templates.md +89 -0
  44. package/.docs/course/03-agent-memory/25-combining-memory-features.md +80 -0
  45. package/.docs/course/03-agent-memory/26-updating-mastra-export-comprehensive.md +0 -0
  46. package/.docs/course/03-agent-memory/27-creating-learning-assistant.md +103 -0
  47. package/.docs/course/04-workflows/01-introduction-to-workflows.md +44 -0
  48. package/.docs/course/04-workflows/02-understanding-steps.md +53 -0
  49. package/.docs/course/04-workflows/03-creating-your-first-step.md +57 -0
  50. package/.docs/course/04-workflows/04-creating-a-second-step.md +58 -0
  51. package/.docs/course/04-workflows/05-chaining-steps-together.md +57 -0
  52. package/.docs/course/04-workflows/06-registering-with-mastra.md +24 -0
  53. package/.docs/course/04-workflows/07-using-playground.md +58 -0
  54. package/.docs/course/04-workflows/08-running-workflows-programmatically.md +73 -0
  55. package/.docs/course/04-workflows/09-adding-a-third-step.md +68 -0
  56. package/.docs/course/04-workflows/10-updating-the-workflow.md +55 -0
  57. package/.docs/course/04-workflows/11-creating-an-ai-agent.md +66 -0
  58. package/.docs/course/04-workflows/12-using-agent-in-workflow.md +89 -0
  59. package/.docs/course/04-workflows/13-creating-ai-enhanced-workflow.md +72 -0
  60. package/.docs/course/04-workflows/14-understanding-parallel-execution.md +38 -0
  61. package/.docs/course/04-workflows/15-creating-parallel-steps.md +111 -0
  62. package/.docs/course/04-workflows/16-building-parallel-workflow.md +100 -0
  63. package/.docs/course/04-workflows/17-testing-parallel-performance.md +36 -0
  64. package/.docs/course/04-workflows/18-understanding-conditional-branching.md +61 -0
  65. package/.docs/course/04-workflows/19-creating-conditional-steps.md +124 -0
  66. package/.docs/course/04-workflows/20-building-conditional-workflow.md +55 -0
  67. package/.docs/course/04-workflows/21-testing-conditional-logic.md +58 -0
  68. package/.docs/docs/agents/a2a.md +340 -0
  69. package/.docs/docs/agents/acp.md +156 -0
  70. package/.docs/docs/agents/agent-approval.md +664 -0
  71. package/.docs/docs/agents/code-mode.md +172 -0
  72. package/.docs/docs/agents/guardrails.md +390 -0
  73. package/.docs/docs/agents/networks.md +184 -0
  74. package/.docs/docs/agents/overview.md +220 -0
  75. package/.docs/docs/agents/processors.md +982 -0
  76. package/.docs/docs/agents/sdk-agents.md +427 -0
  77. package/.docs/docs/agents/skills.md +186 -0
  78. package/.docs/docs/agents/structured-output.md +338 -0
  79. package/.docs/docs/agents/using-tools.md +624 -0
  80. package/.docs/docs/browser/agent-browser.md +110 -0
  81. package/.docs/docs/browser/browser-viewer.md +151 -0
  82. package/.docs/docs/browser/firecrawl.md +129 -0
  83. package/.docs/docs/browser/overview.md +187 -0
  84. package/.docs/docs/browser/recording.md +120 -0
  85. package/.docs/docs/browser/stagehand.md +172 -0
  86. package/.docs/docs/capabilities/channels/discord.md +98 -0
  87. package/.docs/docs/capabilities/channels/imessage.md +181 -0
  88. package/.docs/docs/capabilities/channels/other-adapters.md +68 -0
  89. package/.docs/docs/capabilities/channels/overview.md +262 -0
  90. package/.docs/docs/capabilities/channels/slack.md +335 -0
  91. package/.docs/docs/capabilities/channels/teams.md +100 -0
  92. package/.docs/docs/capabilities/channels/telegram.md +98 -0
  93. package/.docs/docs/capabilities/channels/whatsapp.md +99 -0
  94. package/.docs/docs/capabilities/subagents.md +454 -0
  95. package/.docs/docs/connections/overview.md +94 -0
  96. package/.docs/docs/datasets/overview.md +209 -0
  97. package/.docs/docs/datasets/running-experiments.md +455 -0
  98. package/.docs/docs/deployment/cloud-providers.md +23 -0
  99. package/.docs/docs/deployment/mastra-server.md +157 -0
  100. package/.docs/docs/deployment/monorepo.md +140 -0
  101. package/.docs/docs/deployment/overview.md +79 -0
  102. package/.docs/docs/deployment/sandbox.md +373 -0
  103. package/.docs/docs/deployment/web-framework.md +54 -0
  104. package/.docs/docs/deployment/workers.md +137 -0
  105. package/.docs/docs/deployment/workflow-runners.md +17 -0
  106. package/.docs/docs/editor/overview.md +349 -0
  107. package/.docs/docs/evals/built-in-scorers.md +66 -0
  108. package/.docs/docs/evals/custom-scorers.md +579 -0
  109. package/.docs/docs/evals/evals-with-memory.md +146 -0
  110. package/.docs/docs/evals/gates-and-verdicts.md +157 -0
  111. package/.docs/docs/evals/multi-turn.md +178 -0
  112. package/.docs/docs/evals/overview.md +163 -0
  113. package/.docs/docs/evals/quick-checks.md +137 -0
  114. package/.docs/docs/evals/running-in-ci.md +121 -0
  115. package/.docs/docs/getting-started/develop.md +198 -0
  116. package/.docs/docs/harness/agent-controller.md +376 -0
  117. package/.docs/docs/harness/overview.md +26 -0
  118. package/.docs/docs/index.md +246 -0
  119. package/.docs/docs/license.md +66 -0
  120. package/.docs/docs/long-running-agents/background-tasks.md +382 -0
  121. package/.docs/docs/long-running-agents/durable-agents.md +273 -0
  122. package/.docs/docs/long-running-agents/goals.md +118 -0
  123. package/.docs/docs/long-running-agents/schedules.md +201 -0
  124. package/.docs/docs/long-running-agents/signal-providers.md +224 -0
  125. package/.docs/docs/long-running-agents/signals.md +426 -0
  126. package/.docs/docs/mastra-platform/configuration.md +69 -0
  127. package/.docs/docs/mastra-platform/database.md +203 -0
  128. package/.docs/docs/mastra-platform/deploy.md +155 -0
  129. package/.docs/docs/mastra-platform/environments.md +108 -0
  130. package/.docs/docs/mastra-platform/github.md +135 -0
  131. package/.docs/docs/mastra-platform/observability.md +127 -0
  132. package/.docs/docs/mastra-platform/overview.md +43 -0
  133. package/.docs/docs/mastra-platform/regions.md +73 -0
  134. package/.docs/docs/mastra-platform/server.md +260 -0
  135. package/.docs/docs/mastra-platform/studio.md +87 -0
  136. package/.docs/docs/mastra-platform/trace-intelligence.md +123 -0
  137. package/.docs/docs/mastra-platform/workspaces.md +152 -0
  138. package/.docs/docs/mcp/overview.md +371 -0
  139. package/.docs/docs/memory/memory-processors.md +385 -0
  140. package/.docs/docs/memory/message-history.md +348 -0
  141. package/.docs/docs/memory/multi-user-threads.md +208 -0
  142. package/.docs/docs/memory/observational-memory.md +835 -0
  143. package/.docs/docs/memory/overview.md +266 -0
  144. package/.docs/docs/memory/semantic-recall.md +401 -0
  145. package/.docs/docs/memory/working-memory.md +431 -0
  146. package/.docs/docs/observability/feedback.md +156 -0
  147. package/.docs/docs/observability/integrations/bridges/datadog.md +219 -0
  148. package/.docs/docs/observability/integrations/bridges/otel.md +234 -0
  149. package/.docs/docs/observability/integrations/exporters/arize.md +274 -0
  150. package/.docs/docs/observability/integrations/exporters/arthur.md +165 -0
  151. package/.docs/docs/observability/integrations/exporters/braintrust.md +197 -0
  152. package/.docs/docs/observability/integrations/exporters/confident-ai.md +140 -0
  153. package/.docs/docs/observability/integrations/exporters/datadog.md +321 -0
  154. package/.docs/docs/observability/integrations/exporters/laminar.md +110 -0
  155. package/.docs/docs/observability/integrations/exporters/langfuse.md +279 -0
  156. package/.docs/docs/observability/integrations/exporters/langsmith.md +200 -0
  157. package/.docs/docs/observability/integrations/exporters/mastra-platform.md +201 -0
  158. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +246 -0
  159. package/.docs/docs/observability/integrations/exporters/otel.md +596 -0
  160. package/.docs/docs/observability/integrations/exporters/posthog.md +166 -0
  161. package/.docs/docs/observability/integrations/exporters/sentry.md +210 -0
  162. package/.docs/docs/observability/integrations/overview.md +47 -0
  163. package/.docs/docs/observability/integrations/processors/sensitive-data-filter.md +302 -0
  164. package/.docs/docs/observability/logging.md +158 -0
  165. package/.docs/docs/observability/metrics/overview.md +119 -0
  166. package/.docs/docs/observability/metrics/querying.md +314 -0
  167. package/.docs/docs/observability/overview.md +240 -0
  168. package/.docs/docs/observability/tracing/overview.md +898 -0
  169. package/.docs/docs/server/auth/auth0.md +262 -0
  170. package/.docs/docs/server/auth/better-auth.md +222 -0
  171. package/.docs/docs/server/auth/clerk.md +154 -0
  172. package/.docs/docs/server/auth/composite-auth.md +230 -0
  173. package/.docs/docs/server/auth/custom-auth-provider.md +513 -0
  174. package/.docs/docs/server/auth/fga.md +303 -0
  175. package/.docs/docs/server/auth/firebase.md +294 -0
  176. package/.docs/docs/server/auth/google.md +283 -0
  177. package/.docs/docs/server/auth/jwt.md +116 -0
  178. package/.docs/docs/server/auth/okta.md +227 -0
  179. package/.docs/docs/server/auth/simple-auth.md +174 -0
  180. package/.docs/docs/server/auth/supabase.md +139 -0
  181. package/.docs/docs/server/auth/workers.md +135 -0
  182. package/.docs/docs/server/auth/workos.md +271 -0
  183. package/.docs/docs/server/auth.md +43 -0
  184. package/.docs/docs/server/custom-adapters.md +382 -0
  185. package/.docs/docs/server/custom-api-routes.md +340 -0
  186. package/.docs/docs/server/mastra-client.md +323 -0
  187. package/.docs/docs/server/mastra-server.md +105 -0
  188. package/.docs/docs/server/middleware.md +243 -0
  189. package/.docs/docs/server/pubsub.md +129 -0
  190. package/.docs/docs/server/request-context.md +486 -0
  191. package/.docs/docs/server/server-adapters.md +649 -0
  192. package/.docs/docs/storage/overview.md +214 -0
  193. package/.docs/docs/studio/auth.md +162 -0
  194. package/.docs/docs/studio/deployment.md +266 -0
  195. package/.docs/docs/studio/observability.md +119 -0
  196. package/.docs/docs/studio/overview.md +139 -0
  197. package/.docs/docs/workflows/agents-and-tools.md +192 -0
  198. package/.docs/docs/workflows/control-flow.md +864 -0
  199. package/.docs/docs/workflows/error-handling.md +362 -0
  200. package/.docs/docs/workflows/human-in-the-loop.md +217 -0
  201. package/.docs/docs/workflows/overview.md +549 -0
  202. package/.docs/docs/workflows/scheduled-workflows.md +185 -0
  203. package/.docs/docs/workflows/snapshots.md +240 -0
  204. package/.docs/docs/workflows/stored-workflows.md +146 -0
  205. package/.docs/docs/workflows/suspend-and-resume.md +234 -0
  206. package/.docs/docs/workflows/time-travel.md +313 -0
  207. package/.docs/docs/workflows/workflow-state.md +183 -0
  208. package/.docs/docs/workspace/filesystem.md +238 -0
  209. package/.docs/docs/workspace/lsp.md +190 -0
  210. package/.docs/docs/workspace/overview.md +415 -0
  211. package/.docs/docs/workspace/sandbox.md +246 -0
  212. package/.docs/docs/workspace/search.md +284 -0
  213. package/.docs/docs/workspace/skills.md +204 -0
  214. package/.docs/guides/agent-frameworks/ai-sdk.md +142 -0
  215. package/.docs/guides/build-your-ui/ai-sdk-ui.md +1571 -0
  216. package/.docs/guides/build-your-ui/assistant-ui.md +158 -0
  217. package/.docs/guides/build-your-ui/copilotkit/channels.md +86 -0
  218. package/.docs/guides/build-your-ui/copilotkit/generative-ui.md +174 -0
  219. package/.docs/guides/build-your-ui/copilotkit/overview.md +411 -0
  220. package/.docs/guides/build-your-ui/openui.md +291 -0
  221. package/.docs/guides/concepts/multi-agent-systems.md +77 -0
  222. package/.docs/guides/concepts/streaming.md +319 -0
  223. package/.docs/guides/deployment/amazon-ec2.md +132 -0
  224. package/.docs/guides/deployment/aws-bedrock-agentcore.md +434 -0
  225. package/.docs/guides/deployment/aws-lambda.md +161 -0
  226. package/.docs/guides/deployment/azure-app-services.md +93 -0
  227. package/.docs/guides/deployment/cloudflare.md +101 -0
  228. package/.docs/guides/deployment/digital-ocean.md +170 -0
  229. package/.docs/guides/deployment/inngest.md +805 -0
  230. package/.docs/guides/deployment/kubernetes.md +300 -0
  231. package/.docs/guides/deployment/mastra-workers.md +576 -0
  232. package/.docs/guides/deployment/netlify.md +94 -0
  233. package/.docs/guides/deployment/temporal.md +234 -0
  234. package/.docs/guides/deployment/vercel.md +123 -0
  235. package/.docs/guides/getting-started/astro.md +400 -0
  236. package/.docs/guides/getting-started/electron.md +506 -0
  237. package/.docs/guides/getting-started/express.md +253 -0
  238. package/.docs/guides/getting-started/hono.md +192 -0
  239. package/.docs/guides/getting-started/manual-install.md +250 -0
  240. package/.docs/guides/getting-started/nestjs.md +240 -0
  241. package/.docs/guides/getting-started/next-js.md +345 -0
  242. package/.docs/guides/getting-started/nuxt.md +499 -0
  243. package/.docs/guides/getting-started/quickstart.md +88 -0
  244. package/.docs/guides/getting-started/sveltekit.md +298 -0
  245. package/.docs/guides/getting-started/vite-react.md +427 -0
  246. package/.docs/guides/guide/ai-recruiter.md +228 -0
  247. package/.docs/guides/guide/chef-michel.md +211 -0
  248. package/.docs/guides/guide/code-review-bot.md +228 -0
  249. package/.docs/guides/guide/coding-agent.md +392 -0
  250. package/.docs/guides/guide/dev-assistant.md +309 -0
  251. package/.docs/guides/guide/docs-manager.md +240 -0
  252. package/.docs/guides/guide/firecrawl.md +154 -0
  253. package/.docs/guides/guide/github-actions-pr-description.md +238 -0
  254. package/.docs/guides/guide/notes-mcp-server.md +418 -0
  255. package/.docs/guides/guide/publishing-mcp-server.md +137 -0
  256. package/.docs/guides/guide/research-assistant.md +350 -0
  257. package/.docs/guides/guide/research-coordinator.md +418 -0
  258. package/.docs/guides/guide/signal-provider.md +221 -0
  259. package/.docs/guides/guide/slack-assistant.md +193 -0
  260. package/.docs/guides/guide/stock-agent.md +132 -0
  261. package/.docs/guides/guide/web-search.md +322 -0
  262. package/.docs/guides/guide/whatsapp-chat-bot.md +407 -0
  263. package/.docs/guides/index.md +24 -0
  264. package/.docs/guides/migrations/agentnetwork.md +100 -0
  265. package/.docs/guides/migrations/ai-sdk-v4-to-v5.md +114 -0
  266. package/.docs/guides/migrations/mastra-cloud.md +389 -0
  267. package/.docs/guides/migrations/network-to-supervisor.md +263 -0
  268. package/.docs/guides/migrations/upgrade-to-v1/agent.md +429 -0
  269. package/.docs/guides/migrations/upgrade-to-v1/cli.md +59 -0
  270. package/.docs/guides/migrations/upgrade-to-v1/client.md +339 -0
  271. package/.docs/guides/migrations/upgrade-to-v1/deployment.md +50 -0
  272. package/.docs/guides/migrations/upgrade-to-v1/evals.md +241 -0
  273. package/.docs/guides/migrations/upgrade-to-v1/mastra.md +145 -0
  274. package/.docs/guides/migrations/upgrade-to-v1/mcp.md +99 -0
  275. package/.docs/guides/migrations/upgrade-to-v1/memory.md +288 -0
  276. package/.docs/guides/migrations/upgrade-to-v1/overview.md +125 -0
  277. package/.docs/guides/migrations/upgrade-to-v1/processors.md +70 -0
  278. package/.docs/guides/migrations/upgrade-to-v1/rag.md +44 -0
  279. package/.docs/guides/migrations/upgrade-to-v1/storage.md +555 -0
  280. package/.docs/guides/migrations/upgrade-to-v1/tools.md +182 -0
  281. package/.docs/guides/migrations/upgrade-to-v1/tracing.md +420 -0
  282. package/.docs/guides/migrations/upgrade-to-v1/vectors.md +89 -0
  283. package/.docs/guides/migrations/upgrade-to-v1/voice.md +33 -0
  284. package/.docs/guides/migrations/upgrade-to-v1/workflows.md +343 -0
  285. package/.docs/guides/migrations/vnext-to-standard-apis.md +362 -0
  286. package/.docs/guides/rag/chunking-and-embedding.md +185 -0
  287. package/.docs/guides/rag/graph-rag.md +217 -0
  288. package/.docs/guides/rag/overview.md +74 -0
  289. package/.docs/guides/rag/retrieval.md +520 -0
  290. package/.docs/guides/rag/vector-databases.md +669 -0
  291. package/.docs/guides/voice/overview.md +1257 -0
  292. package/.docs/guides/voice/realtime-voice.md +430 -0
  293. package/.docs/guides/voice/speech-to-speech.md +279 -0
  294. package/.docs/guides/voice/speech-to-text.md +99 -0
  295. package/.docs/guides/voice/text-to-speech.md +105 -0
  296. package/.docs/models/embeddings.md +281 -0
  297. package/.docs/models/environment-variables.md +176 -0
  298. package/.docs/models/gateways/azure-openai.md +240 -0
  299. package/.docs/models/gateways/custom-gateways.md +609 -0
  300. package/.docs/models/gateways/mastra.md +74 -0
  301. package/.docs/models/gateways/neon.md +74 -0
  302. package/.docs/models/gateways/netlify.md +106 -0
  303. package/.docs/models/gateways/openrouter.md +377 -0
  304. package/.docs/models/gateways/vercel.md +360 -0
  305. package/.docs/models/gateways.md +18 -0
  306. package/.docs/models/index.md +342 -0
  307. package/.docs/models/providers/302ai.md +169 -0
  308. package/.docs/models/providers/abacus.md +167 -0
  309. package/.docs/models/providers/abliteration-ai.md +74 -0
  310. package/.docs/models/providers/agentrouter.md +92 -0
  311. package/.docs/models/providers/ai-router.md +77 -0
  312. package/.docs/models/providers/aiand.md +80 -0
  313. package/.docs/models/providers/aihubmix.md +35 -0
  314. package/.docs/models/providers/aki-io.md +78 -0
  315. package/.docs/models/providers/alibaba-cn.md +158 -0
  316. package/.docs/models/providers/alibaba-coding-plan-cn.md +84 -0
  317. package/.docs/models/providers/alibaba-coding-plan.md +84 -0
  318. package/.docs/models/providers/alibaba-token-plan-cn.md +96 -0
  319. package/.docs/models/providers/alibaba-token-plan.md +96 -0
  320. package/.docs/models/providers/alibaba.md +124 -0
  321. package/.docs/models/providers/amazon-bedrock.md +35 -0
  322. package/.docs/models/providers/ambient.md +82 -0
  323. package/.docs/models/providers/anthropic.md +160 -0
  324. package/.docs/models/providers/anyapi.md +101 -0
  325. package/.docs/models/providers/atomic-chat.md +77 -0
  326. package/.docs/models/providers/auriko.md +87 -0
  327. package/.docs/models/providers/azure.md +35 -0
  328. package/.docs/models/providers/bailing.md +74 -0
  329. package/.docs/models/providers/baseten.md +88 -0
  330. package/.docs/models/providers/berget.md +81 -0
  331. package/.docs/models/providers/blueclaw.md +74 -0
  332. package/.docs/models/providers/cerebras.md +102 -0
  333. package/.docs/models/providers/chutes.md +85 -0
  334. package/.docs/models/providers/clarifai.md +84 -0
  335. package/.docs/models/providers/claudinio.md +74 -0
  336. package/.docs/models/providers/cline-pass.md +83 -0
  337. package/.docs/models/providers/cloudferro-sherlock.md +77 -0
  338. package/.docs/models/providers/cloudflare-ai-gateway.md +35 -0
  339. package/.docs/models/providers/cloudflare-workers-ai.md +95 -0
  340. package/.docs/models/providers/cohere.md +35 -0
  341. package/.docs/models/providers/cortecs.md +175 -0
  342. package/.docs/models/providers/crof.md +98 -0
  343. package/.docs/models/providers/crossmodel.md +122 -0
  344. package/.docs/models/providers/daoxe.md +81 -0
  345. package/.docs/models/providers/databricks.md +103 -0
  346. package/.docs/models/providers/deepinfra.md +145 -0
  347. package/.docs/models/providers/deepseek.md +96 -0
  348. package/.docs/models/providers/digitalocean.md +155 -0
  349. package/.docs/models/providers/dinference.md +78 -0
  350. package/.docs/models/providers/drun.md +75 -0
  351. package/.docs/models/providers/ebcloud.md +76 -0
  352. package/.docs/models/providers/empiriolabs.md +112 -0
  353. package/.docs/models/providers/evroc.md +88 -0
  354. package/.docs/models/providers/fastrouter.md +119 -0
  355. package/.docs/models/providers/firepass.md +73 -0
  356. package/.docs/models/providers/fireworks-ai.md +89 -0
  357. package/.docs/models/providers/firmware.md +98 -0
  358. package/.docs/models/providers/freemodel.md +110 -0
  359. package/.docs/models/providers/friendli.md +77 -0
  360. package/.docs/models/providers/frogbot.md +98 -0
  361. package/.docs/models/providers/github-models.md +127 -0
  362. package/.docs/models/providers/gmicloud.md +85 -0
  363. package/.docs/models/providers/google-vertex.md +35 -0
  364. package/.docs/models/providers/google.md +183 -0
  365. package/.docs/models/providers/greenpt.md +107 -0
  366. package/.docs/models/providers/groq.md +115 -0
  367. package/.docs/models/providers/helicone.md +162 -0
  368. package/.docs/models/providers/hetzner.md +73 -0
  369. package/.docs/models/providers/hpc-ai.md +81 -0
  370. package/.docs/models/providers/huggingface.md +132 -0
  371. package/.docs/models/providers/hyper.md +94 -0
  372. package/.docs/models/providers/iflowcn.md +86 -0
  373. package/.docs/models/providers/impossibl.md +148 -0
  374. package/.docs/models/providers/inception.md +74 -0
  375. package/.docs/models/providers/inceptron.md +78 -0
  376. package/.docs/models/providers/inference.md +81 -0
  377. package/.docs/models/providers/inferx.md +78 -0
  378. package/.docs/models/providers/infomaniak.md +83 -0
  379. package/.docs/models/providers/io-intelligence.md +89 -0
  380. package/.docs/models/providers/io-net.md +89 -0
  381. package/.docs/models/providers/jiekou.md +133 -0
  382. package/.docs/models/providers/kenari.md +110 -0
  383. package/.docs/models/providers/kilo.md +417 -0
  384. package/.docs/models/providers/kimi-for-coding.md +104 -0
  385. package/.docs/models/providers/kiro.md +112 -0
  386. package/.docs/models/providers/kuae-cloud-coding-plan.md +73 -0
  387. package/.docs/models/providers/lilac.md +76 -0
  388. package/.docs/models/providers/llama.md +79 -0
  389. package/.docs/models/providers/llmgateway.md +258 -0
  390. package/.docs/models/providers/llmtr.md +78 -0
  391. package/.docs/models/providers/lmstudio.md +75 -0
  392. package/.docs/models/providers/longcat.md +73 -0
  393. package/.docs/models/providers/lucidquery.md +76 -0
  394. package/.docs/models/providers/lynkr.md +73 -0
  395. package/.docs/models/providers/meganova.md +91 -0
  396. package/.docs/models/providers/meta.md +103 -0
  397. package/.docs/models/providers/minimax-cn-coding-plan.md +107 -0
  398. package/.docs/models/providers/minimax-cn.md +107 -0
  399. package/.docs/models/providers/minimax-coding-plan.md +107 -0
  400. package/.docs/models/providers/minimax.md +109 -0
  401. package/.docs/models/providers/mistral.md +125 -0
  402. package/.docs/models/providers/mixlayer.md +77 -0
  403. package/.docs/models/providers/moark.md +74 -0
  404. package/.docs/models/providers/modal.md +74 -0
  405. package/.docs/models/providers/model-oracle-ai.md +87 -0
  406. package/.docs/models/providers/modelis.md +81 -0
  407. package/.docs/models/providers/modelscope.md +79 -0
  408. package/.docs/models/providers/moonshotai-cn.md +82 -0
  409. package/.docs/models/providers/moonshotai.md +82 -0
  410. package/.docs/models/providers/morph.md +75 -0
  411. package/.docs/models/providers/nano-gpt.md +688 -0
  412. package/.docs/models/providers/nearai.md +109 -0
  413. package/.docs/models/providers/nebius.md +94 -0
  414. package/.docs/models/providers/neuralwatt.md +93 -0
  415. package/.docs/models/providers/nova.md +74 -0
  416. package/.docs/models/providers/novita-ai.md +179 -0
  417. package/.docs/models/providers/nvidia.md +168 -0
  418. package/.docs/models/providers/ofox.md +141 -0
  419. package/.docs/models/providers/ollama-cloud.md +92 -0
  420. package/.docs/models/providers/ollama.md +35 -0
  421. package/.docs/models/providers/openai.md +204 -0
  422. package/.docs/models/providers/opencode-go.md +88 -0
  423. package/.docs/models/providers/opencode.md +130 -0
  424. package/.docs/models/providers/orcarouter.md +153 -0
  425. package/.docs/models/providers/ovhcloud.md +86 -0
  426. package/.docs/models/providers/perplexity-agent.md +120 -0
  427. package/.docs/models/providers/perplexity.md +103 -0
  428. package/.docs/models/providers/pioneer.md +174 -0
  429. package/.docs/models/providers/poe.md +198 -0
  430. package/.docs/models/providers/poolside.md +75 -0
  431. package/.docs/models/providers/privatemode-ai.md +77 -0
  432. package/.docs/models/providers/qihang-ai.md +81 -0
  433. package/.docs/models/providers/qiniu-ai.md +163 -0
  434. package/.docs/models/providers/regolo-ai.md +85 -0
  435. package/.docs/models/providers/requesty.md +119 -0
  436. package/.docs/models/providers/routing-run.md +87 -0
  437. package/.docs/models/providers/sakana.md +75 -0
  438. package/.docs/models/providers/sarvam.md +74 -0
  439. package/.docs/models/providers/scaleway.md +86 -0
  440. package/.docs/models/providers/scx.md +74 -0
  441. package/.docs/models/providers/siliconflow-cn.md +119 -0
  442. package/.docs/models/providers/siliconflow.md +121 -0
  443. package/.docs/models/providers/snowflake-cortex.md +94 -0
  444. package/.docs/models/providers/stackit.md +80 -0
  445. package/.docs/models/providers/stepfun-ai-step-plan.md +75 -0
  446. package/.docs/models/providers/stepfun-ai.md +80 -0
  447. package/.docs/models/providers/stepfun-step-plan.md +76 -0
  448. package/.docs/models/providers/stepfun.md +80 -0
  449. package/.docs/models/providers/subconscious.md +102 -0
  450. package/.docs/models/providers/submodel.md +81 -0
  451. package/.docs/models/providers/synthetic.md +80 -0
  452. package/.docs/models/providers/tencent-coding-plan.md +80 -0
  453. package/.docs/models/providers/tencent-token-plan.md +73 -0
  454. package/.docs/models/providers/tencent-tokenhub.md +74 -0
  455. package/.docs/models/providers/tensorx.md +97 -0
  456. package/.docs/models/providers/the-grid-ai.md +81 -0
  457. package/.docs/models/providers/thinkingmachines.md +102 -0
  458. package/.docs/models/providers/tinfoil.md +79 -0
  459. package/.docs/models/providers/togetherai.md +122 -0
  460. package/.docs/models/providers/trustedrouter.md +79 -0
  461. package/.docs/models/providers/umans-ai-coding-plan.md +80 -0
  462. package/.docs/models/providers/umans-ai.md +79 -0
  463. package/.docs/models/providers/unorouter.md +95 -0
  464. package/.docs/models/providers/upstage.md +76 -0
  465. package/.docs/models/providers/venice.md +97 -0
  466. package/.docs/models/providers/vivgrid.md +117 -0
  467. package/.docs/models/providers/vultr.md +82 -0
  468. package/.docs/models/providers/wafer.ai.md +77 -0
  469. package/.docs/models/providers/wandb.md +99 -0
  470. package/.docs/models/providers/xai.md +135 -0
  471. package/.docs/models/providers/xiaomi-token-plan-ams.md +78 -0
  472. package/.docs/models/providers/xiaomi-token-plan-cn.md +78 -0
  473. package/.docs/models/providers/xiaomi-token-plan-sgp.md +78 -0
  474. package/.docs/models/providers/xiaomi.md +75 -0
  475. package/.docs/models/providers/xpersona.md +85 -0
  476. package/.docs/models/providers/zai-coding-plan.md +76 -0
  477. package/.docs/models/providers/zai.md +86 -0
  478. package/.docs/models/providers/zeldoc.md +73 -0
  479. package/.docs/models/providers/zenifra.md +73 -0
  480. package/.docs/models/providers/zenmux.md +192 -0
  481. package/.docs/models/providers/zhipuai-coding-plan.md +79 -0
  482. package/.docs/models/providers/zhipuai.md +85 -0
  483. package/.docs/models/providers.md +168 -0
  484. package/.docs/reference/acp/acp-agent.md +232 -0
  485. package/.docs/reference/acp/create-acp-tool.md +161 -0
  486. package/.docs/reference/agent-controller/agent-controller-class.md +427 -0
  487. package/.docs/reference/agent-controller/session.md +772 -0
  488. package/.docs/reference/agents/agent.md +571 -0
  489. package/.docs/reference/agents/channels.md +385 -0
  490. package/.docs/reference/agents/createSkill.md +80 -0
  491. package/.docs/reference/agents/durable-agent.md +380 -0
  492. package/.docs/reference/agents/generate.md +477 -0
  493. package/.docs/reference/agents/generateLegacy.md +225 -0
  494. package/.docs/reference/agents/getDefaultGenerateOptions.md +36 -0
  495. package/.docs/reference/agents/getDefaultOptions.md +34 -0
  496. package/.docs/reference/agents/getDefaultStreamOptions.md +36 -0
  497. package/.docs/reference/agents/getDescription.md +23 -0
  498. package/.docs/reference/agents/getInstructions.md +34 -0
  499. package/.docs/reference/agents/getLLM.md +43 -0
  500. package/.docs/reference/agents/getMemory.md +34 -0
  501. package/.docs/reference/agents/getMetadata.md +63 -0
  502. package/.docs/reference/agents/getModel.md +34 -0
  503. package/.docs/reference/agents/getSkill.md +60 -0
  504. package/.docs/reference/agents/getTools.md +29 -0
  505. package/.docs/reference/agents/getVoice.md +34 -0
  506. package/.docs/reference/agents/inngest-agent.md +370 -0
  507. package/.docs/reference/agents/listAgents.md +35 -0
  508. package/.docs/reference/agents/listScorers.md +34 -0
  509. package/.docs/reference/agents/listSkills.md +55 -0
  510. package/.docs/reference/agents/listSuspendedRuns.md +93 -0
  511. package/.docs/reference/agents/listTools.md +34 -0
  512. package/.docs/reference/agents/listWorkflows.md +34 -0
  513. package/.docs/reference/agents/network.md +222 -0
  514. package/.docs/reference/ai-sdk/chat-route.md +96 -0
  515. package/.docs/reference/ai-sdk/handle-chat-stream.md +85 -0
  516. package/.docs/reference/ai-sdk/handle-network-stream.md +47 -0
  517. package/.docs/reference/ai-sdk/handle-workflow-stream.md +61 -0
  518. package/.docs/reference/ai-sdk/network-route.md +84 -0
  519. package/.docs/reference/ai-sdk/to-ai-sdk-messages.md +97 -0
  520. package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +282 -0
  521. package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +81 -0
  522. package/.docs/reference/ai-sdk/to-ai-sdk-v5-messages.md +78 -0
  523. package/.docs/reference/ai-sdk/with-mastra.md +65 -0
  524. package/.docs/reference/ai-sdk/workflow-route.md +85 -0
  525. package/.docs/reference/ai-sdk/workflow-snapshot-to-stream.md +53 -0
  526. package/.docs/reference/auth/auth0.md +75 -0
  527. package/.docs/reference/auth/better-auth.md +73 -0
  528. package/.docs/reference/auth/clerk.md +38 -0
  529. package/.docs/reference/auth/fga.md +140 -0
  530. package/.docs/reference/auth/firebase.md +82 -0
  531. package/.docs/reference/auth/google.md +357 -0
  532. package/.docs/reference/auth/jwt.md +28 -0
  533. package/.docs/reference/auth/okta.md +164 -0
  534. package/.docs/reference/auth/supabase.md +35 -0
  535. package/.docs/reference/auth/workos.md +131 -0
  536. package/.docs/reference/browser/agent-browser.md +407 -0
  537. package/.docs/reference/browser/browser-viewer.md +232 -0
  538. package/.docs/reference/browser/firecrawl-browser.md +71 -0
  539. package/.docs/reference/browser/mastra-browser.md +288 -0
  540. package/.docs/reference/browser/stagehand-browser.md +320 -0
  541. package/.docs/reference/build-with-ai.md +263 -0
  542. package/.docs/reference/channels/channel-provider.md +67 -0
  543. package/.docs/reference/channels/slack-provider.md +228 -0
  544. package/.docs/reference/cli/create-mastra.md +222 -0
  545. package/.docs/reference/cli/mastra.md +1784 -0
  546. package/.docs/reference/client-js/agents.md +959 -0
  547. package/.docs/reference/client-js/conversations.md +137 -0
  548. package/.docs/reference/client-js/error-handling.md +18 -0
  549. package/.docs/reference/client-js/logs.md +26 -0
  550. package/.docs/reference/client-js/mastra-client.md +96 -0
  551. package/.docs/reference/client-js/memory.md +237 -0
  552. package/.docs/reference/client-js/observability.md +183 -0
  553. package/.docs/reference/client-js/responses.md +219 -0
  554. package/.docs/reference/client-js/telemetry.md +22 -0
  555. package/.docs/reference/client-js/tools.md +46 -0
  556. package/.docs/reference/client-js/vectors.md +81 -0
  557. package/.docs/reference/client-js/workflows.md +393 -0
  558. package/.docs/reference/code-sdk/mount-agent-controller.md +78 -0
  559. package/.docs/reference/coding-agent/build-base-prompt.md +77 -0
  560. package/.docs/reference/coding-agent/create-coding-agent.md +100 -0
  561. package/.docs/reference/configuration.md +927 -0
  562. package/.docs/reference/core/addGateway.md +44 -0
  563. package/.docs/reference/core/addStoredWorkflow.md +62 -0
  564. package/.docs/reference/core/addStoredWorkflows.md +40 -0
  565. package/.docs/reference/core/getAgent.md +23 -0
  566. package/.docs/reference/core/getAgentById.md +56 -0
  567. package/.docs/reference/core/getDeployer.md +24 -0
  568. package/.docs/reference/core/getEditor.md +37 -0
  569. package/.docs/reference/core/getGateway.md +40 -0
  570. package/.docs/reference/core/getGatewayById.md +43 -0
  571. package/.docs/reference/core/getLogger.md +24 -0
  572. package/.docs/reference/core/getMCPServer.md +47 -0
  573. package/.docs/reference/core/getMCPServerById.md +55 -0
  574. package/.docs/reference/core/getMemory.md +51 -0
  575. package/.docs/reference/core/getScorer.md +56 -0
  576. package/.docs/reference/core/getScorerById.md +56 -0
  577. package/.docs/reference/core/getServer.md +24 -0
  578. package/.docs/reference/core/getStorage.md +24 -0
  579. package/.docs/reference/core/getTelemetry.md +24 -0
  580. package/.docs/reference/core/getTool.md +33 -0
  581. package/.docs/reference/core/getToolById.md +48 -0
  582. package/.docs/reference/core/getVector.md +24 -0
  583. package/.docs/reference/core/getWorkflow.md +42 -0
  584. package/.docs/reference/core/listAgents.md +23 -0
  585. package/.docs/reference/core/listGateways.md +42 -0
  586. package/.docs/reference/core/listLogs.md +38 -0
  587. package/.docs/reference/core/listLogsByRunId.md +38 -0
  588. package/.docs/reference/core/listMCPServers.md +53 -0
  589. package/.docs/reference/core/listMemory.md +57 -0
  590. package/.docs/reference/core/listScorers.md +31 -0
  591. package/.docs/reference/core/listTools.md +38 -0
  592. package/.docs/reference/core/listVectors.md +24 -0
  593. package/.docs/reference/core/listWorkflows.md +23 -0
  594. package/.docs/reference/core/mastra-class.md +153 -0
  595. package/.docs/reference/core/mastra-model-gateway.md +171 -0
  596. package/.docs/reference/core/removeWorkspace.md +28 -0
  597. package/.docs/reference/core/setLogger.md +26 -0
  598. package/.docs/reference/core/setStorage.md +29 -0
  599. package/.docs/reference/datasets/addItem.md +53 -0
  600. package/.docs/reference/datasets/addItems.md +41 -0
  601. package/.docs/reference/datasets/compareExperiments.md +64 -0
  602. package/.docs/reference/datasets/create.md +51 -0
  603. package/.docs/reference/datasets/dataset.md +80 -0
  604. package/.docs/reference/datasets/datasets-manager.md +86 -0
  605. package/.docs/reference/datasets/delete.md +25 -0
  606. package/.docs/reference/datasets/deleteExperiment.md +27 -0
  607. package/.docs/reference/datasets/deleteItem.md +27 -0
  608. package/.docs/reference/datasets/deleteItems.md +29 -0
  609. package/.docs/reference/datasets/get.md +31 -0
  610. package/.docs/reference/datasets/getDetails.md +47 -0
  611. package/.docs/reference/datasets/getExperiment.md +30 -0
  612. package/.docs/reference/datasets/getItem.md +33 -0
  613. package/.docs/reference/datasets/getItemHistory.md +51 -0
  614. package/.docs/reference/datasets/list.md +63 -0
  615. package/.docs/reference/datasets/listExperimentResults.md +87 -0
  616. package/.docs/reference/datasets/listExperiments.md +90 -0
  617. package/.docs/reference/datasets/listItems.md +62 -0
  618. package/.docs/reference/datasets/listVersions.md +53 -0
  619. package/.docs/reference/datasets/startExperiment.md +146 -0
  620. package/.docs/reference/datasets/startExperimentAsync.md +51 -0
  621. package/.docs/reference/datasets/update.md +48 -0
  622. package/.docs/reference/datasets/updateItem.md +38 -0
  623. package/.docs/reference/deployer/cloudflare.md +135 -0
  624. package/.docs/reference/deployer/netlify.md +130 -0
  625. package/.docs/reference/deployer/vercel.md +118 -0
  626. package/.docs/reference/deployer.md +102 -0
  627. package/.docs/reference/editor/blob-store-provider.md +61 -0
  628. package/.docs/reference/editor/browser-provider.md +77 -0
  629. package/.docs/reference/editor/filesystem-provider.md +64 -0
  630. package/.docs/reference/editor/mastra-editor.md +241 -0
  631. package/.docs/reference/editor/processor-provider.md +66 -0
  632. package/.docs/reference/editor/prompt-blocks.md +137 -0
  633. package/.docs/reference/editor/sandbox-provider.md +63 -0
  634. package/.docs/reference/editor/storage-browser-ref.md +82 -0
  635. package/.docs/reference/editor/storage-workspace-ref.md +95 -0
  636. package/.docs/reference/editor/tool-provider.md +121 -0
  637. package/.docs/reference/editor/tools.md +100 -0
  638. package/.docs/reference/editor/versioning.md +130 -0
  639. package/.docs/reference/evals/answer-relevancy.md +107 -0
  640. package/.docs/reference/evals/answer-similarity.md +99 -0
  641. package/.docs/reference/evals/bias.md +122 -0
  642. package/.docs/reference/evals/checks.md +212 -0
  643. package/.docs/reference/evals/completeness.md +138 -0
  644. package/.docs/reference/evals/content-similarity.md +103 -0
  645. package/.docs/reference/evals/context-precision.md +198 -0
  646. package/.docs/reference/evals/context-recall.md +205 -0
  647. package/.docs/reference/evals/context-relevance.md +533 -0
  648. package/.docs/reference/evals/create-scorer.md +331 -0
  649. package/.docs/reference/evals/faithfulness.md +116 -0
  650. package/.docs/reference/evals/filter-run.md +119 -0
  651. package/.docs/reference/evals/hallucination.md +206 -0
  652. package/.docs/reference/evals/keyword-coverage.md +130 -0
  653. package/.docs/reference/evals/mastra-scorer.md +245 -0
  654. package/.docs/reference/evals/noise-sensitivity.md +677 -0
  655. package/.docs/reference/evals/prompt-alignment.md +617 -0
  656. package/.docs/reference/evals/rubric.md +115 -0
  657. package/.docs/reference/evals/run-evals.md +418 -0
  658. package/.docs/reference/evals/scorer-utils.md +516 -0
  659. package/.docs/reference/evals/summarization.md +203 -0
  660. package/.docs/reference/evals/textual-difference.md +115 -0
  661. package/.docs/reference/evals/tone-consistency.md +121 -0
  662. package/.docs/reference/evals/tool-call-accuracy.md +535 -0
  663. package/.docs/reference/evals/toxicity.md +125 -0
  664. package/.docs/reference/evals/trajectory-accuracy.md +629 -0
  665. package/.docs/reference/file-based-agents/config.md +136 -0
  666. package/.docs/reference/file-based-agents/instructions.md +79 -0
  667. package/.docs/reference/file-based-agents/logger.md +26 -0
  668. package/.docs/reference/file-based-agents/memory.md +58 -0
  669. package/.docs/reference/file-based-agents/observability.md +32 -0
  670. package/.docs/reference/file-based-agents/processors.md +56 -0
  671. package/.docs/reference/file-based-agents/schedules.md +232 -0
  672. package/.docs/reference/file-based-agents/scorers.md +54 -0
  673. package/.docs/reference/file-based-agents/server.md +37 -0
  674. package/.docs/reference/file-based-agents/skills.md +56 -0
  675. package/.docs/reference/file-based-agents/storage.md +30 -0
  676. package/.docs/reference/file-based-agents/studio.md +56 -0
  677. package/.docs/reference/file-based-agents/subagents.md +123 -0
  678. package/.docs/reference/file-based-agents/tools.md +64 -0
  679. package/.docs/reference/file-based-agents/workflows.md +52 -0
  680. package/.docs/reference/file-based-agents/workspace.md +74 -0
  681. package/.docs/reference/index.md +418 -0
  682. package/.docs/reference/logging/pino-logger.md +175 -0
  683. package/.docs/reference/mastra-platform/api.md +110 -0
  684. package/.docs/reference/memory/clone-utilities.md +203 -0
  685. package/.docs/reference/memory/cloneThread.md +173 -0
  686. package/.docs/reference/memory/createThread.md +70 -0
  687. package/.docs/reference/memory/deleteMessages.md +40 -0
  688. package/.docs/reference/memory/getThreadById.md +26 -0
  689. package/.docs/reference/memory/listThreads.md +147 -0
  690. package/.docs/reference/memory/memory-class.md +148 -0
  691. package/.docs/reference/memory/observational-memory.md +877 -0
  692. package/.docs/reference/memory/recall.md +116 -0
  693. package/.docs/reference/memory/serialized-memory-config.md +74 -0
  694. package/.docs/reference/memory/summarizeConversation.md +99 -0
  695. package/.docs/reference/memory/summarizeThread.md +93 -0
  696. package/.docs/reference/observability/feedback.md +391 -0
  697. package/.docs/reference/observability/metrics/automatic-metrics.md +138 -0
  698. package/.docs/reference/observability/tracing/bridges/datadog.md +213 -0
  699. package/.docs/reference/observability/tracing/bridges/otel.md +155 -0
  700. package/.docs/reference/observability/tracing/configuration.md +214 -0
  701. package/.docs/reference/observability/tracing/exporters/arize.md +143 -0
  702. package/.docs/reference/observability/tracing/exporters/arthur.md +124 -0
  703. package/.docs/reference/observability/tracing/exporters/braintrust.md +98 -0
  704. package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +248 -0
  705. package/.docs/reference/observability/tracing/exporters/confident-ai.md +138 -0
  706. package/.docs/reference/observability/tracing/exporters/console-exporter.md +137 -0
  707. package/.docs/reference/observability/tracing/exporters/datadog.md +121 -0
  708. package/.docs/reference/observability/tracing/exporters/default-exporter.md +182 -0
  709. package/.docs/reference/observability/tracing/exporters/laminar.md +80 -0
  710. package/.docs/reference/observability/tracing/exporters/langfuse.md +130 -0
  711. package/.docs/reference/observability/tracing/exporters/langsmith.md +111 -0
  712. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +265 -0
  713. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +196 -0
  714. package/.docs/reference/observability/tracing/exporters/otel.md +205 -0
  715. package/.docs/reference/observability/tracing/exporters/posthog.md +133 -0
  716. package/.docs/reference/observability/tracing/exporters/sentry.md +188 -0
  717. package/.docs/reference/observability/tracing/instances.md +109 -0
  718. package/.docs/reference/observability/tracing/interfaces.md +900 -0
  719. package/.docs/reference/observability/tracing/processors/sensitive-data-filter.md +166 -0
  720. package/.docs/reference/observability/tracing/span-filtering.md +97 -0
  721. package/.docs/reference/observability/tracing/spans.md +228 -0
  722. package/.docs/reference/processors/batch-parts-processor.md +62 -0
  723. package/.docs/reference/processors/cost-guard-processor.md +115 -0
  724. package/.docs/reference/processors/language-detector.md +85 -0
  725. package/.docs/reference/processors/message-history-processor.md +86 -0
  726. package/.docs/reference/processors/moderation-processor.md +109 -0
  727. package/.docs/reference/processors/pii-detector.md +113 -0
  728. package/.docs/reference/processors/prefill-error-handler.md +74 -0
  729. package/.docs/reference/processors/processor-interface.md +1159 -0
  730. package/.docs/reference/processors/prompt-injection-detector.md +76 -0
  731. package/.docs/reference/processors/provider-history-compat.md +136 -0
  732. package/.docs/reference/processors/regex-filter-processor.md +181 -0
  733. package/.docs/reference/processors/response-cache.md +117 -0
  734. package/.docs/reference/processors/semantic-recall-processor.md +118 -0
  735. package/.docs/reference/processors/skill-search-processor.md +115 -0
  736. package/.docs/reference/processors/stream-error-retry-processor.md +127 -0
  737. package/.docs/reference/processors/system-prompt-scrubber.md +84 -0
  738. package/.docs/reference/processors/token-limiter-processor.md +158 -0
  739. package/.docs/reference/processors/tool-call-filter.md +138 -0
  740. package/.docs/reference/processors/tool-search-processor.md +248 -0
  741. package/.docs/reference/processors/unicode-normalizer.md +62 -0
  742. package/.docs/reference/processors/working-memory-processor.md +151 -0
  743. package/.docs/reference/project-structure.md +59 -0
  744. package/.docs/reference/pubsub/base.md +204 -0
  745. package/.docs/reference/pubsub/caching-pubsub.md +118 -0
  746. package/.docs/reference/pubsub/event-emitter.md +109 -0
  747. package/.docs/reference/pubsub/google-cloud-pubsub.md +96 -0
  748. package/.docs/reference/pubsub/lease-provider.md +133 -0
  749. package/.docs/reference/pubsub/redis-streams.md +130 -0
  750. package/.docs/reference/pubsub/unix-socket-pubsub.md +54 -0
  751. package/.docs/reference/rag/chunk.md +223 -0
  752. package/.docs/reference/rag/database-config.md +279 -0
  753. package/.docs/reference/rag/document.md +116 -0
  754. package/.docs/reference/rag/embeddings.md +94 -0
  755. package/.docs/reference/rag/extract-params.md +170 -0
  756. package/.docs/reference/rag/graph-rag.md +113 -0
  757. package/.docs/reference/rag/metadata-filters.md +218 -0
  758. package/.docs/reference/rag/rerank.md +85 -0
  759. package/.docs/reference/rag/rerankWithScorer.md +90 -0
  760. package/.docs/reference/schedules/overview.md +199 -0
  761. package/.docs/reference/server/create-route.md +266 -0
  762. package/.docs/reference/server/express-adapter.md +199 -0
  763. package/.docs/reference/server/fastify-adapter.md +118 -0
  764. package/.docs/reference/server/hono-adapter.md +184 -0
  765. package/.docs/reference/server/koa-adapter.md +150 -0
  766. package/.docs/reference/server/mastra-server.md +301 -0
  767. package/.docs/reference/server/nestjs-adapter.md +169 -0
  768. package/.docs/reference/server/register-api-route.md +271 -0
  769. package/.docs/reference/server/routes.md +462 -0
  770. package/.docs/reference/signals/create-notification-inbox-tool.md +69 -0
  771. package/.docs/reference/signals/signal-provider.md +411 -0
  772. package/.docs/reference/signals/task-signal-provider.md +65 -0
  773. package/.docs/reference/signals/webhook-signal-provider.md +140 -0
  774. package/.docs/reference/storage/clickhouse.md +379 -0
  775. package/.docs/reference/storage/cloudflare-d1.md +220 -0
  776. package/.docs/reference/storage/cloudflare.md +161 -0
  777. package/.docs/reference/storage/composite.md +397 -0
  778. package/.docs/reference/storage/convex.md +232 -0
  779. package/.docs/reference/storage/dsql.md +430 -0
  780. package/.docs/reference/storage/duckdb.md +156 -0
  781. package/.docs/reference/storage/dynamodb.md +284 -0
  782. package/.docs/reference/storage/lance.md +133 -0
  783. package/.docs/reference/storage/libsql.md +143 -0
  784. package/.docs/reference/storage/mongodb.md +267 -0
  785. package/.docs/reference/storage/mssql.md +159 -0
  786. package/.docs/reference/storage/overview.md +141 -0
  787. package/.docs/reference/storage/postgresql.md +531 -0
  788. package/.docs/reference/storage/redis.md +268 -0
  789. package/.docs/reference/storage/retention.md +248 -0
  790. package/.docs/reference/storage/spanner.md +220 -0
  791. package/.docs/reference/storage/upstash.md +162 -0
  792. package/.docs/reference/streaming/ChunkType.md +700 -0
  793. package/.docs/reference/streaming/agents/MastraModelOutput.md +254 -0
  794. package/.docs/reference/streaming/agents/stream.md +402 -0
  795. package/.docs/reference/streaming/agents/streamLegacy.md +186 -0
  796. package/.docs/reference/streaming/agents/streamUntilIdle.md +107 -0
  797. package/.docs/reference/streaming/smoothStream.md +135 -0
  798. package/.docs/reference/streaming/workflows/observeStream.md +44 -0
  799. package/.docs/reference/streaming/workflows/resumeStream.md +75 -0
  800. package/.docs/reference/streaming/workflows/stream.md +102 -0
  801. package/.docs/reference/streaming/workflows/timeTravelStream.md +144 -0
  802. package/.docs/reference/templates/overview.md +116 -0
  803. package/.docs/reference/tools/ask-user-tool.md +78 -0
  804. package/.docs/reference/tools/bedrock-kb-tool.md +117 -0
  805. package/.docs/reference/tools/brightdata.md +169 -0
  806. package/.docs/reference/tools/create-code-mode.md +127 -0
  807. package/.docs/reference/tools/create-tool.md +518 -0
  808. package/.docs/reference/tools/document-chunker-tool.md +91 -0
  809. package/.docs/reference/tools/graph-rag-tool.md +182 -0
  810. package/.docs/reference/tools/isolated-vm-transport.md +74 -0
  811. package/.docs/reference/tools/mcp-client.md +1335 -0
  812. package/.docs/reference/tools/mcp-server.md +1668 -0
  813. package/.docs/reference/tools/perplexity.md +155 -0
  814. package/.docs/reference/tools/submit-plan-tool.md +93 -0
  815. package/.docs/reference/tools/task-tools.md +132 -0
  816. package/.docs/reference/tools/tavily.md +307 -0
  817. package/.docs/reference/tools/vector-query-tool.md +495 -0
  818. package/.docs/reference/vectors/astra.md +123 -0
  819. package/.docs/reference/vectors/chroma.md +266 -0
  820. package/.docs/reference/vectors/convex.md +424 -0
  821. package/.docs/reference/vectors/couchbase.md +228 -0
  822. package/.docs/reference/vectors/duckdb.md +320 -0
  823. package/.docs/reference/vectors/elasticsearch.md +191 -0
  824. package/.docs/reference/vectors/lance.md +230 -0
  825. package/.docs/reference/vectors/libsql.md +307 -0
  826. package/.docs/reference/vectors/mongodb.md +567 -0
  827. package/.docs/reference/vectors/opensearch.md +101 -0
  828. package/.docs/reference/vectors/pg.md +430 -0
  829. package/.docs/reference/vectors/pinecone.md +170 -0
  830. package/.docs/reference/vectors/qdrant.md +224 -0
  831. package/.docs/reference/vectors/s3vectors.md +279 -0
  832. package/.docs/reference/vectors/turbopuffer.md +163 -0
  833. package/.docs/reference/vectors/upstash.md +296 -0
  834. package/.docs/reference/vectors/vectorize.md +149 -0
  835. package/.docs/reference/voice/aws-nova-sonic.md +249 -0
  836. package/.docs/reference/voice/azure.md +156 -0
  837. package/.docs/reference/voice/cloudflare.md +85 -0
  838. package/.docs/reference/voice/composite-voice.md +123 -0
  839. package/.docs/reference/voice/deepgram.md +87 -0
  840. package/.docs/reference/voice/elevenlabs.md +98 -0
  841. package/.docs/reference/voice/google-gemini-live.md +413 -0
  842. package/.docs/reference/voice/google.md +290 -0
  843. package/.docs/reference/voice/inworld-realtime.md +355 -0
  844. package/.docs/reference/voice/inworld.md +137 -0
  845. package/.docs/reference/voice/livekit.md +482 -0
  846. package/.docs/reference/voice/mastra-voice.md +313 -0
  847. package/.docs/reference/voice/mistral.md +127 -0
  848. package/.docs/reference/voice/murf.md +120 -0
  849. package/.docs/reference/voice/openai-realtime.md +207 -0
  850. package/.docs/reference/voice/openai.md +96 -0
  851. package/.docs/reference/voice/playai.md +82 -0
  852. package/.docs/reference/voice/sarvam.md +132 -0
  853. package/.docs/reference/voice/speechify.md +81 -0
  854. package/.docs/reference/voice/voice.addInstructions.md +58 -0
  855. package/.docs/reference/voice/voice.addTools.md +69 -0
  856. package/.docs/reference/voice/voice.answer.md +56 -0
  857. package/.docs/reference/voice/voice.close.md +53 -0
  858. package/.docs/reference/voice/voice.connect.md +98 -0
  859. package/.docs/reference/voice/voice.events.md +39 -0
  860. package/.docs/reference/voice/voice.getSpeakers.md +131 -0
  861. package/.docs/reference/voice/voice.listen.md +172 -0
  862. package/.docs/reference/voice/voice.off.md +56 -0
  863. package/.docs/reference/voice/voice.on.md +113 -0
  864. package/.docs/reference/voice/voice.send.md +67 -0
  865. package/.docs/reference/voice/voice.speak.md +169 -0
  866. package/.docs/reference/voice/voice.updateConfig.md +62 -0
  867. package/.docs/reference/voice/xai-realtime.md +269 -0
  868. package/.docs/reference/workers/overview.md +87 -0
  869. package/.docs/reference/workflows/run-methods/cancel.md +88 -0
  870. package/.docs/reference/workflows/run-methods/restart.md +49 -0
  871. package/.docs/reference/workflows/run-methods/resume.md +101 -0
  872. package/.docs/reference/workflows/run-methods/start.md +76 -0
  873. package/.docs/reference/workflows/run-methods/startAsync.md +75 -0
  874. package/.docs/reference/workflows/run-methods/timeTravel.md +162 -0
  875. package/.docs/reference/workflows/run.md +61 -0
  876. package/.docs/reference/workflows/step.md +240 -0
  877. package/.docs/reference/workflows/stored-workflow-definition.md +292 -0
  878. package/.docs/reference/workflows/workflow-methods/agent.md +62 -0
  879. package/.docs/reference/workflows/workflow-methods/branch.md +27 -0
  880. package/.docs/reference/workflows/workflow-methods/commit.md +19 -0
  881. package/.docs/reference/workflows/workflow-methods/create-run.md +65 -0
  882. package/.docs/reference/workflows/workflow-methods/dountil.md +27 -0
  883. package/.docs/reference/workflows/workflow-methods/dowhile.md +27 -0
  884. package/.docs/reference/workflows/workflow-methods/foreach.md +133 -0
  885. package/.docs/reference/workflows/workflow-methods/map.md +95 -0
  886. package/.docs/reference/workflows/workflow-methods/parallel.md +23 -0
  887. package/.docs/reference/workflows/workflow-methods/sleep.md +37 -0
  888. package/.docs/reference/workflows/workflow-methods/sleepUntil.md +37 -0
  889. package/.docs/reference/workflows/workflow-methods/then.md +23 -0
  890. package/.docs/reference/workflows/workflow-methods/tool.md +43 -0
  891. package/.docs/reference/workflows/workflow-state-reader.md +115 -0
  892. package/.docs/reference/workflows/workflow.md +235 -0
  893. package/.docs/reference/workspace/agentcore-runtime-sandbox.md +203 -0
  894. package/.docs/reference/workspace/agentfs-filesystem.md +111 -0
  895. package/.docs/reference/workspace/apple-container-sandbox.md +257 -0
  896. package/.docs/reference/workspace/archil-filesystem.md +204 -0
  897. package/.docs/reference/workspace/azure-blob-filesystem.md +220 -0
  898. package/.docs/reference/workspace/blaxel-sandbox.md +167 -0
  899. package/.docs/reference/workspace/daytona-sandbox.md +485 -0
  900. package/.docs/reference/workspace/docker-sandbox.md +259 -0
  901. package/.docs/reference/workspace/e2b-sandbox.md +277 -0
  902. package/.docs/reference/workspace/files-sdk-filesystem.md +188 -0
  903. package/.docs/reference/workspace/filesystem.md +273 -0
  904. package/.docs/reference/workspace/gcs-filesystem.md +197 -0
  905. package/.docs/reference/workspace/google-drive-filesystem.md +185 -0
  906. package/.docs/reference/workspace/local-filesystem.md +359 -0
  907. package/.docs/reference/workspace/local-sandbox.md +226 -0
  908. package/.docs/reference/workspace/mesa-filesystem.md +321 -0
  909. package/.docs/reference/workspace/modal-sandbox.md +168 -0
  910. package/.docs/reference/workspace/platform-filesystem.md +185 -0
  911. package/.docs/reference/workspace/platform-sandbox.md +276 -0
  912. package/.docs/reference/workspace/process-manager.md +298 -0
  913. package/.docs/reference/workspace/railway-sandbox.md +266 -0
  914. package/.docs/reference/workspace/s3-filesystem.md +274 -0
  915. package/.docs/reference/workspace/sandbox.md +97 -0
  916. package/.docs/reference/workspace/vercel-sandbox.md +205 -0
  917. package/.docs/reference/workspace/vercel-serverless.md +128 -0
  918. package/.docs/reference/workspace/workspace-class.md +495 -0
  919. package/CHANGELOG.md +3072 -4
  920. package/README.md +63 -125
  921. package/dist/index.d.ts.map +1 -1
  922. package/dist/index.js +2 -0
  923. package/dist/logger.d.ts +3 -0
  924. package/dist/logger.d.ts.map +1 -1
  925. package/dist/prompts/migration.d.ts +6 -0
  926. package/dist/prompts/migration.d.ts.map +1 -0
  927. package/dist/src-BZcgzbk9.js +1774 -0
  928. package/dist/src-BZcgzbk9.js.map +1 -0
  929. package/dist/stdio.js +32 -1141
  930. package/dist/stdio.js.map +1 -0
  931. package/dist/tools/course.d.ts +7 -27
  932. package/dist/tools/course.d.ts.map +1 -1
  933. package/dist/tools/docs.d.ts +6 -18
  934. package/dist/tools/docs.d.ts.map +1 -1
  935. package/dist/tools/embedded-docs.d.ts +176 -0
  936. package/dist/tools/embedded-docs.d.ts.map +1 -0
  937. package/dist/tools/migration.d.ts +20 -0
  938. package/dist/tools/migration.d.ts.map +1 -0
  939. package/dist/utils.d.ts +1 -58
  940. package/dist/utils.d.ts.map +1 -1
  941. package/package.json +30 -26
  942. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +0 -9
  943. package/.docs/organized/changelogs/%40internal%2Fplayground.md +0 -3
  944. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +0 -302
  945. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +0 -49
  946. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +0 -302
  947. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +0 -302
  948. package/.docs/organized/changelogs/%40mastra%2Fastra.md +0 -302
  949. package/.docs/organized/changelogs/%40mastra%2Fauth.md +0 -31
  950. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +0 -302
  951. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +0 -302
  952. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +0 -302
  953. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +0 -302
  954. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +0 -302
  955. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +0 -302
  956. package/.docs/organized/changelogs/%40mastra%2Fcore.md +0 -302
  957. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +0 -302
  958. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +0 -302
  959. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +0 -302
  960. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +0 -302
  961. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +0 -302
  962. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +0 -302
  963. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +0 -302
  964. package/.docs/organized/changelogs/%40mastra%2Fevals.md +0 -302
  965. package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +0 -87
  966. package/.docs/organized/changelogs/%40mastra%2Flance.md +0 -302
  967. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +0 -302
  968. package/.docs/organized/changelogs/%40mastra%2Floggers.md +0 -302
  969. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +0 -302
  970. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +0 -302
  971. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +0 -302
  972. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +0 -302
  973. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +0 -302
  974. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +0 -302
  975. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +0 -302
  976. package/.docs/organized/changelogs/%40mastra%2Fpg.md +0 -302
  977. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +0 -302
  978. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +0 -302
  979. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +0 -302
  980. package/.docs/organized/changelogs/%40mastra%2Frag.md +0 -302
  981. package/.docs/organized/changelogs/%40mastra%2Freact.md +0 -247
  982. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +0 -149
  983. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +0 -195
  984. package/.docs/organized/changelogs/%40mastra%2Fserver.md +0 -302
  985. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +0 -302
  986. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +0 -302
  987. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +0 -302
  988. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +0 -302
  989. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +0 -302
  990. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +0 -302
  991. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +0 -302
  992. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +0 -302
  993. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +0 -265
  994. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +0 -302
  995. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +0 -302
  996. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +0 -302
  997. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +0 -302
  998. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +0 -302
  999. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +0 -302
  1000. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +0 -302
  1001. package/.docs/organized/changelogs/create-mastra.md +0 -302
  1002. package/.docs/organized/changelogs/mastra.md +0 -302
  1003. package/.docs/organized/code-examples/a2a.md +0 -208
  1004. package/.docs/organized/code-examples/agent.md +0 -1333
  1005. package/.docs/organized/code-examples/agui.md +0 -173
  1006. package/.docs/organized/code-examples/ai-elements.md +0 -47
  1007. package/.docs/organized/code-examples/ai-sdk-useChat.md +0 -369
  1008. package/.docs/organized/code-examples/ai-sdk-v5.md +0 -203
  1009. package/.docs/organized/code-examples/assistant-ui.md +0 -28
  1010. package/.docs/organized/code-examples/bird-checker-with-express.md +0 -223
  1011. package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +0 -347
  1012. package/.docs/organized/code-examples/bird-checker-with-nextjs.md +0 -241
  1013. package/.docs/organized/code-examples/client-side-tools.md +0 -59
  1014. package/.docs/organized/code-examples/crypto-chatbot.md +0 -87
  1015. package/.docs/organized/code-examples/experimental-auth-weather-agent.md +0 -564
  1016. package/.docs/organized/code-examples/fireworks-r1.md +0 -148
  1017. package/.docs/organized/code-examples/heads-up-game.md +0 -252
  1018. package/.docs/organized/code-examples/mcp-configuration.md +0 -556
  1019. package/.docs/organized/code-examples/mcp-registry-registry.md +0 -50
  1020. package/.docs/organized/code-examples/memory-per-resource-example.md +0 -222
  1021. package/.docs/organized/code-examples/memory-todo-agent.md +0 -152
  1022. package/.docs/organized/code-examples/memory-with-context.md +0 -155
  1023. package/.docs/organized/code-examples/memory-with-libsql.md +0 -190
  1024. package/.docs/organized/code-examples/memory-with-pg.md +0 -211
  1025. package/.docs/organized/code-examples/memory-with-processors.md +0 -594
  1026. package/.docs/organized/code-examples/memory-with-upstash.md +0 -254
  1027. package/.docs/organized/code-examples/openapi-spec-writer.md +0 -567
  1028. package/.docs/organized/code-examples/quick-start.md +0 -156
  1029. package/.docs/organized/code-examples/stock-price-tool.md +0 -111
  1030. package/.docs/organized/code-examples/weather-agent.md +0 -576
  1031. package/.docs/organized/code-examples/workflow-ai-recruiter.md +0 -147
  1032. package/.docs/organized/code-examples/workflow-with-inline-steps.md +0 -99
  1033. package/.docs/organized/code-examples/workflow-with-memory.md +0 -381
  1034. package/.docs/organized/code-examples/workflow-with-separate-steps.md +0 -160
  1035. package/.docs/organized/code-examples/workflow-with-suspend-resume.md +0 -182
  1036. package/.docs/raw/agents/adding-voice.mdx +0 -290
  1037. package/.docs/raw/agents/agent-memory.mdx +0 -158
  1038. package/.docs/raw/agents/guardrails.mdx +0 -342
  1039. package/.docs/raw/agents/networks.mdx +0 -235
  1040. package/.docs/raw/agents/overview.mdx +0 -425
  1041. package/.docs/raw/agents/using-tools.mdx +0 -95
  1042. package/.docs/raw/auth/auth0.mdx +0 -235
  1043. package/.docs/raw/auth/clerk.mdx +0 -142
  1044. package/.docs/raw/auth/firebase.mdx +0 -285
  1045. package/.docs/raw/auth/index.mdx +0 -19
  1046. package/.docs/raw/auth/jwt.mdx +0 -101
  1047. package/.docs/raw/auth/supabase.mdx +0 -128
  1048. package/.docs/raw/auth/workos.mdx +0 -198
  1049. package/.docs/raw/community/contributing-templates.mdx +0 -193
  1050. package/.docs/raw/community/discord.mdx +0 -12
  1051. package/.docs/raw/community/licensing.mdx +0 -71
  1052. package/.docs/raw/course/01-first-agent/04-project-structure.md +0 -17
  1053. package/.docs/raw/course/01-first-agent/05-running-playground.md +0 -19
  1054. package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +0 -51
  1055. package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +0 -33
  1056. package/.docs/raw/course/01-first-agent/09-testing-your-agent.md +0 -12
  1057. package/.docs/raw/course/01-first-agent/11-creating-transactions-tool.md +0 -41
  1058. package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +0 -29
  1059. package/.docs/raw/course/01-first-agent/13-testing-your-tool.md +0 -15
  1060. package/.docs/raw/course/01-first-agent/15-installing-memory.md +0 -13
  1061. package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +0 -33
  1062. package/.docs/raw/course/01-first-agent/17-testing-memory.md +0 -15
  1063. package/.docs/raw/course/02-agent-tools-mcp/03-setting-up-mcp-configuration.md +0 -21
  1064. package/.docs/raw/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +0 -11
  1065. package/.docs/raw/course/02-agent-tools-mcp/05-updating-your-agent.md +0 -20
  1066. package/.docs/raw/course/02-agent-tools-mcp/07-what-is-zapier-mcp.md +0 -14
  1067. package/.docs/raw/course/02-agent-tools-mcp/08-getting-zapier-mcp-url.md +0 -16
  1068. package/.docs/raw/course/02-agent-tools-mcp/09-updating-mcp-config-zapier.md +0 -17
  1069. package/.docs/raw/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +0 -29
  1070. package/.docs/raw/course/02-agent-tools-mcp/12-troubleshooting-zapier.md +0 -17
  1071. package/.docs/raw/course/02-agent-tools-mcp/13-what-is-github-mcp.md +0 -14
  1072. package/.docs/raw/course/02-agent-tools-mcp/14-getting-github-mcp-url.md +0 -35
  1073. package/.docs/raw/course/02-agent-tools-mcp/15-updating-mcp-config-github.md +0 -20
  1074. package/.docs/raw/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +0 -33
  1075. package/.docs/raw/course/02-agent-tools-mcp/18-troubleshooting-github.md +0 -17
  1076. package/.docs/raw/course/02-agent-tools-mcp/20-updating-mcp-config-hackernews.md +0 -26
  1077. package/.docs/raw/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +0 -38
  1078. package/.docs/raw/course/02-agent-tools-mcp/26-updating-mcp-config-filesystem.md +0 -33
  1079. package/.docs/raw/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +0 -45
  1080. package/.docs/raw/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +0 -76
  1081. package/.docs/raw/course/02-agent-tools-mcp/32-conclusion.md +0 -17
  1082. package/.docs/raw/course/03-agent-memory/03-installing-memory.md +0 -13
  1083. package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +0 -36
  1084. package/.docs/raw/course/03-agent-memory/05-updating-mastra-export.md +0 -18
  1085. package/.docs/raw/course/03-agent-memory/07-understanding-memory-threads.md +0 -14
  1086. package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +0 -37
  1087. package/.docs/raw/course/03-agent-memory/09-using-memory-in-application.md +0 -19
  1088. package/.docs/raw/course/03-agent-memory/10-storage-configuration.md +0 -30
  1089. package/.docs/raw/course/03-agent-memory/12-handling-memory-frontend.md +0 -62
  1090. package/.docs/raw/course/03-agent-memory/13-vector-store-configuration.md +0 -27
  1091. package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +0 -41
  1092. package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +0 -28
  1093. package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +0 -63
  1094. package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +0 -89
  1095. package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +0 -80
  1096. package/.docs/raw/course/03-agent-memory/26-updating-mastra-export-comprehensive.md +0 -32
  1097. package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +0 -103
  1098. package/.docs/raw/course/04-workflows/01-introduction-to-workflows.md +0 -44
  1099. package/.docs/raw/course/04-workflows/02-understanding-steps.md +0 -53
  1100. package/.docs/raw/course/04-workflows/03-creating-your-first-step.md +0 -57
  1101. package/.docs/raw/course/04-workflows/04-creating-a-second-step.md +0 -58
  1102. package/.docs/raw/course/04-workflows/05-chaining-steps-together.md +0 -57
  1103. package/.docs/raw/course/04-workflows/06-registering-with-mastra.md +0 -24
  1104. package/.docs/raw/course/04-workflows/07-using-playground.md +0 -58
  1105. package/.docs/raw/course/04-workflows/08-running-workflows-programmatically.md +0 -77
  1106. package/.docs/raw/course/04-workflows/09-adding-a-third-step.md +0 -70
  1107. package/.docs/raw/course/04-workflows/10-updating-the-workflow.md +0 -55
  1108. package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +0 -67
  1109. package/.docs/raw/course/04-workflows/12-using-agent-in-workflow.md +0 -91
  1110. package/.docs/raw/course/04-workflows/13-creating-ai-enhanced-workflow.md +0 -75
  1111. package/.docs/raw/course/04-workflows/14-understanding-parallel-execution.md +0 -38
  1112. package/.docs/raw/course/04-workflows/15-creating-parallel-steps.md +0 -115
  1113. package/.docs/raw/course/04-workflows/16-building-parallel-workflow.md +0 -100
  1114. package/.docs/raw/course/04-workflows/17-testing-parallel-performance.md +0 -40
  1115. package/.docs/raw/course/04-workflows/18-understanding-conditional-branching.md +0 -61
  1116. package/.docs/raw/course/04-workflows/19-creating-conditional-steps.md +0 -128
  1117. package/.docs/raw/course/04-workflows/20-building-conditional-workflow.md +0 -60
  1118. package/.docs/raw/course/04-workflows/21-testing-conditional-logic.md +0 -58
  1119. package/.docs/raw/deployment/cloud-providers/amazon-ec2.mdx +0 -115
  1120. package/.docs/raw/deployment/cloud-providers/aws-lambda.mdx +0 -273
  1121. package/.docs/raw/deployment/cloud-providers/azure-app-services.mdx +0 -137
  1122. package/.docs/raw/deployment/cloud-providers/digital-ocean.mdx +0 -206
  1123. package/.docs/raw/deployment/cloud-providers/index.mdx +0 -52
  1124. package/.docs/raw/deployment/monorepo.mdx +0 -107
  1125. package/.docs/raw/deployment/overview.mdx +0 -82
  1126. package/.docs/raw/deployment/server-deployment.mdx +0 -86
  1127. package/.docs/raw/deployment/serverless-platforms/cloudflare-deployer.mdx +0 -87
  1128. package/.docs/raw/deployment/serverless-platforms/index.mdx +0 -52
  1129. package/.docs/raw/deployment/serverless-platforms/netlify-deployer.mdx +0 -94
  1130. package/.docs/raw/deployment/serverless-platforms/vercel-deployer.mdx +0 -109
  1131. package/.docs/raw/deployment/web-framework.mdx +0 -63
  1132. package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +0 -675
  1133. package/.docs/raw/frameworks/agentic-uis/assistant-ui.mdx +0 -125
  1134. package/.docs/raw/frameworks/agentic-uis/cedar-os.mdx +0 -108
  1135. package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +0 -341
  1136. package/.docs/raw/frameworks/agentic-uis/openrouter.mdx +0 -165
  1137. package/.docs/raw/frameworks/servers/express.mdx +0 -208
  1138. package/.docs/raw/frameworks/web-frameworks/astro.mdx +0 -519
  1139. package/.docs/raw/frameworks/web-frameworks/next-js.mdx +0 -336
  1140. package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +0 -461
  1141. package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +0 -242
  1142. package/.docs/raw/getting-started/installation.mdx +0 -316
  1143. package/.docs/raw/getting-started/mcp-docs-server.mdx +0 -183
  1144. package/.docs/raw/getting-started/project-structure.mdx +0 -72
  1145. package/.docs/raw/getting-started/templates.mdx +0 -70
  1146. package/.docs/raw/index.mdx +0 -58
  1147. package/.docs/raw/mastra-cloud/dashboard.mdx +0 -100
  1148. package/.docs/raw/mastra-cloud/observability.mdx +0 -52
  1149. package/.docs/raw/mastra-cloud/overview.mdx +0 -71
  1150. package/.docs/raw/mastra-cloud/setting-up.mdx +0 -92
  1151. package/.docs/raw/memory/conversation-history.mdx +0 -23
  1152. package/.docs/raw/memory/memory-processors.mdx +0 -136
  1153. package/.docs/raw/memory/overview.mdx +0 -119
  1154. package/.docs/raw/memory/semantic-recall.mdx +0 -226
  1155. package/.docs/raw/memory/threads-and-resources.mdx +0 -94
  1156. package/.docs/raw/memory/working-memory.mdx +0 -378
  1157. package/.docs/raw/observability/ai-tracing/exporters/braintrust.mdx +0 -81
  1158. package/.docs/raw/observability/ai-tracing/exporters/cloud.mdx +0 -120
  1159. package/.docs/raw/observability/ai-tracing/exporters/default.mdx +0 -168
  1160. package/.docs/raw/observability/ai-tracing/exporters/langfuse.mdx +0 -121
  1161. package/.docs/raw/observability/ai-tracing/exporters/langsmith.mdx +0 -88
  1162. package/.docs/raw/observability/ai-tracing/exporters/otel.mdx +0 -253
  1163. package/.docs/raw/observability/ai-tracing/overview.mdx +0 -565
  1164. package/.docs/raw/observability/ai-tracing/processors/sensitive-data-filter.mdx +0 -274
  1165. package/.docs/raw/observability/logging.mdx +0 -113
  1166. package/.docs/raw/observability/nextjs-tracing.mdx +0 -109
  1167. package/.docs/raw/observability/otel-tracing.mdx +0 -190
  1168. package/.docs/raw/observability/overview.mdx +0 -66
  1169. package/.docs/raw/rag/chunking-and-embedding.mdx +0 -208
  1170. package/.docs/raw/rag/overview.mdx +0 -87
  1171. package/.docs/raw/rag/retrieval.mdx +0 -543
  1172. package/.docs/raw/rag/vector-databases.mdx +0 -529
  1173. package/.docs/raw/reference/agents/agent.mdx +0 -230
  1174. package/.docs/raw/reference/agents/generate.mdx +0 -577
  1175. package/.docs/raw/reference/agents/generateLegacy.mdx +0 -528
  1176. package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +0 -67
  1177. package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +0 -67
  1178. package/.docs/raw/reference/agents/getDescription.mdx +0 -34
  1179. package/.docs/raw/reference/agents/getInstructions.mdx +0 -67
  1180. package/.docs/raw/reference/agents/getLLM.mdx +0 -74
  1181. package/.docs/raw/reference/agents/getMemory.mdx +0 -67
  1182. package/.docs/raw/reference/agents/getModel.mdx +0 -67
  1183. package/.docs/raw/reference/agents/getScorers.mdx +0 -67
  1184. package/.docs/raw/reference/agents/getTools.mdx +0 -67
  1185. package/.docs/raw/reference/agents/getVoice.mdx +0 -67
  1186. package/.docs/raw/reference/agents/getWorkflows.mdx +0 -67
  1187. package/.docs/raw/reference/agents/listAgents.mdx +0 -68
  1188. package/.docs/raw/reference/agents/network.mdx +0 -290
  1189. package/.docs/raw/reference/auth/auth0.mdx +0 -117
  1190. package/.docs/raw/reference/auth/clerk.mdx +0 -71
  1191. package/.docs/raw/reference/auth/firebase.mdx +0 -128
  1192. package/.docs/raw/reference/auth/jwt.mdx +0 -41
  1193. package/.docs/raw/reference/auth/supabase.mdx +0 -62
  1194. package/.docs/raw/reference/auth/workos.mdx +0 -128
  1195. package/.docs/raw/reference/cli/create-mastra.mdx +0 -177
  1196. package/.docs/raw/reference/cli/mastra.mdx +0 -258
  1197. package/.docs/raw/reference/client-js/agents.mdx +0 -220
  1198. package/.docs/raw/reference/client-js/error-handling.mdx +0 -23
  1199. package/.docs/raw/reference/client-js/logs.mdx +0 -29
  1200. package/.docs/raw/reference/client-js/mastra-client.mdx +0 -157
  1201. package/.docs/raw/reference/client-js/memory.mdx +0 -130
  1202. package/.docs/raw/reference/client-js/observability.mdx +0 -76
  1203. package/.docs/raw/reference/client-js/telemetry.mdx +0 -25
  1204. package/.docs/raw/reference/client-js/tools.mdx +0 -49
  1205. package/.docs/raw/reference/client-js/vectors.mdx +0 -84
  1206. package/.docs/raw/reference/client-js/workflows-legacy.mdx +0 -143
  1207. package/.docs/raw/reference/client-js/workflows.mdx +0 -175
  1208. package/.docs/raw/reference/core/getAgent.mdx +0 -43
  1209. package/.docs/raw/reference/core/getAgentById.mdx +0 -43
  1210. package/.docs/raw/reference/core/getAgents.mdx +0 -35
  1211. package/.docs/raw/reference/core/getDeployer.mdx +0 -35
  1212. package/.docs/raw/reference/core/getLogger.mdx +0 -35
  1213. package/.docs/raw/reference/core/getLogs.mdx +0 -92
  1214. package/.docs/raw/reference/core/getLogsByRunId.mdx +0 -84
  1215. package/.docs/raw/reference/core/getMCPServer.mdx +0 -49
  1216. package/.docs/raw/reference/core/getMCPServers.mdx +0 -35
  1217. package/.docs/raw/reference/core/getMemory.mdx +0 -35
  1218. package/.docs/raw/reference/core/getScorer.mdx +0 -75
  1219. package/.docs/raw/reference/core/getScorerByName.mdx +0 -75
  1220. package/.docs/raw/reference/core/getScorers.mdx +0 -42
  1221. package/.docs/raw/reference/core/getServer.mdx +0 -35
  1222. package/.docs/raw/reference/core/getStorage.mdx +0 -35
  1223. package/.docs/raw/reference/core/getTelemetry.mdx +0 -35
  1224. package/.docs/raw/reference/core/getVector.mdx +0 -43
  1225. package/.docs/raw/reference/core/getVectors.mdx +0 -35
  1226. package/.docs/raw/reference/core/getWorkflow.mdx +0 -48
  1227. package/.docs/raw/reference/core/getWorkflows.mdx +0 -43
  1228. package/.docs/raw/reference/core/mastra-class.mdx +0 -143
  1229. package/.docs/raw/reference/core/setLogger.mdx +0 -47
  1230. package/.docs/raw/reference/core/setStorage.mdx +0 -39
  1231. package/.docs/raw/reference/core/setTelemetry.mdx +0 -35
  1232. package/.docs/raw/reference/deployer/cloudflare.mdx +0 -91
  1233. package/.docs/raw/reference/deployer/deployer.mdx +0 -165
  1234. package/.docs/raw/reference/deployer/netlify.mdx +0 -20
  1235. package/.docs/raw/reference/deployer/vercel.mdx +0 -46
  1236. package/.docs/raw/reference/evals/answer-relevancy.mdx +0 -190
  1237. package/.docs/raw/reference/evals/bias.mdx +0 -195
  1238. package/.docs/raw/reference/evals/completeness.mdx +0 -184
  1239. package/.docs/raw/reference/evals/content-similarity.mdx +0 -185
  1240. package/.docs/raw/reference/evals/context-position.mdx +0 -198
  1241. package/.docs/raw/reference/evals/context-precision.mdx +0 -196
  1242. package/.docs/raw/reference/evals/context-relevancy.mdx +0 -197
  1243. package/.docs/raw/reference/evals/contextual-recall.mdx +0 -197
  1244. package/.docs/raw/reference/evals/faithfulness.mdx +0 -200
  1245. package/.docs/raw/reference/evals/hallucination.mdx +0 -227
  1246. package/.docs/raw/reference/evals/keyword-coverage.mdx +0 -186
  1247. package/.docs/raw/reference/evals/prompt-alignment.mdx +0 -248
  1248. package/.docs/raw/reference/evals/summarization.mdx +0 -214
  1249. package/.docs/raw/reference/evals/textual-difference.mdx +0 -172
  1250. package/.docs/raw/reference/evals/tone-consistency.mdx +0 -190
  1251. package/.docs/raw/reference/evals/toxicity.mdx +0 -173
  1252. package/.docs/raw/reference/index.mdx +0 -12
  1253. package/.docs/raw/reference/legacyWorkflows/after.mdx +0 -89
  1254. package/.docs/raw/reference/legacyWorkflows/afterEvent.mdx +0 -79
  1255. package/.docs/raw/reference/legacyWorkflows/commit.mdx +0 -33
  1256. package/.docs/raw/reference/legacyWorkflows/createRun.mdx +0 -76
  1257. package/.docs/raw/reference/legacyWorkflows/else.mdx +0 -68
  1258. package/.docs/raw/reference/legacyWorkflows/events.mdx +0 -305
  1259. package/.docs/raw/reference/legacyWorkflows/execute.mdx +0 -110
  1260. package/.docs/raw/reference/legacyWorkflows/if.mdx +0 -108
  1261. package/.docs/raw/reference/legacyWorkflows/resume.mdx +0 -158
  1262. package/.docs/raw/reference/legacyWorkflows/resumeWithEvent.mdx +0 -133
  1263. package/.docs/raw/reference/legacyWorkflows/snapshots.mdx +0 -207
  1264. package/.docs/raw/reference/legacyWorkflows/start.mdx +0 -87
  1265. package/.docs/raw/reference/legacyWorkflows/step-class.mdx +0 -100
  1266. package/.docs/raw/reference/legacyWorkflows/step-condition.mdx +0 -137
  1267. package/.docs/raw/reference/legacyWorkflows/step-function.mdx +0 -93
  1268. package/.docs/raw/reference/legacyWorkflows/step-options.mdx +0 -69
  1269. package/.docs/raw/reference/legacyWorkflows/step-retries.mdx +0 -196
  1270. package/.docs/raw/reference/legacyWorkflows/suspend.mdx +0 -70
  1271. package/.docs/raw/reference/legacyWorkflows/then.mdx +0 -72
  1272. package/.docs/raw/reference/legacyWorkflows/until.mdx +0 -168
  1273. package/.docs/raw/reference/legacyWorkflows/watch.mdx +0 -124
  1274. package/.docs/raw/reference/legacyWorkflows/while.mdx +0 -168
  1275. package/.docs/raw/reference/legacyWorkflows/workflow.mdx +0 -234
  1276. package/.docs/raw/reference/memory/Memory.mdx +0 -206
  1277. package/.docs/raw/reference/memory/createThread.mdx +0 -119
  1278. package/.docs/raw/reference/memory/deleteMessages.mdx +0 -60
  1279. package/.docs/raw/reference/memory/getThreadById.mdx +0 -46
  1280. package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +0 -78
  1281. package/.docs/raw/reference/memory/getThreadsByResourceIdPaginated.mdx +0 -109
  1282. package/.docs/raw/reference/memory/query.mdx +0 -174
  1283. package/.docs/raw/reference/observability/ai-tracing/ai-tracing.mdx +0 -182
  1284. package/.docs/raw/reference/observability/ai-tracing/configuration.mdx +0 -234
  1285. package/.docs/raw/reference/observability/ai-tracing/exporters/braintrust.mdx +0 -112
  1286. package/.docs/raw/reference/observability/ai-tracing/exporters/cloud-exporter.mdx +0 -176
  1287. package/.docs/raw/reference/observability/ai-tracing/exporters/console-exporter.mdx +0 -148
  1288. package/.docs/raw/reference/observability/ai-tracing/exporters/default-exporter.mdx +0 -196
  1289. package/.docs/raw/reference/observability/ai-tracing/exporters/langfuse.mdx +0 -116
  1290. package/.docs/raw/reference/observability/ai-tracing/exporters/langsmith.mdx +0 -112
  1291. package/.docs/raw/reference/observability/ai-tracing/exporters/otel.mdx +0 -361
  1292. package/.docs/raw/reference/observability/ai-tracing/interfaces.mdx +0 -651
  1293. package/.docs/raw/reference/observability/ai-tracing/processors/sensitive-data-filter.mdx +0 -178
  1294. package/.docs/raw/reference/observability/ai-tracing/span.mdx +0 -371
  1295. package/.docs/raw/reference/observability/logging/pino-logger.mdx +0 -148
  1296. package/.docs/raw/reference/observability/otel-tracing/otel-config.mdx +0 -117
  1297. package/.docs/raw/reference/observability/otel-tracing/providers/arize-ax.mdx +0 -81
  1298. package/.docs/raw/reference/observability/otel-tracing/providers/arize-phoenix.mdx +0 -120
  1299. package/.docs/raw/reference/observability/otel-tracing/providers/braintrust.mdx +0 -40
  1300. package/.docs/raw/reference/observability/otel-tracing/providers/dash0.mdx +0 -40
  1301. package/.docs/raw/reference/observability/otel-tracing/providers/index.mdx +0 -22
  1302. package/.docs/raw/reference/observability/otel-tracing/providers/keywordsai.mdx +0 -73
  1303. package/.docs/raw/reference/observability/otel-tracing/providers/laminar.mdx +0 -41
  1304. package/.docs/raw/reference/observability/otel-tracing/providers/langfuse.mdx +0 -84
  1305. package/.docs/raw/reference/observability/otel-tracing/providers/langsmith.mdx +0 -48
  1306. package/.docs/raw/reference/observability/otel-tracing/providers/langwatch.mdx +0 -43
  1307. package/.docs/raw/reference/observability/otel-tracing/providers/new-relic.mdx +0 -40
  1308. package/.docs/raw/reference/observability/otel-tracing/providers/signoz.mdx +0 -40
  1309. package/.docs/raw/reference/observability/otel-tracing/providers/traceloop.mdx +0 -40
  1310. package/.docs/raw/reference/processors/batch-parts-processor.mdx +0 -111
  1311. package/.docs/raw/reference/processors/language-detector.mdx +0 -154
  1312. package/.docs/raw/reference/processors/moderation-processor.mdx +0 -145
  1313. package/.docs/raw/reference/processors/pii-detector.mdx +0 -153
  1314. package/.docs/raw/reference/processors/prompt-injection-detector.mdx +0 -130
  1315. package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +0 -145
  1316. package/.docs/raw/reference/processors/token-limiter-processor.mdx +0 -136
  1317. package/.docs/raw/reference/processors/unicode-normalizer.mdx +0 -114
  1318. package/.docs/raw/reference/rag/chunk.mdx +0 -445
  1319. package/.docs/raw/reference/rag/database-config.mdx +0 -334
  1320. package/.docs/raw/reference/rag/document.mdx +0 -131
  1321. package/.docs/raw/reference/rag/embeddings.mdx +0 -168
  1322. package/.docs/raw/reference/rag/extract-params.mdx +0 -254
  1323. package/.docs/raw/reference/rag/graph-rag.mdx +0 -186
  1324. package/.docs/raw/reference/rag/metadata-filters.mdx +0 -347
  1325. package/.docs/raw/reference/rag/rerank.mdx +0 -213
  1326. package/.docs/raw/reference/rag/rerankWithScorer.mdx +0 -213
  1327. package/.docs/raw/reference/scorers/answer-relevancy.mdx +0 -209
  1328. package/.docs/raw/reference/scorers/answer-similarity.mdx +0 -423
  1329. package/.docs/raw/reference/scorers/bias.mdx +0 -225
  1330. package/.docs/raw/reference/scorers/completeness.mdx +0 -209
  1331. package/.docs/raw/reference/scorers/content-similarity.mdx +0 -195
  1332. package/.docs/raw/reference/scorers/context-precision.mdx +0 -343
  1333. package/.docs/raw/reference/scorers/context-relevance.mdx +0 -599
  1334. package/.docs/raw/reference/scorers/create-scorer.mdx +0 -495
  1335. package/.docs/raw/reference/scorers/faithfulness.mdx +0 -233
  1336. package/.docs/raw/reference/scorers/hallucination.mdx +0 -247
  1337. package/.docs/raw/reference/scorers/keyword-coverage.mdx +0 -224
  1338. package/.docs/raw/reference/scorers/mastra-scorer.mdx +0 -182
  1339. package/.docs/raw/reference/scorers/noise-sensitivity.mdx +0 -766
  1340. package/.docs/raw/reference/scorers/prompt-alignment.mdx +0 -614
  1341. package/.docs/raw/reference/scorers/run-experiment.mdx +0 -216
  1342. package/.docs/raw/reference/scorers/textual-difference.mdx +0 -204
  1343. package/.docs/raw/reference/scorers/tone-consistency.mdx +0 -208
  1344. package/.docs/raw/reference/scorers/tool-call-accuracy.mdx +0 -567
  1345. package/.docs/raw/reference/scorers/toxicity.mdx +0 -224
  1346. package/.docs/raw/reference/storage/cloudflare-d1.mdx +0 -104
  1347. package/.docs/raw/reference/storage/cloudflare.mdx +0 -95
  1348. package/.docs/raw/reference/storage/dynamodb.mdx +0 -196
  1349. package/.docs/raw/reference/storage/lance.mdx +0 -101
  1350. package/.docs/raw/reference/storage/libsql.mdx +0 -74
  1351. package/.docs/raw/reference/storage/mssql.mdx +0 -112
  1352. package/.docs/raw/reference/storage/postgresql.mdx +0 -305
  1353. package/.docs/raw/reference/storage/upstash.mdx +0 -91
  1354. package/.docs/raw/reference/streaming/ChunkType.mdx +0 -854
  1355. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +0 -321
  1356. package/.docs/raw/reference/streaming/agents/stream.mdx +0 -698
  1357. package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +0 -515
  1358. package/.docs/raw/reference/streaming/workflows/observeStream.mdx +0 -49
  1359. package/.docs/raw/reference/streaming/workflows/observeStreamVNext.mdx +0 -47
  1360. package/.docs/raw/reference/streaming/workflows/resumeStreamVNext.mdx +0 -118
  1361. package/.docs/raw/reference/streaming/workflows/stream.mdx +0 -125
  1362. package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +0 -144
  1363. package/.docs/raw/reference/templates/overview.mdx +0 -228
  1364. package/.docs/raw/reference/tools/client.mdx +0 -336
  1365. package/.docs/raw/reference/tools/create-tool.mdx +0 -130
  1366. package/.docs/raw/reference/tools/document-chunker-tool.mdx +0 -141
  1367. package/.docs/raw/reference/tools/graph-rag-tool.mdx +0 -262
  1368. package/.docs/raw/reference/tools/mcp-client.mdx +0 -830
  1369. package/.docs/raw/reference/tools/mcp-server.mdx +0 -1079
  1370. package/.docs/raw/reference/tools/vector-query-tool.mdx +0 -604
  1371. package/.docs/raw/reference/vectors/astra.mdx +0 -258
  1372. package/.docs/raw/reference/vectors/chroma.mdx +0 -422
  1373. package/.docs/raw/reference/vectors/couchbase.mdx +0 -345
  1374. package/.docs/raw/reference/vectors/lance.mdx +0 -451
  1375. package/.docs/raw/reference/vectors/libsql.mdx +0 -355
  1376. package/.docs/raw/reference/vectors/mongodb.mdx +0 -309
  1377. package/.docs/raw/reference/vectors/opensearch.mdx +0 -200
  1378. package/.docs/raw/reference/vectors/pg.mdx +0 -632
  1379. package/.docs/raw/reference/vectors/pinecone.mdx +0 -286
  1380. package/.docs/raw/reference/vectors/qdrant.mdx +0 -236
  1381. package/.docs/raw/reference/vectors/s3vectors.mdx +0 -386
  1382. package/.docs/raw/reference/vectors/turbopuffer.mdx +0 -249
  1383. package/.docs/raw/reference/vectors/upstash.mdx +0 -354
  1384. package/.docs/raw/reference/vectors/vectorize.mdx +0 -298
  1385. package/.docs/raw/reference/voice/azure.mdx +0 -218
  1386. package/.docs/raw/reference/voice/cloudflare.mdx +0 -154
  1387. package/.docs/raw/reference/voice/composite-voice.mdx +0 -144
  1388. package/.docs/raw/reference/voice/deepgram.mdx +0 -166
  1389. package/.docs/raw/reference/voice/elevenlabs.mdx +0 -218
  1390. package/.docs/raw/reference/voice/google-gemini-live.mdx +0 -629
  1391. package/.docs/raw/reference/voice/google.mdx +0 -203
  1392. package/.docs/raw/reference/voice/mastra-voice.mdx +0 -413
  1393. package/.docs/raw/reference/voice/murf.mdx +0 -253
  1394. package/.docs/raw/reference/voice/openai-realtime.mdx +0 -376
  1395. package/.docs/raw/reference/voice/openai.mdx +0 -169
  1396. package/.docs/raw/reference/voice/playai.mdx +0 -163
  1397. package/.docs/raw/reference/voice/sarvam.mdx +0 -260
  1398. package/.docs/raw/reference/voice/speechify.mdx +0 -147
  1399. package/.docs/raw/reference/voice/voice.addInstructions.mdx +0 -72
  1400. package/.docs/raw/reference/voice/voice.addTools.mdx +0 -83
  1401. package/.docs/raw/reference/voice/voice.answer.mdx +0 -69
  1402. package/.docs/raw/reference/voice/voice.close.mdx +0 -56
  1403. package/.docs/raw/reference/voice/voice.connect.mdx +0 -123
  1404. package/.docs/raw/reference/voice/voice.events.mdx +0 -85
  1405. package/.docs/raw/reference/voice/voice.getSpeakers.mdx +0 -298
  1406. package/.docs/raw/reference/voice/voice.listen.mdx +0 -201
  1407. package/.docs/raw/reference/voice/voice.off.mdx +0 -74
  1408. package/.docs/raw/reference/voice/voice.on.mdx +0 -132
  1409. package/.docs/raw/reference/voice/voice.send.mdx +0 -81
  1410. package/.docs/raw/reference/voice/voice.speak.mdx +0 -206
  1411. package/.docs/raw/reference/voice/voice.updateConfig.mdx +0 -92
  1412. package/.docs/raw/reference/workflows/run-methods/cancel.mdx +0 -58
  1413. package/.docs/raw/reference/workflows/run-methods/resume.mdx +0 -137
  1414. package/.docs/raw/reference/workflows/run-methods/start.mdx +0 -134
  1415. package/.docs/raw/reference/workflows/run-methods/watch.mdx +0 -74
  1416. package/.docs/raw/reference/workflows/run.mdx +0 -104
  1417. package/.docs/raw/reference/workflows/step.mdx +0 -155
  1418. package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +0 -48
  1419. package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +0 -30
  1420. package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +0 -65
  1421. package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +0 -52
  1422. package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +0 -52
  1423. package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +0 -60
  1424. package/.docs/raw/reference/workflows/workflow-methods/map.mdx +0 -43
  1425. package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +0 -43
  1426. package/.docs/raw/reference/workflows/workflow-methods/sendEvent.mdx +0 -70
  1427. package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +0 -61
  1428. package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +0 -61
  1429. package/.docs/raw/reference/workflows/workflow-methods/then.mdx +0 -44
  1430. package/.docs/raw/reference/workflows/workflow-methods/waitForEvent.mdx +0 -66
  1431. package/.docs/raw/reference/workflows/workflow.mdx +0 -132
  1432. package/.docs/raw/scorers/custom-scorers.mdx +0 -473
  1433. package/.docs/raw/scorers/evals-old-api/custom-eval.mdx +0 -26
  1434. package/.docs/raw/scorers/evals-old-api/overview.mdx +0 -106
  1435. package/.docs/raw/scorers/evals-old-api/running-in-ci.mdx +0 -85
  1436. package/.docs/raw/scorers/evals-old-api/textual-evals.mdx +0 -58
  1437. package/.docs/raw/scorers/off-the-shelf-scorers.mdx +0 -48
  1438. package/.docs/raw/scorers/overview.mdx +0 -138
  1439. package/.docs/raw/server-db/custom-api-routes.mdx +0 -67
  1440. package/.docs/raw/server-db/local-dev-playground.mdx +0 -233
  1441. package/.docs/raw/server-db/mastra-client.mdx +0 -274
  1442. package/.docs/raw/server-db/middleware.mdx +0 -173
  1443. package/.docs/raw/server-db/production-server.mdx +0 -91
  1444. package/.docs/raw/server-db/runtime-context.mdx +0 -190
  1445. package/.docs/raw/server-db/storage.mdx +0 -514
  1446. package/.docs/raw/streaming/events.mdx +0 -223
  1447. package/.docs/raw/streaming/overview.mdx +0 -177
  1448. package/.docs/raw/streaming/tool-streaming.mdx +0 -143
  1449. package/.docs/raw/streaming/workflow-streaming.mdx +0 -124
  1450. package/.docs/raw/tools-mcp/advanced-usage.mdx +0 -128
  1451. package/.docs/raw/tools-mcp/mcp-overview.mdx +0 -370
  1452. package/.docs/raw/tools-mcp/overview.mdx +0 -93
  1453. package/.docs/raw/voice/overview.mdx +0 -944
  1454. package/.docs/raw/voice/speech-to-speech.mdx +0 -105
  1455. package/.docs/raw/voice/speech-to-text.mdx +0 -86
  1456. package/.docs/raw/voice/text-to-speech.mdx +0 -90
  1457. package/.docs/raw/workflows/control-flow.mdx +0 -265
  1458. package/.docs/raw/workflows/error-handling.mdx +0 -213
  1459. package/.docs/raw/workflows/inngest-workflow.mdx +0 -359
  1460. package/.docs/raw/workflows/input-data-mapping.mdx +0 -107
  1461. package/.docs/raw/workflows/overview.mdx +0 -277
  1462. package/.docs/raw/workflows/snapshots.mdx +0 -250
  1463. package/.docs/raw/workflows/suspend-and-resume.mdx +0 -298
  1464. package/.docs/raw/workflows/using-with-agents-and-tools.mdx +0 -350
  1465. package/.docs/raw/workflows-legacy/control-flow.mdx +0 -776
  1466. package/.docs/raw/workflows-legacy/dynamic-workflows.mdx +0 -237
  1467. package/.docs/raw/workflows-legacy/error-handling.mdx +0 -185
  1468. package/.docs/raw/workflows-legacy/nested-workflows.mdx +0 -354
  1469. package/.docs/raw/workflows-legacy/overview.mdx +0 -180
  1470. package/.docs/raw/workflows-legacy/runtime-variables.mdx +0 -154
  1471. package/.docs/raw/workflows-legacy/steps.mdx +0 -113
  1472. package/.docs/raw/workflows-legacy/suspend-and-resume.mdx +0 -404
  1473. package/.docs/raw/workflows-legacy/variables.mdx +0 -316
  1474. package/LICENSE.md +0 -15
  1475. package/dist/chunk-TUAHUTTB.js +0 -356
  1476. package/dist/prepare-docs/code-examples.d.ts +0 -5
  1477. package/dist/prepare-docs/code-examples.d.ts.map +0 -1
  1478. package/dist/prepare-docs/copy-raw.d.ts +0 -2
  1479. package/dist/prepare-docs/copy-raw.d.ts.map +0 -1
  1480. package/dist/prepare-docs/package-changes.d.ts +0 -5
  1481. package/dist/prepare-docs/package-changes.d.ts.map +0 -1
  1482. package/dist/prepare-docs/prepare.d.ts +0 -2
  1483. package/dist/prepare-docs/prepare.d.ts.map +0 -1
  1484. package/dist/prepare-docs/prepare.js +0 -1
  1485. package/dist/tools/__tests__/test-setup.d.ts +0 -5
  1486. package/dist/tools/__tests__/test-setup.d.ts.map +0 -1
  1487. package/dist/tools/blog.d.ts +0 -22
  1488. package/dist/tools/blog.d.ts.map +0 -1
  1489. package/dist/tools/changes.d.ts +0 -22
  1490. package/dist/tools/changes.d.ts.map +0 -1
  1491. package/dist/tools/examples.d.ts +0 -28
  1492. package/dist/tools/examples.d.ts.map +0 -1
  1493. /package/.docs/{raw/course → course}/01-first-agent/01-introduction-to-mastra.md +0 -0
  1494. /package/.docs/{raw/course → course}/01-first-agent/02-what-is-mastra.md +0 -0
  1495. /package/.docs/{raw/course → course}/01-first-agent/03-verifying-installation.md +0 -0
  1496. /package/.docs/{raw/course → course}/01-first-agent/06-understanding-system-prompts.md +0 -0
  1497. /package/.docs/{raw/course → course}/01-first-agent/10-understanding-tools.md +0 -0
  1498. /package/.docs/{raw/course → course}/01-first-agent/14-understanding-memory.md +0 -0
  1499. /package/.docs/{raw/course → course}/01-first-agent/18-conclusion.md +0 -0
  1500. /package/.docs/{raw/course → course}/02-agent-tools-mcp/01-introduction-to-mcp.md +0 -0
  1501. /package/.docs/{raw/course → course}/02-agent-tools-mcp/02-installing-mcp.md +0 -0
  1502. /package/.docs/{raw/course → course}/02-agent-tools-mcp/06-testing-mcp-setup.md +0 -0
  1503. /package/.docs/{raw/course → course}/02-agent-tools-mcp/11-testing-zapier-integration.md +0 -0
  1504. /package/.docs/{raw/course → course}/02-agent-tools-mcp/17-testing-github-integration.md +0 -0
  1505. /package/.docs/{raw/course → course}/02-agent-tools-mcp/19-what-is-hackernews-mcp.md +0 -0
  1506. /package/.docs/{raw/course → course}/02-agent-tools-mcp/22-testing-hackernews-integration.md +0 -0
  1507. /package/.docs/{raw/course → course}/02-agent-tools-mcp/23-troubleshooting-hackernews.md +0 -0
  1508. /package/.docs/{raw/course → course}/02-agent-tools-mcp/24-what-is-filesystem-mcp.md +0 -0
  1509. /package/.docs/{raw/course → course}/02-agent-tools-mcp/25-creating-notes-directory.md +0 -0
  1510. /package/.docs/{raw/course → course}/02-agent-tools-mcp/28-testing-filesystem-integration.md +0 -0
  1511. /package/.docs/{raw/course → course}/02-agent-tools-mcp/29-troubleshooting-filesystem.md +0 -0
  1512. /package/.docs/{raw/course → course}/03-agent-memory/01-understanding-memory.md +0 -0
  1513. /package/.docs/{raw/course → course}/03-agent-memory/02-why-memory-matters.md +0 -0
  1514. /package/.docs/{raw/course → course}/03-agent-memory/06-testing-memory-agent.md +0 -0
  1515. /package/.docs/{raw/course → course}/03-agent-memory/11-testing-conversation-history.md +0 -0
  1516. /package/.docs/{raw/course → course}/03-agent-memory/14-what-is-semantic-recall.md +0 -0
  1517. /package/.docs/{raw/course → course}/03-agent-memory/15-how-semantic-recall-works.md +0 -0
  1518. /package/.docs/{raw/course → course}/03-agent-memory/17-testing-semantic-recall.md +0 -0
  1519. /package/.docs/{raw/course → course}/03-agent-memory/19-what-is-working-memory.md +0 -0
  1520. /package/.docs/{raw/course → course}/03-agent-memory/20-how-working-memory-works.md +0 -0
  1521. /package/.docs/{raw/course → course}/03-agent-memory/23-testing-working-memory.md +0 -0
  1522. /package/.docs/{raw/course → course}/03-agent-memory/24-working-memory-in-practice.md +0 -0
  1523. /package/.docs/{raw/course → course}/03-agent-memory/28-testing-memory-enhanced-agents.md +0 -0
  1524. /package/.docs/{raw/course → course}/03-agent-memory/29-memory-best-practices.md +0 -0
  1525. /package/.docs/{raw/course → course}/03-agent-memory/30-conclusion.md +0 -0
  1526. /package/.docs/{raw/course → course}/04-workflows/22-conclusion.md +0 -0
@@ -0,0 +1,1784 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # CLI commands
4
+
5
+ You can use the Command-Line Interface (CLI) provided by Mastra to develop, build, and start your Mastra project.
6
+
7
+ ## `mastra dev`
8
+
9
+ Starts a server which exposes [Studio](https://mastra.ai/docs/studio/overview) and REST endpoints for your agents, tools, and workflows. You can visit <http://localhost:4111/swagger-ui> for an overview of all available endpoints once `mastra dev` is running.
10
+
11
+ You can also [configure the server](https://mastra.ai/reference/configuration).
12
+
13
+ ### Flags
14
+
15
+ The command accepts [common flags](#common-flags) and the following additional flags:
16
+
17
+ #### `--https`
18
+
19
+ Enable local HTTPS support. [Learn more](https://mastra.ai/reference/configuration).
20
+
21
+ #### `--inspect`
22
+
23
+ Start the development server in inspect mode, helpful for debugging. Optionally specify a custom host and port (e.g., `--inspect=0.0.0.0:9229` for Docker). This can't be used together with `--inspect-brk`.
24
+
25
+ #### `--inspect-brk`
26
+
27
+ Start the development server in inspect mode and break at the beginning of the script. Optionally specify a custom host and port (e.g., `--inspect-brk=0.0.0.0:9229`). This can't be used together with `--inspect`.
28
+
29
+ #### `--custom-args`
30
+
31
+ Comma-separated list of custom arguments to pass to the Node.js process, e.g. `--require=newrelic` or `--experimental-transform-types`.
32
+
33
+ #### `--request-context-presets`
34
+
35
+ Path to a JSON file containing [request context](https://mastra.ai/docs/server/request-context) presets. When provided, a dropdown displays in Studio's request context editor, letting you quickly switch between preset configurations.
36
+
37
+ ```bash
38
+ mastra dev --request-context-presets ./presets.json
39
+ ```
40
+
41
+ The file must be a JSON object where each key is a preset name and each value is an object:
42
+
43
+ ```json
44
+ {
45
+ "development": { "userId": "dev-user", "env": "development" },
46
+ "production": { "userId": "prod-user", "env": "production" }
47
+ }
48
+ ```
49
+
50
+ ### Configs
51
+
52
+ You can set environment variables to modify the behavior of `mastra dev`.
53
+
54
+ #### Skip peer dependency check
55
+
56
+ Set `MASTRA_SKIP_PEERDEP_CHECK=1` to skip the peer dependency version mismatch check at startup:
57
+
58
+ ```bash
59
+ MASTRA_SKIP_PEERDEP_CHECK=1 mastra dev
60
+ ```
61
+
62
+ This is useful during monorepo development when peer dependencies may be bumped but packages aren't yet published.
63
+
64
+ #### Disable build caching
65
+
66
+ Set `MASTRA_DEV_NO_CACHE=1` to force a full rebuild rather than using the cached assets under `.mastra/`:
67
+
68
+ ```bash
69
+ MASTRA_DEV_NO_CACHE=1 mastra dev
70
+ ```
71
+
72
+ This helps when you are debugging bundler plugins or suspect stale output.
73
+
74
+ #### Limit parallelism
75
+
76
+ `MASTRA_CONCURRENCY` caps how many expensive operations run in parallel (primarily build and evaluation steps). For example:
77
+
78
+ ```bash
79
+ MASTRA_CONCURRENCY=4 mastra dev
80
+ ```
81
+
82
+ Leave it unset to let the CLI pick a sensible default for the machine.
83
+
84
+ #### Custom provider endpoints
85
+
86
+ When using providers supported by the Vercel AI SDK you can redirect requests through proxies or internal gateways by setting a base URL. For OpenAI:
87
+
88
+ ```bash
89
+ OPENAI_API_KEY=<your-api-key> \
90
+ OPENAI_BASE_URL=https://openrouter.example/v1 \
91
+ mastra dev
92
+ ```
93
+
94
+ For Anthropic:
95
+
96
+ ```bash
97
+ ANTHROPIC_API_KEY=<your-api-key> \
98
+ ANTHROPIC_BASE_URL=https://anthropic.internal \
99
+ mastra dev
100
+ ```
101
+
102
+ These are forwarded to the Mastra model router and will work with any `"openai/..."` or `"anthropic/..."` model selections.
103
+
104
+ ## `mastra factory dev`
105
+
106
+ Starts a development server for [Agent Builder](https://agent-builder.mastra.ai/) development. It uses the same dev runtime and flags as [`mastra dev`](#mastra-dev) and writes to the same `.mastra/output` directory.
107
+
108
+ ```bash
109
+ npx mastra factory dev
110
+ ```
111
+
112
+ Both commands share the same dev lock, so `mastra dev` and `mastra factory dev` can't run simultaneously in the same project. If one is already running, the other exits with a duplicate development server error.
113
+
114
+ Use `mastra factory dev` when developing Agent Builder features. It accepts the same flags as [`mastra dev`](#mastra-dev), including `--https`, `--inspect`, `--inspect-brk`, `--custom-args`, and `--request-context-presets`.
115
+
116
+ ## `mastra build`
117
+
118
+ The `mastra build` command bundles your Mastra project into a production-ready Hono server. [Hono](https://hono.dev/) is a lightweight, type-safe web framework that makes it straightforward to deploy Mastra agents as HTTP endpoints with middleware support.
119
+
120
+ Under the hood Mastra's Rollup server locates your Mastra entry file and bundles it to a production-ready Hono server. During that bundling it tree-shakes your code and generates source maps for debugging.
121
+
122
+ The output in `.mastra` can be deployed to any cloud server using [`mastra start`](#mastra-start).
123
+
124
+ If you're deploying to a [serverless platform](https://mastra.ai/docs/deployment/cloud-providers) you need to install the correct deployer to receive the correct output in `.mastra`.
125
+
126
+ It accepts [common flags](#common-flags).
127
+
128
+ ### Flags
129
+
130
+ #### `--studio`
131
+
132
+ Bundle the Studio UI with the build.
133
+
134
+ ### Configs
135
+
136
+ You can set environment variables to modify the behavior of `mastra build`.
137
+
138
+ #### Skip peer dependency check
139
+
140
+ Set `MASTRA_SKIP_PEERDEP_CHECK=1` to skip the peer dependency version mismatch check:
141
+
142
+ ```bash
143
+ MASTRA_SKIP_PEERDEP_CHECK=1 mastra build
144
+ ```
145
+
146
+ #### Limit parallelism
147
+
148
+ For CI or when running in resource constrained environments you can cap how many expensive tasks run at once by setting `MASTRA_CONCURRENCY`.
149
+
150
+ ```bash
151
+ MASTRA_CONCURRENCY=2 mastra build
152
+ ```
153
+
154
+ ## `mastra start`
155
+
156
+ > **Info:** You need to run `mastra build` before using `mastra start`.
157
+
158
+ Starts a local server to serve your built Mastra application in production mode. By default, [OTEL Tracing](https://mastra.ai/docs/observability/tracing/overview) is enabled.
159
+
160
+ ### Flags
161
+
162
+ The command accepts [common flags](#common-flags) and the following additional flags:
163
+
164
+ #### `--dir`
165
+
166
+ The path to your built Mastra output directory. Defaults to `.mastra/output`.
167
+
168
+ #### `--custom-args`
169
+
170
+ Comma-separated list of custom arguments to pass to the Node.js process, e.g. `--require=newrelic` or `--experimental-transform-types`.
171
+
172
+ ## `mastra worker build`
173
+
174
+ Bundles your Mastra application for worker deployment. Produces the same output as `mastra build`: a self-contained `.mastra/output/` directory.
175
+
176
+ ```bash
177
+ mastra worker build [options]
178
+ ```
179
+
180
+ ### Flags
181
+
182
+ #### `--dir`
183
+
184
+ Path to your Mastra source directory. Defaults to `src/mastra`.
185
+
186
+ #### `--root`
187
+
188
+ Project root directory. Defaults to the current directory.
189
+
190
+ #### `--tools`
191
+
192
+ Comma-separated tool paths to include in the bundle.
193
+
194
+ #### `--output-dir`
195
+
196
+ Custom output directory. Defaults to `.mastra/output`.
197
+
198
+ #### `--debug`
199
+
200
+ Enable debug logging during the build.
201
+
202
+ ## `mastra experiment build`
203
+
204
+ Builds a standalone companion worker that runs experiments without exposing an HTTP server. The worker loads your exported `Mastra` instance and accepts versioned newline-delimited JSON (NDJSON) protocol messages on standard input. It writes protocol events to standard output.
205
+
206
+ ```bash
207
+ mastra experiment build [options]
208
+ ```
209
+
210
+ The command writes the worker to `.mastra/experiment-worker` by default. The directory contains the executable entry point, production dependencies, and `experiment-worker-manifest.json`. Treat standard output as protocol-only output. Worker diagnostics are written to standard error.
211
+
212
+ ### Artifact contract
213
+
214
+ `experiment-worker-manifest.json` identifies the artifact as `mastra-experiment-worker` version `1` and provides:
215
+
216
+ - The CLI version, creation time, and unique build ID embedded in the executable.
217
+ - Supported protocol and dataset canonicalization versions.
218
+ - The executable, arguments, and working directory required to launch the worker.
219
+ - The dependency manifest and generated lockfile paths.
220
+ - A sorted SHA-256 digest for each artifact file.
221
+ - A SHA-256 content digest derived from those file paths and digests.
222
+
223
+ The content digest excludes `experiment-worker-manifest.json` to avoid a self-referential digest. Package the manifest with the rest of the directory. Use an outer package digest when the manifest itself must be attested.
224
+
225
+ ### Protocol contract
226
+
227
+ The worker implements the pinned experiment companion-worker protocol version `1`. It reads strict UTF-8 NDJSON frames from standard input and requires every frame, including the last one, to end with a newline. Frames larger than 1 MiB, malformed or truncated frames, unsupported protocol or canonicalization versions, and messages that don't match the active experiment correlation are rejected as protocol failures.
228
+
229
+ A run request must match the artifact's embedded build ID and include the ordered dataset item count and SHA-256 attestation. The worker emits contiguous sequence numbers starting at `0`, timer-driven heartbeats, awaited experiment lifecycle events, and exactly one terminal event. Cancellation must match the active protocol version, experiment ID, job ID, attempt, and idempotency key.
230
+
231
+ Protocol exit codes are:
232
+
233
+ | Code | Meaning |
234
+ | ---- | -------------------------- |
235
+ | `0` | Completed |
236
+ | `10` | Completed with item errors |
237
+ | `20` | Fatal failure |
238
+ | `21` | Retryable failure |
239
+ | `30` | Cancelled |
240
+ | `31` | Timed out |
241
+ | `70` | Protocol failure |
242
+
243
+ ### Packet field handling
244
+
245
+ The worker passes target identity, ordered inline dataset items, scorer IDs, concurrency, timeout, experiment metadata, request context, tool mocks, and cancellation to `runExperiment`. Scorer versions and artifact provenance are retained as experiment metadata. Scorer code provenance is enforced by artifact admission rather than runtime scorer lookup.
246
+
247
+ Version `1` uses deterministic undeclared-tool denial. Non-empty network allowlists and secret references are rejected with a policy failure because network enforcement and secret materialization belong to the process sandbox. Dataset item source and expected-trajectory fields are preserved as item metadata when passed to `runExperiment`.
248
+
249
+ ### Flags
250
+
251
+ #### `--dir`
252
+
253
+ Path to your Mastra source directory. Defaults to `src/mastra`.
254
+
255
+ #### `--root`
256
+
257
+ Project root directory. Defaults to the current directory.
258
+
259
+ #### `--output-dir`
260
+
261
+ Custom artifact directory. Relative paths are resolved from the project root. Defaults to `.mastra/experiment-worker`.
262
+
263
+ #### `--debug`
264
+
265
+ Enable debug logging during the build.
266
+
267
+ ## `mastra worker start`
268
+
269
+ > **Info:** You need to run `mastra worker build` or `mastra build` before using `mastra worker start`.
270
+
271
+ Starts a worker process from a previously built bundle. The optional `name` argument sets `MASTRA_WORKERS` in the spawned process, controlling which worker starts.
272
+
273
+ ```bash
274
+ mastra worker start [name] [options]
275
+ ```
276
+
277
+ ### Flags
278
+
279
+ #### `--dir`
280
+
281
+ Path to the build output directory. Defaults to `.mastra/output`.
282
+
283
+ #### `--env`
284
+
285
+ Path to the environment file. Defaults to `.env.production`, falling back to `.env`.
286
+
287
+ ### Examples
288
+
289
+ ```bash
290
+ # Start only the orchestration worker
291
+ mastra worker start orchestration
292
+
293
+ # Start only the scheduler
294
+ mastra worker start scheduler
295
+
296
+ # Start from a custom build directory
297
+ mastra worker start orchestration --dir ./dist
298
+ ```
299
+
300
+ See [Workers](https://mastra.ai/docs/deployment/workers) for deployment topologies and configuration.
301
+
302
+ ## `mastra studio`
303
+
304
+ Starts [Studio](https://mastra.ai/docs/studio/overview) as a static server. After starting, you can enter your Mastra instance URL (e.g. `http://localhost:4111`) to connect Studio to your Mastra backend. Looks for `.env` and `.env.production` files in the current working directory for configuration.
305
+
306
+ ### Flags
307
+
308
+ The command accepts [common flags](#common-flags) and the following additional flags:
309
+
310
+ #### `--port`
311
+
312
+ The port to run Studio on. Defaults to `3000`.
313
+
314
+ #### `--server-host`
315
+
316
+ The host of the Mastra API server to connect to. Defaults to `localhost`.
317
+
318
+ #### `--server-port`
319
+
320
+ The port of the Mastra API server to connect to. Defaults to `4111`.
321
+
322
+ #### `--server-protocol`
323
+
324
+ The protocol of the Mastra API server to connect to. Defaults to `http`.
325
+
326
+ #### `--server-api-prefix`
327
+
328
+ The API route prefix of the Mastra API server. Defaults to `/api`.
329
+
330
+ #### `--request-context-presets`
331
+
332
+ Path to a JSON file containing [request context](https://mastra.ai/docs/server/request-context) presets. Works the same as the [`mastra dev` flag](#--request-context-presets).
333
+
334
+ ```bash
335
+ mastra studio --request-context-presets ./presets.json
336
+ ```
337
+
338
+ ## `mastra deploy`
339
+
340
+ Builds and deploys your project to the Mastra platform environment selected by `--env`. This is the recommended command for all new deploys and replaces both [`mastra studio deploy`](#mastra-studio-deploy) and [`mastra server deploy`](#mastra-server-deploy), which continue to work but should no longer be used for new setups.
341
+
342
+ Requires authentication via [`mastra auth login`](#mastra-auth-login) or a `MASTRA_API_TOKEN` environment variable.
343
+
344
+ ```bash
345
+ mastra deploy
346
+ mastra deploy --env staging
347
+ mastra deploy --env production --region eu
348
+ ```
349
+
350
+ The command runs `mastra build` and zips the output before uploading it to the selected environment. It then polls the deploy status while streaming build logs until the deploy reaches a terminal state.
351
+
352
+ Organization, project, and environment are resolved in order from: environment variable (`MASTRA_ORG_ID`, `MASTRA_PROJECT_ID`), CLI flag (`--org`, `--project`, `--env`), `.mastra-project.json` config file, current org from credentials, and lastly interactive prompt. On first deploy, the CLI saves the resolved org and project IDs to `.mastra-project.json` so subsequent deploys skip the prompts.
353
+
354
+ If the project doesn't exist yet, the CLI creates it from the `package.json` `name` field after confirmation. If the target environment doesn't exist, the CLI creates it (defaulting to `type: staging` for anything other than `production`) after confirmation. Combined with `--yes`, this creates and deploys everything in one non-interactive command:
355
+
356
+ ```bash
357
+ mastra deploy --env staging --yes
358
+ ```
359
+
360
+ When `--env <name>` is set and `--env-file` isn't, the CLI auto-selects `.env.<name>` from the project directory if present (for example `.env.staging`). The `<name>` value is validated against a strict allowlist before being interpolated into a file path.
361
+
362
+ ### Arguments
363
+
364
+ #### `[dir]`
365
+
366
+ Project directory. Defaults to the current directory.
367
+
368
+ ### Flags
369
+
370
+ #### `--env`
371
+
372
+ Target environment name. Defaults to `production`. Auto-selects `.env.<name>` from the project directory when `--env-file` isn't set. If the environment doesn't exist, the CLI creates it after confirmation.
373
+
374
+ #### `--org`
375
+
376
+ Organization ID. Can also be set via the `MASTRA_ORG_ID` environment variable.
377
+
378
+ #### `--project`
379
+
380
+ Project ID, slug, or name. Can also be set via the `MASTRA_PROJECT_ID` environment variable. If no project matches, the value is used as the name of a new project to create on deploy.
381
+
382
+ #### `-y, --yes`
383
+
384
+ Auto-accept defaults without confirmation prompts, including creating projects and environments.
385
+
386
+ #### `-c, --config`
387
+
388
+ Path to the project config file. Defaults to `.mastra-project.json`.
389
+
390
+ #### `--env-file`
391
+
392
+ Path to the env file to bundle with the deploy (relative to the project directory). When set, disables the `.env.<name>` auto-selection based on `--env`.
393
+
394
+ ```bash
395
+ mastra deploy --env staging --env-file .env.staging.local
396
+ ```
397
+
398
+ #### `--region`
399
+
400
+ Region for a newly created environment (for example `eu`). Applied only when the CLI creates the environment.
401
+
402
+ #### `--skip-build`
403
+
404
+ Skip the build step and deploy the existing `.mastra/output` directory. The CLI warns if the existing build is stale relative to the current source.
405
+
406
+ #### `--skip-preflight`
407
+
408
+ Skip the pre-upload validation of the built output.
409
+
410
+ #### `--debug`
411
+
412
+ Enable debug logs during the build step.
413
+
414
+ ### CI/CD usage
415
+
416
+ Set `MASTRA_API_TOKEN`, `MASTRA_ORG_ID`, and `MASTRA_PROJECT_ID` as environment variables for headless deploys. Interactive prompts are skipped automatically when `MASTRA_API_TOKEN` is set. Combine with `--yes` to auto-accept environment creation.
417
+
418
+ ```bash
419
+ export MASTRA_API_TOKEN="..."
420
+ export MASTRA_ORG_ID="..."
421
+ export MASTRA_PROJECT_ID="..."
422
+ mastra deploy --env staging --yes
423
+ ```
424
+
425
+ ## `mastra env`
426
+
427
+ Manages environments on Mastra platform. Environments are deploy targets (for example `production`, `staging`, `preview-42`) that belong to a project. The current organization is resolved from stored credentials.
428
+
429
+ Every subcommand resolves its project in a fixed order. It first checks the `MASTRA_PROJECT_ID` environment variable and the `--project <name|slug|id>` flag. It then reads the `.mastra-project.json` file written by [`mastra deploy`](#mastra-deploy) in the current directory. Run from your project directory and you never need to name the project.
430
+
431
+ ### `mastra env list`
432
+
433
+ Lists environments for a project. Each environment shows its latest deploy (with an `(active)` marker when it's serving traffic) and the env var names injected by managed resources such as attached databases.
434
+
435
+ ```bash
436
+ mastra env list
437
+ ```
438
+
439
+ #### `--json`
440
+
441
+ Emit machine-readable JSON. Only non-sensitive metadata (id, name, slug, type, region, branch, URLs, managed env var names, and latest deploy status) is included so the output is safe to log in CI.
442
+
443
+ ### `mastra env create`
444
+
445
+ Creates a new environment for a project.
446
+
447
+ ```bash
448
+ mastra env create staging --type staging --region eu
449
+ ```
450
+
451
+ #### `-t, --type`
452
+
453
+ Environment type. One of `production`, `staging`, or `preview`. Defaults to `staging`.
454
+
455
+ #### `-r, --region`
456
+
457
+ Region for the environment (for example `eu`).
458
+
459
+ #### `--json`
460
+
461
+ Emit machine-readable JSON. Sensitive fields are omitted, as with [`mastra env list`](#mastra-env-list).
462
+
463
+ ### `mastra env delete`
464
+
465
+ Deletes an environment.
466
+
467
+ ```bash
468
+ mastra env delete <env>
469
+ ```
470
+
471
+ `<env>` can be an environment name, slug, or ID. The CLI prompts for confirmation unless `--yes` is passed.
472
+
473
+ #### `-y, --yes`
474
+
475
+ Skip the confirmation prompt.
476
+
477
+ ### `mastra env restart`
478
+
479
+ Restarts an environment's running service so saved env vars (including managed vars from attached databases) take effect immediately, without a new deploy.
480
+
481
+ ```bash
482
+ mastra env restart <env>
483
+ ```
484
+
485
+ `<env>` can be an environment name, slug, or ID. Fails with a conflict error if the environment has never been deployed.
486
+
487
+ ### `mastra env vars pull`
488
+
489
+ Pulls an environment's env vars into a local env file (default: `.env`). The file contains the merged set used by a deploy. It combines vars stored on the environment (for example, added in the dashboard's environment editor) with project-level vars. Project values win on conflict. Managed vars injected by attached databases are listed as comments (names only) since their values are platform-managed secrets.
490
+
491
+ ```bash
492
+ mastra env vars pull
493
+ mastra env vars pull <env> --output .env.staging
494
+ ```
495
+
496
+ `<env>` can be an environment name, slug, or ID, and can be omitted when the project has exactly one environment. The file is written with `0600` permissions. The command stops if the output file already exists. Pass `--force` to replace it.
497
+
498
+ #### `-o, --output`
499
+
500
+ File to write. Defaults to `.env`.
501
+
502
+ #### `-f, --force`
503
+
504
+ Replace an existing output file.
505
+
506
+ ### `mastra env db`
507
+
508
+ Manages databases attached to a project on Mastra platform. Databases are provisioned from a managed provider (for example Turso or Neon) and inject their connection env vars into deploys automatically.
509
+
510
+ A database is either **environment-scoped** (its env vars only go to one environment) or **shared** (project-scoped: its env vars go to all environments). Environment-scoped is the default for `mastra env db create`: pass an environment argument, or let the CLI pick or prompt for one. Pass `--shared` on create to attach a shared database instead. For other subcommands (`list`, `delete`, `keys`), pass the environment argument to work with environment-scoped databases and omit it for shared databases.
511
+
512
+ Creating and deleting databases requires the `admin` role in the organization.
513
+
514
+ ### `mastra env db list`
515
+
516
+ Lists databases attached to a project, including provider, provisioning status, scope (which environment each database feeds), and the env var names each database injects. Pass an environment to only show databases feeding that environment (environment-scoped plus shared).
517
+
518
+ ```bash
519
+ mastra env db list
520
+ mastra env db list <env>
521
+ ```
522
+
523
+ #### `--json`
524
+
525
+ Emit machine-readable JSON.
526
+
527
+ ### `mastra env db create`
528
+
529
+ Provisions and attaches a managed database, then polls until it's ready. Provisioning errors are printed with the provider's error detail.
530
+
531
+ By default the database is scoped to a single environment: pass an environment argument to pick it, or omit the argument to have the CLI pick for you. When the project has one environment, that environment is used. When it has several, the CLI prompts you to select one interactively; in non-interactive contexts (CI, `--json`) an environment argument is required. Pass `--shared` to attach a project-scoped database that's shared by every environment instead.
532
+
533
+ Environment-scoped databases inherit their provider region from the environment. Shared databases accept `--region`.
534
+
535
+ ```bash
536
+ mastra env db create --kind turso # picks or prompts for an environment
537
+ mastra env db create staging --kind turso # scoped to the "staging" environment
538
+ mastra env db create --kind turso --shared # shared by all environments
539
+ mastra env db create --kind neon --name my-app-db --region aws-us-east-1 --shared
540
+ ```
541
+
542
+ #### `--kind`
543
+
544
+ Database provider (required). One of `turso` or `neon`.
545
+
546
+ #### `--name`
547
+
548
+ Database name. Defaults to a name derived from the project slug (for example `my-app-db`).
549
+
550
+ #### `--region`
551
+
552
+ Provider region ID for shared databases. Ignored for environment-scoped databases.
553
+
554
+ #### `--shared`
555
+
556
+ Attach as a project-scoped database that's shared by every environment. Can't be combined with an environment argument.
557
+
558
+ #### `--no-wait`
559
+
560
+ Return immediately after the attach is queued instead of polling until the database is ready. Check progress later with `mastra env db show`.
561
+
562
+ #### `--json`
563
+
564
+ Emit machine-readable JSON. In this mode, an environment argument or `--shared` is required when the project has more than one environment (no interactive prompt).
565
+
566
+ ### `mastra env db show`
567
+
568
+ Shows database details and, once the database is ready, its connection env vars. Secret values are masked by default.
569
+
570
+ ```bash
571
+ mastra env db show <database>
572
+ ```
573
+
574
+ `<database>` can be a database ID or name.
575
+
576
+ #### `--show-secrets`
577
+
578
+ Print secret connection values instead of masking them.
579
+
580
+ #### `--json`
581
+
582
+ Emit machine-readable JSON. Secret values are masked unless `--show-secrets` is passed.
583
+
584
+ ### `mastra env db delete`
585
+
586
+ Permanently deletes a database with the provider, including all of its data. This can't be undone. The CLI prompts for confirmation unless `--yes` is passed. After deletion, deploys no longer receive the database's env vars.
587
+
588
+ ```bash
589
+ mastra env db delete <database>
590
+ ```
591
+
592
+ #### `-y, --yes`
593
+
594
+ Skip the confirmation prompt.
595
+
596
+ ### `mastra env deploys`
597
+
598
+ Lists deploys for a project, newest first. Deploys that are serving traffic are marked `(active)`.
599
+
600
+ ```bash
601
+ mastra env deploys [environment]
602
+ ```
603
+
604
+ Omit `[environment]` to show deploys across all environments; pass an environment name, slug, or ID to filter to one.
605
+
606
+ #### `--json`
607
+
608
+ Emit machine-readable JSON.
609
+
610
+ ## `mastra studio deploy`
611
+
612
+ > **Info:** `mastra studio deploy` continues to work but is superseded by [`mastra deploy`](#mastra-deploy), which supports environments (`--env staging`, `--env production`) on a single project. New setups should use `mastra deploy`.
613
+
614
+ Builds and deploys your project to Mastra platform. Requires authentication via [`mastra auth login`](#mastra-auth-login) or a `MASTRA_API_TOKEN` environment variable.
615
+
616
+ ```bash
617
+ mastra studio deploy
618
+ ```
619
+
620
+ The command runs `mastra build` and zips the output. It reads an env file from the project directory before uploading everything to the platform. After uploading, it polls the deploy status and streams build logs until the deploy reaches a terminal state.
621
+
622
+ The deploy command auto-loads the project's `.env` file. If `MASTRA_PROJECT_ID` points to a project that was provisioned for Observability, the deploy links to that project instead of creating a new one. Deploying Studio to an observability-only project converts it into a Studio project on the platform side.
623
+
624
+ The CLI requires at least one `.env` or `.env.*` file (excluding `.env.example`) in the project directory and fails with `Error: No env file found for deploy.` if none exists. When multiple env files are present, the CLI prompts you to pick one (defaulting to `.env.production`). Pass `--env-file` to choose explicitly. With `--yes` and multiple env files, you must pass `--env-file` or the deploy errors.
625
+
626
+ Organization and project are resolved in order from: Environment variable flag, `.mastra-project.json` config file, current org from credentials, and lastly interactive prompt. On first deploy, the CLI saves the resolved IDs to `.mastra-project.json` so subsequent deploys skip the prompts.
627
+
628
+ If `--project <value>` doesn't match an existing project (by ID or slug), the CLI treats `<value>` as a new project name and creates it after confirmation. Combined with `--yes`, this creates and deploys a new project in one non-interactive command:
629
+
630
+ ```bash
631
+ mastra studio deploy --project "my-new-project" --yes
632
+ ```
633
+
634
+ ### Arguments
635
+
636
+ #### `[dir]`
637
+
638
+ Project directory. Defaults to the current directory.
639
+
640
+ ### Flags
641
+
642
+ #### `--org`
643
+
644
+ Organization ID. Can also be set via the `MASTRA_ORG_ID` environment variable.
645
+
646
+ #### `--project`
647
+
648
+ Project ID or slug. Can also be set via the `MASTRA_PROJECT_ID` environment variable. If no project matches, the value is used as the name of a new project to create on deploy.
649
+
650
+ #### `-y, --yes`
651
+
652
+ Auto-accept defaults without confirmation prompts.
653
+
654
+ #### `-c, --config`
655
+
656
+ Path to the project config file. Defaults to `.mastra-project.json`.
657
+
658
+ #### `--env-file`
659
+
660
+ Path to the env file to bundle with the deploy (relative to the project directory). Use this to deploy the same project to multiple environments by pointing at different env files (for example `.env.staging`, `.env.production`).
661
+
662
+ ```bash
663
+ mastra studio deploy --env-file .env.staging --yes
664
+ ```
665
+
666
+ #### `--skip-build`
667
+
668
+ Skip the build step and deploy the existing `.mastra/output` directory.
669
+
670
+ #### `--debug`
671
+
672
+ Enable debug logs during the build step.
673
+
674
+ ### CI/CD usage
675
+
676
+ Set `MASTRA_API_TOKEN`, `MASTRA_ORG_ID`, and `MASTRA_PROJECT_ID` as environment variables for headless deploys. Interactive prompts are skipped automatically when `MASTRA_API_TOKEN` is set.
677
+
678
+ ### `mastra studio deploy list`
679
+
680
+ Lists all projects with their latest deploy status and URL.
681
+
682
+ ### `mastra studio deploy status`
683
+
684
+ Shows the status of a specific deploy.
685
+
686
+ ```bash
687
+ mastra studio deploy status <deploy-id>
688
+ ```
689
+
690
+ #### `--watch, -w`
691
+
692
+ Poll for status changes until the deploy reaches a terminal state.
693
+
694
+ ### `mastra studio deploy logs`
695
+
696
+ Shows logs for a specific deploy.
697
+
698
+ ```bash
699
+ mastra studio deploy logs <deploy-id>
700
+ ```
701
+
702
+ #### `--follow, -f`
703
+
704
+ Stream logs in real time.
705
+
706
+ #### `--tail`
707
+
708
+ Number of recent log lines to show.
709
+
710
+ ### `mastra studio deploy suggestions`
711
+
712
+ Shows diagnosis results and suggested fixes for a failed Studio deploy.
713
+
714
+ ```bash
715
+ mastra studio deploy suggestions [deploy-id]
716
+ ```
717
+
718
+ If you omit `deploy-id`, the command uses the latest deploy for the linked project. If a diagnosis doesn't exist yet, the command starts one and polls until results are ready. Suggestions appear only when the diagnosis finds a problem.
719
+
720
+ ### `mastra studio projects`
721
+
722
+ Lists all projects in the current organization.
723
+
724
+ ### `mastra studio projects create`
725
+
726
+ Creates a new project through an interactive prompt. This command doesn't accept a `--name` flag; for non-interactive project creation, use [`mastra studio deploy --project <name> --yes`](#mastra-studio-deploy) instead, which creates the project and deploys to it in one step.
727
+
728
+ ## `mastra server deploy`
729
+
730
+ > **Info:** `mastra server deploy` continues to work but is superseded by [`mastra deploy`](#mastra-deploy), which deploys a single project to multiple environments instead of separate Studio and Server commands. New setups should use `mastra deploy`.
731
+
732
+ Builds and deploys your project to Server on Mastra platform. Works the same as [`mastra studio deploy`](#mastra-studio-deploy) with the same flags, arguments, and resolution logic.
733
+
734
+ The deploy command auto-loads the project's `.env` file. If `MASTRA_PROJECT_ID` points to a project that was provisioned for Observability, the deploy links to that project instead of creating a new one. Deploying Server to an observability-only project converts it into a Server project on the platform side.
735
+
736
+ ```bash
737
+ mastra server deploy [dir]
738
+ ```
739
+
740
+ ### `mastra server deploy suggestions`
741
+
742
+ Shows diagnosis results and suggested fixes for a failed Server deploy.
743
+
744
+ ```bash
745
+ mastra server deploy suggestions [deploy-id]
746
+ ```
747
+
748
+ If you omit `deploy-id`, the command uses the latest deploy for the linked project. If a diagnosis doesn't exist yet, the command starts one and polls until results are ready. Suggestions appear only when the diagnosis finds a problem.
749
+
750
+ ## `mastra server pause`
751
+
752
+ Pauses the running server instance for the linked project. Organization and project resolution work the same as [`mastra server deploy`](#mastra-server-deploy).
753
+
754
+ ```bash
755
+ mastra server pause
756
+ ```
757
+
758
+ ### Flags
759
+
760
+ #### `--org`
761
+
762
+ Organization ID. Can also be set via the `MASTRA_ORG_ID` environment variable.
763
+
764
+ #### `--project`
765
+
766
+ Project ID or slug when `MASTRA_PROJECT_ID` isn't set. Slugs are resolved against projects in the current organization.
767
+
768
+ #### `-c, --config`
769
+
770
+ Path to the project config file. Defaults to `.mastra-project.json`.
771
+
772
+ Fails if the instance isn't running.
773
+
774
+ ## `mastra server restart`
775
+
776
+ Restarts a paused or stopped server instance for the linked project. After the platform accepts the restart, the CLI resolves the deploy id (from the API response or by polling project and deploy metadata when the response omits an id), then streams build and deploy logs the same way as [`mastra server deploy`](#mastra-server-deploy) until the deploy reaches a terminal state.
777
+
778
+ ### Flags
779
+
780
+ Same flags as [`mastra server pause`](#mastra-server-pause): **`--org`**, **`--project`**, and **`-c` / `--config`**, with the same defaults and behavior.
781
+
782
+ ```bash
783
+ mastra server restart
784
+ ```
785
+
786
+ Fails if a deployment is still active for this project (running, building, deploying, etc.). That's a platform restriction so you can't restart while another deploy is in progress.
787
+
788
+ ## `mastra server env`
789
+
790
+ Manages environment variables for the linked server deployment. Organization and project resolution work the same as [`mastra server deploy`](#mastra-server-deploy).
791
+
792
+ Every subcommand accepts `-c` / `--config` for the project config file path (defaults to `.mastra-project.json`).
793
+
794
+ ### `mastra server env list`
795
+
796
+ Lists all environment variables for the linked project. Values are partially masked in the output.
797
+
798
+ ### `mastra server env set`
799
+
800
+ Sets an environment variable. The CLI reads the current map, applies the change, and uploads the result.
801
+
802
+ ```bash
803
+ mastra server env set <key> <value>
804
+ ```
805
+
806
+ ### `mastra server env unset`
807
+
808
+ Removes an environment variable.
809
+
810
+ ```bash
811
+ mastra server env unset <key>
812
+ ```
813
+
814
+ ### `mastra server env import`
815
+
816
+ Imports variables from a file (for example a `.env` file) and merges them into the existing map. New values override keys that already exist on the server.
817
+
818
+ ```bash
819
+ mastra server env import <file>
820
+ ```
821
+
822
+ ### `mastra server env pull`
823
+
824
+ Downloads environment variables from the linked project and writes them to a local file. This is the inverse of [`mastra server env import`](#mastra-server-env-import).
825
+
826
+ ```bash
827
+ mastra server env pull [file]
828
+ ```
829
+
830
+ The file defaults to `.env` when no argument is given. All values are double-quoted and escaped for safe shell sourcing. Keys that aren't valid shell identifiers are skipped. The output file is created with restrictive permissions (`0600`) since it contains secrets.
831
+
832
+ #### `--project`
833
+
834
+ Project ID or slug. Overrides the linked project when `MASTRA_PROJECT_ID` isn't set.
835
+
836
+ #### CI usage
837
+
838
+ In a continuous-integration pipeline, authenticate with `MASTRA_API_TOKEN` and pull the environment before running your app:
839
+
840
+ ```bash
841
+ export MASTRA_API_TOKEN="..."
842
+ mastra server env pull .env.production --project my-project
843
+ ```
844
+
845
+ ## `mastra auth`
846
+
847
+ Manages authentication for Mastra platform. Credentials are stored in `~/.mastra/credentials.json`. You can also set the `MASTRA_API_TOKEN` environment variable as an alternative to interactive login.
848
+
849
+ ### `mastra auth login`
850
+
851
+ Opens a browser for login and stores the credentials locally.
852
+
853
+ ### `mastra auth logout`
854
+
855
+ Removes stored credentials. If `MASTRA_API_TOKEN` is still set in the environment, the CLI warns that it will continue to be used.
856
+
857
+ ### `mastra auth whoami`
858
+
859
+ Shows the current user email, user ID, and active organization.
860
+
861
+ ### `mastra auth orgs`
862
+
863
+ Lists all organizations with your role in each. The current organization is marked.
864
+
865
+ #### `mastra auth orgs switch`
866
+
867
+ Switches the active organization through an interactive prompt. Can't be used when `MASTRA_API_TOKEN` or `MASTRA_ORG_ID` environment variables are set.
868
+
869
+ ### `mastra auth tokens`
870
+
871
+ Lists all API tokens with their last-used date.
872
+
873
+ #### `mastra auth tokens create`
874
+
875
+ Creates a new API token. The secret is displayed once and can't be retrieved again.
876
+
877
+ ```bash
878
+ mastra auth tokens create <name>
879
+ ```
880
+
881
+ #### `mastra auth tokens revoke`
882
+
883
+ Revokes an API token.
884
+
885
+ ```bash
886
+ mastra auth tokens revoke <token-id>
887
+ ```
888
+
889
+ ## `mastra lint`
890
+
891
+ The `mastra lint` command validates the structure and code of your Mastra project.
892
+
893
+ By default, `mastra lint` runs project checks against your source files and configuration. Use `--preflight` to also run bundle checks against `.mastra/output` before deployment.
894
+
895
+ ```bash
896
+ mastra lint --preflight
897
+ ```
898
+
899
+ It accepts [common flags](#common-flags).
900
+
901
+ ### Flags
902
+
903
+ #### `--preflight`
904
+
905
+ Runs deployment preflight checks against the built Mastra output. This builds the project before checking it unless you also pass `--skip-build`.
906
+
907
+ #### `--skip-build`
908
+
909
+ Skips the build step and reuses the existing `.mastra/output` directory. This flag only applies when `--preflight` is set.
910
+
911
+ #### `--env-file <file>`
912
+
913
+ Uses the specified environment file for preflight validation. This flag only applies when `--preflight` is set.
914
+
915
+ #### `--strict`
916
+
917
+ Treats warnings as errors.
918
+
919
+ #### `--json`
920
+
921
+ Emits machine-readable JSON output.
922
+
923
+ #### `--debug`
924
+
925
+ Enables debug logs.
926
+
927
+ ## `mastra scorers`
928
+
929
+ The `mastra scorers` command provides management capabilities for evaluation scorers that measure the quality, accuracy, and performance of AI-generated outputs.
930
+
931
+ Read the [Scorers overview](https://mastra.ai/docs/evals/overview) to learn more.
932
+
933
+ ### `add`
934
+
935
+ Add a new scorer to your project. You can use an interactive prompt:
936
+
937
+ ```bash
938
+ mastra scorers add
939
+ ```
940
+
941
+ Or provide a scorer name directly:
942
+
943
+ ```bash
944
+ mastra scorers add answer-relevancy
945
+ ```
946
+
947
+ Use the [`list`](#list) command to get the correct ID.
948
+
949
+ ### `list`
950
+
951
+ List all available scorer templates. Use the ID for the `add` command.
952
+
953
+ ## `mastra create`
954
+
955
+ Create a standalone Mastra project with the same project-creation flow as [`create-mastra`](https://mastra.ai/reference/cli/create-mastra).
956
+
957
+ **npm**:
958
+
959
+ ```bash
960
+ npx mastra@latest create
961
+ ```
962
+
963
+ **pnpm**:
964
+
965
+ ```bash
966
+ pnpm dlx mastra@latest create
967
+ ```
968
+
969
+ **Yarn**:
970
+
971
+ ```bash
972
+ yarn dlx mastra@latest create
973
+ ```
974
+
975
+ **Bun**:
976
+
977
+ ```bash
978
+ bun x mastra@latest create
979
+ ```
980
+
981
+ Providing both the project name and `--llm` skips the interactive setup prompts. Use `--template [template]` for an arbitrary template or `--empty` for a minimal provider-free scaffold.
982
+
983
+ The command installs Mastra skills for detected coding assistants and initializes Git when appropriate. Use `--no-skills` or `--no-git` to opt out.
984
+
985
+ See the [`create-mastra` reference](https://mastra.ai/reference/cli/create-mastra) for mode behavior, conflicts, validation, and complete flag descriptions.
986
+
987
+ ## `mastra init`
988
+
989
+ The `mastra init` command initializes Mastra in an existing project. Use this command to scaffold the necessary folders and configuration without generating a new project from scratch.
990
+
991
+ ### Flags
992
+
993
+ The command accepts the following additional flags:
994
+
995
+ #### `--default`
996
+
997
+ Creates files inside `src` using OpenAI. It also populates the `src/mastra` folders with example code.
998
+
999
+ #### `--dir`
1000
+
1001
+ The directory where Mastra files should be saved to. Defaults to `src`.
1002
+
1003
+ #### `--components`
1004
+
1005
+ Comma-separated list of components to add. For each component a new folder will be created. Choose from: `"agents" | "tools" | "workflows" | "scorers"`. Defaults to `['agents', 'tools', 'workflows']`.
1006
+
1007
+ #### `--llm`
1008
+
1009
+ Default model provider. Choose from: `"openai" | "anthropic" | "groq" | "google" | "cerebras" | "mistral"`.
1010
+
1011
+ #### `--llm-api-key`
1012
+
1013
+ The API key for your chosen model provider. Will be written to an environment variables file (`.env`).
1014
+
1015
+ #### `--example`
1016
+
1017
+ If enabled, example code is written to the list of components (e.g. example agent code).
1018
+
1019
+ #### `--no-example`
1020
+
1021
+ Don't include example code. Useful when using the `--default` flag.
1022
+
1023
+ #### `--mcp`
1024
+
1025
+ Configure your code editor with Mastra's MCP server. Choose from: `"cursor" | "cursor-global" | "windsurf" | "vscode"`.
1026
+
1027
+ #### `--observability`
1028
+
1029
+ Enable Observability on the Mastra platform. The CLI prompts you to select an existing platform project or create a new one. It then writes the required environment variables and configures the observability exporters.
1030
+
1031
+ #### `--no-observability`
1032
+
1033
+ Skip the Mastra Observability prompt.
1034
+
1035
+ #### `--observability-project`
1036
+
1037
+ Set the platform project name to use when Mastra Observability is enabled.
1038
+
1039
+ ## `mastra migrate`
1040
+
1041
+ Runs database migrations to update your storage schema. This command is useful when upgrading Mastra versions that include storage schema changes.
1042
+
1043
+ The command bundles your project and connects to your configured storage backend. It then executes any pending migrations. Currently supports:
1044
+
1045
+ - **Duplicate spans migration**: Removes duplicate `(traceId, spanId)` entries and adds a unique constraint to ensure data integrity.
1046
+ - **ClickHouse legacy-to-vNext span migration**: Copies historical spans from the legacy `mastra_ai_spans` table to the vNext `mastra_span_events` schema. Runs in batches to stay within memory limits. See the [ClickHouse storage reference](https://mastra.ai/reference/storage/clickhouse) for details.
1047
+
1048
+ ```bash
1049
+ mastra migrate
1050
+ ```
1051
+
1052
+ See the [Storage migration guide](https://mastra.ai/guides/migrations/upgrade-to-v1/storage) for details on when migrations are needed.
1053
+
1054
+ It accepts [common flags](#common-flags).
1055
+
1056
+ ## `mastra api`
1057
+
1058
+ Calls a Mastra runtime server with JSON input and JSON output. Use it for local development servers, deployed Mastra platform projects, self-hosted Mastra servers, or hosted Mastra Platform Observability APIs.
1059
+
1060
+ ```bash
1061
+ mastra api agent list
1062
+ mastra api agent run weather-agent '{"messages":"What is the weather in London?"}'
1063
+ mastra api tool execute get-weather '{"location":"San Francisco"}'
1064
+ mastra api trace list '{"page":0,"perPage":20}'
1065
+ ```
1066
+
1067
+ Use `mastra api <resource> <action> --help` to see examples for a command.
1068
+
1069
+ ### Output
1070
+
1071
+ Success responses are written to `stdout` as JSON. Single-resource commands return:
1072
+
1073
+ ```json
1074
+ { "data": {} }
1075
+ ```
1076
+
1077
+ List commands return a `data` array and pagination metadata:
1078
+
1079
+ ```json
1080
+ { "data": [], "page": { "total": 0, "page": 0, "perPage": 0, "hasMore": false } }
1081
+ ```
1082
+
1083
+ Errors are written to `stderr` as JSON and return a non-zero exit code:
1084
+
1085
+ ```json
1086
+ {
1087
+ "error": {
1088
+ "code": "SERVER_UNREACHABLE",
1089
+ "message": "Could not connect to target server",
1090
+ "details": {}
1091
+ }
1092
+ }
1093
+ ```
1094
+
1095
+ ### Target resolution
1096
+
1097
+ For runtime commands, the command resolves the target server in this order:
1098
+
1099
+ 1. `--url <url>` for an explicit remote or self-hosted server.
1100
+ 2. `http://localhost:4111` for a local `mastra dev` server.
1101
+ 3. `.mastra-project.json` for a Mastra platform project.
1102
+
1103
+ Automatic platform auth is only used when the CLI resolves a Mastra platform target from `.mastra-project.json`. Localhost targets and explicit `--url` targets don't receive automatic credentials. Headers passed with `--header` are sent to any target, including localhost.
1104
+
1105
+ For observability commands (`trace`, `log`, `score`, and `metric`), the CLI targets `https://observability.mastra.ai` by default instead of a project deployment URL. Trace Intelligence commands (`learning`) work the same way but target `https://output.signals.mastra.ai`. Both resolve credentials in this order:
1106
+
1107
+ 1. Explicit `Authorization` and `X-Mastra-Project-Id` headers passed with `--header`.
1108
+ 2. `MASTRA_PLATFORM_ACCESS_TOKEN` and `MASTRA_PROJECT_ID` from your environment.
1109
+ 3. Project metadata from `.mastra-project.json` for the project ID.
1110
+ 4. Your Mastra CLI login token as an auth fallback.
1111
+
1112
+ Learning commands also send `X-Mastra-Organization-Id`, resolved from an explicit `--header`, `MASTRA_ORGANIZATION_ID` in your environment, or `.mastra-project.json`, in that order.
1113
+
1114
+ Use `--url` and `--header` when you need to override the default hosted observability target or credentials.
1115
+
1116
+ ### Flags
1117
+
1118
+ #### `--url <url>`
1119
+
1120
+ Target a specific Mastra server URL.
1121
+
1122
+ ```bash
1123
+ mastra api --url https://example.com agent list
1124
+ ```
1125
+
1126
+ #### `--server-api-prefix <prefix>`
1127
+
1128
+ Set the API route prefix of the target server. Defaults to `/api`. Use this when the server is mounted under a custom prefix (for example a `@mastra/fastify` `MastraServer` with `prefix: "/api/mastra-studio"`), the same way `mastra studio` accepts `--server-api-prefix`. You can also set the `MASTRA_API_PREFIX` environment variable instead of passing the flag.
1129
+
1130
+ ```bash
1131
+ mastra api --url https://example.com --server-api-prefix /api/mastra-studio agent list
1132
+ ```
1133
+
1134
+ #### `--header <"Key: Value">`
1135
+
1136
+ Send a custom HTTP header. Repeat the flag to send multiple headers.
1137
+
1138
+ ```bash
1139
+ mastra api --url https://example.com --header "Authorization: Bearer $TOKEN" agent list
1140
+ ```
1141
+
1142
+ #### `--timeout <ms>`
1143
+
1144
+ Set the request timeout in milliseconds. Defaults to `30000`. Workflow run start and resume commands default to `120000`.
1145
+
1146
+ #### `--pretty`
1147
+
1148
+ Pretty-print JSON output. Defaults to `false`.
1149
+
1150
+ #### `--schema`
1151
+
1152
+ Print the CLI-oriented request schema for a command that accepts JSON input. The schema comes from the target server's route contracts and includes the command shape, positionals, examples, request schemas, and response shape.
1153
+
1154
+ `--schema` is available on leaf commands that accept JSON input. It isn't available as a top-level `mastra api` flag.
1155
+
1156
+ ```bash
1157
+ mastra api agent run --schema
1158
+ mastra api tool execute --schema
1159
+ ```
1160
+
1161
+ ### Input model
1162
+
1163
+ Commands that accept input take one inline JSON argument. Don't pass file paths or stdin.
1164
+
1165
+ ```bash
1166
+ mastra api workflow run start data-pipeline '{"inputData":{"source":"s3://bucket/data.csv"}}'
1167
+ ```
1168
+
1169
+ Use positional arguments for stable IDs and JSON for filters or payloads. For routes that require both query parameters and a request body, pass one JSON object. The CLI splits the input according to the server route schema.
1170
+
1171
+ ```bash
1172
+ mastra api thread create '{"agentId":"weather-agent","resourceId":"user_123","threadId":"thread_abc123","title":"Support conversation"}'
1173
+ ```
1174
+
1175
+ List commands accept `page` and `perPage` in the JSON input when the target route supports pagination:
1176
+
1177
+ ```bash
1178
+ mastra api score list '{"page":0,"perPage":50}'
1179
+ mastra api trace list '{"page":0,"perPage":20}'
1180
+ ```
1181
+
1182
+ Routes that support filters accept them in the same JSON input. For example, observability trace listing supports pagination and route-supported filters:
1183
+
1184
+ ```bash
1185
+ mastra api trace list '{"page":0,"perPage":20,"filters":{"spanType":"agent"}}'
1186
+ ```
1187
+
1188
+ ### Get command-specific help
1189
+
1190
+ Each `mastra api` leaf command includes command-specific examples in its help output. Use `--help` on the exact command you want to call:
1191
+
1192
+ ```bash
1193
+ mastra api agent run --help
1194
+ mastra api tool execute --help
1195
+ mastra api memory current update --help
1196
+ mastra api workflow run resume --help
1197
+ ```
1198
+
1199
+ Use `--schema` on commands that accept JSON input to inspect the request shape returned by the target server:
1200
+
1201
+ ```bash
1202
+ mastra api agent run --schema
1203
+ mastra api thread create --schema
1204
+ mastra api score create --schema
1205
+ ```
1206
+
1207
+ Some commands have important runtime requirements. For example, `mastra api memory current update` requires working memory to be enabled for the memory instance, and `mastra api workflow run resume` only works for suspended workflow runs.
1208
+
1209
+ ### Commands
1210
+
1211
+ #### `mastra api agent list`
1212
+
1213
+ Lists the agents registered on the target server. Pass optional JSON input for route-supported filters.
1214
+
1215
+ ```bash
1216
+ mastra api agent list [input]
1217
+ ```
1218
+
1219
+ #### `mastra api agent get`
1220
+
1221
+ Gets metadata for one registered agent.
1222
+
1223
+ ```bash
1224
+ mastra api agent get <agentId>
1225
+ ```
1226
+
1227
+ #### `mastra api agent run`
1228
+
1229
+ Runs an agent with JSON input. Use command help to see examples for text prompts, chat messages, and memory thread options.
1230
+
1231
+ ```bash
1232
+ mastra api agent run <agentId> <input>
1233
+ ```
1234
+
1235
+ #### `mastra api workflow list`
1236
+
1237
+ Lists workflows registered on the target server. Pass optional JSON input for route-supported filters.
1238
+
1239
+ ```bash
1240
+ mastra api workflow list [input]
1241
+ ```
1242
+
1243
+ #### `mastra api workflow get`
1244
+
1245
+ Gets metadata for one registered workflow.
1246
+
1247
+ ```bash
1248
+ mastra api workflow get <workflowId>
1249
+ ```
1250
+
1251
+ #### `mastra api workflow run start`
1252
+
1253
+ Starts a workflow run with JSON input. Workflow start commands use a longer default timeout than most commands because runs can take longer to complete.
1254
+
1255
+ ```bash
1256
+ mastra api workflow run start <workflowId> <input>
1257
+ ```
1258
+
1259
+ #### `mastra api workflow run list`
1260
+
1261
+ Lists runs for a workflow. Pass optional JSON input for route-supported filters or pagination.
1262
+
1263
+ ```bash
1264
+ mastra api workflow run list <workflowId> [input]
1265
+ ```
1266
+
1267
+ #### `mastra api workflow run get`
1268
+
1269
+ Gets one workflow run by ID.
1270
+
1271
+ ```bash
1272
+ mastra api workflow run get <workflowId> <runId>
1273
+ ```
1274
+
1275
+ #### `mastra api workflow run resume`
1276
+
1277
+ Resumes a suspended workflow run with JSON input. The run must be in a suspended state.
1278
+
1279
+ ```bash
1280
+ mastra api workflow run resume <workflowId> <runId> <input>
1281
+ ```
1282
+
1283
+ #### `mastra api workflow run cancel`
1284
+
1285
+ Cancels a workflow run.
1286
+
1287
+ ```bash
1288
+ mastra api workflow run cancel <workflowId> <runId>
1289
+ ```
1290
+
1291
+ #### `mastra api tool list`
1292
+
1293
+ Lists tools registered on the target server. Pass optional JSON input for route-supported filters.
1294
+
1295
+ ```bash
1296
+ mastra api tool list [input]
1297
+ ```
1298
+
1299
+ #### `mastra api tool get`
1300
+
1301
+ Gets metadata and schemas for one tool.
1302
+
1303
+ ```bash
1304
+ mastra api tool get <toolId>
1305
+ ```
1306
+
1307
+ #### `mastra api tool execute`
1308
+
1309
+ Executes a tool with JSON input. Raw tool input is wrapped as the route `data` field unless you pass an explicit `data` object.
1310
+
1311
+ ```bash
1312
+ mastra api tool execute <toolId> <input>
1313
+ ```
1314
+
1315
+ #### `mastra api mcp list`
1316
+
1317
+ Lists Model Context Protocol (MCP) servers registered on the target server. Pass optional JSON input for route-supported filters.
1318
+
1319
+ ```bash
1320
+ mastra api mcp list [input]
1321
+ ```
1322
+
1323
+ #### `mastra api mcp get`
1324
+
1325
+ Gets metadata for one MCP server.
1326
+
1327
+ ```bash
1328
+ mastra api mcp get <id>
1329
+ ```
1330
+
1331
+ #### `mastra api mcp tool list`
1332
+
1333
+ Lists tools exposed by an MCP server. Pass optional JSON input for route-supported filters.
1334
+
1335
+ ```bash
1336
+ mastra api mcp tool list <serverId> [input]
1337
+ ```
1338
+
1339
+ #### `mastra api mcp tool get`
1340
+
1341
+ Gets metadata and schemas for one MCP tool.
1342
+
1343
+ ```bash
1344
+ mastra api mcp tool get <serverId> <toolId>
1345
+ ```
1346
+
1347
+ #### `mastra api mcp tool execute`
1348
+
1349
+ Executes an MCP tool with JSON input. Raw tool input is wrapped as the route `data` field unless you pass an explicit `data` object.
1350
+
1351
+ ```bash
1352
+ mastra api mcp tool execute <serverId> <toolId> <input>
1353
+ ```
1354
+
1355
+ #### `mastra api thread list`
1356
+
1357
+ Lists memory threads. Pass optional JSON input for route-supported filters.
1358
+
1359
+ ```bash
1360
+ mastra api thread list [input]
1361
+ ```
1362
+
1363
+ #### `mastra api thread get`
1364
+
1365
+ Gets one memory thread by ID.
1366
+
1367
+ ```bash
1368
+ mastra api thread get <threadId>
1369
+ ```
1370
+
1371
+ #### `mastra api thread create`
1372
+
1373
+ Creates a memory thread. Pass one JSON input object; the CLI splits fields such as `agentId` into query parameters when required by the server route.
1374
+
1375
+ ```bash
1376
+ mastra api thread create <input>
1377
+ ```
1378
+
1379
+ #### `mastra api thread update`
1380
+
1381
+ Updates a memory thread. Pass one JSON input object for fields such as `agentId`, `resourceId`, `title`, or `metadata`.
1382
+
1383
+ ```bash
1384
+ mastra api thread update <threadId> <input>
1385
+ ```
1386
+
1387
+ #### `mastra api thread delete`
1388
+
1389
+ Deletes a memory thread. Pass JSON input for route-required query parameters such as `agentId` and `resourceId`.
1390
+
1391
+ ```bash
1392
+ mastra api thread delete <threadId> <input>
1393
+ ```
1394
+
1395
+ #### `mastra api thread messages`
1396
+
1397
+ Lists messages for a memory thread. Pass optional JSON input for route-supported filters or pagination.
1398
+
1399
+ ```bash
1400
+ mastra api thread messages <threadId> [input]
1401
+ ```
1402
+
1403
+ #### `mastra api memory search`
1404
+
1405
+ Searches long-term memory. Use `--help` or `--schema` to inspect required fields such as `agentId`, `resourceId`, and `searchQuery`.
1406
+
1407
+ ```bash
1408
+ mastra api memory search <input>
1409
+ ```
1410
+
1411
+ #### `mastra api memory current get`
1412
+
1413
+ Reads current working memory for a thread.
1414
+
1415
+ ```bash
1416
+ mastra api memory current get <input>
1417
+ ```
1418
+
1419
+ #### `mastra api memory current update`
1420
+
1421
+ Updates current working memory for a thread. Working memory must be enabled for the memory instance.
1422
+
1423
+ ```bash
1424
+ mastra api memory current update <input>
1425
+ ```
1426
+
1427
+ #### `mastra api memory status`
1428
+
1429
+ Gets memory status for an agent and optional thread or resource context.
1430
+
1431
+ ```bash
1432
+ mastra api memory status <input>
1433
+ ```
1434
+
1435
+ #### `mastra api trace list`
1436
+
1437
+ Lists observability traces. Pass optional JSON input for route-supported filters or pagination.
1438
+
1439
+ ```bash
1440
+ mastra api trace list [input]
1441
+ mastra api trace list '{"page":0,"perPage":20}'
1442
+ mastra api trace list '{"page":0,"perPage":20}' --verbose
1443
+ ```
1444
+
1445
+ `trace list` returns lightweight root span records by default so you can page through traces without fetching large input, output, attributes, or metadata payloads. Pass `--verbose` to fetch the full root span records.
1446
+
1447
+ #### `mastra api trace get`
1448
+
1449
+ Gets a lightweight timeline for one observability trace without fetching full span input, output, attributes, or metadata payloads. Pass `--verbose` to fetch the full trace payload.
1450
+
1451
+ ```bash
1452
+ mastra api trace get <traceId>
1453
+ mastra api trace get <traceId> --verbose
1454
+ ```
1455
+
1456
+ #### `mastra api trace span`
1457
+
1458
+ Gets one full span from an observability trace. Use this after `trace get` when you know which span you need to inspect.
1459
+
1460
+ ```bash
1461
+ mastra api trace span <traceId> <spanId>
1462
+ ```
1463
+
1464
+ #### `mastra api log list`
1465
+
1466
+ Lists observability logs. Pass optional JSON input for route-supported filters or pagination.
1467
+
1468
+ ```bash
1469
+ mastra api log list [input]
1470
+ ```
1471
+
1472
+ #### `mastra api metric aggregate`
1473
+
1474
+ Gets a single aggregate metric value.
1475
+
1476
+ ```bash
1477
+ mastra api metric aggregate '{"name":["latency_ms"],"aggregation":"avg"}'
1478
+ ```
1479
+
1480
+ #### `mastra api metric breakdown`
1481
+
1482
+ Gets metric values grouped by a label or field.
1483
+
1484
+ ```bash
1485
+ mastra api metric breakdown '{"name":["latency_ms"],"aggregation":"avg","groupBy":["model"],"limit":10}'
1486
+ ```
1487
+
1488
+ #### `mastra api metric timeseries`
1489
+
1490
+ Gets metric values over time.
1491
+
1492
+ ```bash
1493
+ mastra api metric timeseries '{"name":["latency_ms"],"aggregation":"avg","interval":"1h"}'
1494
+ ```
1495
+
1496
+ #### `mastra api metric percentiles`
1497
+
1498
+ Gets metric percentile values over time. Percentile values use decimals from `0` to `1`.
1499
+
1500
+ ```bash
1501
+ mastra api metric percentiles '{"name":"latency_ms","percentiles":[0.5,0.95,0.99],"interval":"1h"}'
1502
+ ```
1503
+
1504
+ #### `mastra api metric names`
1505
+
1506
+ Lists discovered metric names. Pass optional JSON input for prefix search and limit.
1507
+
1508
+ ```bash
1509
+ mastra api metric names '{"prefix":"lat","limit":10}'
1510
+ ```
1511
+
1512
+ #### `mastra api metric label-keys`
1513
+
1514
+ Lists label keys for a metric.
1515
+
1516
+ ```bash
1517
+ mastra api metric label-keys '{"metricName":"latency_ms"}'
1518
+ ```
1519
+
1520
+ #### `mastra api metric label-values`
1521
+
1522
+ Lists label values for a metric label key. Pass optional prefix and limit values to narrow the result.
1523
+
1524
+ ```bash
1525
+ mastra api metric label-values '{"metricName":"latency_ms","labelKey":"model","prefix":"g","limit":10}'
1526
+ ```
1527
+
1528
+ #### Observability with `curl`
1529
+
1530
+ You can call the hosted observability API directly with your platform access token and project ID:
1531
+
1532
+ ```bash
1533
+ curl -sS "https://observability.mastra.ai/api/observability/traces?page=0&perPage=20" \
1534
+ -H "Authorization: Bearer $MASTRA_PLATFORM_ACCESS_TOKEN" \
1535
+ -H "X-Mastra-Project-Id: $MASTRA_PROJECT_ID" | jq
1536
+ ```
1537
+
1538
+ Get a lightweight trace timeline:
1539
+
1540
+ ```bash
1541
+ curl -sS "https://observability.mastra.ai/api/observability/traces/<trace-id>/light" \
1542
+ -H "Authorization: Bearer $MASTRA_PLATFORM_ACCESS_TOKEN" \
1543
+ -H "X-Mastra-Project-Id: $MASTRA_PROJECT_ID" | jq
1544
+ ```
1545
+
1546
+ Get a specific span:
1547
+
1548
+ ```bash
1549
+ curl -sS "https://observability.mastra.ai/api/observability/traces/<trace-id>/spans/<span-id>" \
1550
+ -H "Authorization: Bearer $MASTRA_PLATFORM_ACCESS_TOKEN" \
1551
+ -H "X-Mastra-Project-Id: $MASTRA_PROJECT_ID" | jq
1552
+ ```
1553
+
1554
+ #### `mastra api score create`
1555
+
1556
+ Creates an observability score. The input uses the server score body shape. Inspect it with `--schema`.
1557
+
1558
+ ```bash
1559
+ mastra api score create <input>
1560
+ ```
1561
+
1562
+ #### `mastra api score list`
1563
+
1564
+ Lists observability scores. Pass optional JSON input for filters such as run ID or pagination.
1565
+
1566
+ ```bash
1567
+ mastra api score list [input]
1568
+ ```
1569
+
1570
+ #### `mastra api score get`
1571
+
1572
+ Gets one observability score by ID.
1573
+
1574
+ ```bash
1575
+ mastra api score get <scoreId>
1576
+ ```
1577
+
1578
+ #### `mastra api dataset list`
1579
+
1580
+ Lists datasets. Pass optional JSON input for route-supported filters or pagination.
1581
+
1582
+ ```bash
1583
+ mastra api dataset list [input]
1584
+ ```
1585
+
1586
+ #### `mastra api dataset get`
1587
+
1588
+ Gets one dataset by ID.
1589
+
1590
+ ```bash
1591
+ mastra api dataset get <datasetId>
1592
+ ```
1593
+
1594
+ #### `mastra api dataset create`
1595
+
1596
+ Creates a dataset with JSON input.
1597
+
1598
+ ```bash
1599
+ mastra api dataset create <input>
1600
+ ```
1601
+
1602
+ #### `mastra api dataset items`
1603
+
1604
+ Lists items in a dataset. Pass optional JSON input for route-supported filters or pagination.
1605
+
1606
+ ```bash
1607
+ mastra api dataset items <datasetId> [input]
1608
+ ```
1609
+
1610
+ #### `mastra api experiment list`
1611
+
1612
+ Lists experiments for a dataset. Pass optional JSON input for route-supported filters or pagination.
1613
+
1614
+ ```bash
1615
+ mastra api experiment list <datasetId> [input]
1616
+ ```
1617
+
1618
+ #### `mastra api experiment get`
1619
+
1620
+ Gets one experiment by ID.
1621
+
1622
+ ```bash
1623
+ mastra api experiment get <datasetId> <experimentId>
1624
+ ```
1625
+
1626
+ #### `mastra api experiment run`
1627
+
1628
+ Starts an experiment for a dataset with JSON input.
1629
+
1630
+ ```bash
1631
+ mastra api experiment run <datasetId> <input>
1632
+ ```
1633
+
1634
+ #### `mastra api experiment results`
1635
+
1636
+ Lists results for an experiment. Pass optional JSON input for route-supported filters or pagination.
1637
+
1638
+ ```bash
1639
+ mastra api experiment results <datasetId> <experimentId> [input]
1640
+ ```
1641
+
1642
+ #### `mastra api learning entities`
1643
+
1644
+ Lists entities (agents) with Trace Intelligence output, including which trace signals are available per entity. Requires enrollment in the Trace Intelligence private beta.
1645
+
1646
+ ```bash
1647
+ mastra api learning entities '{"entityType":"agent"}'
1648
+ ```
1649
+
1650
+ #### `mastra api learning snapshots`
1651
+
1652
+ Lists analysis snapshots for an entity and an ordered, comma-separated list of trace signals. Later commands need a `snapshotId` from this list.
1653
+
1654
+ ```bash
1655
+ mastra api learning snapshots <entityId> '{"entityType":"agent","signalNames":"goal,outcome,behavior,sentiment","limit":10}'
1656
+ ```
1657
+
1658
+ #### `mastra api learning flow`
1659
+
1660
+ Gets the cross-signal theme flow for one snapshot: stages and links for a Sankey-style view where counts are distinct traces.
1661
+
1662
+ ```bash
1663
+ mastra api learning flow <entityId> '{"entityType":"agent","signalNames":"goal,outcome","snapshotId":"<snapshotId>"}'
1664
+ ```
1665
+
1666
+ #### `mastra api learning paths`
1667
+
1668
+ Gets per-trace theme assignments across the ordered trace signals in one snapshot. Paginate with `limit` and `offset`.
1669
+
1670
+ ```bash
1671
+ mastra api learning paths <entityId> '{"entityType":"agent","signalNames":"goal,outcome","snapshotId":"<snapshotId>","limit":100}'
1672
+ ```
1673
+
1674
+ #### `mastra api learning theme list`
1675
+
1676
+ Lists themes for one trace signal in one snapshot.
1677
+
1678
+ ```bash
1679
+ mastra api learning theme list <entityId> '{"entityType":"agent","signalName":"goal","snapshotId":"<snapshotId>"}'
1680
+ ```
1681
+
1682
+ #### `mastra api learning theme get`
1683
+
1684
+ Gets one theme in one snapshot by its numeric theme ID.
1685
+
1686
+ ```bash
1687
+ mastra api learning theme get <entityId> <themeId> '{"entityType":"agent","signalName":"goal","snapshotId":"<snapshotId>"}'
1688
+ ```
1689
+
1690
+ #### `mastra api learning theme examples`
1691
+
1692
+ Lists trace examples for one theme in one snapshot. Paginate with `limit` and `offset`.
1693
+
1694
+ ```bash
1695
+ mastra api learning theme examples <entityId> <themeId> '{"entityType":"agent","signalName":"goal","snapshotId":"<snapshotId>","limit":10}'
1696
+ ```
1697
+
1698
+ #### `mastra api learning theme history`
1699
+
1700
+ Gets the lifecycle history for one durable theme across snapshots, including split and merge relationships. Takes no `snapshotId`.
1701
+
1702
+ ```bash
1703
+ mastra api learning theme history <entityId> <themeId> '{"entityType":"agent","signalName":"goal"}'
1704
+ ```
1705
+
1706
+ #### `mastra api learning noise get`
1707
+
1708
+ Gets the unclustered (noise) bucket for one trace signal in one snapshot.
1709
+
1710
+ ```bash
1711
+ mastra api learning noise get <entityId> '{"entityType":"agent","signalName":"goal","snapshotId":"<snapshotId>"}'
1712
+ ```
1713
+
1714
+ #### `mastra api learning noise examples`
1715
+
1716
+ Lists trace examples for the noise bucket in one snapshot. Paginate with `limit` and `offset`.
1717
+
1718
+ ```bash
1719
+ mastra api learning noise examples <entityId> '{"entityType":"agent","signalName":"goal","snapshotId":"<snapshotId>","limit":10}'
1720
+ ```
1721
+
1722
+ ## Common flags
1723
+
1724
+ ### `--dir`
1725
+
1726
+ **Available in:** `dev`, `build`, `lint`, `migrate`
1727
+
1728
+ The path to your Mastra folder. Defaults to `src/mastra`.
1729
+
1730
+ ### `--debug`
1731
+
1732
+ **Available in:** `dev`, `build`, `migrate`
1733
+
1734
+ Enable verbose logging for Mastra's internals. Defaults to `false`.
1735
+
1736
+ ### `--env`
1737
+
1738
+ **Available in:** `dev`, `start`, `studio`, `migrate`
1739
+
1740
+ Custom environment variables file to include. By default, includes `.env.development`, `.env.local`, and `.env`.
1741
+
1742
+ ### `--root`
1743
+
1744
+ **Available in:** `dev`, `build`, `lint`, `migrate`
1745
+
1746
+ Path to your root folder. Defaults to `process.cwd()`.
1747
+
1748
+ ### `--tools`
1749
+
1750
+ **Available in:** `dev`, `build`, `lint`
1751
+
1752
+ Comma-separated list of tool paths to include. Defaults to `src/mastra/tools`.
1753
+
1754
+ ## Global flags
1755
+
1756
+ Use these flags to get information about the `mastra` CLI.
1757
+
1758
+ ### `--version`
1759
+
1760
+ Prints the Mastra CLI version and exits.
1761
+
1762
+ ### `--help`
1763
+
1764
+ Prints help message and exits.
1765
+
1766
+ ## Telemetry
1767
+
1768
+ By default, Mastra collects anonymous information about your project like your OS, Mastra version or Node.js version. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/cli/src/analytics/index.ts) to check what's collected.
1769
+
1770
+ When a server started with `mastra dev` or `mastra start` has observability metrics enabled, Mastra also sends anonymous, aggregated model usage at startup: input and output token counts per provider and model, plus the command (`dev` or `start`) and `NODE_ENV`. No prompts, responses, or other message content is ever sent. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/telemetry/usage-telemetry.ts) to check what's collected.
1771
+
1772
+ At server startup, Mastra also sends an anonymous project-surface snapshot: counts of registered agents, agent controllers, workflows, tools, processors, vector stores, scorers, workspaces, MCP servers, gateways, and channels, plus booleans for memory, voice, editor, and observability usage and the coarse storage backend category. It doesn't send names or identifiers. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/telemetry/feature-telemetry.ts) to check what's collected.
1773
+
1774
+ You can opt out of all CLI and usage analytics by setting an environment variable:
1775
+
1776
+ ```bash
1777
+ MASTRA_TELEMETRY_DISABLED=1
1778
+ ```
1779
+
1780
+ You can also set this while using other `mastra` commands:
1781
+
1782
+ ```bash
1783
+ MASTRA_TELEMETRY_DISABLED=1 mastra dev
1784
+ ```