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

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 (444) hide show
  1. package/.docs/docs/agents/guardrails.md +1 -1
  2. package/.docs/docs/agents/human-in-the-loop.md +2 -2
  3. package/.docs/docs/agents/networks.md +1 -1
  4. package/.docs/docs/agents/overview.md +2 -2
  5. package/.docs/docs/agents/processors.md +2 -2
  6. package/.docs/docs/agents/tools.md +9 -3
  7. package/.docs/docs/auth/composite-auth.md +1 -1
  8. package/.docs/docs/auth/custom-auth-provider.md +5 -5
  9. package/.docs/docs/auth/fga.md +1 -1
  10. package/.docs/docs/auth/jwt.md +2 -2
  11. package/.docs/docs/auth/simple-auth.md +1 -1
  12. package/.docs/docs/browser.md +1 -1
  13. package/.docs/docs/channels.md +2 -2
  14. package/.docs/docs/connections/sdk-agents.md +1 -1
  15. package/.docs/docs/deployment/overview.md +5 -5
  16. package/.docs/docs/deployment/web-framework.md +3 -3
  17. package/.docs/docs/develop.md +1 -1
  18. package/.docs/docs/evals/built-in-scorers.md +1 -1
  19. package/.docs/docs/evals/custom-scorers.md +8 -8
  20. package/.docs/docs/evals/overview.md +1 -1
  21. package/.docs/docs/evals/quick-checks.md +1 -1
  22. package/.docs/docs/guides/authentication-identity.md +1 -1
  23. package/.docs/docs/guides/context-engineering.md +1 -1
  24. package/.docs/docs/guides/multi-agent-systems.md +2 -2
  25. package/.docs/docs/harness/agent-controller.md +3 -3
  26. package/.docs/docs/harness/background-tasks.md +1 -1
  27. package/.docs/docs/harness/durable-agents.md +1 -1
  28. package/.docs/docs/index.md +2 -2
  29. package/.docs/docs/license.md +1 -1
  30. package/.docs/docs/mastra-platform/access-tokens.md +84 -0
  31. package/.docs/docs/mastra-platform/api.md +2 -2
  32. package/.docs/docs/mastra-platform/configuration.md +10 -14
  33. package/.docs/docs/mastra-platform/database.md +30 -23
  34. package/.docs/docs/mastra-platform/{environments.md → deploy/environments.md} +7 -7
  35. package/.docs/docs/mastra-platform/{github.md → deploy/github.md} +3 -3
  36. package/.docs/docs/mastra-platform/{deploy.md → deploy/overview.md} +8 -10
  37. package/.docs/docs/mastra-platform/{regions.md → deploy/regions.md} +4 -4
  38. package/.docs/docs/mastra-platform/{server.md → deploy/server.md} +18 -10
  39. package/.docs/docs/mastra-platform/{studio.md → deploy/studio.md} +2 -2
  40. package/.docs/docs/mastra-platform/{trace-intelligence.md → observability/trace-intelligence.md} +6 -6
  41. package/.docs/docs/mastra-platform/overview.md +12 -12
  42. package/.docs/docs/mastra-platform/system-environment-variables.md +13 -13
  43. package/.docs/docs/mastra-platform/team-members.md +49 -0
  44. package/.docs/docs/mastra-platform/workspaces.md +11 -11
  45. package/.docs/docs/memory/memory-processors.md +2 -2
  46. package/.docs/docs/memory/message-history.md +1 -1
  47. package/.docs/docs/memory/multi-user-threads.md +1 -1
  48. package/.docs/docs/memory/observational-memory.md +3 -3
  49. package/.docs/docs/memory/semantic-recall.md +4 -4
  50. package/.docs/docs/memory/working-memory.md +16 -16
  51. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +13 -13
  52. package/.docs/docs/observability/overview.md +2 -2
  53. package/.docs/docs/observability/tracing/overview.md +4 -2
  54. package/.docs/docs/sandbox/filesystem.md +1 -1
  55. package/.docs/docs/server/custom-api-routes.md +1 -1
  56. package/.docs/docs/server/middleware.md +1 -1
  57. package/.docs/docs/server/request-context.md +1 -1
  58. package/.docs/docs/signals/overview.md +1 -1
  59. package/.docs/docs/signals/sending-signals.md +1 -1
  60. package/.docs/docs/studio/auth.md +1 -1
  61. package/.docs/docs/studio/deployment.md +3 -3
  62. package/.docs/docs/studio/editor.md +2 -2
  63. package/.docs/docs/studio/observability.md +3 -3
  64. package/.docs/docs/studio/overview.md +1 -1
  65. package/.docs/docs/workflows/control-flow.md +4 -4
  66. package/.docs/docs/workflows/overview.md +3 -3
  67. package/.docs/docs/workflows/snapshots.md +2 -2
  68. package/.docs/integrations/agentic-ui/ai-sdk-ui.md +3 -3
  69. package/.docs/integrations/agentic-ui/assistant-ui.md +5 -5
  70. package/.docs/integrations/agentic-ui/copilotkit.md +4 -4
  71. package/.docs/integrations/agentic-ui/openui.md +2 -2
  72. package/.docs/integrations/auth/auth0.md +3 -3
  73. package/.docs/integrations/auth/better-auth.md +1 -1
  74. package/.docs/integrations/auth/clerk.md +1 -1
  75. package/.docs/integrations/auth/firebase.md +3 -3
  76. package/.docs/integrations/auth/google.md +2 -2
  77. package/.docs/integrations/auth/okta.md +3 -3
  78. package/.docs/integrations/auth/supabase.md +1 -1
  79. package/.docs/integrations/auth/workos.md +1 -1
  80. package/.docs/integrations/browsers/stagehand.md +1 -1
  81. package/.docs/integrations/channels/imessage.md +1 -1
  82. package/.docs/integrations/channels/ring.md +6 -6
  83. package/.docs/integrations/channels/slack.md +1 -1
  84. package/.docs/integrations/channels/whatsapp.md +1 -1
  85. package/.docs/integrations/databases/aurora-dsql.md +13 -13
  86. package/.docs/integrations/databases/clickhouse.md +2 -2
  87. package/.docs/integrations/databases/cloudflare-d1.md +4 -4
  88. package/.docs/integrations/databases/cloudflare-kv.md +10 -10
  89. package/.docs/integrations/databases/convex.md +6 -6
  90. package/.docs/integrations/databases/dynamodb.md +8 -8
  91. package/.docs/integrations/databases/elasticsearch.md +6 -6
  92. package/.docs/integrations/databases/lancedb.md +4 -4
  93. package/.docs/integrations/databases/mongodb.md +2 -2
  94. package/.docs/integrations/databases/mssql.md +2 -2
  95. package/.docs/integrations/databases/oracledb.md +2 -2
  96. package/.docs/integrations/databases/postgresql.md +14 -14
  97. package/.docs/integrations/databases/redis.md +7 -7
  98. package/.docs/integrations/databases/spanner.md +2 -2
  99. package/.docs/integrations/databases/upstash.md +5 -5
  100. package/.docs/integrations/databases/valkey.md +1 -1
  101. package/.docs/integrations/deploy/amazon-ec2.md +1 -1
  102. package/.docs/integrations/deploy/aws-bedrock-agentcore.md +1 -1
  103. package/.docs/integrations/deploy/aws-lambda.md +12 -12
  104. package/.docs/integrations/deploy/azure-app-services.md +2 -2
  105. package/.docs/integrations/deploy/cloudflare.md +2 -2
  106. package/.docs/integrations/deploy/digital-ocean.md +2 -2
  107. package/.docs/integrations/deploy/inngest.md +5 -5
  108. package/.docs/integrations/deploy/kubernetes-helm.md +20 -20
  109. package/.docs/integrations/deploy/neon.md +1 -1
  110. package/.docs/integrations/deploy/netlify.md +1 -1
  111. package/.docs/integrations/deploy/render.md +1 -1
  112. package/.docs/integrations/deploy/temporal.md +1 -1
  113. package/.docs/integrations/deploy/vercel.md +4 -4
  114. package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
  115. package/.docs/integrations/frameworks/angular.md +1 -1
  116. package/.docs/integrations/frameworks/astro.md +3 -3
  117. package/.docs/integrations/frameworks/electron.md +1 -1
  118. package/.docs/integrations/frameworks/express.md +1 -1
  119. package/.docs/integrations/frameworks/hono.md +1 -1
  120. package/.docs/integrations/frameworks/nestjs.md +2 -2
  121. package/.docs/integrations/frameworks/next-js.md +3 -3
  122. package/.docs/integrations/frameworks/nuxt.md +1 -1
  123. package/.docs/integrations/frameworks/sveltekit.md +1 -1
  124. package/.docs/integrations/frameworks/tanstack-start.md +3 -3
  125. package/.docs/integrations/frameworks/vite-react.md +3 -3
  126. package/.docs/integrations/observability/arize.md +9 -9
  127. package/.docs/integrations/observability/arthur.md +3 -3
  128. package/.docs/integrations/observability/braintrust.md +3 -3
  129. package/.docs/integrations/observability/confident-ai.md +5 -5
  130. package/.docs/integrations/observability/datadog.md +9 -9
  131. package/.docs/integrations/observability/laminar.md +2 -2
  132. package/.docs/integrations/observability/langfuse.md +14 -14
  133. package/.docs/integrations/observability/langsmith.md +9 -9
  134. package/.docs/integrations/observability/opentelemetry.md +23 -23
  135. package/.docs/integrations/observability/sentry.md +4 -4
  136. package/.docs/integrations/sandboxes/agentcore.md +1 -1
  137. package/.docs/integrations/sandboxes/apple-container.md +2 -2
  138. package/.docs/integrations/sandboxes/cloudflare-sandbox.md +6 -6
  139. package/.docs/integrations/sandboxes/daytona.md +5 -5
  140. package/.docs/integrations/sandboxes/docker.md +6 -6
  141. package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
  142. package/.docs/integrations/sandboxes/e2b.md +14 -14
  143. package/.docs/integrations/sandboxes/modal.md +1 -1
  144. package/.docs/integrations/sandboxes/railway.md +1 -1
  145. package/.docs/integrations/sandboxes/sprites.md +2 -2
  146. package/.docs/integrations/sandboxes/vercel.md +4 -4
  147. package/.docs/integrations/vectors/couchbase.md +1 -1
  148. package/.docs/integrations/vectors/duckdb.md +5 -5
  149. package/.docs/integrations/vectors/lance.md +3 -3
  150. package/.docs/integrations/vectors/mongodb.md +5 -5
  151. package/.docs/integrations/vectors/pg.md +11 -11
  152. package/.docs/integrations/vectors/qdrant.md +2 -2
  153. package/.docs/integrations/vectors/upstash.md +4 -4
  154. package/.docs/integrations/voice/azure.md +1 -1
  155. package/.docs/integrations/voice/cloudflare.md +1 -1
  156. package/.docs/integrations/voice/google.md +12 -12
  157. package/.docs/integrations/voice/inworld.md +2 -2
  158. package/.docs/integrations/voice/livekit.md +25 -25
  159. package/.docs/integrations/voice/openai.md +4 -4
  160. package/.docs/integrations/voice/sarvam.md +1 -1
  161. package/.docs/integrations/voice/speechify.md +1 -1
  162. package/.docs/integrations/voice/xai.md +1 -1
  163. package/.docs/integrations.md +2 -2
  164. package/.docs/models/environment-variables.md +92 -3
  165. package/.docs/models/gateways/merge-gateway.md +4 -1
  166. package/.docs/models/gateways/neon.md +1 -2
  167. package/.docs/models/gateways/netlify.md +7 -6
  168. package/.docs/models/gateways/openrouter.md +16 -11
  169. package/.docs/models/gateways/requesty.md +7 -17
  170. package/.docs/models/gateways/vercel.md +12 -16
  171. package/.docs/models/index.md +93 -30
  172. package/.docs/models/providers/302ai.md +2 -1
  173. package/.docs/models/providers/abacus.md +1 -1
  174. package/.docs/models/providers/abliteratedllm.md +95 -0
  175. package/.docs/models/providers/abliteration-ai.md +7 -6
  176. package/.docs/models/providers/adaption.md +87 -0
  177. package/.docs/models/providers/adzuki.md +92 -0
  178. package/.docs/models/providers/aigrow.md +89 -0
  179. package/.docs/models/providers/aimlapi.md +1 -7
  180. package/.docs/models/providers/aipg.md +82 -0
  181. package/.docs/models/providers/aistupidlevel.md +90 -0
  182. package/.docs/models/providers/aki-io.md +15 -13
  183. package/.docs/models/providers/ambient.md +13 -12
  184. package/.docs/models/providers/anonrouter.md +83 -0
  185. package/.docs/models/providers/anthropic.md +18 -20
  186. package/.docs/models/providers/apiko.md +83 -0
  187. package/.docs/models/providers/augure.md +86 -0
  188. package/.docs/models/providers/autarcho.md +81 -0
  189. package/.docs/models/providers/bailing.md +15 -12
  190. package/.docs/models/providers/bumo.md +100 -0
  191. package/.docs/models/providers/byteplus.md +94 -0
  192. package/.docs/models/providers/cedarllm.md +81 -0
  193. package/.docs/models/providers/cheapaimodel.md +85 -0
  194. package/.docs/models/providers/cheapest-token.md +99 -0
  195. package/.docs/models/providers/cheapllm.md +81 -0
  196. package/.docs/models/providers/chutes.md +8 -8
  197. package/.docs/models/providers/cline-pass.md +4 -3
  198. package/.docs/models/providers/cloudcode.md +86 -0
  199. package/.docs/models/providers/cloudflare-workers-ai.md +2 -1
  200. package/.docs/models/providers/commandcode.md +22 -1
  201. package/.docs/models/providers/confidential-ai.md +81 -0
  202. package/.docs/models/providers/cortecs.md +14 -14
  203. package/.docs/models/providers/crossmodel.md +7 -2
  204. package/.docs/models/providers/deepinfra.md +3 -1
  205. package/.docs/models/providers/digitalocean.md +5 -4
  206. package/.docs/models/providers/dothoosh.md +96 -0
  207. package/.docs/models/providers/doubleword.md +98 -0
  208. package/.docs/models/providers/edenai.md +52 -44
  209. package/.docs/models/providers/empiriolabs.md +2 -1
  210. package/.docs/models/providers/engy.md +2 -1
  211. package/.docs/models/providers/entrim.md +84 -0
  212. package/.docs/models/providers/ezkielyna.md +85 -0
  213. package/.docs/models/providers/fastrouter.md +21 -5
  214. package/.docs/models/providers/fiftyx.md +81 -0
  215. package/.docs/models/providers/fireworks-ai.md +1 -1
  216. package/.docs/models/providers/fortytwo.md +81 -0
  217. package/.docs/models/providers/frequency.md +81 -0
  218. package/.docs/models/providers/frogbot.md +30 -5
  219. package/.docs/models/providers/gisoo.md +96 -0
  220. package/.docs/models/providers/google.md +5 -4
  221. package/.docs/models/providers/graphn.md +87 -0
  222. package/.docs/models/providers/hetzner.md +1 -1
  223. package/.docs/models/providers/hostinger-router.md +88 -0
  224. package/.docs/models/providers/huawei-maas.md +88 -0
  225. package/.docs/models/providers/hubris.md +96 -0
  226. package/.docs/models/providers/huggingface.md +5 -1
  227. package/.docs/models/providers/humain.md +82 -0
  228. package/.docs/models/providers/hyper.md +24 -22
  229. package/.docs/models/providers/inceptron.md +4 -4
  230. package/.docs/models/providers/infer.md +17 -9
  231. package/.docs/models/providers/inferall.md +86 -0
  232. package/.docs/models/providers/inference-coop.md +88 -0
  233. package/.docs/models/providers/inferenceapis.md +91 -0
  234. package/.docs/models/providers/inferris.md +84 -0
  235. package/.docs/models/providers/infersia.md +86 -0
  236. package/.docs/models/providers/isoquant.md +82 -0
  237. package/.docs/models/providers/iteracompute.md +33 -16
  238. package/.docs/models/providers/jad-ai.md +83 -0
  239. package/.docs/models/providers/joingonka.md +83 -0
  240. package/.docs/models/providers/jzstoken.md +102 -0
  241. package/.docs/models/providers/keln.md +94 -0
  242. package/.docs/models/providers/kenari.md +47 -12
  243. package/.docs/models/providers/kilo.md +191 -100
  244. package/.docs/models/providers/kitani.md +89 -0
  245. package/.docs/models/providers/klavo.md +90 -0
  246. package/.docs/models/providers/korouter.md +99 -0
  247. package/.docs/models/providers/kunavo.md +96 -0
  248. package/.docs/models/providers/liquid.md +15 -8
  249. package/.docs/models/providers/lithosai.md +83 -0
  250. package/.docs/models/providers/llmgateway-providers.md +96 -43
  251. package/.docs/models/providers/llmgateway.md +33 -21
  252. package/.docs/models/providers/logits.md +82 -0
  253. package/.docs/models/providers/lowrouter.md +17 -4
  254. package/.docs/models/providers/lyceum.md +88 -0
  255. package/.docs/models/providers/mallard.md +81 -0
  256. package/.docs/models/providers/meragpt.md +81 -0
  257. package/.docs/models/providers/mistral.md +1 -1
  258. package/.docs/models/providers/moneo.md +92 -0
  259. package/.docs/models/providers/nan.md +11 -8
  260. package/.docs/models/providers/nano-gpt.md +77 -73
  261. package/.docs/models/providers/nearai.md +1 -1
  262. package/.docs/models/providers/nebius.md +3 -6
  263. package/.docs/models/providers/neuralwatt.md +28 -25
  264. package/.docs/models/providers/nodecode.md +81 -0
  265. package/.docs/models/providers/nokeep.md +83 -0
  266. package/.docs/models/providers/novita-ai.md +4 -1
  267. package/.docs/models/providers/oathbreaker.md +82 -0
  268. package/.docs/models/providers/obscurify.md +95 -0
  269. package/.docs/models/providers/ofox.md +7 -3
  270. package/.docs/models/providers/ollama-cloud.md +2 -1
  271. package/.docs/models/providers/openai.md +4 -2
  272. package/.docs/models/providers/opencode-go.md +3 -1
  273. package/.docs/models/providers/opencode.md +5 -3
  274. package/.docs/models/providers/opper.md +2 -1
  275. package/.docs/models/providers/outerlabs.md +98 -0
  276. package/.docs/models/providers/paraloncloud.md +81 -0
  277. package/.docs/models/providers/pareto.md +9 -7
  278. package/.docs/models/providers/phala.md +99 -0
  279. package/.docs/models/providers/phase.md +82 -0
  280. package/.docs/models/providers/powerspring.md +87 -0
  281. package/.docs/models/providers/prime.md +5 -5
  282. package/.docs/models/providers/proxystacks.md +84 -0
  283. package/.docs/models/providers/rayline.md +82 -0
  284. package/.docs/models/providers/refuseless.md +86 -0
  285. package/.docs/models/providers/ruapi.md +89 -0
  286. package/.docs/models/providers/runcrate.md +91 -0
  287. package/.docs/models/providers/runinfra.md +2 -1
  288. package/.docs/models/providers/sagg.md +81 -0
  289. package/.docs/models/providers/sambanova.md +10 -12
  290. package/.docs/models/providers/sandbase.md +90 -0
  291. package/.docs/models/providers/scx-ai.md +20 -10
  292. package/.docs/models/providers/sensenova.md +4 -4
  293. package/.docs/models/providers/siliconflow-cn.md +2 -1
  294. package/.docs/models/providers/sokkan.md +85 -0
  295. package/.docs/models/providers/sparrowcodes.md +99 -0
  296. package/.docs/models/providers/steadyrouter.md +101 -0
  297. package/.docs/models/providers/stepping-stone.md +95 -0
  298. package/.docs/models/providers/superbot-gg.md +82 -0
  299. package/.docs/models/providers/synthetic.md +14 -14
  300. package/.docs/models/providers/synthorai.md +92 -0
  301. package/.docs/models/providers/teamorouter.md +90 -0
  302. package/.docs/models/providers/teapot-router.md +87 -0
  303. package/.docs/models/providers/tencent-token-plan.md +23 -11
  304. package/.docs/models/providers/tenstorrent.md +84 -0
  305. package/.docs/models/providers/therouter.md +81 -0
  306. package/.docs/models/providers/tinfoil.md +1 -1
  307. package/.docs/models/providers/toapis.md +83 -0
  308. package/.docs/models/providers/tokenify.md +85 -0
  309. package/.docs/models/providers/tokenlab.md +81 -0
  310. package/.docs/models/providers/tokenwatt.md +81 -0
  311. package/.docs/models/providers/trustedtokens.md +90 -0
  312. package/.docs/models/providers/umans-ai-coding-plan.md +2 -5
  313. package/.docs/models/providers/umans-ai.md +5 -7
  314. package/.docs/models/providers/unbiased.md +81 -0
  315. package/.docs/models/providers/uncensuredai.md +83 -0
  316. package/.docs/models/providers/unrestricted.md +84 -0
  317. package/.docs/models/providers/uplinkswitch.md +92 -0
  318. package/.docs/models/providers/verda.md +81 -0
  319. package/.docs/models/providers/volcengine-coding-plan.md +16 -9
  320. package/.docs/models/providers/volcengine.md +2 -2
  321. package/.docs/models/providers/wafer.ai.md +20 -10
  322. package/.docs/models/providers/wallaby.md +7 -5
  323. package/.docs/models/providers/wally.md +9 -8
  324. package/.docs/models/providers/watt.md +98 -0
  325. package/.docs/models/providers/xxapi.md +96 -0
  326. package/.docs/models/providers/zenifra.md +22 -10
  327. package/.docs/models/providers/zerogpu.md +89 -0
  328. package/.docs/models/providers/zro.md +85 -0
  329. package/.docs/models/providers.md +92 -3
  330. package/.docs/reference/agents/agent.md +1 -1
  331. package/.docs/reference/agents/durable-agent.md +2 -2
  332. package/.docs/reference/agents/generateLegacy.md +4 -4
  333. package/.docs/reference/agents/network.md +2 -2
  334. package/.docs/reference/ai-sdk/overview.md +2 -2
  335. package/.docs/reference/build-with-ai.md +3 -3
  336. package/.docs/reference/channels/slack-provider.md +1 -1
  337. package/.docs/reference/classifier/classifier.md +1 -1
  338. package/.docs/reference/cli/mastra.md +4 -4
  339. package/.docs/reference/client-js/agent-controller.md +1 -1
  340. package/.docs/reference/client-js/memory.md +10 -10
  341. package/.docs/reference/client-js/observability.md +1 -1
  342. package/.docs/reference/client-js/responses.md +1 -1
  343. package/.docs/reference/client-js/tools.md +2 -2
  344. package/.docs/reference/client-js/vectors.md +6 -6
  345. package/.docs/reference/configuration.md +1 -1
  346. package/.docs/reference/connect/tools.md +1 -1
  347. package/.docs/reference/deployer.md +4 -4
  348. package/.docs/reference/evals/answer-relevancy.md +2 -2
  349. package/.docs/reference/evals/bias.md +2 -2
  350. package/.docs/reference/evals/checks.md +1 -1
  351. package/.docs/reference/evals/completeness.md +4 -4
  352. package/.docs/reference/evals/content-similarity.md +4 -4
  353. package/.docs/reference/evals/context-precision.md +6 -6
  354. package/.docs/reference/evals/context-recall.md +1 -1
  355. package/.docs/reference/evals/context-relevance.md +9 -9
  356. package/.docs/reference/evals/create-scorer.md +3 -3
  357. package/.docs/reference/evals/faithfulness.md +1 -1
  358. package/.docs/reference/evals/hallucination.md +6 -6
  359. package/.docs/reference/evals/keyword-coverage.md +2 -2
  360. package/.docs/reference/evals/multi-turn-judge.md +1 -1
  361. package/.docs/reference/evals/noise-sensitivity.md +16 -16
  362. package/.docs/reference/evals/prompt-alignment.md +25 -25
  363. package/.docs/reference/evals/run-evals.md +2 -2
  364. package/.docs/reference/evals/summarization.md +1 -1
  365. package/.docs/reference/evals/textual-difference.md +2 -2
  366. package/.docs/reference/evals/tone-consistency.md +2 -2
  367. package/.docs/reference/evals/tool-call-accuracy.md +10 -10
  368. package/.docs/reference/evals/toxicity.md +2 -2
  369. package/.docs/reference/evals/trajectory-accuracy.md +2 -2
  370. package/.docs/reference/manual-install.md +2 -2
  371. package/.docs/reference/memory/listThreads.md +1 -1
  372. package/.docs/reference/migrations/agentnetwork.md +1 -1
  373. package/.docs/reference/migrations/mastra-cloud.md +9 -9
  374. package/.docs/reference/migrations/mcp-v2.md +1 -1
  375. package/.docs/reference/migrations/upgrade-to-v1/deployment.md +1 -1
  376. package/.docs/reference/migrations/upgrade-to-v1/overview.md +8 -8
  377. package/.docs/reference/migrations/upgrade-to-v1/tracing.md +3 -3
  378. package/.docs/reference/observability/tracing/advanced-queries.md +1 -1
  379. package/.docs/reference/observability/tracing/bridges/datadog.md +4 -4
  380. package/.docs/reference/observability/tracing/bridges/otel.md +4 -4
  381. package/.docs/reference/observability/tracing/exporters/arize.md +4 -4
  382. package/.docs/reference/observability/tracing/exporters/arthur.md +3 -3
  383. package/.docs/reference/observability/tracing/exporters/braintrust.md +2 -2
  384. package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +2 -2
  385. package/.docs/reference/observability/tracing/exporters/confident-ai.md +2 -2
  386. package/.docs/reference/observability/tracing/exporters/console-exporter.md +1 -1
  387. package/.docs/reference/observability/tracing/exporters/datadog.md +3 -3
  388. package/.docs/reference/observability/tracing/exporters/default-exporter.md +5 -5
  389. package/.docs/reference/observability/tracing/exporters/laminar.md +2 -2
  390. package/.docs/reference/observability/tracing/exporters/langfuse.md +3 -3
  391. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +1 -1
  392. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +5 -5
  393. package/.docs/reference/observability/tracing/exporters/otel.md +4 -4
  394. package/.docs/reference/observability/tracing/exporters/posthog.md +2 -2
  395. package/.docs/reference/observability/tracing/exporters/sentry.md +4 -4
  396. package/.docs/reference/observability/tracing/instances.md +1 -1
  397. package/.docs/reference/processors/model-selection-processor.md +2 -2
  398. package/.docs/reference/processors/processor-interface.md +3 -3
  399. package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
  400. package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
  401. package/.docs/reference/processors/token-limiter-processor.md +1 -1
  402. package/.docs/reference/processors/unicode-normalizer.md +1 -1
  403. package/.docs/reference/project-structure.md +2 -2
  404. package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
  405. package/.docs/reference/pubsub/lease-provider.md +1 -1
  406. package/.docs/reference/pubsub/redis-streams.md +1 -1
  407. package/.docs/reference/pubsub/unix-socket-pubsub.md +1 -1
  408. package/.docs/reference/rag/chunk.md +1 -1
  409. package/.docs/reference/rag/chunking-and-embedding.md +4 -4
  410. package/.docs/reference/rag/database-config.md +4 -4
  411. package/.docs/reference/rag/graph-rag-guide.md +3 -3
  412. package/.docs/reference/rag/metadata-filters.md +4 -4
  413. package/.docs/reference/rag/overview.md +4 -0
  414. package/.docs/reference/rag/rerank.md +1 -1
  415. package/.docs/reference/rag/rerankWithScorer.md +1 -1
  416. package/.docs/reference/rag/retrieval.md +8 -6
  417. package/.docs/reference/rag/vector-databases.md +7 -7
  418. package/.docs/reference/server/nestjs-adapter.md +1 -1
  419. package/.docs/reference/server/register-api-route.md +5 -5
  420. package/.docs/reference/storage/composite.md +1 -1
  421. package/.docs/reference/storage/overview.md +1 -1
  422. package/.docs/reference/storage/retention.md +2 -2
  423. package/.docs/reference/storage/turso.md +1 -1
  424. package/.docs/reference/streaming/agents/MastraModelOutput.md +5 -5
  425. package/.docs/reference/streaming/agents/stream.md +5 -5
  426. package/.docs/reference/streaming/agents/streamLegacy.md +4 -4
  427. package/.docs/reference/templates/overview.md +1 -1
  428. package/.docs/reference/tools/bedrock-kb-tool.md +8 -8
  429. package/.docs/reference/tools/create-tool.md +1 -1
  430. package/.docs/reference/tools/mcp-client.md +9 -9
  431. package/.docs/reference/tools/mcp-server.md +17 -17
  432. package/.docs/reference/tools/vector-query-tool.md +6 -6
  433. package/.docs/reference/voice/composite-voice.md +3 -3
  434. package/.docs/reference/voice/overview.md +5 -5
  435. package/.docs/reference/voice/speech-to-speech.md +2 -2
  436. package/.docs/reference/voice/voice.close.md +1 -1
  437. package/.docs/reference/voice/voice.connect.md +1 -1
  438. package/.docs/reference/voice/voice.listen.md +1 -1
  439. package/.docs/reference/voice/voice.speak.md +1 -1
  440. package/.docs/reference/workspace/local-sandbox.md +1 -1
  441. package/.docs/reference/workspace/platform-filesystem.md +1 -1
  442. package/.docs/reference/workspace/platform-sandbox.md +1 -1
  443. package/package.json +4 -4
  444. /package/.docs/docs/mastra-platform/{observability.md → observability/overview.md} +0 -0
