@mastra/mcp-docs-server 0.13.37 → 0.13.39-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +2 -0
  2. package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +2 -0
  3. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +8 -8
  4. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +2 -0
  5. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +11 -11
  6. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +16 -16
  7. package/.docs/organized/changelogs/%40mastra%2Fastra.md +10 -10
  8. package/.docs/organized/changelogs/%40mastra%2Fauth.md +6 -0
  9. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +11 -11
  10. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +10 -10
  11. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +38 -38
  12. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +10 -10
  13. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +10 -10
  14. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +10 -10
  15. package/.docs/organized/changelogs/%40mastra%2Fcore.md +88 -88
  16. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +11 -11
  17. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +28 -28
  18. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +27 -27
  19. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +27 -27
  20. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +27 -27
  21. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +59 -59
  22. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +11 -11
  23. package/.docs/organized/changelogs/%40mastra%2Fevals.md +11 -11
  24. package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +6 -0
  25. package/.docs/organized/changelogs/%40mastra%2Flance.md +10 -10
  26. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +11 -11
  27. package/.docs/organized/changelogs/%40mastra%2Floggers.md +11 -11
  28. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +25 -25
  29. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +10 -10
  30. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +11 -11
  31. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +11 -11
  32. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +10 -10
  33. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +11 -11
  34. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +10 -10
  35. package/.docs/organized/changelogs/%40mastra%2Fpg.md +10 -10
  36. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +10 -10
  37. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +48 -48
  38. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +11 -11
  39. package/.docs/organized/changelogs/%40mastra%2Frag.md +10 -10
  40. package/.docs/organized/changelogs/%40mastra%2Freact.md +24 -24
  41. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +9 -0
  42. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
  43. package/.docs/organized/changelogs/%40mastra%2Fserver.md +40 -40
  44. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +10 -10
  45. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +10 -10
  46. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +10 -10
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +10 -10
  48. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +11 -11
  49. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +11 -11
  50. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +11 -11
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +11 -11
  52. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +11 -1
  53. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +10 -10
  54. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +11 -11
  55. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +10 -10
  56. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +10 -10
  57. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +11 -11
  58. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +11 -11
  59. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +10 -10
  60. package/.docs/organized/changelogs/create-mastra.md +11 -11
  61. package/.docs/organized/changelogs/mastra.md +34 -34
  62. package/.docs/raw/agents/adding-voice.mdx +20 -9
  63. package/.docs/raw/agents/agent-memory.mdx +55 -39
  64. package/.docs/raw/agents/guardrails.mdx +68 -61
  65. package/.docs/raw/agents/networks.mdx +50 -46
  66. package/.docs/raw/agents/overview.mdx +126 -89
  67. package/.docs/raw/agents/using-tools.mdx +14 -15
  68. package/.docs/raw/auth/auth0.mdx +28 -27
  69. package/.docs/raw/auth/clerk.mdx +22 -20
  70. package/.docs/raw/auth/firebase.mdx +42 -39
  71. package/.docs/raw/auth/index.mdx +1 -1
  72. package/.docs/raw/auth/jwt.mdx +18 -16
  73. package/.docs/raw/auth/supabase.mdx +20 -18
  74. package/.docs/raw/auth/workos.mdx +32 -26
  75. package/.docs/raw/community/contributing-templates.mdx +7 -7
  76. package/.docs/raw/community/discord.mdx +2 -2
  77. package/.docs/raw/community/licensing.mdx +1 -1
  78. package/.docs/raw/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +2 -2
  79. package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +1 -1
  80. package/.docs/raw/course/03-agent-memory/26-updating-mastra-export-comprehensive.md +0 -32
  81. package/.docs/raw/deployment/cloud-providers/amazon-ec2.mdx +41 -22
  82. package/.docs/raw/deployment/cloud-providers/aws-lambda.mdx +48 -29
  83. package/.docs/raw/deployment/cloud-providers/azure-app-services.mdx +52 -24
  84. package/.docs/raw/deployment/cloud-providers/digital-ocean.mdx +86 -55
  85. package/.docs/raw/deployment/cloud-providers/index.mdx +16 -13
  86. package/.docs/raw/deployment/monorepo.mdx +32 -42
  87. package/.docs/raw/deployment/overview.mdx +15 -15
  88. package/.docs/raw/deployment/server-deployment.mdx +18 -23
  89. package/.docs/raw/deployment/serverless-platforms/cloudflare-deployer.mdx +16 -17
  90. package/.docs/raw/deployment/serverless-platforms/index.mdx +15 -12
  91. package/.docs/raw/deployment/serverless-platforms/netlify-deployer.mdx +14 -23
  92. package/.docs/raw/deployment/serverless-platforms/vercel-deployer.mdx +16 -23
  93. package/.docs/raw/deployment/web-framework.mdx +14 -14
  94. package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +130 -121
  95. package/.docs/raw/frameworks/agentic-uis/assistant-ui.mdx +54 -43
  96. package/.docs/raw/frameworks/agentic-uis/cedar-os.mdx +51 -36
  97. package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +161 -120
  98. package/.docs/raw/frameworks/agentic-uis/openrouter.mdx +60 -49
  99. package/.docs/raw/frameworks/servers/express.mdx +46 -45
  100. package/.docs/raw/frameworks/web-frameworks/astro.mdx +245 -162
  101. package/.docs/raw/frameworks/web-frameworks/next-js.mdx +112 -69
  102. package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +171 -130
  103. package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +94 -81
  104. package/.docs/raw/getting-started/installation.mdx +165 -134
  105. package/.docs/raw/getting-started/mcp-docs-server.mdx +36 -39
  106. package/.docs/raw/getting-started/project-structure.mdx +34 -42
  107. package/.docs/raw/getting-started/studio.mdx +42 -50
  108. package/.docs/raw/getting-started/templates.mdx +18 -15
  109. package/.docs/raw/index.mdx +9 -9
  110. package/.docs/raw/mastra-cloud/dashboard.mdx +12 -12
  111. package/.docs/raw/mastra-cloud/observability.mdx +9 -10
  112. package/.docs/raw/mastra-cloud/overview.mdx +17 -23
  113. package/.docs/raw/mastra-cloud/setting-up.mdx +33 -20
  114. package/.docs/raw/memory/conversation-history.mdx +2 -2
  115. package/.docs/raw/memory/overview.mdx +22 -24
  116. package/.docs/raw/memory/semantic-recall.mdx +16 -17
  117. package/.docs/raw/memory/storage/memory-with-libsql.mdx +27 -28
  118. package/.docs/raw/memory/storage/memory-with-pg.mdx +26 -26
  119. package/.docs/raw/memory/storage/memory-with-upstash.mdx +26 -27
  120. package/.docs/raw/memory/threads-and-resources.mdx +24 -21
  121. package/.docs/raw/memory/working-memory.mdx +27 -38
  122. package/.docs/raw/observability/ai-tracing/exporters/arize.mdx +30 -29
  123. package/.docs/raw/observability/ai-tracing/exporters/braintrust.mdx +8 -9
  124. package/.docs/raw/observability/ai-tracing/exporters/cloud.mdx +17 -16
  125. package/.docs/raw/observability/ai-tracing/exporters/default.mdx +37 -38
  126. package/.docs/raw/observability/ai-tracing/exporters/langfuse.mdx +18 -17
  127. package/.docs/raw/observability/ai-tracing/exporters/langsmith.mdx +14 -14
  128. package/.docs/raw/observability/ai-tracing/exporters/otel.mdx +56 -46
  129. package/.docs/raw/observability/ai-tracing/overview.mdx +151 -128
  130. package/.docs/raw/observability/ai-tracing/processors/sensitive-data-filter.mdx +57 -36
  131. package/.docs/raw/observability/logging.mdx +14 -17
  132. package/.docs/raw/observability/nextjs-tracing.mdx +5 -5
  133. package/.docs/raw/observability/otel-tracing.mdx +17 -18
  134. package/.docs/raw/observability/overview.mdx +15 -11
  135. package/.docs/raw/rag/chunking-and-embedding.mdx +10 -8
  136. package/.docs/raw/rag/overview.mdx +5 -5
  137. package/.docs/raw/rag/retrieval.mdx +125 -107
  138. package/.docs/raw/rag/vector-databases.mdx +232 -223
  139. package/.docs/raw/reference/agents/agent.mdx +56 -43
  140. package/.docs/raw/reference/agents/generate.mdx +367 -261
  141. package/.docs/raw/reference/agents/generateLegacy.mdx +260 -178
  142. package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +7 -5
  143. package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +7 -5
  144. package/.docs/raw/reference/agents/getDescription.mdx +3 -2
  145. package/.docs/raw/reference/agents/getInstructions.mdx +7 -5
  146. package/.docs/raw/reference/agents/getLLM.mdx +11 -7
  147. package/.docs/raw/reference/agents/getMemory.mdx +7 -5
  148. package/.docs/raw/reference/agents/getModel.mdx +7 -5
  149. package/.docs/raw/reference/agents/getScorers.mdx +7 -5
  150. package/.docs/raw/reference/agents/getTools.mdx +7 -5
  151. package/.docs/raw/reference/agents/getVoice.mdx +7 -5
  152. package/.docs/raw/reference/agents/getWorkflows.mdx +7 -5
  153. package/.docs/raw/reference/agents/listAgents.mdx +6 -4
  154. package/.docs/raw/reference/agents/listScorers.mdx +69 -0
  155. package/.docs/raw/reference/agents/listTools.mdx +69 -0
  156. package/.docs/raw/reference/agents/listWorkflows.mdx +69 -0
  157. package/.docs/raw/reference/agents/network.mdx +171 -116
  158. package/.docs/raw/reference/auth/auth0.mdx +18 -14
  159. package/.docs/raw/reference/auth/clerk.mdx +15 -12
  160. package/.docs/raw/reference/auth/firebase.mdx +23 -16
  161. package/.docs/raw/reference/auth/jwt.mdx +7 -6
  162. package/.docs/raw/reference/auth/supabase.mdx +13 -10
  163. package/.docs/raw/reference/auth/workos.mdx +17 -13
  164. package/.docs/raw/reference/cli/create-mastra.mdx +61 -44
  165. package/.docs/raw/reference/cli/mastra.mdx +11 -11
  166. package/.docs/raw/reference/client-js/agents.mdx +41 -44
  167. package/.docs/raw/reference/client-js/error-handling.mdx +1 -1
  168. package/.docs/raw/reference/client-js/logs.mdx +2 -2
  169. package/.docs/raw/reference/client-js/mastra-client.mdx +28 -20
  170. package/.docs/raw/reference/client-js/memory.mdx +7 -3
  171. package/.docs/raw/reference/client-js/observability.mdx +10 -9
  172. package/.docs/raw/reference/client-js/telemetry.mdx +1 -1
  173. package/.docs/raw/reference/client-js/tools.mdx +2 -2
  174. package/.docs/raw/reference/client-js/vectors.mdx +1 -1
  175. package/.docs/raw/reference/client-js/workflows-legacy.mdx +1 -1
  176. package/.docs/raw/reference/client-js/workflows.mdx +8 -8
  177. package/.docs/raw/reference/core/getAgent.mdx +6 -5
  178. package/.docs/raw/reference/core/getAgentById.mdx +5 -4
  179. package/.docs/raw/reference/core/getAgents.mdx +3 -3
  180. package/.docs/raw/reference/core/getDeployer.mdx +4 -3
  181. package/.docs/raw/reference/core/getLogger.mdx +4 -3
  182. package/.docs/raw/reference/core/getLogs.mdx +10 -6
  183. package/.docs/raw/reference/core/getLogsByRunId.mdx +8 -5
  184. package/.docs/raw/reference/core/getMCPServer.mdx +8 -5
  185. package/.docs/raw/reference/core/getMCPServers.mdx +4 -3
  186. package/.docs/raw/reference/core/getMemory.mdx +4 -3
  187. package/.docs/raw/reference/core/getScorer.mdx +15 -12
  188. package/.docs/raw/reference/core/getScorerByName.mdx +13 -10
  189. package/.docs/raw/reference/core/getScorers.mdx +3 -2
  190. package/.docs/raw/reference/core/getServer.mdx +4 -3
  191. package/.docs/raw/reference/core/getStorage.mdx +4 -3
  192. package/.docs/raw/reference/core/getTelemetry.mdx +4 -3
  193. package/.docs/raw/reference/core/getVector.mdx +6 -4
  194. package/.docs/raw/reference/core/getVectors.mdx +4 -3
  195. package/.docs/raw/reference/core/getWorkflow.mdx +7 -4
  196. package/.docs/raw/reference/core/getWorkflows.mdx +5 -3
  197. package/.docs/raw/reference/core/listAgents.mdx +35 -0
  198. package/.docs/raw/reference/core/listLogs.mdx +96 -0
  199. package/.docs/raw/reference/core/listLogsByRunId.mdx +87 -0
  200. package/.docs/raw/reference/core/listScorers.mdx +43 -0
  201. package/.docs/raw/reference/core/listWorkflows.mdx +45 -0
  202. package/.docs/raw/reference/core/mastra-class.mdx +16 -16
  203. package/.docs/raw/reference/core/setLogger.mdx +6 -4
  204. package/.docs/raw/reference/core/setStorage.mdx +4 -4
  205. package/.docs/raw/reference/core/setTelemetry.mdx +4 -3
  206. package/.docs/raw/reference/deployer/cloudflare.mdx +11 -7
  207. package/.docs/raw/reference/deployer/deployer.mdx +2 -1
  208. package/.docs/raw/reference/deployer/netlify.mdx +4 -4
  209. package/.docs/raw/reference/deployer/vercel.mdx +6 -6
  210. package/.docs/raw/reference/evals/answer-relevancy.mdx +4 -5
  211. package/.docs/raw/reference/evals/bias.mdx +4 -5
  212. package/.docs/raw/reference/evals/completeness.mdx +4 -5
  213. package/.docs/raw/reference/evals/content-similarity.mdx +4 -5
  214. package/.docs/raw/reference/evals/context-position.mdx +4 -5
  215. package/.docs/raw/reference/evals/context-precision.mdx +4 -5
  216. package/.docs/raw/reference/evals/context-relevancy.mdx +4 -5
  217. package/.docs/raw/reference/evals/contextual-recall.mdx +4 -5
  218. package/.docs/raw/reference/evals/faithfulness.mdx +4 -5
  219. package/.docs/raw/reference/evals/hallucination.mdx +4 -6
  220. package/.docs/raw/reference/evals/keyword-coverage.mdx +4 -5
  221. package/.docs/raw/reference/evals/prompt-alignment.mdx +4 -6
  222. package/.docs/raw/reference/evals/summarization.mdx +4 -6
  223. package/.docs/raw/reference/evals/textual-difference.mdx +4 -5
  224. package/.docs/raw/reference/evals/tone-consistency.mdx +4 -7
  225. package/.docs/raw/reference/evals/toxicity.mdx +4 -5
  226. package/.docs/raw/reference/index.mdx +3 -3
  227. package/.docs/raw/reference/legacyWorkflows/after.mdx +5 -5
  228. package/.docs/raw/reference/legacyWorkflows/afterEvent.mdx +5 -5
  229. package/.docs/raw/reference/legacyWorkflows/commit.mdx +5 -5
  230. package/.docs/raw/reference/legacyWorkflows/createRun.mdx +4 -4
  231. package/.docs/raw/reference/legacyWorkflows/else.mdx +5 -5
  232. package/.docs/raw/reference/legacyWorkflows/events.mdx +7 -7
  233. package/.docs/raw/reference/legacyWorkflows/execute.mdx +4 -4
  234. package/.docs/raw/reference/legacyWorkflows/if.mdx +5 -5
  235. package/.docs/raw/reference/legacyWorkflows/resume.mdx +5 -5
  236. package/.docs/raw/reference/legacyWorkflows/resumeWithEvent.mdx +6 -6
  237. package/.docs/raw/reference/legacyWorkflows/snapshots.mdx +6 -6
  238. package/.docs/raw/reference/legacyWorkflows/start.mdx +6 -6
  239. package/.docs/raw/reference/legacyWorkflows/step-class.mdx +4 -4
  240. package/.docs/raw/reference/legacyWorkflows/step-condition.mdx +4 -4
  241. package/.docs/raw/reference/legacyWorkflows/step-function.mdx +5 -5
  242. package/.docs/raw/reference/legacyWorkflows/step-options.mdx +6 -6
  243. package/.docs/raw/reference/legacyWorkflows/step-retries.mdx +4 -4
  244. package/.docs/raw/reference/legacyWorkflows/suspend.mdx +4 -4
  245. package/.docs/raw/reference/legacyWorkflows/then.mdx +5 -5
  246. package/.docs/raw/reference/legacyWorkflows/until.mdx +4 -4
  247. package/.docs/raw/reference/legacyWorkflows/watch.mdx +3 -3
  248. package/.docs/raw/reference/legacyWorkflows/while.mdx +4 -4
  249. package/.docs/raw/reference/legacyWorkflows/workflow.mdx +7 -7
  250. package/.docs/raw/reference/memory/createThread.mdx +10 -10
  251. package/.docs/raw/reference/memory/deleteMessages.mdx +7 -5
  252. package/.docs/raw/reference/memory/getThreadById.mdx +6 -5
  253. package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +11 -10
  254. package/.docs/raw/reference/memory/getThreadsByResourceIdPaginated.mdx +10 -9
  255. package/.docs/raw/reference/memory/{Memory.mdx → memory-class.mdx} +55 -47
  256. package/.docs/raw/reference/memory/query.mdx +39 -25
  257. package/.docs/raw/reference/observability/ai-tracing/ai-tracing.mdx +9 -6
  258. package/.docs/raw/reference/observability/ai-tracing/configuration.mdx +26 -22
  259. package/.docs/raw/reference/observability/ai-tracing/exporters/arize.mdx +16 -12
  260. package/.docs/raw/reference/observability/ai-tracing/exporters/braintrust.mdx +14 -14
  261. package/.docs/raw/reference/observability/ai-tracing/exporters/cloud-exporter.mdx +16 -11
  262. package/.docs/raw/reference/observability/ai-tracing/exporters/console-exporter.mdx +10 -6
  263. package/.docs/raw/reference/observability/ai-tracing/exporters/default-exporter.mdx +23 -15
  264. package/.docs/raw/reference/observability/ai-tracing/exporters/langfuse.mdx +6 -6
  265. package/.docs/raw/reference/observability/ai-tracing/exporters/langsmith.mdx +13 -13
  266. package/.docs/raw/reference/observability/ai-tracing/exporters/otel.mdx +44 -36
  267. package/.docs/raw/reference/observability/ai-tracing/interfaces.mdx +116 -107
  268. package/.docs/raw/reference/observability/ai-tracing/processors/sensitive-data-filter.mdx +37 -32
  269. package/.docs/raw/reference/observability/ai-tracing/span.mdx +29 -26
  270. package/.docs/raw/reference/observability/logging/pino-logger.mdx +13 -15
  271. package/.docs/raw/reference/observability/otel-tracing/otel-config.mdx +2 -2
  272. package/.docs/raw/reference/observability/otel-tracing/providers/arize-ax.mdx +3 -3
  273. package/.docs/raw/reference/observability/otel-tracing/providers/arize-phoenix.mdx +2 -1
  274. package/.docs/raw/reference/observability/otel-tracing/providers/dash0.mdx +1 -1
  275. package/.docs/raw/reference/observability/otel-tracing/providers/index.mdx +12 -14
  276. package/.docs/raw/reference/observability/otel-tracing/providers/keywordsai.mdx +4 -4
  277. package/.docs/raw/reference/observability/otel-tracing/providers/laminar.mdx +1 -1
  278. package/.docs/raw/reference/observability/otel-tracing/providers/langfuse.mdx +4 -4
  279. package/.docs/raw/reference/observability/otel-tracing/providers/langsmith.mdx +1 -1
  280. package/.docs/raw/reference/observability/otel-tracing/providers/langwatch.mdx +2 -2
  281. package/.docs/raw/reference/observability/otel-tracing/providers/new-relic.mdx +1 -1
  282. package/.docs/raw/reference/observability/otel-tracing/providers/signoz.mdx +1 -1
  283. package/.docs/raw/reference/observability/otel-tracing/providers/traceloop.mdx +1 -1
  284. package/.docs/raw/reference/processors/batch-parts-processor.mdx +3 -4
  285. package/.docs/raw/reference/processors/language-detector.mdx +6 -8
  286. package/.docs/raw/reference/processors/moderation-processor.mdx +36 -11
  287. package/.docs/raw/reference/processors/pii-detector.mdx +34 -9
  288. package/.docs/raw/reference/processors/prompt-injection-detector.mdx +6 -8
  289. package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +14 -10
  290. package/.docs/raw/reference/processors/token-limiter-processor.mdx +3 -5
  291. package/.docs/raw/reference/processors/unicode-normalizer.mdx +3 -4
  292. package/.docs/raw/reference/rag/chunk.mdx +41 -23
  293. package/.docs/raw/reference/rag/database-config.mdx +56 -38
  294. package/.docs/raw/reference/rag/embeddings.mdx +1 -1
  295. package/.docs/raw/reference/rag/extract-params.mdx +1 -1
  296. package/.docs/raw/reference/rag/graph-rag.mdx +1 -1
  297. package/.docs/raw/reference/rag/metadata-filters.mdx +23 -26
  298. package/.docs/raw/reference/rag/rerank.mdx +1 -1
  299. package/.docs/raw/reference/rag/rerankWithScorer.mdx +2 -2
  300. package/.docs/raw/reference/scorers/answer-relevancy.mdx +35 -17
  301. package/.docs/raw/reference/scorers/answer-similarity.mdx +84 -68
  302. package/.docs/raw/reference/scorers/bias.mdx +22 -19
  303. package/.docs/raw/reference/scorers/completeness.mdx +21 -16
  304. package/.docs/raw/reference/scorers/content-similarity.mdx +12 -10
  305. package/.docs/raw/reference/scorers/context-precision.mdx +73 -64
  306. package/.docs/raw/reference/scorers/context-relevance.mdx +142 -126
  307. package/.docs/raw/reference/scorers/create-scorer.mdx +93 -61
  308. package/.docs/raw/reference/scorers/faithfulness.mdx +21 -13
  309. package/.docs/raw/reference/scorers/hallucination.mdx +17 -12
  310. package/.docs/raw/reference/scorers/keyword-coverage.mdx +32 -27
  311. package/.docs/raw/reference/scorers/mastra-scorer.mdx +39 -33
  312. package/.docs/raw/reference/scorers/noise-sensitivity.mdx +203 -152
  313. package/.docs/raw/reference/scorers/prompt-alignment.mdx +186 -132
  314. package/.docs/raw/reference/scorers/run-experiment.mdx +41 -32
  315. package/.docs/raw/reference/scorers/textual-difference.mdx +25 -26
  316. package/.docs/raw/reference/scorers/tone-consistency.mdx +29 -26
  317. package/.docs/raw/reference/scorers/tool-call-accuracy.mdx +180 -176
  318. package/.docs/raw/reference/scorers/toxicity.mdx +35 -31
  319. package/.docs/raw/reference/storage/cloudflare-d1.mdx +1 -1
  320. package/.docs/raw/reference/storage/cloudflare.mdx +1 -1
  321. package/.docs/raw/reference/storage/dynamodb.mdx +1 -1
  322. package/.docs/raw/reference/storage/lance.mdx +1 -1
  323. package/.docs/raw/reference/storage/libsql.mdx +2 -2
  324. package/.docs/raw/reference/storage/mongodb.mdx +4 -5
  325. package/.docs/raw/reference/storage/mssql.mdx +8 -7
  326. package/.docs/raw/reference/storage/postgresql.mdx +35 -33
  327. package/.docs/raw/reference/storage/upstash.mdx +6 -5
  328. package/.docs/raw/reference/streaming/ChunkType.mdx +788 -314
  329. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +265 -109
  330. package/.docs/raw/reference/streaming/agents/stream.mdx +375 -266
  331. package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +233 -162
  332. package/.docs/raw/reference/streaming/workflows/observeStream.mdx +4 -4
  333. package/.docs/raw/reference/streaming/workflows/observeStreamVNext.mdx +5 -5
  334. package/.docs/raw/reference/streaming/workflows/resumeStreamVNext.mdx +25 -21
  335. package/.docs/raw/reference/streaming/workflows/stream.mdx +36 -27
  336. package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +37 -28
  337. package/.docs/raw/reference/templates/overview.mdx +16 -39
  338. package/.docs/raw/reference/tools/client.mdx +1 -1
  339. package/.docs/raw/reference/tools/create-tool.mdx +45 -35
  340. package/.docs/raw/reference/tools/document-chunker-tool.mdx +2 -2
  341. package/.docs/raw/reference/tools/graph-rag-tool.mdx +12 -12
  342. package/.docs/raw/reference/tools/mcp-client.mdx +78 -72
  343. package/.docs/raw/reference/tools/mcp-server.mdx +91 -78
  344. package/.docs/raw/reference/tools/vector-query-tool.mdx +48 -38
  345. package/.docs/raw/reference/vectors/astra.mdx +1 -1
  346. package/.docs/raw/reference/vectors/chroma.mdx +25 -19
  347. package/.docs/raw/reference/vectors/couchbase.mdx +4 -4
  348. package/.docs/raw/reference/vectors/lance.mdx +5 -6
  349. package/.docs/raw/reference/vectors/libsql.mdx +1 -1
  350. package/.docs/raw/reference/vectors/mongodb.mdx +1 -1
  351. package/.docs/raw/reference/vectors/opensearch.mdx +1 -1
  352. package/.docs/raw/reference/vectors/pg.mdx +8 -4
  353. package/.docs/raw/reference/vectors/pinecone.mdx +1 -1
  354. package/.docs/raw/reference/vectors/qdrant.mdx +1 -1
  355. package/.docs/raw/reference/vectors/s3vectors.mdx +35 -27
  356. package/.docs/raw/reference/vectors/turbopuffer.mdx +1 -1
  357. package/.docs/raw/reference/vectors/upstash.mdx +33 -25
  358. package/.docs/raw/reference/vectors/vectorize.mdx +1 -1
  359. package/.docs/raw/reference/voice/azure.mdx +1 -1
  360. package/.docs/raw/reference/voice/cloudflare.mdx +1 -1
  361. package/.docs/raw/reference/voice/composite-voice.mdx +1 -1
  362. package/.docs/raw/reference/voice/deepgram.mdx +1 -1
  363. package/.docs/raw/reference/voice/elevenlabs.mdx +1 -1
  364. package/.docs/raw/reference/voice/google-gemini-live.mdx +7 -5
  365. package/.docs/raw/reference/voice/google.mdx +1 -1
  366. package/.docs/raw/reference/voice/mastra-voice.mdx +1 -1
  367. package/.docs/raw/reference/voice/murf.mdx +1 -1
  368. package/.docs/raw/reference/voice/openai-realtime.mdx +1 -1
  369. package/.docs/raw/reference/voice/openai.mdx +1 -1
  370. package/.docs/raw/reference/voice/playai.mdx +1 -1
  371. package/.docs/raw/reference/voice/sarvam.mdx +1 -1
  372. package/.docs/raw/reference/voice/speechify.mdx +1 -1
  373. package/.docs/raw/reference/voice/voice.addInstructions.mdx +1 -1
  374. package/.docs/raw/reference/voice/voice.addTools.mdx +1 -1
  375. package/.docs/raw/reference/voice/voice.answer.mdx +1 -1
  376. package/.docs/raw/reference/voice/voice.close.mdx +1 -1
  377. package/.docs/raw/reference/voice/voice.connect.mdx +1 -1
  378. package/.docs/raw/reference/voice/voice.events.mdx +1 -1
  379. package/.docs/raw/reference/voice/voice.getSpeakers.mdx +23 -30
  380. package/.docs/raw/reference/voice/voice.listen.mdx +1 -1
  381. package/.docs/raw/reference/voice/voice.off.mdx +1 -1
  382. package/.docs/raw/reference/voice/voice.on.mdx +1 -1
  383. package/.docs/raw/reference/voice/voice.send.mdx +1 -1
  384. package/.docs/raw/reference/voice/voice.speak.mdx +1 -1
  385. package/.docs/raw/reference/voice/voice.updateConfig.mdx +1 -1
  386. package/.docs/raw/reference/workflows/run-methods/cancel.mdx +4 -3
  387. package/.docs/raw/reference/workflows/run-methods/resume.mdx +49 -34
  388. package/.docs/raw/reference/workflows/run-methods/start.mdx +43 -31
  389. package/.docs/raw/reference/workflows/run-methods/watch.mdx +7 -8
  390. package/.docs/raw/reference/workflows/run.mdx +7 -10
  391. package/.docs/raw/reference/workflows/step.mdx +16 -13
  392. package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +2 -2
  393. package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +1 -1
  394. package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +7 -7
  395. package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +2 -2
  396. package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +2 -2
  397. package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +1 -1
  398. package/.docs/raw/reference/workflows/workflow-methods/map.mdx +74 -3
  399. package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +1 -1
  400. package/.docs/raw/reference/workflows/workflow-methods/sendEvent.mdx +5 -5
  401. package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +3 -2
  402. package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +3 -2
  403. package/.docs/raw/reference/workflows/workflow-methods/then.mdx +1 -1
  404. package/.docs/raw/reference/workflows/workflow-methods/waitForEvent.mdx +3 -3
  405. package/.docs/raw/reference/workflows/workflow.mdx +12 -23
  406. package/.docs/raw/scorers/custom-scorers.mdx +58 -48
  407. package/.docs/raw/scorers/evals-old-api/custom-eval.mdx +6 -8
  408. package/.docs/raw/scorers/evals-old-api/overview.mdx +8 -8
  409. package/.docs/raw/scorers/evals-old-api/running-in-ci.mdx +9 -9
  410. package/.docs/raw/scorers/evals-old-api/textual-evals.mdx +5 -5
  411. package/.docs/raw/scorers/off-the-shelf-scorers.mdx +3 -1
  412. package/.docs/raw/scorers/overview.mdx +23 -22
  413. package/.docs/raw/server-db/custom-api-routes.mdx +8 -8
  414. package/.docs/raw/server-db/mastra-client.mdx +56 -54
  415. package/.docs/raw/server-db/middleware.mdx +15 -11
  416. package/.docs/raw/server-db/production-server.mdx +5 -7
  417. package/.docs/raw/server-db/runtime-context.mdx +41 -38
  418. package/.docs/raw/server-db/storage.mdx +82 -87
  419. package/.docs/raw/streaming/events.mdx +24 -16
  420. package/.docs/raw/streaming/overview.mdx +17 -18
  421. package/.docs/raw/streaming/tool-streaming.mdx +9 -10
  422. package/.docs/raw/streaming/workflow-streaming.mdx +14 -12
  423. package/.docs/raw/tools-mcp/advanced-usage.mdx +2 -2
  424. package/.docs/raw/tools-mcp/mcp-overview.mdx +92 -102
  425. package/.docs/raw/tools-mcp/overview.mdx +10 -15
  426. package/.docs/raw/voice/overview.mdx +273 -250
  427. package/.docs/raw/voice/speech-to-speech.mdx +14 -12
  428. package/.docs/raw/voice/speech-to-text.mdx +2 -2
  429. package/.docs/raw/voice/text-to-speech.mdx +2 -2
  430. package/.docs/raw/workflows/agents-and-tools.mdx +27 -30
  431. package/.docs/raw/workflows/control-flow.mdx +213 -170
  432. package/.docs/raw/workflows/error-handling.mdx +15 -17
  433. package/.docs/raw/workflows/human-in-the-loop.mdx +39 -39
  434. package/.docs/raw/workflows/inngest-workflow.mdx +35 -31
  435. package/.docs/raw/workflows/overview.mdx +108 -56
  436. package/.docs/raw/workflows/snapshots.mdx +54 -36
  437. package/.docs/raw/workflows/suspend-and-resume.mdx +52 -65
  438. package/.docs/raw/workflows-legacy/control-flow.mdx +15 -17
  439. package/.docs/raw/workflows-legacy/dynamic-workflows.mdx +3 -1
  440. package/.docs/raw/workflows-legacy/error-handling.mdx +8 -6
  441. package/.docs/raw/workflows-legacy/nested-workflows.mdx +6 -0
  442. package/.docs/raw/workflows-legacy/overview.mdx +28 -26
  443. package/.docs/raw/workflows-legacy/runtime-variables.mdx +4 -2
  444. package/.docs/raw/workflows-legacy/steps.mdx +5 -3
  445. package/.docs/raw/workflows-legacy/suspend-and-resume.mdx +10 -8
  446. package/.docs/raw/workflows-legacy/variables.mdx +10 -8
  447. package/CHANGELOG.md +24 -0
  448. package/package.json +5 -5
  449. package/.docs/raw/memory/storage/memory-with-mongodb.mdx +0 -148
  450. package/.docs/raw/workflows/input-data-mapping.mdx +0 -107
