@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
@@ -165,7 +165,7 @@ bun x mastra@latest init
165
165
  This creates a `src/mastra` folder with an example weather agent and the following files:
166
166
 
167
167
  - `index.ts`: Mastra config, including memory
168
- - `tools/weather-tool.ts`: A tool to fetch weather for a given location
168
+ - `tools/weather-tool.ts`: A tool to fetch the weather for a location
169
169
  - `agents/weather-agent.ts`: A weather agent with a prompt that uses the tool
170
170
 
171
171
  You'll call `weather-agent.ts` from your chat UI in the next steps.
@@ -224,9 +224,9 @@ yarn dlx ai-elements@latest
224
224
  bun x ai-elements@latest
225
225
  ```
226
226
 
227
- > **Note:** The `ai-elements` command runs `shadcn add` against the AI Elements registry, which currently publishes Radix UI components only. Installing them into a Base UI project produces TypeScript errors, tracked in [vercel/ai-elements#383](https://github.com/vercel/ai-elements/issues/383).
227
+ > **Note:** The `ai-elements` command runs `shadcn add` against the AI Elements registry, which currently publishes Radix UI components only. Installing them into a Base UI project produces TypeScript errors, tracked in [ai-elements#383](https://github.com/vercel/ai-elements/issues/383).
228
228
  >
229
- > The component library prompt only appears when your project has no `components.json`. If you already have one, check that its `style` is a Radix option, such as `new-york` or a `radix-*` style, and not a `base-*` style, before running the command.
229
+ > The component library prompt only shows up when your project has no `components.json`. If you already have one, check that its `style` is a Radix option, such as `new-york` or a `radix-*` style, and not a `base-*` style, before running the command.
230
230
 
231
231
  This downloads the entire AI Elements UI component library into a `@/components/ai-elements` folder.
232
232
 
@@ -36,7 +36,7 @@ bun add @mastra/arize@latest
36
36
 
37
37
  ## Configuration
38
38
 
39
- ### Phoenix Setup
39
+ ### Phoenix setup
40
40
 
41
41
  Phoenix is an open-source observability platform that can run locally or be self-hosted.
42
42
 
@@ -56,7 +56,7 @@ PHOENIX_API_KEY=your-api-key # For authenticated Phoenix instances
56
56
  PHOENIX_PROJECT_NAME=mastra-service # Defaults to 'mastra-service'
57
57
  ```
58
58
 
59
- #### Zero-Config Setup
59
+ #### Zero-config setup
60
60
 
61
61
  With environment variables set, use the exporter with no configuration:
62
62
 
@@ -77,7 +77,7 @@ export const mastra = new Mastra({
77
77
  })
78
78
  ```
79
79
 
80
- #### Explicit Configuration
80
+ #### Explicit configuration
81
81
 
82
82
  You can also pass credentials directly (takes precedence over environment variables):
83
83
 
@@ -114,7 +114,7 @@ export const mastra = new Mastra({
114
114
  >
115
115
  > Set `PHOENIX_COLLECTOR_ENDPOINT=http://localhost:6006/v1/traces` and run your Mastra agent to see traces at [localhost:6006](http://localhost:6006).
116
116
 
117
- ### Arize AX Setup
117
+ ### Arize AX setup
118
118
 
119
119
  Arize AX is a managed cloud and enterprise self-hosted observability platform with advanced features for production AI systems.
120
120
 
@@ -134,7 +134,7 @@ ARIZE_API_KEY=your-api-key
134
134
  ARIZE_PROJECT_NAME=mastra-service
135
135
  ```
136
136
 
137
- #### Zero-Config Setup
137
+ #### Zero-config setup
138
138
 
139
139
  With environment variables set, use the exporter with no configuration:
140
140
 
@@ -155,7 +155,7 @@ export const mastra = new Mastra({
155
155
  })
156
156
  ```
157
157
 
158
- #### Explicit Configuration
158
+ #### Explicit configuration
159
159
 
160
160
  You can also pass credentials directly (takes precedence over environment variables):
161
161
 