@@ -4,7 +4,7 @@
4
4
 
5
5
  # UnicodeNormalizer
6
6
 
7
- The `UnicodeNormalizer` is an **input processor** that normalizes Unicode text to ensure consistent formatting and remove potentially problematic characters before messages are sent to the language model. This processor always normalizes text to Unicode NFKC form. The normalization form isn't configurable. It also standardizes whitespace formatting. Control character removal is opt-in: set `stripControlChars` to `true` to enable it.
7
+ The `UnicodeNormalizer` is an **input processor** that normalizes Unicode text to ensure consistent formatting and remove problematic characters before messages are sent to the language model. This processor always normalizes text to Unicode NFKC form. The normalization form isn't configurable. It also standardizes whitespace formatting. Control character removal is opt-in: set `stripControlChars` to `true` to enable it.
8
8
 
9
9
  ## Usage example
10
10
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  Your new Mastra project, created with the `create mastra` command, comes with a predefined set of files and folders to help you get started.
8
8
 
9
- Mastra is a framework, but it's mostly **unopinionated** about how you organize or colocate your files. The CLI provides a sensible default structure that works well for most projects, but you're free to adapt it to your workflow or team conventions. You could even build your entire project in a single file if you wanted! Whatever structure you choose, keep it consistent to ensure your code stays maintainable and straightforward to browse.
9
+ Mastra is a framework, but it's mostly **unopinionated** about how you organize or colocate your files. The CLI provides a sensible default structure that works well for most projects, but you're free to adapt it to your workflow or team conventions. You could even build your entire project in a single file if you wanted! Whatever structure you choose, keep it consistent to keep your code maintainable and consistent.
10
10
 