@@ -1,10 +1,8 @@
1
1
  ---
2
- title: "Local Project Structure | Getting Started | Mastra Docs"
2
+ title: "Project Structure | Getting Started | Mastra Docs"
3
3
  description: Guide on organizing folders and files in Mastra, including best practices and recommended structures.
4
4
  ---
5
5
 
6
- import { FileTree, Callout } from "nextra/components";
7
-
8
6
  # Project Structure
9
7
 
10
8
  Your new Mastra project, created with the `create mastra` command, comes with a predefined set of files and folders to help you get started.
@@ -15,61 +13,55 @@ Mastra is a framework, but it's **unopinionated** about how you organize or colo
15
13
 
16
14
  A project created with the `create mastra` command looks like this:
17
15
 
18
- <FileTree>
19
- <FileTree.Folder name="src" defaultOpen>
20
- <FileTree.Folder name="mastra" defaultOpen>
21
- <FileTree.Folder name="agents" defaultOpen>
22
- <FileTree.File name="weather-agent.ts" />
23
- </FileTree.Folder>
24
- <FileTree.Folder name="tools" defaultOpen>
25
- <FileTree.File name="weather-tool.ts" />
26
- </FileTree.Folder>
27
- <FileTree.Folder name="workflows" defaultOpen>
28
- <FileTree.File name="weather-workflow.ts" />
29
- </FileTree.Folder>
30
- <FileTree.Folder name="scorers" defaultOpen>
31
- <FileTree.File name="weather-scorer.ts" />
32
- </FileTree.Folder>
33
- <FileTree.File name="index.ts" />
34
- </FileTree.Folder>
35
- </FileTree.Folder>
36
- <FileTree.File name=".env.example" />
37
- <FileTree.File name="package.json" />
38
- <FileTree.File name="tsconfig.json" />
39
- </FileTree>
40
-
41
- <Callout type="info">
16
+ ```
17
+ src/
18
+ ├── mastra/
19
+ │ ├── agents/
20
+ │ │ └── weather-agent.ts
21
+ │ ├── tools/
22
+ │ │ └── weather-tool.ts
23
+ │ ├── workflows/
24
+ │ │ └── weather-workflow.ts
25
+ │ ├── scorers/
26
+ │ │ └── weather-scorer.ts
27
+ │ └── index.ts
28
+ ├── .env.example
29
+ ├── package.json
30
+ └── tsconfig.json
31
+ ```
32
+
33
+ :::info
42
34
  Tip - Use the predefined files as templates. Duplicate and adapt them to quickly create your own agents, tools, workflows, etc.