@@ -186,7 +186,7 @@ export const mastra = new Mastra({
186
186
 
187
187
  The Arize exporter supports advanced configuration for fine-tuning OpenTelemetry behavior:
188
188
 
189
- ### Complete Configuration
189
+ ### Complete configuration
190
190
 
191
191
  ```typescript
192
192
  new ArizeExporter({
@@ -218,7 +218,7 @@ new ArizeExporter({
218
218
  })
219
219
  ```
220
220
 
221
- ### Batch Processing Options
221
+ ### Batch processing options
222
222
 
223
223
  Control how traces are batched and exported:
224
224
 
@@ -233,7 +233,7 @@ new ArizeExporter({
233
233
  })
234
234
  ```
235
235
 
236
- ### Resource Attributes
236
+ ### Resource attributes
237
237
 
238
238
  Add custom attributes to all exported spans:
239
239
 
@@ -60,7 +60,7 @@ ARTHUR_BASE_URL=http://localhost:3030
60
60
  ARTHUR_TASK_ID=your-task-id
61
61
  ```
62
62
 
63
- ### Zero-Config Setup
63
+ ### Zero-config setup
64
64
 
65
65
  With environment variables set, use the exporter with no configuration:
66
66
 
@@ -81,7 +81,7 @@ export const mastra = new Mastra({
81
81
  })
82
82
  ```
83
83
 
84
- ### Explicit Configuration
84
+ ### Explicit configuration
85
85
 
86
86
  You can also pass credentials directly (takes precedence over environment variables):
87
87
 
@@ -110,7 +110,7 @@ export const mastra = new Mastra({
110
110
 
111
111
  ## Configuration options
112
112
 
113
- ### Complete Configuration
113
+ ### Complete configuration
114
114
 
115
115
  ```typescript
116
116
  new ArthurExporter({
@@ -48,7 +48,7 @@ BRAINTRUST_API_KEY=sk-xxxxxxxxxxxxxxxx
48
48
  BRAINTRUST_ENDPOINT=https://api.braintrust.dev # Custom endpoint if needed
49
49
  ```
50
50
 
51
- ### Zero-Config Setup
51
+ ### Zero-config setup
52
52
 
53
53
  With environment variables set, use the exporter with no configuration:
54
54
 
@@ -69,7 +69,7 @@ export const mastra = new Mastra({
69
69
  })
70
70
  ```
71
71
 
72
- ### Explicit Configuration
72
+ ### Explicit configuration
73
73
 
74
74
  You can also pass credentials directly (takes precedence over environment variables):
75
75
 
@@ -95,7 +95,7 @@ export const mastra = new Mastra({
95
95
  })
96
96
  ```
97
97
 
98
- ### Complete Configuration
98
+ ### Complete configuration
99
99
 
100
100
  ```typescript
101
101
  new BraintrustExporter({
@@ -49,7 +49,7 @@ CONFIDENT_API_KEY=confident_proj_xxxxxxxxxxxxx
49
49
  CONFIDENT_OTEL_ENDPOINT=https://eu.otel.confident-ai.com/v1/traces
50
50
  ```
51
51
 
52
- ### Zero-Config Setup
52
+ ### Zero-config setup
53
53
 
54
54
  With environment variables set, use the exporter with no configuration:
55
55
 
@@ -70,7 +70,7 @@ export const mastra = new Mastra({
70
70
  })
71
71
  ```
72
72
 
73
- ### Explicit Configuration
73
+ ### Explicit configuration
74
74
 
75
75
  You can also pass credentials directly (takes precedence over environment variables):
76
76
 
@@ -136,7 +136,7 @@ const result = await mastra.getAgent('assistant').generate('How do you make the
136
136
  })
137
137
  ```
138
138
 
139
- Your metadata is merged with the fields Mastra sets itself, such as `runId`. Tags apply to the root span, so they land on the trace rather than on individual spans.
139
+ Your metadata is merged with the fields Mastra sets itself, such as `runId`. Tags apply to the root span, which means they apply to the trace rather than to individual spans.
140
140
 
141
141
  ## Lifecycle
142
142
 
@@ -152,11 +152,11 @@ In a long-running server, shut down during graceful shutdown rather than per req
152
152
 
153
153
  ## Threads and trace properties
154
154
 
155
- This exporter maps Mastra's own tracing surface, so trace metadata and tags come from `tracingOptions` as shown above.
155
+ This exporter maps Mastra's own tracing surface, so trace metadata and tags come from the `tracingOptions` passed to the traced call.
156
156
 
157
157
  Grouping turns into [threads](https://www.confident-ai.com/docs/llm-tracing/features/threads) and setting trace-level properties such as user IDs use `confident-trace`'s SDK instrumentation, which attaches to Mastra directly rather than through an exporter. See the [Mastra integration guide](https://www.confident-ai.com/docs/integrations/third-party/mastra) for that setup.
158
158
 
159
- Choose one or the other. Do not use both at once.
159
+ Choose one or the other. Don't use both at once.
160
160
 
161
161
  ## Related
162
162
 
@@ -51,7 +51,7 @@ DD_SITE=datadoghq.com # Optional: defaults to datadoghq.com
51
51
  DD_ENV=production # Optional: environment name
52
52
  ```
53
53
 
54
- #### Zero-Config Setup
54
+ #### Zero-config setup
55
55
 
56
56
  With environment variables set, use the exporter with no configuration:
57
57
 
@@ -72,7 +72,7 @@ export const mastra = new Mastra({
72
72
  })
73
73
  ```
74
74
 
75
- #### Explicit Configuration
75
+ #### Explicit configuration
76
76
 
77
77
  You can also pass credentials directly (takes precedence over environment variables):
78
78
 
@@ -100,7 +100,7 @@ export const mastra = new Mastra({
100
100
 
101
101
  ### Configuration options
102
102
 
103
- #### Complete Configuration
103
+ #### Complete configuration
104
104
 
105
105
  ```typescript
106
106
  new DatadogExporter({
@@ -122,7 +122,7 @@ new DatadogExporter({
122
122
  })
123
123
  ```
124
124
 
125
- #### With Local Datadog Agent
125
+ #### With local Datadog agent
126
126
 
127
127
  If you have a Datadog Agent running locally, you can route traces through it instead of direct HTTPS:
128
128
 
@@ -153,7 +153,7 @@ Mastra span types are automatically mapped to Datadog LLM Observability span kin
153
153
 
154
154
  Other/future Mastra span types will default to 'task' when mapped unless specified.
155
155
 
156
- ### Application Performance Monitoring
156
+ ### Application performance monitoring
157
157
 
158
158
  The sections above cover Mastra's [LLM Observability](https://docs.datadoghq.com/llm_observability/) integration. To trace your Mastra HTTP server routes (request latency, error tracking, service maps), use `dd-trace` directly for Datadog Application Performance Monitoring (APM).
159
159
 
@@ -227,7 +227,7 @@ DD_VERSION=1.0.0
227
227
 
228
228
  `dd-trace` auto-instruments popular HTTP frameworks, including those supported by Mastra's [server adapters](https://mastra.ai/docs/server/server-adapters). Inbound requests, outbound HTTP calls, and database queries appear as APM traces in Datadog.
229
229
 
230
- #### APM and LLM Observability
230
+ #### APM and LLM observability
231
231
 
232
232
  Import and initialize `dd-trace` before creating the Mastra instance. The `DatadogExporter` detects the existing tracer and skips re-initialization, adding LLM Observability on top of your APM setup:
233
233
 
@@ -280,7 +280,7 @@ DD_LLMOBS_ML_APP=my-llm-app
280
280
 
281
281
  Server routes appear as APM traces and LLM calls appear as LLM Observability spans, all under the same service in Datadog.
282
282
 
283
- > **Note:** Import and initialize `dd-trace` before all other modules. This allows its auto-instrumentation to patch HTTP, database, and framework libraries at load time.
283
+ > **Note:** Import and initialize `dd-trace` before all other modules so its auto-instrumentation can patch HTTP, database, and framework libraries at load time.
284
284
 
285
285
  ### Troubleshooting
286
286
 
@@ -419,9 +419,9 @@ import { DatadogBridge } from '@mastra/datadog'
419
419
  // ...
420
420
  ```
421
421
 
422
- > **Note:** Import and initialize `dd-trace` at the very top of your application's entry file, before any other imports.
422
+ > **Note:** Import and initialize `dd-trace` at the top of your application's entry file, before any other imports.
423
423
 
424
- #### Step 2: Mastra Configuration
424
+ #### Step 2: Mastra configuration
425
425
 
426
426
  Add the `DatadogBridge` to your Mastra observability config:
427
427
 
@@ -48,7 +48,7 @@ LMNR_PROJECT_API_KEY=lmnr_...
48
48
  LMNR_BASE_URL=https://api.lmnr.ai
49
49
  ```
50
50
 
51
- ### Zero-Config Setup
51
+ ### Zero-config setup
52
52
 
53
53
  With environment variables set, use the exporter with no configuration:
54
54
 
@@ -71,7 +71,7 @@ export const mastra = new Mastra({
71
71
  })
72
72
  ```
73
73
 
74
- ### Explicit Configuration
74
+ ### Explicit configuration
75
75
 
76
76
  You can also pass credentials directly (takes precedence over environment variables):
77
77
 
@@ -46,7 +46,7 @@ LANGFUSE_SECRET_KEY=sk-lf-xxxxxxxxxxxx
46
46
  LANGFUSE_BASE_URL=https://cloud.langfuse.com # Or your self-hosted URL
47
47
  ```
48
48
 
49
- ### Zero-Config Setup
49
+ ### Zero-config setup
50
50
 
51
51
  With environment variables set, use the exporter with no configuration:
52
52
 
@@ -67,7 +67,7 @@ export const mastra = new Mastra({
67
67
  })
68
68
  ```
69
69
 
70
- ### Explicit Configuration
70
+ ### Explicit configuration
71
71
 
72
72
  You can also pass credentials directly (takes precedence over environment variables):
73
73
 
@@ -98,11 +98,11 @@ export const mastra = new Mastra({
98
98
 
99
99
  ## Configuration options
100
100
 
101
- ### Realtime vs Batch Mode
101
+ ### Realtime vs batch mode
102
102
 
103
103
  The Langfuse exporter supports two modes for sending traces:
104
104
 
105
- #### Realtime Mode (Development)
105
+ #### Realtime mode (development)
106
106
 
107
107
  Traces appear immediately in Langfuse dashboard, ideal for debugging:
108
108
 
@@ -114,7 +114,7 @@ new LangfuseExporter({
114
114
  })
115
115
  ```
116
116
 
117
- #### Batch Mode (Production)
117
+ #### Batch mode (production)
118
118
 
119
119
  Better performance with automatic batching:
120
120
 
@@ -126,7 +126,7 @@ new LangfuseExporter({
126
126
  })
127
127
  ```
128
128
 
129
- #### Batch Tuning for High-Volume Traces
129
+ #### Batch tuning for high-volume traces
130
130
 
131
131
  For self-hosted Langfuse deployments or streamed runs that produce many spans per second, you can tune the OTEL batch size and flush interval to reduce request pressure on the Langfuse ingestion endpoint:
132
132
 
@@ -155,7 +155,7 @@ new Observability({
155
155
  })
156
156
  ```
157
157
 
158
- ### Complete Configuration
158
+ ### Complete configuration
159
159
 
160
160
  ```typescript
161
161
  new LangfuseExporter({
@@ -197,7 +197,7 @@ The trace name dropdown in Langfuse evaluator filters lists every distinct value
197
197
 
198
198
  If you set a custom `traceName` via `mastra.metadata.traceName`, your value takes precedence over the default agent name.
199
199
 
200
- A run started with `tracingOptions.nestUnderParent` doesn't own the trace, so the exporter doesn't write the trace name, input, output, metadata, user, or session from it. See [Nesting a run under an earlier Mastra run](https://mastra.ai/docs/observability/tracing/overview).
200
+ A run started with `tracingOptions.nestUnderParent` doesn't own the trace, and the exporter doesn't write the trace name, input, output, metadata, user, or session from it. See [Nesting a run under an earlier run](https://mastra.ai/docs/observability/tracing/overview).
201
201
 
202
202
  ## Filtering observations by span attributes
203
203
 
@@ -226,7 +226,7 @@ const tracingOptions = {
226
226
 
227
227
  This example produces `langfuse.trace.metadata.customerId` and `langfuse.trace.metadata.tier`.
228
228
 
229
- Metadata on the root span is also forwarded. Mastra sets `runId` and `resourceId` on every agent and workflow root span, and you can add your own keys through `tracingOptions.metadata`. The exporter forwards each of these root span keys to `langfuse.trace.metadata.<key>`. Keys that map to a dedicated Langfuse field (`userId`, `sessionId`, `threadId`, `traceName`, and `version`) are not duplicated as trace metadata. Other metadata on child spans stays on the observation. Dedicated fields such as session IDs follow their own mapping rules.
229
+ Metadata on the root span is also forwarded. Mastra sets `runId` and `resourceId` on every agent and workflow root span, and you can add your own keys through `tracingOptions.metadata`. The exporter forwards each of these root span keys to `langfuse.trace.metadata.<key>`. Keys that map to a dedicated Langfuse field (`userId`, `sessionId`, `threadId`, `traceName`, and `version`) aren't duplicated as trace metadata. Other metadata on child spans stays on the observation. Dedicated fields such as session IDs follow their own mapping rules.
230
230
 
231
231
  Notes:
232
232
 
@@ -241,7 +241,7 @@ The exporter maps span metadata to Langfuse sessions using `sessionId`, or `thre
241
241
 
242
242
  For [Observational Memory](https://mastra.ai/docs/memory/observational-memory), the Langfuse exporter keeps observer and reflector spans in the caller's session, even when child spans arrive before their parents. An explicit `sessionId`, including an empty string, takes precedence. Otherwise, the exporter uses the original caller thread carried by Observational Memory before falling back to the span's own `threadId`. Observational Memory captures that caller identity from the caller span's non-empty `threadId`, or the original request's thread ID. Nested observation preserves the outer caller identity.
243
243
 
244
- This thread-to-session fallback is specific to Langfuse. Observational Memory doesn't synthesize generic `sessionId` metadata from a thread ID for other exporters.
244
+ This thread-to-session fallback is specific to Langfuse, and Observational Memory doesn't synthesize generic `sessionId` metadata from a thread ID for other exporters.
245
245
 
246
246
  Internal observer and reflector execution threads remain separate. Multi-thread observation uses the invoking caller's session, not the first thread in the batch. This session behavior applies regardless of the `bufferOnIdle` setting and doesn't change buffering or span parentage.
247
247
 
@@ -262,7 +262,7 @@ See the [`LangfuseExporter` reference](https://mastra.ai/reference/observability
262
262
 
263
263
  You can link LLM generations to prompts stored in [Langfuse Prompt Management](https://langfuse.com/docs/prompt-management). It enables version tracking and metrics for your prompts.
264
264
 
265
- ### Using the Helper (Recommended)
265
+ ### Using the helper (recommended)
266
266
 
267
267
  Use `withLangfusePrompt` with `buildTracingOptions` for the cleanest API:
268
268
 
@@ -291,7 +291,7 @@ export const supportAgent = new Agent({
291
291
 
292
292
  The `withLangfusePrompt` helper accepts `name` and `version` fields for prompt linking. Langfuse v5 requires both fields.
293
293
 
294
- ### Manual Fields
294
+ ### Manual fields
295
295
 
296
296
  You can also pass manual fields if you're not using the Langfuse SDK:
297
297
 
@@ -299,7 +299,7 @@ You can also pass manual fields if you're not using the Langfuse SDK:
299
299
  const tracingOptions = buildTracingOptions(withLangfusePrompt({ name: 'my-prompt', version: 1 }))
300
300
  ```
301
301
 
302
- ### Prompt Object Fields
302
+ ### Prompt object fields
303
303
 
304
304
  The prompt object requires both `name` and `version`:
305
305
 
@@ -312,7 +312,7 @@ When set on a `MODEL_GENERATION` span, the Langfuse exporter automatically links
312
312
 
313
313
  ## Import existing traces into Mastra Platform
314
314
 
315
- The Mastra CLI can import historical trace observations from Langfuse Cloud or a self-hosted Langfuse v4 or later instance. This is separate from configuring the exporter on this page. See [Import existing traces](https://mastra.ai/docs/mastra-platform/observability) for credentials, dry runs, resume, verification, and current limits.
315
+ The Mastra CLI can import historical trace observations from Langfuse Cloud or a self-hosted Langfuse v4 or later instance. This is separate from configuring the exporter on this page. See [Import existing traces](https://mastra.ai/docs/mastra-platform/observability/overview) for credentials, dry runs, resume, verification, and current limits.
316
316
 
317
317
  ## Related
318
318
 
@@ -49,7 +49,7 @@ LANGCHAIN_PROJECT=my-project # Default project for traces
49
49
  LANGSMITH_BASE_URL=https://api.smith.langchain.com # For self-hosted
50
50
  ```
51
51
 
52
- ### Zero-Config Setup
52
+ ### Zero-config setup
53
53
 
54
54
  With environment variables set, use the exporter with no configuration:
55
55
 
@@ -70,7 +70,7 @@ export const mastra = new Mastra({
70
70
  })
71
71
  ```
72
72
 
73
- ### Explicit Configuration
73
+ ### Explicit configuration
74
74
 
75
75
  You can also pass credentials directly (takes precedence over environment variables):
76
76
 
@@ -97,7 +97,7 @@ export const mastra = new Mastra({
97
97
 
98
98
  ## Configuration options
99
99
 
100
- ### Complete Configuration
100
+ ### Complete configuration
101
101
 
102
102
  ```typescript
103
103
  new LangSmithExporter({
@@ -134,7 +134,7 @@ The `projectName` config option takes precedence over the `LANGCHAIN_PROJECT` en
134
134
 
135
135
  You can override at runtime LangSmith settings per-span using `withLangsmithMetadata`. This is useful for routing traces to different projects based on runtime conditions (e.g., customer, environment, or feature).
136
136
 
137
- ### Using the Helper
137
+ ### Using the helper
138
138
 
139
139
  Use `withLangsmithMetadata` with `buildTracingOptions` to set LangSmith-specific options:
140
140
 
@@ -154,7 +154,7 @@ export const supportAgent = new Agent({
154
154
  })
155
155
  ```
156
156
 
157
- ### Dynamic Project Routing
157
+ ### Dynamic project routing
158
158
 
159
159
  Use `requestContext` to route traces to different projects based on runtime conditions.
160
160
 
@@ -184,7 +184,7 @@ export const supportAgent = new Agent({
184
184
  })
185
185
  ```
186
186
 
187
- ### Available Fields
187
+ ### Available fields
188
188
 
189
189
  The `withLangsmithMetadata` helper accepts these fields:
190
190
 
@@ -198,7 +198,7 @@ All fields are optional. The helper merges with any existing metadata, so you ca
198
198
 
199
199
  ## Conversation threads
200
200
 
201
- LangSmith groups runs into a [Thread](https://docs.langchain.com/langsmith/threads) using the `session_id` metadata key. The exporter sets it on every run of a trace. The root run takes the first value it finds: an explicit `withLangsmithMetadata({ sessionId })`, then `sessionId` in span metadata, then the Mastra memory `threadId`. Child runs take the session of their parent run, so a delegated sub-agent stays in the conversation's Thread even though it runs on its own derived thread.
201
+ LangSmith groups runs into a [Thread](https://docs.langchain.com/langsmith/threads) using the `session_id` metadata key. The exporter sets it on every run of a trace. The root run takes the first value it finds: an explicit `withLangsmithMetadata({ sessionId })`, then `sessionId` in span metadata, then the Mastra memory `threadId`. Because child runs take the session of their parent run, a delegated sub-agent stays in the conversation's Thread even though it runs on its own derived thread.
202
202
 
203
203
  Agents with memory set `threadId` on each run, so turns on the same memory thread appear as one Thread in LangSmith without extra configuration:
204
204
 
@@ -211,7 +211,7 @@ await agent.generate('and again', { memory })
211
211
 
212
212
  ## Scores and feedback
213
213
 
214
- Scores sent through `mastra.observability.addScore()` show up in LangSmith as feedback on the matching run. A score with only a `traceId` is attached to the trace's root run; a score with a `spanId` is attached to that span's run.
214
+ Scores sent through `mastra.observability.addScore()` show up in LangSmith as feedback on the matching run. A score with only a `traceId` is attached to the trace's root run. A score with a `spanId` is attached to that span's run.
215
215
 
216
216
  ```typescript
217
217
  await mastra.observability.addScore({
@@ -221,7 +221,7 @@ await mastra.observability.addScore({
221
221
  })
222
222
  ```
223
223
 
224
- Each LangSmith run id is derived from its Mastra span id, so a span-level score works from any process, after a restart, and long after the trace was exported. A trace-level score finds the root run in the exporter's project through the `mastra_trace_id` metadata the exporter stores on every run. Runs exported by earlier versions of `@mastra/langsmith` keep their original ids and can only be scored from the process that exported them. The same derivation is exported as `langsmithRunIdFor()` if you need to link to a run from your own UI:
224
+ Each LangSmith run id is derived from its Mastra span id, which means a span-level score works from any process, after a restart, and long after the trace was exported. A trace-level score finds the root run in the exporter's project through the `mastra_trace_id` metadata the exporter stores on every run. Runs exported by earlier versions of `@mastra/langsmith` keep their original ids and can only be scored from the process that exported them. The same derivation is exported as `langsmithRunIdFor()` if you need to link to a run from your own UI:
225
225
 
226
226
  ```typescript
227
227
  import { langsmithRunIdFor } from '@mastra/langsmith'