11
11
  ## Default project structure
12
12
 
@@ -26,7 +26,7 @@ A project created with the `create mastra` command looks like this:
26
26
  └── tsconfig.json
27
27
  ```
28
28
 
29
- The default project is based on the [Agent Harness template](https://github.com/mastra-ai/template-agent-harness). Use the predefined files as templates. Duplicate and adapt them to quickly create your own agents, tools, workflows, etc.
29
+ The default project is based on the [Agent Harness template](https://github.com/mastra-ai/template-agent-harness). Use the predefined files as templates. Duplicate and adapt them to create your own agents, tools, workflows, etc.
30
30
 
31
31
  ### Folders
32
32
 
@@ -61,7 +61,7 @@ export const mastra = new Mastra({
61
61
 
62
62
  ### `init(topicName, group?)`
63
63
 
64
- Creates the topic and a subscription if they don't already exist, and returns the subscription. `subscribe` calls this internally, so you rarely call it directly.
64
+ Creates the topic and a subscription if they don't already exist, and returns the subscription. `subscribe` calls this internally, so you don't normally call it directly.
65
65
 
66
66
  ```typescript
67
67
  await pubsub.init('workflow.events')
@@ -108,7 +108,7 @@ Returns: `Promise<boolean>`
108
108
 
109
109
  #### `transferLease(key, fromOwner, toOwner, ttlMs)`