43
- </Callout>
35
+ :::
44
36
 
45
37
  ### Folders
46
38
 
47
39
  Folders organize your agent's resources, like agents, tools, and workflows.
48
40
 
49
- | Folder | Description |
50
- | ---------------------- | ------------ |
51
- | `src/mastra` | Entry point for all Mastra-related code and configuration.|
52
- | `src/mastra/agents` | Define and configure your agents - their behavior, goals, and tools. |
53
- | `src/mastra/workflows` | Define multi-step workflows that orchestrate agents and tools together. |
54
- | `src/mastra/tools` | Create reusable tools that your agents can call |
55
- | `src/mastra/mcp` | (Optional) Implement custom MCP servers to share your tools with external agents |
56
- | `src/mastra/scorers` | (Optional) Define scorers for evaluating agent performance over time |
41
+ | Folder | Description |
42
+ | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
43
+ | `src/mastra` | Entry point for all Mastra-related code and configuration. |
44
+ | `src/mastra/agents` | Define and configure your agents - their behavior, goals, and tools. |
45
+ | `src/mastra/workflows` | Define multi-step workflows that orchestrate agents and tools together. |
46
+ | `src/mastra/tools` | Create reusable tools that your agents can call |
47
+ | `src/mastra/mcp` | (Optional) Implement custom MCP servers to share your tools with external agents |
48
+ | `src/mastra/scorers` | (Optional) Define scorers for evaluating agent performance over time |
57
49
  | `src/mastra/public` | (Optional) Contents are copied into the `.build/output` directory during the build process, making them available for serving at runtime |