110
110
 
111
- Atomically transfers a held lease from `fromOwner` to `toOwner` and refreshes its TTL without releasing the key in between. This gap-free primitive lets a follow-up owner take over the same key immediately after the current owner finishes. For example, a queued follow-up run can take over when a thread run completes. A naive release-then-acquire briefly leaves the key empty. A racing process could then win the freed lease and start a competing run.
111
+ Atomically transfers a held lease from `fromOwner` to `toOwner` and refreshes its TTL without releasing the key in between. This gap-free primitive lets a follow-up owner take over the same key immediately after the current owner finishes. For example, a queued follow-up run can take over when a thread run completes. A naive release-then-acquire leaves the key empty for a moment. A racing process could then win the freed lease and start a competing run.
112
112
 
113
113
  Returns `true` if `fromOwner` still held the lease and ownership moved to `toOwner`, or `false` if the lease was already lost, in which case the caller should fall back to a fresh `acquireLease`.
114
114
 
@@ -218,7 +218,7 @@ redis-cli --scan --pattern 'mastra:topic:*' | while read -r key; do
218
218
  done
219
219
  ```
220
220
 
221
- The loop only touches streams without a TTL, so it's safe to run repeatedly. After step 2, a stream that's still in use keeps its data, because every write refreshes the TTL.
221
+ The loop only touches streams without a TTL, so it's safe to run more than once. After step 2, a stream that's still in use keeps its data, because every write refreshes the TTL.
222
222
 
223
223
  ## Redelivery and reclaim
224
224
 
@@ -53,7 +53,7 @@ await pubsub.close()
53
53
 
54
54
  ## Broker election
55
55
 
56
- The broker is the first process to link its socket into place at the shared path. It routes events between all connected clients, and other processes connect to it as clients. Each candidate binds a socket at a private name and hard-links it to the shared path. The link fails if a socket is already there, preventing a candidate from accidentally replacing a live broker.
56
+ The broker is the first process to link its socket into place at the shared path. It routes events between all connected clients, and other processes connect to it as clients. Each candidate binds a socket at a private name and hard-links it to the shared path. The link fails if a socket is already there, preventing a candidate from replacing a live broker.
57
57
 
58
58
  When the broker exits cleanly, it removes the shared path. Clients then reconnect, and the first to link its socket into place becomes the new broker. The remaining clients resubscribe to it.
59
59
 
@@ -176,7 +176,7 @@ When using the HTML strategy, all general options are ignored. Use `headers` for
176
176
 
177
177
  When using the `headers` option, the markdown strategy ignores all general options and content is split based on the markdown header structure. To use size-based chunking with markdown, omit the `headers` parameter.
178
178
 
179
- ### Semantic Markdown
179
+ ### Semantic markdown
180
180
 
181
181
  **joinThreshold** (`number`): Maximum token count for merging related sections. Sections exceeding this limit individually are left intact, but smaller sections are merged with siblings or parents if the combined size stays under this threshold. (Default: `500`)
182
182
 
@@ -20,7 +20,7 @@ const docFromJSON = MDocument.fromJSON(`{ "key": "value" }`)
20
20
  Use `chunk` to split documents into manageable pieces. Mastra supports multiple chunking strategies optimized for different document types:
21
21
 
22
22
  - `recursive`: Smart splitting based on content structure
23
- - `character`: Simple character-based splits
23
+ - `character`: Character-based splits
24
24
  - `token`: Token-aware splitting
25
25
  - `markdown`: Markdown-aware splitting
26
26
  - `semantic-markdown`: Markdown splitting based on related header families
@@ -69,13 +69,13 @@ const chunks = await doc.chunk({
69
69
 
70
70
  > **Note:** Metadata extraction may use LLM calls, so ensure your API key is set.
71
71
 
72
- We go deeper into chunking strategies in our [`chunk()` reference documentation](https://mastra.ai/reference/rag/chunk).
72
+ The [`chunk()` reference documentation](https://mastra.ai/reference/rag/chunk) covers chunking strategies in depth.
73
73
 
74
74
  ## Embedding generation
75
75
 
76
76
  Transform chunks into embeddings using your preferred provider. Mastra supports embedding models through the model router.
77
77
 
78
- ### Using the Model Router
78
+ ### Using the model router
79
79
 
80
80
  The simplest way is to use Mastra's model router with `provider/model` strings:
81
81
 
@@ -95,7 +95,7 @@ The model router automatically handles API key detection from environment variab
95
95
 
96
96
  The embedding functions return vectors, arrays of numbers representing the semantic meaning of your text, ready for similarity searches in your vector database.
97
97
 
98
- ### Configuring Embedding Dimensions
98
+ ### Configuring embedding dimensions
99
99
 
100
100
  Embedding models typically output vectors with a fixed number of dimensions (e.g., 1536 for OpenAI's `text-embedding-3-small`). Some models support reducing this dimensionality, which can help:
101
101
 
@@ -120,7 +120,7 @@ Configuration options specific to Turbopuffer vector store.
120
120
 
121
121
  **Basic Usage**:
122
122
 
123
- ### Basic Database Configuration
123
+ ### Basic database configuration
124
124
 
125
125
  ```typescript
126
126
  import { createVectorQueryTool } from '@mastra/rag'
@@ -139,7 +139,7 @@ const vectorTool = createVectorQueryTool({
139
139
 
140
140
  **Runtime Override**:
141
141
 
142
- ### Runtime Configuration Override
142
+ ### Runtime configuration override
143
143
 
144
144
  ```typescript
145
145
  import { RequestContext } from '@mastra/core/request-context'
@@ -169,7 +169,7 @@ await vectorTool.execute({ queryText: 'search query' }, { mastra, requestContext
169
169
 
170
170
  **Multi-Database**:
171
171
 
172
- ### Multi-Database Configuration
172
+ ### Multi-database configuration
173
173
 
174
174
  ```typescript
175
175
  import { RequestContext } from '@mastra/core/request-context'
@@ -200,7 +200,7 @@ await vectorTool.execute({ queryText: 'search query' }, { mastra, requestContext
200
200
 
201
201
  **Performance Tuning**:
202
202
 
203
- ### Performance Tuning
203
+ ### Performance tuning
204
204
 
205
205
  ```typescript
206
206
  // High accuracy configuration
@@ -14,9 +14,9 @@ GraphRAG is particularly effective when:
14
14
  - Documents reference each other
15
15
  - You need to traverse relationships to find complete answers
16
16
  - Understanding connections between concepts is important
17
- - Simple vector similarity misses important contextual relationships
17
+ - Vector similarity alone misses important contextual relationships
18
18
 
19
- For straightforward semantic search without relationship traversal, use [standard retrieval methods](https://mastra.ai/reference/rag/retrieval).
19
+ For semantic search without relationship traversal, use [standard retrieval methods](https://mastra.ai/reference/rag/retrieval).
20
20
 
21
21
  ## How GraphRAG works
22
22
 
@@ -148,7 +148,7 @@ The agent uses the graph query tool to:
148
148
 
149
149
  The threshold parameter substantially impacts retrieval quality:
150
150
 
151
- - **High threshold (0.8-0.9)**: Strict connections and fewer relationships, plus more precise but potentially incomplete results
151
+ - **High threshold (0.8-0.9)**: Strict connections and fewer relationships, plus more precise but incomplete results
152
152
  - **Medium threshold (0.6-0.8)**: Balanced approach, good for most use cases
153
153
  - **Low threshold (0.4-0.6)**: More connections and broader context, plus risk of including less relevant information
154
154
 
@@ -62,13 +62,13 @@ const results = await store.query({
62
62
 
63
63
  - Valid JSON types (string, number, boolean, object, array)
64
64
  - Not undefined
65
- - Properly typed for the operator (e.g., numbers for numeric comparisons)
65
+ - Typed for the operator (e.g., numbers for numeric comparisons)
66
66
 
67
67
  3. Logical operators:
68
68
 
69
69
  - Must contain valid conditions
70
70
  - Can't be empty
71
- - Must be properly nested
71
+ - Must be nested correctly
72
72
  - Can only be used at top level or nested within other logical operators
73
73
  - Can't be used at field level or nested inside a field
74
74
  - Can't be used inside an operator
@@ -116,7 +116,7 @@ const results = await store.query({
116
116
  - Field names can't contain dots (.) or start with $
117
117
  - Field names limited to 512 characters
118
118
  - Vectors must be re-upserted after creating new metadata indexes to be included in filtered results
119
- - Range queries may have reduced accuracy with very large datasets (\~10M+ vectors)
119
+ - Range queries may have reduced accuracy with large datasets (\~10M+ vectors)
120
120
 
121
121
  ### libSQL
122
122
 
@@ -209,7 +209,7 @@ await store.createIndex({
209
209
 
210
210
  - Currently doesn't have support for metadata filters. Filtering must be done client-side after retrieving results or by using the Couchbase SDK's Search capabilities directly for more complex queries.
211
211
 
212
- ### Amazon S3 Vectors
212
+ ### Amazon S3 vectors
213
213
 
214
214
  - Equality values must be primitives (string/number/boolean). `null`/`undefined`, arrays, objects, and Date aren't allowed for equality. Range operators accept numbers or Date (Dates are normalized to epoch ms).
215
215
  - `$in`/`$nin` require **non-empty arrays of primitives**. Date elements are allowed and normalized to epoch ms. **Array equality** isn't supported.
@@ -13,6 +13,10 @@ Mastra's RAG system provides:
13
13
  - Chunking and embedding strategies for optimal retrieval
14
14
  - Observability for tracking embedding and retrieval performance
15
15
 
16
+ > **Note:** For agents that answer from your docs, policies or other content, use [Knowledge](https://mastra.ai/docs/knowledge/overview). You [load your content](https://mastra.ai/docs/knowledge/load-your-content) into it, agents [search it](https://mastra.ai/docs/knowledge/search) by keyword and, with a vector store and embedder, by meaning, and [scopes](https://mastra.ai/docs/knowledge/scopes-and-access) decide which customer's or team's content each run can read. Knowledge was added in `@mastra/core@1.82.0` and is in alpha, so its API may change between releases.
17
+ >
18
+ > Use the RAG APIs when you need direct control over chunking, embedding, vector stores and retrieval.
19
+
16
20
  ## Example
17
21
 
18
22
  To implement RAG, you process your documents into chunks, create embeddings, store them in a vector database, and then retrieve relevant context at query time.
@@ -57,7 +57,7 @@ const rerankedResults = await rerank(vectorSearchResults, 'How do I deploy to pr
57
57
 
58
58
  The rerank function accepts any LanguageModel from the Vercel AI SDK. When using the Cohere model `rerank-v3.5`, it will automatically use Cohere's reranking capabilities.
59
59
 
60
- > **Note:** For semantic scoring to work properly during re-ranking, each result must include the text content in its `metadata.text` field.
60
+ > **Note:** For semantic scoring to work during re-ranking, each result must include the text content in its `metadata.text` field.
61
61
 
62
62
  ## Returns
63
63
 
@@ -61,7 +61,7 @@ const rerankedResults = await rerank({
61
61
 
62
62
  The `rerankWithScorer` function accepts any `RelevanceScoreProvider` from @mastra/rag.
63
63
 
64
- > **Note:** For semantic scoring to work properly during re-ranking, each result must include the text content in its `metadata.text` field.
64
+ > **Note:** For semantic scoring to work during re-ranking, each result must include the text content in its `metadata.text` field.
65
65
 
66
66
  ## Returns
67
67
 
@@ -8,6 +8,8 @@ After storing embeddings, you need to retrieve relevant chunks to answer user qu
8
8
 
9
9
  Mastra provides flexible retrieval options with support for semantic search, filtering, and re-ranking.
10
10
 
11
+ For an agent that answers from your docs or policies, with each customer or team limited to its own content, use [Knowledge](https://mastra.ai/docs/knowledge/overview) and its [scopes](https://mastra.ai/docs/knowledge/scopes-and-access) instead. The [RAG overview](https://mastra.ai/reference/rag/overview) explains when to use each.
12
+
11
13
  ## How retrieval works
12
14
 
13
15
  1. The user's query is converted to an embedding using the same model used for document embeddings
@@ -71,7 +73,7 @@ Results can also include `vector` when you set `includeVector: true`, and `docum
71
73
 
72
74
  ## Advanced retrieval options
73
75
 
74
- ### Metadata Filtering
76
+ ### Metadata filtering
75
77
 
76
78
  Filter results based on metadata fields to narrow down the search space. This approach - combining vector similarity search with metadata filters - is sometimes called hybrid vector search, as it merges semantic search with structured filtering criteria.
77
79
 
@@ -257,7 +259,7 @@ With IVFFlat, or HNSW on older pgvector versions, pgVector compares the query ve
257
259
 
258
260
  Indexing the metadata fields you filter on speeds up both cases and gives PostgreSQL the row counts it needs to choose between them.
259
261
 
260
- ### Vector Query Tool
262
+ ### Vector query tool
261
263
 
262
264
  Sometimes you want to give your agent the ability to query a vector database directly. The Vector Query Tool allows your agent to be in charge of retrieval decisions, combining semantic search with optional filtering and reranking based on the agent's understanding of the user's needs.
263
265
 
@@ -272,7 +274,7 @@ const vectorQueryTool = createVectorQueryTool({
272
274
  })
273
275
  ```
274
276
 
275
- When creating the tool, pay special attention to the tool's name and description - these help the agent understand when and how to use the retrieval capabilities. For example, you might name it "SearchKnowledgeBase" and describe it as "Search through our documentation to find relevant information about X topic."
277
+ When creating the tool, pay special attention to the tool's name and description - these help the agent understand when and how to use the retrieval capabilities. For example, you might name it "SearchKnowledgeBase" and describe it as "Search the documentation to find relevant information about X topic."
276
278
 
277
279
  This is particularly useful when:
278
280
 
@@ -280,7 +282,7 @@ This is particularly useful when:
280
282
  - The retrieval process requires complex decision-making
281
283
  - You want the agent to combine multiple retrieval strategies based on context
282
284
 
283
- #### Database-Specific Configurations
285
+ #### Database-specific configurations
284
286
 
285
287
  The Vector Query Tool supports database-specific configurations that enable you to use unique features and optimizations of different vector stores.
286
288
 
@@ -378,7 +380,7 @@ await pineconeQueryTool.execute({ queryText: 'search query' }, { mastra, request
378
380
 
379
381
  For detailed configuration options and advanced usage, see the [Vector Query Tool Reference](https://mastra.ai/reference/tools/vector-query-tool).
380
382
 
381
- ### Vector Store Prompts
383
+ ### Vector store prompts
382
384
 
383
385
  Vector store prompts define query patterns and filtering capabilities for each vector database implementation. When implementing filtering, these prompts are required in the agent's instructions to specify valid operators and syntax for each vector store implementation.
384
386
 
@@ -645,7 +647,7 @@ The weights control how different factors influence the final ranking:
645
647
  - `vector`: Higher values favor the original vector similarity scores
646
648
  - `position`: Higher values help maintain the original ordering of results
647
649
 
648
- > **Note:** For semantic scoring to work properly during re-ranking, each result must include the text content in its `metadata.text` field.
650
+ > **Note:** For semantic scoring to work during re-ranking, each result must include the text content in its `metadata.text` field.
649
651
 
650
652
  You can also use other relevance score providers like Voyage AI, Cohere, or ZeroEntropy:
651
653
 
@@ -39,7 +39,7 @@ MongoDB works directly with VoyageAI's embedding models, which are optimized for
39
39
 
40
40
  ### Hybrid Search (Vector + Full-Text)
41
41
 
42
- MongoDB supports hybrid search that combines vector similarity with BM25 full-text search through server-side `$rankFusion`. It requires MongoDB 8.0 or later, is generally available from 8.1, and is enabled on MongoDB Atlas 8.0.x. Use it to combine semantic retrieval with keyword-based results:
42
+ MongoDB supports hybrid search that combines vector similarity with BM25 full-text search through server-side `$rankFusion`. It requires MongoDB 8.0 or later, is available from 8.1, and is enabled on MongoDB Atlas 8.0.x. Use it to combine semantic retrieval with keyword-based results:
43
43
 
44
44
  ```ts
45
45
  await store.createSearchIndex({ indexName: 'myCollection', fields: ['text'] })
@@ -469,7 +469,7 @@ await store.upsert({
469
469
 
470
470
  Once initialized, all vector stores share the same interface for creating indexes, upserting embeddings, and querying.
471
471
 
472
- ### Creating Indexes
472
+ ### Creating indexes
473
473
 
474
474
  Before storing embeddings, you need to create an index with the appropriate dimension size for your embedding model:
475
475
 
@@ -490,7 +490,7 @@ The dimension size must match the output dimension of your chosen embedding mode
490
490
 
491
491
  > **Warning:** Index dimensions can't be changed after creation. To use a different model, delete and recreate the index with the new dimension size.
492
492
 
493
- ### Naming Rules for Databases
493
+ ### Naming rules for databases
494
494
 
495
495
  Each vector database enforces specific naming conventions for indexes and collections to ensure compatibility and prevent conflicts.
496
496
 
@@ -683,7 +683,7 @@ Index names must:
683
683
  - Example: `MyIndex` isn't valid (contains uppercase letters)
684
684
  - Example: `my-index-` isn't valid (ends with a dash)
685
685
 
686
- ### Upserting Embeddings
686
+ ### Upserting embeddings
687
687
 
688
688
  After creating an index, you can store embeddings along with their basic metadata:
689
689
 
@@ -748,7 +748,7 @@ Key metadata considerations:
748
748
 
749
749
  Use `deleteVectors` with a metadata filter to remove embeddings associated with a document. This is useful for cleaning up stale vectors after a document is deleted or updated.
750
750
 
751
- ### Delete by Metadata Filter
751
+ ### Delete by metadata filter
752
752
 
753
753
  The most common use case is deleting all vectors for a specific document when a user deletes it:
754
754
 
@@ -766,7 +766,7 @@ This is particularly useful when:
766
766
  - You're re-indexing a document and want to remove old vectors first
767
767
  - You need to clean up vectors for a specific user or tenant
768
768
 
769
- ### Delete Multiple Documents
769
+ ### Delete multiple documents
770
770
 
771
771
  You can also use complex filters to delete vectors matching multiple conditions:
772
772
 
@@ -788,7 +788,7 @@ await store.deleteVectors({
788
788
  })
789
789
  ```
790
790
 
791
- ### Delete by Vector IDs
791
+ ### Delete by vector IDs
792
792
 
793
793
  If you have specific vector IDs to delete, you can pass them directly:
794
794
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
4
4
 
5
- # NestJS Adapter
5
+ # NestJS adapter
6
6
 
7
7
  The `@mastra/nestjs` package provides a NestJS module for running Mastra with the Express-based NestJS platform.
8
8
 
@@ -92,7 +92,7 @@ handler: async c => {
92
92
 
93
93
  ## Examples
94
94
 
95
- ### Basic GET Route
95
+ ### Basic GET route
96
96
 
97
97
  ```typescript
98
98
  import { Mastra } from '@mastra/core'
@@ -112,7 +112,7 @@ export const mastra = new Mastra({
112
112
  })
113
113
  ```
114
114
 
115
- ### Route with Path Parameters
115
+ ### Route with path parameters
116
116
 
117
117
  ```typescript
118
118
  registerApiRoute('/users/:userId/posts/:postId', {
@@ -126,7 +126,7 @@ registerApiRoute('/users/:userId/posts/:postId', {
126
126
  })
127
127
  ```
128
128
 
129
- ### POST Route with Body
129
+ ### POST route with body
130
130
 
131
131
  ```typescript
132
132
  registerApiRoute('/items', {
@@ -142,7 +142,7 @@ registerApiRoute('/items', {
142
142
  })
143
143
  ```
144
144
 
145
- ### Route with Middleware
145
+ ### Route with middleware
146
146
 
147
147
  ```typescript
148
148
  registerApiRoute('/protected', {
@@ -179,7 +179,7 @@ registerApiRoute('/customer-webhook', {
179
179
  })
180
180
  ```
181
181
 
182
- ### Route with OpenAPI Documentation
182
+ ### Route with OpenAPI documentation
183
183
 
184
184
  ```typescript
185
185
  import { z } from 'zod'
@@ -372,7 +372,7 @@ const storage = new MastraCompositeStore({
372
372
 
373
373
  ### Specialized storage for observability
374
374
 
375
- Observability data can quickly overwhelm general-purpose databases in production. A single agent interaction can generate hundreds of spans, and high-traffic applications can produce thousands of traces per day.
375
+ Observability data can overwhelm general-purpose databases in production. A single agent interaction can generate hundreds of spans, and high-traffic applications can produce thousands of traces per day.
376
376
 
377
377
  **[ClickHouse](https://mastra.ai/integrations/databases/clickhouse)** is recommended for production observability because it's optimized for high-volume, write-heavy analytics workloads. Use composite storage to route observability to ClickHouse while keeping other data in your primary database:
378
378
 
@@ -49,7 +49,7 @@ Stores conversation messages and their metadata. Each message belongs to a threa
49
49
 
50
50
  idtextPRIMARYKEYNOT NULLUnique identifier for the messagethread_idtextFK → threads.idNOT NULLParent thread referenceresourceIdtextCAN BE NULLID of the resource that owns this messagecontenttextNOT NULLJSON of the message content in V2 format. Example: `{ format: 2, parts: [...] }`roletextNOT NULLEnum of `user | assistant`createdAttimestampNOT NULLUsed for thread message ordering
51
51
 
52
- The message `content` column contains a JSON object conforming to the `MastraMessageContentV2` type, which is designed to align closely with the AI SDK `UIMessage` message shape.
52
+ The message `content` column contains a JSON object conforming to the `MastraMessageContentV2` type, which is designed to align with the AI SDK `UIMessage` message shape.
53
53
 
54
54
  formatintegerNOT NULLMessage format version (currently 2)partsarray (JSON)NOT NULLArray of message parts (text, tool-invocation, file, reasoning, etc.). The structure of items in this array varies by `type`.experimental_attachmentsarray (JSON)CAN BE NULLOptional array of file attachmentscontenttextCAN BE NULLOptional main text content of the messagetoolInvocationsarray (JSON)CAN BE NULLOptional array summarizing tool calls and resultsreasoningobject (JSON)CAN BE NULLOptional information about the reasoning process behind the assistant's responseannotationsobject (JSON)CAN BE NULLOptional additional metadata or annotations
55
55
 
@@ -39,7 +39,7 @@ Storage adapters use the shared core retention contract for `prune()`, or a data
39
39
 
40
40
  Run `prune()` from a scheduler or maintenance worker, not from application startup or shutdown hooks. For deployments that share a database, prefer a single active scheduler or worker for pruning.
41
41
 
42
- Prefer lower-traffic periods when pruning large tables. Use `maxBatches`, `maxRows`, and `pauseMs` to bound each run, and pass an `AbortSignal` when the maintenance process needs to stop promptly. These recommendations apply to adapters that expose `prune()`. ClickHouse applies its native time to live (TTL) policy within the database.
42
+ Prefer lower-traffic periods when pruning large tables. Use `maxBatches`, `maxRows`, and `pauseMs` to bound each run, and pass an `AbortSignal` when the maintenance process needs to stop on request. These recommendations apply to adapters that expose `prune()`. ClickHouse applies its native time to live (TTL) policy within the database.
43
43
 
44
44
  ## Usage example
45
45
 
@@ -296,7 +296,7 @@ const storage = new MongoDBStore({
296
296
 
297
297
  `prune()` deletes rows but doesn't shrink the database file. On SQLite/libSQL the freed pages go on a freelist for reuse by future writes. Reusing these pages prevents unbounded file growth for most users.
298
298
 
299
- Handing that free space back to the OS is a separate concern that Mastra doesn't manage. If you specifically need to shrink the file, run the underlying database's compaction (for example `VACUUM` on self-hosted libSQL) yourself in a maintenance window. A full `VACUUM` locks the file and needs roughly twice the file size in free disk. On PostgreSQL, autovacuum reclaims dead tuples for reuse automatically. A manual `VACUUM FULL` is only needed if you must return disk to the OS.
299
+ Handing that free space back to the OS is a separate concern that Mastra doesn't manage. If you specifically need to shrink the file, run the underlying database's compaction (for example `VACUUM` on self-hosted libSQL) yourself in a maintenance window. A full `VACUUM` locks the file and needs about twice the file size in free disk. On PostgreSQL, autovacuum reclaims dead tuples for reuse automatically. A manual `VACUUM FULL` is only needed if you must return disk to the OS.
300
300
 
301
301
  For MongoDB, deleted documents are reused by future insertions. To reclaim disk space, run [`db.runCommand({ compact: "collection_name" })`](https://www.mongodb.com/docs/manual/reference/command/compact/) during a maintenance window.
302
302
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
4
4
 
5
- # Turso Storage
5
+ # Turso storage
6
6
 
7
7
  Use `@mastra/turso` to store Mastra agents, workflows, memory, and other storage domains in a local [Turso Database](https://github.com/tursodatabase/turso) file.
8
8
 
@@ -131,7 +131,7 @@ These properties resolve to final values after the stream completes:
131
131
 
132
132
  ## Usage examples
133
133
 
134
- ### Basic Text Streaming
134
+ ### Basic text streaming
135
135
 
136
136
  ```typescript
137
137
  const stream = await agent.stream('Write a haiku')
@@ -146,7 +146,7 @@ const fullText = await stream.text
146
146
  console.log(fullText)
147
147
  ```
148
148
 
149
- ### Structured Output Streaming
149
+ ### Structured output streaming
150
150
 
151
151
  ```typescript
152
152
  const stream = await agent.stream('Generate user data', {
@@ -169,7 +169,7 @@ const user = await stream.object
169
169
  console.log('Final:', user) // { name: "John", age: 30, email: "john@example.com" }
170
170
  ```
171
171
 
172
- ### Tool Calls and Results
172
+ ### Tool calls and results
173
173
 
174
174
  ```typescript
175
175
  const stream = await agent.stream("What's the weather in NYC?", {
@@ -184,7 +184,7 @@ console.log('Tools called:', toolCalls)
184
184
  console.log('Results:', toolResults)
185
185
  ```
186
186
 
187
- ### Complete Output Access
187
+ ### Complete output access
188
188
 
189
189
  ```typescript
190
190
  const stream = await agent.stream('Analyze this data')
@@ -198,7 +198,7 @@ console.log({
198
198
  })
199
199
  ```
200
200
 
201
- ### Full Stream Processing
201
+ ### Full stream processing
202
202
 
203
203
  ```typescript
204
204
  const stream = await agent.stream('Complex task')
@@ -305,7 +305,7 @@ To abort a run you no longer hold a handle to, use the `runId` with [`durableAge
305
305
 
306
306
  ## Extended usage example
307
307
 
308
- ### Mastra Format (Default)
308
+ ### Mastra format (default)
309
309
 
310
310
  ```ts
311
311
  import { stepCountIs } from 'ai-v5'
@@ -355,9 +355,9 @@ Exceeding a budget fails with a `MastraTimeoutError`, which carries a `timeoutTy
355
355
 
356
356
  Nested `timeout` settings are merged per key across call-time and per-model `modelSettings`, so a per-model `stepMs` override keeps a call-time `firstChunkMs`.
357
357
 
358
- ### AI SDK v5+ Format
358
+ ### AI SDK v5+ format
359
359
 
360
- To use the stream with AI SDK v5 (and later), you can convert it using our utility function `toAISdkStream`.
360
+ To use the stream with AI SDK v5 (and later), you can convert it using the `toAISdkStream` utility.
361
361
 
362
362
  ```ts
363
363
  import { stepCountIs, createUIMessageStreamResponse } from 'ai'
@@ -376,7 +376,7 @@ return createUIMessageStreamResponse({
376
376
  })
377
377
  ```
378
378
 
379
- ### Using Callbacks
379
+ ### Using callbacks
380
380
 
381
381
  All callback functions are now available as top-level properties for a cleaner API experience.
382
382
 
@@ -406,7 +406,7 @@ for await (const chunk of stream.textStream) {
406
406
  }
407
407
  ```
408
408
 
409
- ### Advanced example with Options
409
+ ### Advanced example with options
410
410
 
411
411
  ```ts
412
412
  import { z } from 'zod'
@@ -2,7 +2,7 @@
2
2
 
3
3
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
4
4
 
5
- # Agent.streamLegacy() (Legacy)
5
+ # Agent.streamLegacy() (legacy)
6
6
 
7
7
  > **Warning:** **Deprecated**: This method is deprecated and only works with V1 models. For V2 models, use the new [`.stream()`](https://mastra.ai/reference/streaming/agents/stream) method instead. See the [migration guide](https://mastra.ai/reference/migrations/vnext-to-standard-apis) for details on upgrading.
8
8
 
@@ -146,9 +146,9 @@ await agent.streamLegacy('message for agent', {
146
146
 
147
147
  > **Note:** The new `.stream()` method offers enhanced capabilities including AI SDK v5+ compatibility, better structured-output handling, and improved callback system. See the [migration guide](https://mastra.ai/reference/migrations/vnext-to-standard-apis) for detailed migration instructions.
148
148
 
149
- ### Quick Migration Example
149
+ ### Quick migration example
150
150
 
151
- #### Before (Legacy)
151
+ #### Before (legacy)
152
152
 
153
153
  ```typescript
154
154
  const result = await agent.streamLegacy('message', {
@@ -158,7 +158,7 @@ const result = await agent.streamLegacy('message', {
158
158
  })
159
159
  ```
160
160
 
161
- #### After (New API)
161
+ #### After (new API)
162
162
 
163
163
  ```typescript
164
164
  const result = await agent.stream('message', {
@@ -55,7 +55,7 @@ bun x create-mastra@latest my-project --template template-name
55
55
 
56
56
  This creates a complete project and installs its dependencies. The template author controls the models, provider dependencies, environment variables, and source code.
57
57
 
58
- ### Setup Process
58
+ ### Setup process
59
59
 
60
60
  After installation:
61
61