58
50
 
59
51
  ### Top-level files
60
52
 
61
53
  Top-level files define how your Mastra project is configured, built, and connected to its environment.
62
54
 
63
- | File | Description |
64
- | --------------------- | ------------ |
65
- | `src/mastra/index.ts` | Central entry point where you configure and initialize Mastra. |
55
+ | File | Description |
56
+ | --------------------- | ----------------------------------------------------------------------------------------------------------------- |
57
+ | `src/mastra/index.ts` | Central entry point where you configure and initialize Mastra. |
66
58
  | `.env.example` | Template for environment variables - copy and rename to `.env` to add your secret [model provider](/models) keys. |
67
- | `package.json` | Defines project metadata, dependencies, and available npm scripts. |
68
- | `tsconfig.json` | Configures TypeScript options such as path aliases, compiler settings, and build output. |
59
+ | `package.json` | Defines project metadata, dependencies, and available npm scripts. |
60
+ | `tsconfig.json` | Configures TypeScript options such as path aliases, compiler settings, and build output. |
69
61
 
70
62
  ## Next steps
71
63
 
72
64
  - Read more about [Mastra's features](/docs#why-mastra).
73
65
  - Integrate Mastra with your frontend framework: [Next.js](/docs/frameworks/web-frameworks/next-js), [React](/docs/frameworks/web-frameworks/vite-react), or [Astro](/docs/frameworks/web-frameworks/astro).
74
66
  - Build an agent from scratch following one of our [guides](/guides).
75
- - Watch conceptual guides on our [YouTube channel](https://www.youtube.com/@mastra-ai) and [subscribe](https://www.youtube.com/@mastra-ai?sub_confirmation=1)!
67
+ - Watch conceptual guides on our [YouTube channel](https://www.youtube.com/@mastra-ai) and [subscribe](https://www.youtube.com/@mastra-ai?sub_confirmation=1)!
@@ -1,72 +1,69 @@
1
1
  ---
2
- title: "Playground"
2
+ title: "Studio | Getting Started | Mastra Docs"
3
3
  description: Guide on installing Mastra and setting up the necessary prerequisites for running it with various LLM providers.
4
4
  ---
5
5
 
6
- import YouTube from "@/components/youtube";
7
- import { Tabs, Tab } from "@/components/tabs";
8
- import { VideoPlayer } from "@/components/video-player"
9
- import { Callout } from "nextra/components";
6
+ import YouTube from "@site/src/components/YouTube-player";
7
+ import Tabs from "@theme/Tabs";
8
+ import TabItem from "@theme/TabItem";
9
+ import { VideoPlayer } from "@site/src/components/video-player";
10
10
 
11
- # Playground
11
+ # Studio
12
12
 
13
- Playground provides an interactive UI for building and testing your agents, along with a REST API that exposes your Mastra application as a local service. This lets you start building without worrying about integration right away.
13
+ Studio provides an interactive UI for building and testing your agents, along with a REST API that exposes your Mastra application as a local service. This lets you start building without worrying about integration right away.
14
14
 
15
- As your project evolves, Playground's development environment helps you iterate on your agent quickly. Meanwhile, Observability and Scorer features give you visibility into performance at every stage.
15
+ As your project evolves, Studio's development environment helps you iterate on your agent quickly. Meanwhile, Observability and Scorer features give you visibility into performance at every stage.
16
16
 
17
- To get started, run Playground locally using the instructions below, or [deploy to Mastra Cloud](https://mastra.ai/docs/mastra-cloud/setting-up) to collaborate with your team.
17
+ To get started, run Studio locally using the instructions below, or [create a project in Mastra Cloud](https://mastra.ai/docs/mastra-cloud/setting-up) to collaborate with your team.
18
18
 
19
- <YouTube id="spGlcTEjuXY" startTime={126}/>
19
+ <YouTube id="ojGu6Bi4wYk" />
20
20
 
21
- ## Start Playground
21
+ ## Start Studio
22
22
 
23
23
  If you created your application with `create mastra`, start the local development server using the `dev` script. You can also run it directly with `mastra dev`.
24
24
 
25
- <Tabs items={["npm", "pnpm", "yarn", "bun", "mastra"]}>
26
- <Tab>
25
+ <Tabs>
26
+ <TabItem value="npm" label="npm">
27
27
  ```bash copy
28
28
  npm run dev
29
29
  ```
30
- </Tab>
31
- <Tab>
30
+ </TabItem>
31
+ <TabItem value="pnpm" label="pnpm">
32
32
  ```bash copy
33
33
  pnpm run dev
34
34
  ```
35
- </Tab>
36
- <Tab>
35
+ </TabItem>
36
+ <TabItem value="yarn" label="yarn">
37
37
  ```bash copy
38
38
  yarn run dev
39
39
  ```
40
- </Tab>
41
- <Tab>
40
+ </TabItem>
41
+ <TabItem value="bun" label="bun">
42
42
  ```bash copy
43
43
  bun run dev
44
44
  ```
45
- </Tab>
46
- <Tab>
45
+ </TabItem>
46
+ <TabItem value="mastra" label="mastra">
47
47
  ```bash copy
48
48
  mastra dev
49
49
  ```
50
- </Tab>
50
+ </TabItem>
51
51
  </Tabs>
52
52
 
53
53
  Once the server's running, you can:
54
54
 
55
- - Open the Playground UI at http://localhost:4111/ to test your agent interactively.
56
- - Visit http://localhost:4111/swagger-ui to discover and interact with the underlying REST API.
55
+ - Open the Studio UI at http://localhost:4111/ to test your agent interactively.
56
+ - Visit http://localhost:4111/swagger-ui to discover and interact with the underlying REST API.
57
57
 
58
- ## Playground UI
58
+ ## Studio UI
59
59
 
60
- The Playground UI provides an interactive development environment for you to test your agents, workflows, and tools, observe exactly what happens under the hood with each interaction, and tweak things as you go.
60
+ The Studio UI provides an interactive development environment for you to test your agents, workflows, and tools, observe exactly what happens under the hood with each interaction, and tweak things as you go.
61
61
 
62
62
  ### Agents
63
63
 
64
-
65
64
  Chat with your agent directly, dynamically switch [models](/models), and tweak settings like temperature and top-p to understand how they affect the output.
66
65
 
67
- <VideoPlayer
68
- src="https://res.cloudinary.com/mastra-assets/video/upload/v1751406022/local-dev-agents-playground_100_m3begx.mp4"
69
- />
66
+ <VideoPlayer src="https://res.cloudinary.com/mastra-assets/video/upload/v1751406022/local-dev-agents-playground_100_m3begx.mp4" />
70
67
 
71
68
  When you interact with your agent, you can follow each step of its reasoning, view tool call outputs, and [observe](#observability) traces and logs to see how responses are generated. You can also attach [scorers](#scorers) to measure and compare response quality over time.
72
69
 
@@ -74,9 +71,7 @@ When you interact with your agent, you can follow each step of its reasoning, vi
74
71
 
75
72
  Visualize your workflow as a graph and run it step by step with a custom input. During execution, the interface updates in real time to show the active step and the path taken.
76
73
 
77
- <VideoPlayer
78
- src="https://res.cloudinary.com/mastra-assets/video/upload/v1751406027/local-dev-workflows-playground_100_rbc466.mp4"
79
- />
74
+ <VideoPlayer src="https://res.cloudinary.com/mastra-assets/video/upload/v1751406027/local-dev-workflows-playground_100_rbc466.mp4" />
80
75
 
81
76
  When running a workflow, you can also view detailed traces showing tool calls, raw JSON outputs, and any errors that might have occured along the way.
82
77
 
@@ -84,24 +79,20 @@ When running a workflow, you can also view detailed traces showing tool calls, r
84
79
 
85
80
  Run tools in isolation to observe their behavior. Test them before assigning them to your agent, or isolate them to debug issues should something go wrong.
86
81
 
87
- <VideoPlayer
88
- src="https://res.cloudinary.com/mastra-assets/video/upload/v1751406316/local-dev-agents-tools_100_fe1jdt.mp4"
89
- />
90
- ### MCP
91
- List the MCP servers attached to your Mastra instance and explore their available tools.
82
+ <VideoPlayer src="https://res.cloudinary.com/mastra-assets/video/upload/v1751406316/local-dev-agents-tools_100_fe1jdt.mp4" />
83
+ ### MCP List the MCP servers attached to your Mastra instance and explore their
84
+ available tools.
92
85
 
93
- ![MCP Servers Playground](/image/local-dev/local-dev-mcp-server-playground.jpg)
86
+ ![MCP Servers Studio](/img/local-dev/local-dev-mcp-server-playground.jpg)
94
87
 
95
88
  ### Observability
96
89
 
97
-
98
- When you run an agent or workflow, the Observability tab displays traces that highlight the key AI operations such as model calls, tool executions, and workflow steps. Follow these traces to see how data moves, where time is spent, and what's happening under the hood.
90
+ When you run an agent or workflow, the Observability tab displays traces that highlight the key AI operations such as model calls, tool executions, and workflow steps. Follow these traces to see how data moves, where time is spent, and what's happening under the hood.
99
91
 
100
92
  ![](https://mastra.ai/_next/image?url=%2Ftracingafter.png&w=1920&q=75)
101
93
 
102
94
  AI Tracing filters out low-level framework details so your traces stay focused and readable.
103
95
 
104
-
105
96
  ### Scorers
106
97
 
107
98
  The Scorers tab displays the results of your agent's scorers as they run. When messages pass through your agent, the defined scorers evaluate each output asynchronously and render their results here. This allows you to understand how your scorers respond to different interactions, compare performance across test cases, and identify areas for improvement.
@@ -110,13 +101,13 @@ The Scorers tab displays the results of your agent's scorers as they run. When m
110
101
 
111
102
  The local development server exposes a complete set of REST API routes, allowing you to programmatically interact with your agents, workflows, and tools during development. This is particularly helpful if you plan to deploy the Mastra server, since the local development server uses the exact same API routes as the [production server](/docs/server-db/production-server), allowing you to develop and test against it with full parity.
112
103
 
113
- You can explore all available endpoints in the OpenAPI specification at http://localhost:4111/openapi.json, which details every endpoint and its request and response schemas.
104
+ You can explore all available endpoints in the OpenAPI specification at http://localhost:4111/openapi.json, which details every endpoint and its request and response schemas.
114
105
 
115
106
  To explore the API interactively, visit the Swagger UI at http://localhost:4111/swagger-ui. Here, you can discover endpoints and test them directly from your browser.
116
107
 
117
- <Callout type="info">
108
+ :::info
118
109
  The OpenAPI and Swagger endpoints are disabled in production by default. To enable them, set `server.build.openAPIDocs` and `server.build.swaggerUI` to `true` respectively.
119
- </Callout>
110
+ :::
120
111
 
121
112
  ## Configuration
122
113
 
@@ -141,18 +132,19 @@ Mastra supports local HTTPS development through the [`--https`](/reference/cli/m
141
132
 
142
133
  ```typescript
143
134
  import { Mastra } from "@mastra/core/mastra";
144
- import fs from 'node:fs';
135
+ import fs from "node:fs";
145
136
 
146
137
  export const mastra = new Mastra({
147
138
  server: {
148
139
  https: {
149
- key: fs.readFileSync('path/to/key.pem'),
150
- cert: fs.readFileSync('path/to/cert.pem')
151
- }
140
+ key: fs.readFileSync("path/to/key.pem"),
141
+ cert: fs.readFileSync("path/to/cert.pem"),
142
+ },
152
143
  },
153
144
  });
154
145
  ```
146
+
155
147
  ## Next steps
156
148
 
157
149
  - Learn more about Mastra's suggested [project structure](/docs/getting-started/project-structure).
158
- - Integrate Mastra with your frontend framework of choice - [Next.js](/docs/frameworks/web-frameworks/next-js), [React](/docs/frameworks/web-frameworks/vite-react), or [Astro](/docs/frameworks/web-frameworks/astro).
150
+ - Integrate Mastra with your frontend framework of choice - [Next.js](/docs/frameworks/web-frameworks/next-js), [React](/docs/frameworks/web-frameworks/vite-react), or [Astro](/docs/frameworks/web-frameworks/astro).
@@ -3,8 +3,8 @@ title: "Templates | Getting Started | Mastra Docs"
3
3
  description: Pre-built project structures that demonstrate common Mastra use cases and patterns
4
4
  ---
5
5
 
6
- import { Callout } from "nextra/components";
7
- import { Tabs, Tab } from "@/components/tabs";
6
+ import Tabs from "@theme/Tabs";
7
+ import TabItem from "@theme/TabItem";
8
8
 
9
9
  # Templates
10
10
 
@@ -14,27 +14,27 @@ Templates are pre-built Mastra projects that demonstrate specific use cases and
14
14
 
15
15
  Install a template using the `create-mastra` command:
16
16
 
17
- <Tabs items={["npm", "yarn", "pnpm", "bun"]}>
18
- <Tab>
17
+ <Tabs>
18
+ <TabItem value="npm" label="npm">
19
19
  ```bash copy
20
20
  npx create-mastra@latest --template template-name
21
21
  ```
22
- </Tab>
23
- <Tab>
22
+ </TabItem>
23
+ <TabItem value="yarn" label="yarn">
24
24
  ```bash copy
25
25
  yarn dlx create-mastra@latest --template template-name
26
26
  ```
27
- </Tab>
28
- <Tab>
27
+ </TabItem>
28
+ <TabItem value="pnpm" label="pnpm">
29
29
  ```bash copy
30
30
  pnpm create mastra@latest --template template-name
31
31
  ```
32
- </Tab>
33
- <Tab>
32
+ </TabItem>
33
+ <TabItem value="bun" label="bun">
34
34
  ```bash copy
35
35
  bun create mastra@latest --template template-name
36
36
  ```
37
- </Tab>
37
+ </TabItem>
38
38
  </Tabs>
39
39
 
40
40
  For example, to create a text-to-SQL application:
@@ -48,14 +48,17 @@ npx create-mastra@latest --template text-to-sql
48
48
  After installation:
49
49
 
50
50
  1. **Navigate to your project**:
51
+
51
52
  ```bash copy
52
53
  cd your-project-name
53
54
  ```
54
55
 
55
56
  2. **Configure environment variables**:
57
+
56
58
  ```bash copy
57
59
  cp .env.example .env
58
60
  ```
61
+
59
62
  Edit `.env` with your API keys as specified in the template's README.
60
63
 
61
64
  3. **Start development**:
@@ -63,8 +66,8 @@ After installation:
63
66
  npm run dev
64
67
  ```
65
68
 
66
- <Callout type="info">
67
- Each template includes a comprehensive README with specific setup instructions and usage examples.
68
- </Callout>
69
+ :::info
70
+ Each template includes a comprehensive README with specific setup instructions and usage examples.
71
+ :::
69
72
 
70
- For detailed information on creating templates, see the [Templates Reference](/reference/templates).
73
+ For detailed information on creating templates, see the [Templates Reference](/reference/templates/overview).
@@ -1,9 +1,11 @@
1
1
  ---
2
2
  title: "About Mastra | Mastra Docs"
3
+ sidebar_position: 2
4
+ sidebar_label: "Introduction"
3
5
  description: "Mastra is an all-in-one framework for building AI-powered applications and agents with a modern TypeScript stack."
4
6
  ---
5
7
 
6
- import YouTube from "@/components/youtube";
8
+ import YouTube from "@site/src/components/YouTube-player";
7
9
 
8
10
  # About Mastra
9
11
 
@@ -21,18 +23,17 @@ Some highlights include:
21
23
 
22
24
  - [**Model routing**](/models) - Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more.
23
25
 
24
- - [**Agents**](/docs/agents/overview) - Build autonomous agents that use LLMs and tools to solve open-ended tasks. Agents reason about goals, decide which tools to use, and iterate internally until the model emits a final answer or an optional stopping condition is met.
26
+ - [**Agents**](/docs/agents/overview) - Build autonomous agents that use LLMs and tools to solve open-ended tasks. Agents reason about goals, decide which tools to use, and iterate internally until the model emits a final answer or an optional stopping condition is met.
25
27
 
26
28
  - [**Workflows**](/docs/workflows/overview) - When you need explicit control over execution, use Mastra's graph-based workflow engine to orchestrate complex multi-step processes. Mastra workflows use an intuitive syntax for control flow (`.then()`, `.branch()`, `.parallel()`).
27
29
 
28
30
  - [**Human-in-the-loop**](/docs/workflows/suspend-and-resume) - Suspend an agent or workflow and await user input or approval before resuming. Mastra uses [storage](/docs/server-db/storage) to remember execution state, so you can pause indefinitely and resume where you left off.
29
31
 
30
- - **Context management** - Give your agents the right context at the right time. Provide [conversation history](/docs/memory/conversation-history), [retrieve](/docs/rag/overview) data from your sources (APIs, databases, files), and add human-like [working](/docs/memory/working-memory) and [semantic](/docs/memory/semantic-recall) memory so your agents behave coherently.
32
+ - **Context management** - Give your agents the right context at the right time. Provide [conversation history](/docs/memory/conversation-history), [retrieve](/docs/rag/overview) data from your sources (APIs, databases, files), and add human-like [working](/docs/memory/working-memory) and [semantic](/docs/memory/semantic-recall) memory so your agents behave coherently.
31
33
 
32
34
  - **Integrations** - Bundle agents and workflows into existing React, Next.js, or Node.js apps, or ship them as standalone endpoints. When building UIs, integrate with agentic libraries like Vercel's AI SDK UI and CopilotKit to bring your AI assistant to life on the web.
33
35
 
34
- - **Production essentials** - Shipping reliable agents takes ongoing insight, evaluation, and iteration. With built-in [evals](/docs/evals/overview) and [observability](/docs/observability/overview), Mastra gives you the tools to observe, measure, and refine continuously.
35
-
36
+ - **Production essentials** - Shipping reliable agents takes ongoing insight, evaluation, and iteration. With built-in [scorers](/docs/scorers/overview) and [observability](/docs/observability/overview), Mastra gives you the tools to observe, measure, and refine continuously.
36
37
 
37
38
  ## What can you build?
38
39
 
@@ -46,13 +47,12 @@ Some highlights include:
46
47
 
47
48
  - Decision-support tools that analyse data and provide actionable recommendations.
48
49
 
49
- Explore real-world examples in our [case studies](/blog/category/case-studies) and [community showcase](/showcase).
50
-
50
+ Explore real-world examples in our [community showcase](/showcase).
51
51
 
52
52
  ## Get started
53
53
 
54
54
  Follow the [Installation guide](/docs/getting-started/installation) for step-by-step setup with the CLI or a manual install.
55
55
 
56
- If you're new to AI agents, check out our [templates](/docs/getting-started/templates), [course](/course), and [YouTube videos](https://youtube.com/@mastra-ai) to start building with Mastra today.
56
+ If you're new to AI agents, check out our [templates](/docs/getting-started/templates), [course](https://mastra.ai/book), and [YouTube videos](https://youtube.com/@mastra-ai) to start building with Mastra today.
57
57
 
58
- We can't wait to see what you build ✌️
58
+ We can't wait to see what you build ✌️
@@ -1,13 +1,13 @@
1
1
  ---
2
- title: Understanding the Mastra Cloud Dashboard
2
+ title: "Navigating the Dashboard | Mastra Cloud | Mastra Docs"
3
3
  description: Details of each feature available in Mastra Cloud
4
4
  ---
5
5
 
6
- import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
6
+ import { MastraCloudCallout } from "@site/src/components/MastraCloudCallout";
7
7
 
8
8
  # Navigating the Dashboard
9
9
 
10
- This page explains how to navigate the Mastra Cloud dashboard, where you can configure your project, view deployment details, and interact with agents and workflows using the built-in [Playground](/docs/mastra-cloud/dashboard#playground).
10
+ This page explains how to navigate the Mastra Cloud dashboard, where you can configure your project, view deployment details, and interact with agents and workflows using the built-in [Studio](/docs/mastra-cloud/dashboard#studio).
11
11
 
12
12
  <MastraCloudCallout />
13
13
 
@@ -15,7 +15,7 @@ This page explains how to navigate the Mastra Cloud dashboard, where you can con
15
15
 
16
16
  The **Overview** page provides details about your application, including its domain URL, status, latest deployment, and connected agents and workflows.
17
17
 
18
- ![Project dashboard](/image/mastra-cloud/mastra-cloud-project-dashboard.jpg)
18
+ ![Project dashboard](/img/mastra-cloud/mastra-cloud-project-dashboard.jpg)
19
19
 
20
20
  Key features:
21
21
 
@@ -25,7 +25,7 @@ Each project shows its current deployment status, active domains, and environmen
25
25
 
26
26
  The **Deployments** page shows recent builds and gives you quick access to detailed build logs. Click any row to view more information about a specific deployment.
27
27
 
28
- ![Dashboard deployment](/image/mastra-cloud/mastra-cloud-dashboard-deployments.jpg)
28
+ ![Dashboard deployment](/img/mastra-cloud/mastra-cloud-dashboard-deployments.jpg)
29
29
 
30
30
  Key features:
31
31
 
@@ -35,7 +35,7 @@ Each deployment includes its current status, the Git branch it was deployed from
35
35
 
36
36
  The **Logs** page is where you'll find detailed information to help debug and monitor your application's behavior in the production environment.
37
37
 
38
- ![Dashboard logs](/image/mastra-cloud/mastra-cloud-dashboard-logs.jpg)
38
+ ![Dashboard logs](/img/mastra-cloud/mastra-cloud-dashboard-logs.jpg)
39
39
 
40
40
  Key features:
41
41
 
@@ -45,7 +45,7 @@ Each log includes a severity level and detailed messages showing agent, workflow
45
45
 
46
46
  On the **Settings** page you can modify the configuration of your application.
47
47
 
48
- ![Dashboard settings](/image/mastra-cloud/mastra-cloud-dashboard-settings.jpg)
48
+ ![Dashboard settings](/img/mastra-cloud/mastra-cloud-dashboard-settings.jpg)
49
49
 
50
50
  Key features:
51
51
 
@@ -53,13 +53,13 @@ You can manage environment variables, edit key project settings like the name an
53
53
 
54
54
  > Changes to configuration require a new deployment before taking effect.
55
55
 
56
- ## Playground
56
+ ## Studio
57
57
 
58
58
  ### Agents
59
59
 
60
60
  On the **Agents** page you'll see all agents used in your application. Click any agent to interact using the chat interface.
61
61
 
62
- ![Dashboard playground agents](/image/mastra-cloud/mastra-cloud-dashboard-playground-agents.jpg)
62
+ ![Dashboard Studio agents](/img/mastra-cloud/mastra-cloud-dashboard-playground-agents.jpg)
63
63
 
64
64
  Key features:
65
65
 
@@ -69,7 +69,7 @@ Test your agents in real time using the chat interface, review traces of each in
69
69
 
70
70
  On the **Workflows** page you'll see all workflows used in your application. Click any workflow to interact using the runner interface.
71
71
 
72
- ![Dashboard playground workflows](/image/mastra-cloud/mastra-cloud-dashboard-playground-workflows.jpg)
72
+ ![Dashboard Studio workflows](/img/mastra-cloud/mastra-cloud-dashboard-playground-workflows.jpg)
73
73
 
74
74
  Key features:
75
75
 
@@ -79,7 +79,7 @@ Visualize your workflow with a step-by-step graph, view execution traces, and ru
79
79
 
80
80
  On the **Tools** page you'll see all tools used by your agents. Click any tool to interact using the input interface.
81
81
 
82
- ![Dashboard playground tools](/image/mastra-cloud/mastra-cloud-dashboard-playground-tools.jpg)
82
+ ![Dashboard Studio tools](/img/mastra-cloud/mastra-cloud-dashboard-playground-tools.jpg)
83
83
 
84
84
  Key features:
85
85
 
@@ -89,7 +89,7 @@ Test your tools by providing an input that matches the schema and viewing the st
89
89
 
90
90
  The **MCP Servers** page lists all MCP Servers included in your application. Click any MCP Server for more information.
91
91
 
92
- ![Dashboard playground mcp servers](/image/mastra-cloud/mastra-cloud-dashboard-playground-mcpservers.jpg)
92
+ ![Dashboard Studio mcp servers](/img/mastra-cloud/mastra-cloud-dashboard-playground-mcpservers.jpg)
93
93
 
94
94
  Key features:
95
95
 
@@ -1,9 +1,9 @@
1
1
  ---
2
- title: Observability in Mastra Cloud
2
+ title: "Understanding Tracing and Logs | Mastra Cloud | Mastra Docs"
3
3
  description: Monitoring and debugging tools for Mastra Cloud deployments
4
4
  ---
5
5
 
6
- import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
6
+ import { MastraCloudCallout } from "@site/src/components/MastraCloudCallout";
7
7
 
8
8
  # Understanding Tracing and Logs
9
9
 
@@ -15,7 +15,7 @@ Mastra Cloud captures execution data to help you monitor your application's beha
15
15
 
16
16
  You can view detailed logs for debugging and monitoring your application's behavior on the [Logs](/docs/mastra-cloud/dashboard#logs) page of the Dashboard.
17
17
 
18
- ![Dashboard logs](/image/mastra-cloud/mastra-cloud-dashboard-logs.jpg)
18
+ ![Dashboard logs](/img/mastra-cloud/mastra-cloud-dashboard-logs.jpg)
19
19
 
20
20
  Key features:
21
21
 
@@ -23,24 +23,23 @@ Each log entry includes its severity level and a detailed message showing agent,
23
23
 
24
24
  ## Traces
25
25
 
26
- More detailed traces are available for both agents and workflows by using a [logger](/docs/observability/logging) or enabling [telemetry](/docs/observability/tracing) using one of our [supported providers](/reference/observability/providers).
26
+ More detailed traces are available for both agents and workflows by using a [logger](/docs/observability/logging) or enabling [telemetry](/docs/observability/ai-tracing/overview) using one of our [supported providers](/reference/observability/otel-tracing/providers/).
27
27
 
28
28
  ### Agents
29
29
 
30
- With a [logger](/docs/observability/logging) enabled, you can view detailed outputs from your agents in the **Traces** section of the Agents Playground.
30
+ With a [logger](/docs/observability/logging) enabled, you can view detailed outputs from your agents in the **Traces** section in Studio.
31
31
 
32
- ![observability agents](/image/mastra-cloud/mastra-cloud-observability-agents.jpg)
32
+ ![observability agents](/img/mastra-cloud/mastra-cloud-observability-agents.jpg)
33
33
 
34
34
  Key features:
35
35
 
36
36
  Tools passed to the agent during generation are standardized using `convertTools`. This includes retrieving client-side tools, memory tools, and tools exposed from workflows.
37
37
 
38
-
39
38
  ### Workflows
40
39
 
41
- With a [logger](/docs/observability/logging) enabled, you can view detailed outputs from your workflows in the **Traces** section of the Workflows Playground.
40
+ With a [logger](/docs/observability/logging) enabled, you can view detailed outputs from your workflows in the **Traces** section in Studio.
42
41
 
43
- ![observability workflows](/image/mastra-cloud/mastra-cloud-observability-workflows.jpg)
42
+ ![observability workflows](/img/mastra-cloud/mastra-cloud-observability-workflows.jpg)
44
43
 
45
44
  Key features:
46
45
 
@@ -49,4 +48,4 @@ Workflows are created using `createWorkflow`, which sets up steps, metadata, and
49
48
  ## Next steps
50
49
 
51
50
  - [Logging](/docs/observability/logging)
52
- - [Tracing](/docs/observability/tracing)
51
+ - [Tracing](/docs/observability/ai-tracing/overview)
@@ -1,10 +1,9 @@
1
1
  ---
2
- title: Mastra Cloud
2
+ title: "Mastra Cloud | Mastra Cloud | Mastra Docs"
3
3
  description: Deployment and monitoring service for Mastra applications
4
4
  ---
5
5
 
6
- import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
7
- import { FileTree } from "nextra/components";
6
+ import { MastraCloudCallout } from "@site/src/components/MastraCloudCallout";
8
7
 
9
8
  # Mastra Cloud
10
9
 
@@ -16,7 +15,7 @@ import { FileTree } from "nextra/components";
16
15
 
17
16
  Deploy and manage your applications with automated builds, organized projects, and no additional configuration.
18
17
 
19
- ![Platform features](/image/mastra-cloud/mastra-cloud-platform-features.jpg)
18
+ ![Platform features](/img/mastra-cloud/mastra-cloud-platform-features.jpg)
20
19
 
21
20
  Key features:
22
21
 
@@ -26,33 +25,28 @@ Mastra Cloud supports zero-config deployment, continuous integration with GitHub
26
25
 
27
26
  Monitor and debug your applications with detailed output logs, deployment state, and interactive tools.
28
27
 
29
- ![Project dashboard](/image/mastra-cloud/mastra-cloud-project-dashboard.jpg)
28
+ ![Project dashboard](/img/mastra-cloud/mastra-cloud-project-dashboard.jpg)
30
29
 
31
30
  Key features:
32
31
 
33
- The Project Dashboard gives you an overview of your application's status and deployments, with access to logs and a built-in playground for testing agents and workflows.
32
+ The Project Dashboard gives you an overview of your application's status and deployments, with access to logs and a Studio for testing agents and workflows.
34
33
 
35
34
  ## Project structure
36
35
 
37
36
  Use a standard Mastra project structure for proper detection and deployment.
38
37
 
39
- <FileTree>
40
- <FileTree.Folder name="src" defaultOpen>
41
- <FileTree.Folder name="mastra" defaultOpen>
42
- <FileTree.Folder name="agents" defaultOpen>
43
- <FileTree.File name="agent-name.ts" />
44
- </FileTree.Folder>
45
- <FileTree.Folder name="tools" defaultOpen>
46
- <FileTree.File name="tool-name.ts" />
47
- </FileTree.Folder>
48
- <FileTree.Folder name="workflows" defaultOpen>
49
- <FileTree.File name="workflow-name.ts" />
50
- </FileTree.Folder>
51
- <FileTree.File name="index.ts" />
52
- </FileTree.Folder>
53
- </FileTree.Folder>
54
- <FileTree.File name="package.json" />
55
- </FileTree>
38
+ ```shell
39
+ src
40
+ └── mastra
41
+ ├── agents
42
+ │ └── agent-name.ts
43
+ ├── tools
44
+ │ └── tool-name.ts
45
+ ├── workflows
46
+ │ └── workflow-name.ts
47
+ └── index.ts
48
+ package.json
49
+ ```
56
50
 
57
51
  Mastra Cloud scans your repository for:
58
52