@mastra/mcp-docs-server 1.2.15-alpha.19 → 1.2.15-alpha.21

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 (279) hide show
  1. package/.docs/docs/agents/code-mode.md +1 -1
  2. package/.docs/docs/agents/networks.md +2 -2
  3. package/.docs/docs/agents/overview.md +2 -2
  4. package/.docs/docs/agents/using-tools.md +1 -1
  5. package/.docs/docs/browser/overview.md +8 -8
  6. package/.docs/docs/browser/recording.md +2 -2
  7. package/.docs/docs/capabilities/{channels/overview.md → channels.md} +70 -7
  8. package/.docs/docs/capabilities/subagents.md +2 -2
  9. package/.docs/docs/deployment/cloud-providers.md +9 -9
  10. package/.docs/docs/deployment/overview.md +9 -9
  11. package/.docs/docs/deployment/sandbox.md +3 -3
  12. package/.docs/docs/deployment/web-framework.md +6 -6
  13. package/.docs/docs/deployment/workflow-runners.md +2 -2
  14. package/.docs/docs/harness/agent-controller.md +2 -2
  15. package/.docs/docs/index.md +8 -8
  16. package/.docs/docs/long-running-agents/durable-agents.md +2 -2
  17. package/.docs/docs/long-running-agents/signal-providers.md +2 -15
  18. package/.docs/docs/long-running-agents/signals.md +1 -1
  19. package/.docs/docs/mastra-platform/database.md +2 -2
  20. package/.docs/docs/mastra-platform/deploy.md +27 -0
  21. package/.docs/docs/mastra-platform/server.md +1 -1
  22. package/.docs/docs/mastra-platform/trace-intelligence.md +9 -13
  23. package/.docs/docs/mcp/overview.md +42 -0
  24. package/.docs/docs/memory/memory-processors.md +5 -5
  25. package/.docs/docs/memory/message-history.md +1 -1
  26. package/.docs/docs/memory/observational-memory.md +1 -1
  27. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +16 -16
  28. package/.docs/docs/observability/integrations/overview.md +3 -3
  29. package/.docs/docs/server/auth/fga.md +1 -1
  30. package/.docs/docs/server/auth/simple-auth.md +1 -1
  31. package/.docs/docs/server/auth.md +8 -8
  32. package/.docs/docs/server/custom-api-routes.md +35 -0
  33. package/.docs/docs/storage/overview.md +14 -13
  34. package/.docs/docs/studio/observability.md +1 -1
  35. package/.docs/docs/workflows/overview.md +1 -1
  36. package/.docs/docs/workflows/snapshots.md +11 -11
  37. package/.docs/docs/workflows/time-travel.md +2 -0
  38. package/.docs/docs/workspace/filesystem.md +15 -15
  39. package/.docs/docs/workspace/sandbox.md +17 -17
  40. package/.docs/docs/workspace/search.md +1 -1
  41. package/.docs/guides/agent-frameworks/ai-sdk.md +2 -2
  42. package/.docs/guides/deployment/mastra-workers.md +1 -1
  43. package/.docs/guides/getting-started/quickstart.md +3 -3
  44. package/.docs/guides/index.md +8 -8
  45. package/.docs/guides/voice/overview.md +55 -106
  46. package/.docs/guides/voice/speech-to-text.md +7 -7
  47. package/.docs/guides/voice/text-to-speech.md +9 -10
  48. package/.docs/{guides/build-your-ui → integrations/agentic-ui}/ai-sdk-ui.md +2 -2
  49. package/.docs/{guides/build-your-ui/copilotkit/overview.md → integrations/agentic-ui/copilotkit.md} +256 -3
  50. package/.docs/{docs/browser → integrations/browsers}/agent-browser.md +2 -2
  51. package/.docs/{docs/browser → integrations/browsers}/browser-viewer.md +3 -3
  52. package/.docs/{docs/browser → integrations/browsers}/firecrawl.md +2 -2
  53. package/.docs/{docs/browser → integrations/browsers}/stagehand.md +1 -1
  54. package/.docs/{docs/capabilities → integrations}/channels/discord.md +2 -2
  55. package/.docs/integrations/channels/github.md +103 -0
  56. package/.docs/{docs/capabilities → integrations}/channels/imessage.md +7 -5
  57. package/.docs/{docs/capabilities → integrations}/channels/slack.md +4 -4
  58. package/.docs/{docs/capabilities → integrations}/channels/teams.md +2 -2
  59. package/.docs/{docs/capabilities → integrations}/channels/telegram.md +2 -2
  60. package/.docs/{docs/capabilities → integrations}/channels/whatsapp.md +2 -2
  61. package/.docs/{reference/storage/dsql.md → integrations/databases/aurora-dsql.md} +1 -1
  62. package/.docs/{reference/storage → integrations/databases}/clickhouse.md +2 -2
  63. package/.docs/{reference/storage → integrations/databases}/cloudflare-d1.md +1 -1
  64. package/.docs/{reference/storage/cloudflare.md → integrations/databases/cloudflare-kv.md} +1 -1
  65. package/.docs/{reference/storage → integrations/databases}/convex.md +1 -1
  66. package/.docs/{reference/storage → integrations/databases}/duckdb.md +5 -5
  67. package/.docs/{reference/storage → integrations/databases}/dynamodb.md +1 -1
  68. package/.docs/{reference/storage/lance.md → integrations/databases/lancedb.md} +1 -1
  69. package/.docs/{reference/storage → integrations/databases}/libsql.md +2 -2
  70. package/.docs/{reference/storage → integrations/databases}/mongodb.md +1 -1
  71. package/.docs/{reference/storage → integrations/databases}/mssql.md +1 -1
  72. package/.docs/integrations/databases/neon.md +220 -0
  73. package/.docs/{reference/storage → integrations/databases}/oracledb.md +1 -1
  74. package/.docs/{reference/storage → integrations/databases}/postgresql.md +1 -1
  75. package/.docs/{reference/storage → integrations/databases}/redis.md +1 -1
  76. package/.docs/{reference/storage → integrations/databases}/spanner.md +1 -1
  77. package/.docs/{reference/storage → integrations/databases}/upstash.md +1 -1
  78. package/.docs/{guides/deployment → integrations/deploy}/aws-bedrock-agentcore.md +1 -1
  79. package/.docs/{guides/deployment → integrations/deploy}/aws-lambda.md +1 -1
  80. package/.docs/{guides/deployment → integrations/deploy}/azure-app-services.md +1 -1
  81. package/.docs/{guides/deployment → integrations/deploy}/cloudflare.md +1 -1
  82. package/.docs/{guides/deployment → integrations/deploy}/digital-ocean.md +1 -1
  83. package/.docs/{guides/deployment → integrations/deploy}/netlify.md +1 -1
  84. package/.docs/{guides/deployment → integrations/deploy}/vercel.md +2 -2
  85. package/.docs/{reference/workspace/s3-filesystem.md → integrations/file-storage/amazon-s3.md} +5 -5
  86. package/.docs/{reference/workspace/archil-filesystem.md → integrations/file-storage/archil.md} +3 -3
  87. package/.docs/{reference/workspace/azure-blob-filesystem.md → integrations/file-storage/azure-blob.md} +2 -2
  88. package/.docs/{reference/workspace/gcs-filesystem.md → integrations/file-storage/google-cloud-storage.md} +5 -5
  89. package/.docs/{reference/workspace/mesa-filesystem.md → integrations/file-storage/mesa.md} +1 -1
  90. package/.docs/{reference/workspace/files-sdk-filesystem.md → integrations/file-storage/vercel-files.md} +5 -5
  91. package/.docs/{guides/getting-started → integrations/frameworks}/astro.md +1 -1
  92. package/.docs/{guides/getting-started → integrations/frameworks}/electron.md +1 -1
  93. package/.docs/{guides/getting-started → integrations/frameworks}/next-js.md +2 -2
  94. package/.docs/{guides/getting-started → integrations/frameworks}/nuxt.md +1 -1
  95. package/.docs/{guides/getting-started → integrations/frameworks}/sveltekit.md +1 -1
  96. package/.docs/{guides/getting-started → integrations/frameworks}/vite-react.md +1 -1
  97. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/arize.md +1 -1
  98. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/arthur.md +1 -1
  99. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/braintrust.md +1 -1
  100. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/confident-ai.md +1 -1
  101. package/.docs/integrations/observability/datadog.md +538 -0
  102. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/laminar.md +1 -1
  103. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/langfuse.md +1 -1
  104. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/langsmith.md +1 -1
  105. package/.docs/{docs/observability/integrations/exporters/otel.md → integrations/observability/opentelemetry.md} +276 -44
  106. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/posthog.md +1 -1
  107. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/sentry.md +1 -1
  108. package/.docs/{reference/workspace/apple-container-sandbox.md → integrations/sandboxes/apple-container.md} +1 -1
  109. package/.docs/{reference/workspace/daytona-sandbox.md → integrations/sandboxes/daytona.md} +2 -2
  110. package/.docs/{reference/workspace/docker-sandbox.md → integrations/sandboxes/docker.md} +1 -1
  111. package/.docs/{reference/workspace/e2b-sandbox.md → integrations/sandboxes/e2b.md} +3 -3
  112. package/.docs/{reference/workspace/modal-sandbox.md → integrations/sandboxes/modal.md} +2 -2
  113. package/.docs/{reference/workspace/railway-sandbox.md → integrations/sandboxes/railway.md} +8 -0
  114. package/.docs/{reference/workspace/vercel-sandbox.md → integrations/sandboxes/vercel.md} +141 -12
  115. package/.docs/{reference → integrations}/tools/brightdata.md +1 -1
  116. package/.docs/{reference → integrations}/tools/perplexity.md +1 -1
  117. package/.docs/{reference → integrations}/tools/tavily.md +1 -1
  118. package/.docs/{reference → integrations}/voice/aws-nova-sonic.md +1 -1
  119. package/.docs/{reference → integrations}/voice/cloudflare.md +3 -3
  120. package/.docs/{reference/voice/google-gemini-live.md → integrations/voice/google.md} +305 -30
  121. package/.docs/{reference/voice/inworld-realtime.md → integrations/voice/inworld.md} +163 -25
  122. package/.docs/{reference → integrations}/voice/livekit.md +437 -34
  123. package/.docs/{reference/voice/openai-realtime.md → integrations/voice/openai.md} +117 -20
  124. package/.docs/integrations.md +147 -0
  125. package/.docs/models/embeddings.md +2 -2
  126. package/.docs/models/environment-variables.md +1 -0
  127. package/.docs/models/gateways/openrouter.md +4 -2
  128. package/.docs/models/gateways/vercel.md +2 -1
  129. package/.docs/models/index.md +1 -1
  130. package/.docs/models/providers/coralbricks.md +75 -0
  131. package/.docs/models/providers/evroc.md +2 -3
  132. package/.docs/models/providers/hyper.md +6 -6
  133. package/.docs/models/providers/kilo.md +7 -5
  134. package/.docs/models/providers/llmgateway.md +1 -2
  135. package/.docs/models/providers/nano-gpt.md +1 -3
  136. package/.docs/models/providers/opencode.md +0 -1
  137. package/.docs/models/providers/privatemode-ai.md +5 -4
  138. package/.docs/models/providers/snowflake-cortex.md +5 -1
  139. package/.docs/models/providers/wandb.md +2 -1
  140. package/.docs/models/providers/zenmux.md +0 -15
  141. package/.docs/models/providers.md +1 -0
  142. package/.docs/reference/agent-controller/agent-controller-class.md +32 -1
  143. package/.docs/reference/agents/channels.md +2 -2
  144. package/.docs/reference/agents/generateLegacy.md +2 -2
  145. package/.docs/reference/agents/getDefaultOptions.md +1 -1
  146. package/.docs/reference/agents/getDefaultStreamOptions.md +1 -1
  147. package/.docs/reference/agents/inngest-agent.md +1 -1
  148. package/.docs/reference/agents/network.md +1 -1
  149. package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
  150. package/.docs/reference/ai-sdk/network-route.md +1 -1
  151. package/.docs/reference/auth/auth0.md +1 -1
  152. package/.docs/reference/auth/better-auth.md +1 -1
  153. package/.docs/reference/auth/clerk.md +1 -1
  154. package/.docs/reference/auth/firebase.md +1 -1
  155. package/.docs/reference/auth/google.md +1 -1
  156. package/.docs/reference/auth/supabase.md +1 -1
  157. package/.docs/reference/auth/workos.md +1 -1
  158. package/.docs/reference/browser/agent-browser.md +1 -1
  159. package/.docs/reference/browser/browser-viewer.md +1 -1
  160. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  161. package/.docs/reference/browser/stagehand-browser.md +1 -1
  162. package/.docs/reference/channels/channel-provider.md +1 -1
  163. package/.docs/reference/channels/slack-provider.md +2 -2
  164. package/.docs/reference/cli/mastra.md +2 -2
  165. package/.docs/reference/configuration.md +1 -26
  166. package/.docs/reference/core/getStorage.md +1 -1
  167. package/.docs/reference/core/getVector.md +2 -2
  168. package/.docs/reference/core/listVectors.md +2 -2
  169. package/.docs/reference/core/setStorage.md +1 -1
  170. package/.docs/reference/file-based-agents/storage.md +1 -1
  171. package/.docs/reference/file-based-agents/studio.md +1 -1
  172. package/.docs/reference/index.md +27 -55
  173. package/.docs/{guides → reference}/migrations/ai-sdk-v4-to-v5.md +1 -1
  174. package/.docs/{guides → reference}/migrations/mastra-cloud.md +1 -1
  175. package/.docs/{guides → reference}/migrations/upgrade-to-v1/cli.md +1 -1
  176. package/.docs/{guides → reference}/migrations/upgrade-to-v1/memory.md +1 -1
  177. package/.docs/{guides → reference}/migrations/upgrade-to-v1/overview.md +41 -41
  178. package/.docs/{guides → reference}/migrations/upgrade-to-v1/tools.md +1 -1
  179. package/.docs/{guides → reference}/migrations/upgrade-to-v1/tracing.md +10 -10
  180. package/.docs/reference/observability/tracing/bridges/datadog.md +2 -2
  181. package/.docs/reference/observability/tracing/bridges/otel.md +2 -2
  182. package/.docs/reference/observability/tracing/exporters/arize.md +1 -1
  183. package/.docs/reference/observability/tracing/exporters/arthur.md +1 -1
  184. package/.docs/reference/observability/tracing/exporters/confident-ai.md +1 -1
  185. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +12 -0
  186. package/.docs/reference/observability/tracing/exporters/otel.md +2 -2
  187. package/.docs/reference/pubsub/lease-provider.md +1 -1
  188. package/.docs/{guides → reference}/rag/chunking-and-embedding.md +16 -19
  189. package/.docs/reference/rag/database-config.md +1 -1
  190. package/.docs/{guides/rag/graph-rag.md → reference/rag/graph-rag-guide.md} +1 -1
  191. package/.docs/{guides → reference}/rag/overview.md +2 -2
  192. package/.docs/{guides → reference}/rag/retrieval.md +1 -1
  193. package/.docs/{guides → reference}/rag/vector-databases.md +1 -1
  194. package/.docs/reference/server/create-route.md +27 -1
  195. package/.docs/reference/storage/composite.md +3 -3
  196. package/.docs/reference/storage/retention.md +4 -4
  197. package/.docs/reference/streaming/ChunkType.md +3 -3
  198. package/.docs/reference/streaming/agents/streamLegacy.md +3 -3
  199. package/.docs/reference/tools/mcp-server.md +1 -1
  200. package/.docs/reference/vectors/convex.md +2 -2
  201. package/.docs/reference/vectors/oracledb.md +2 -2
  202. package/.docs/reference/workers/overview.md +8 -8
  203. package/.docs/reference/workflows/run-methods/timeTravel.md +1 -0
  204. package/.docs/reference/workspace/platform-filesystem.md +2 -2
  205. package/.docs/reference/workspace/platform-sandbox.md +10 -2
  206. package/.docs/reference/workspace/process-manager.md +3 -3
  207. package/.docs/reference/workspace/sandbox.md +10 -0
  208. package/CHANGELOG.md +16 -0
  209. package/dist/index.js +1 -1
  210. package/dist/{src-BZcgzbk9.js → src-D-W-bx5t.js} +2 -2
  211. package/dist/{src-BZcgzbk9.js.map → src-D-W-bx5t.js.map} +1 -1
  212. package/dist/stdio.js +1 -1
  213. package/package.json +5 -5
  214. package/.docs/docs/capabilities/channels/other-adapters.md +0 -68
  215. package/.docs/docs/observability/integrations/bridges/datadog.md +0 -219
  216. package/.docs/docs/observability/integrations/bridges/otel.md +0 -234
  217. package/.docs/docs/observability/integrations/exporters/datadog.md +0 -321
  218. package/.docs/guides/build-your-ui/copilotkit/channels.md +0 -86
  219. package/.docs/guides/build-your-ui/copilotkit/generative-ui.md +0 -174
  220. package/.docs/guides/guide/chef-michel.md +0 -211
  221. package/.docs/guides/guide/publishing-mcp-server.md +0 -137
  222. package/.docs/guides/guide/slack-assistant.md +0 -193
  223. package/.docs/guides/guide/stock-agent.md +0 -132
  224. package/.docs/guides/guide/web-search.md +0 -322
  225. package/.docs/guides/guide/whatsapp-chat-bot.md +0 -407
  226. package/.docs/guides/voice/realtime-voice.md +0 -430
  227. package/.docs/reference/voice/google.md +0 -290
  228. package/.docs/reference/voice/inworld.md +0 -137
  229. package/.docs/reference/voice/openai.md +0 -96
  230. package/.docs/reference/voice/playai.md +0 -82
  231. package/.docs/reference/workspace/vercel-serverless.md +0 -128
  232. /package/.docs/{guides/concepts → docs/guides}/multi-agent-systems.md +0 -0
  233. /package/.docs/{guides/concepts → docs/guides}/streaming.md +0 -0
  234. /package/.docs/{guides/build-your-ui → integrations/agentic-ui}/assistant-ui.md +0 -0
  235. /package/.docs/{guides/build-your-ui → integrations/agentic-ui}/openui.md +0 -0
  236. /package/.docs/{docs/server → integrations}/auth/auth0.md +0 -0
  237. /package/.docs/{docs/server → integrations}/auth/better-auth.md +0 -0
  238. /package/.docs/{docs/server → integrations}/auth/clerk.md +0 -0
  239. /package/.docs/{docs/server → integrations}/auth/firebase.md +0 -0
  240. /package/.docs/{docs/server → integrations}/auth/google.md +0 -0
  241. /package/.docs/{docs/server → integrations}/auth/okta.md +0 -0
  242. /package/.docs/{docs/server → integrations}/auth/supabase.md +0 -0
  243. /package/.docs/{docs/server → integrations}/auth/workos.md +0 -0
  244. /package/.docs/{guides/deployment → integrations/deploy}/amazon-ec2.md +0 -0
  245. /package/.docs/{guides/deployment → integrations/deploy}/inngest.md +0 -0
  246. /package/.docs/{guides/deployment → integrations/deploy}/kubernetes.md +0 -0
  247. /package/.docs/{guides/deployment → integrations/deploy}/temporal.md +0 -0
  248. /package/.docs/{reference/workspace/agentfs-filesystem.md → integrations/file-storage/agentfs.md} +0 -0
  249. /package/.docs/{reference/workspace/google-drive-filesystem.md → integrations/file-storage/google-drive.md} +0 -0
  250. /package/.docs/{guides/getting-started → integrations/frameworks}/express.md +0 -0
  251. /package/.docs/{guides/getting-started → integrations/frameworks}/hono.md +0 -0
  252. /package/.docs/{guides/getting-started → integrations/frameworks}/nestjs.md +0 -0
  253. /package/.docs/{reference/workspace/agentcore-runtime-sandbox.md → integrations/sandboxes/agentcore.md} +0 -0
  254. /package/.docs/{reference/workspace/blaxel-sandbox.md → integrations/sandboxes/blaxel.md} +0 -0
  255. /package/.docs/{guides/guide → integrations/tools}/firecrawl.md +0 -0
  256. /package/.docs/{reference → integrations}/voice/azure.md +0 -0
  257. /package/.docs/{reference → integrations}/voice/deepgram.md +0 -0
  258. /package/.docs/{reference → integrations}/voice/elevenlabs.md +0 -0
  259. /package/.docs/{reference → integrations}/voice/mistral.md +0 -0
  260. /package/.docs/{reference → integrations}/voice/murf.md +0 -0
  261. /package/.docs/{reference → integrations}/voice/sarvam.md +0 -0
  262. /package/.docs/{reference → integrations}/voice/speechify.md +0 -0
  263. /package/.docs/{reference/voice/xai-realtime.md → integrations/voice/xai.md} +0 -0
  264. /package/.docs/{guides/getting-started → reference}/manual-install.md +0 -0
  265. /package/.docs/{guides → reference}/migrations/agentnetwork.md +0 -0
  266. /package/.docs/{guides → reference}/migrations/network-to-supervisor.md +0 -0
  267. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/agent.md +0 -0
  268. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/client.md +0 -0
  269. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/deployment.md +0 -0
  270. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/evals.md +0 -0
  271. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/mastra.md +0 -0
  272. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/mcp.md +0 -0
  273. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/processors.md +0 -0
  274. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/rag.md +0 -0
  275. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/storage.md +0 -0
  276. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/vectors.md +0 -0
  277. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/voice.md +0 -0
  278. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/workflows.md +0 -0
  279. /package/.docs/{guides → reference}/migrations/vnext-to-standard-apis.md +0 -0
@@ -134,7 +134,7 @@ The generated code for `sales_code` can't call an inventory tool, and the revers
134
134
 
135
135
  ## Remote sandboxes
136
136
 
137
- By default, code mode uses a transport that writes the program to the host filesystem and runs `node` against it. That works for `LocalSandbox`, which shares the host, but not for remote sandboxes that run in their own micro-VM (such as [E2B](https://mastra.ai/reference/workspace/e2b-sandbox)), where the host paths don't exist.
137
+ By default, code mode uses a transport that writes the program to the host filesystem and runs `node` against it. That works for `LocalSandbox`, which shares the host, but not for remote sandboxes that run in their own micro-VM (such as [E2B](https://mastra.ai/integrations/sandboxes/e2b)), where the host paths don't exist.
138
138
 
139
139
  Remote sandboxes need a transport that writes the program into the sandbox filesystem. For E2B, pass the included `E2BCodeModeTransport` as the second argument to `createCodeMode`:
140
140
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **Deprecated:** Agent networks are deprecated and will be removed in a future major release. [Supervisor agents](https://mastra.ai/docs/capabilities/subagents) using `agent.stream()` or `agent.generate()` are now the recommended approach. It provides the same multi-agent coordination with better control, a simpler API, and easier debugging.
6
6
  >
7
- > See the [migration guide](https://mastra.ai/guides/migrations/network-to-supervisor) to upgrade.
7
+ > See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
8
8
 
9
9
  A **routing agent** uses an LLM to interpret a request and decide which primitives (subagents, workflows, or tools) to call, in what order, and with what data.
10
10
 
@@ -181,4 +181,4 @@ Requirements for automatic resumption:
181
181
  ## Related
182
182
 
183
183
  - [Supervisor agents](https://mastra.ai/docs/capabilities/subagents)
184
- - [Migration: `.network()` to supervisor agents](https://mastra.ai/guides/migrations/network-to-supervisor)
184
+ - [Migration: `.network()` to supervisor agents](https://mastra.ai/reference/migrations/network-to-supervisor)
@@ -211,10 +211,10 @@ Once your agent is running, use this table to find the right page for what you w
211
211
  | Build agents that correct their work | [Rubric scorer](https://mastra.ai/docs/capabilities/subagents) |
212
212
  | Swap instructions or models based on request context | [Dynamic configuration](https://mastra.ai/docs/server/request-context) |
213
213
  | Add speech-to-text or text-to-speech | [Voice](https://mastra.ai/guides/voice/overview) |
214
- | Connect to Slack, Discord, or Telegram | [Channels](https://mastra.ai/docs/capabilities/channels/overview) |
214
+ | Connect to Slack, Discord, or Telegram | [Channels](https://mastra.ai/docs/capabilities/channels) |
215
215
 
216
216
  ## Multi-agent systems
217
217
 
218
218
  A multi-agent system uses multiple agents to solve a task that's too broad or too specialized for a single agent. Instead of building one agent with dozens of tools and a long instruction set, you split responsibilities across focused agents and let a coordinator bring results together.
219
219
 
220
- Read the [conceptual overview of multi-agent systems](https://mastra.ai/guides/concepts/multi-agent-systems) to learn how you can apply different patterns with Mastra.
220
+ Read the [conceptual overview of multi-agent systems](https://mastra.ai/docs/guides/multi-agent-systems) to learn how you can apply different patterns with Mastra.
@@ -353,7 +353,7 @@ Agent-level and per-execution hooks merge per key: passing only `beforeToolCall`
353
353
 
354
354
  Tools support lifecycle hooks that allow you to monitor different stages of tool execution during streaming. These hooks are particularly useful for logging or analytics.
355
355
 
356
- For generic `writer` API usage, see [Streaming](https://mastra.ai/guides/concepts/streaming).
356
+ For generic `writer` API usage, see [Streaming](https://mastra.ai/docs/guides/streaming).
357
357
 
358
358
  ### Available Hooks
359
359
 
@@ -6,10 +6,10 @@ Browser support enables agents to move through websites, interact with page elem
6
6
 
7
7
  Mastra supports three SDK providers and one CLI provider:
8
8
 
9
- - [**AgentBrowser**](https://mastra.ai/docs/browser/agent-browser): A Playwright-based provider with accessibility-first element targeting. Best for general web automation and scraping.
10
- - [**Stagehand**](https://mastra.ai/docs/browser/stagehand): A Browserbase provider with AI-powered element detection. Best for complex interactions that benefit from natural language selectors.
11
- - [**FirecrawlBrowser**](https://mastra.ai/docs/browser/firecrawl): A Firecrawl Browser Sandbox provider that runs AgentBrowser tools against hosted browser sessions. Best for running automation on hosted browser sessions without managing local browser infrastructure.
12
- - [**BrowserViewer**](https://mastra.ai/docs/browser/browser-viewer): A CLI provider that launches Chrome and injects CDP URLs into CLI tools like agent-browser, browser-use, and browse. Best for workspace agents that drive browsers through shell commands.
9
+ - [**AgentBrowser**](https://mastra.ai/integrations/browsers/agent-browser): A Playwright-based provider with accessibility-first element targeting. Best for general web automation and scraping.
10
+ - [**Stagehand**](https://mastra.ai/integrations/browsers/stagehand): A Browserbase provider with AI-powered element detection. Best for complex interactions that benefit from natural language selectors.
11
+ - [**FirecrawlBrowser**](https://mastra.ai/integrations/browsers/firecrawl): A Firecrawl Browser Sandbox provider that runs AgentBrowser tools against hosted browser sessions. Best for running automation on hosted browser sessions without managing local browser infrastructure.
12
+ - [**BrowserViewer**](https://mastra.ai/integrations/browsers/browser-viewer): A CLI provider that launches Chrome and injects CDP URLs into CLI tools like agent-browser, browser-use, and browse. Best for workspace agents that drive browsers through shell commands.
13
13
  - [**Browser recording (alpha)**](https://mastra.ai/docs/browser/recording): An opt-in tool layer that saves browser sessions as Motion-JPEG AVI videos with optional captions.
14
14
 
15
15
  ## When to use browser
@@ -178,10 +178,10 @@ const browser = new AgentBrowser({
178
178
 
179
179
  ## Next steps
180
180
 
181
- - [AgentBrowser](https://mastra.ai/docs/browser/agent-browser)
182
- - [Stagehand](https://mastra.ai/docs/browser/stagehand)
183
- - [Firecrawl](https://mastra.ai/docs/browser/firecrawl)
181
+ - [AgentBrowser](https://mastra.ai/integrations/browsers/agent-browser)
182
+ - [Stagehand](https://mastra.ai/integrations/browsers/stagehand)
183
+ - [Firecrawl](https://mastra.ai/integrations/browsers/firecrawl)
184
184
  - [Browser recording (alpha)](https://mastra.ai/docs/browser/recording)
185
- - [BrowserViewer](https://mastra.ai/docs/browser/browser-viewer)
185
+ - [BrowserViewer](https://mastra.ai/integrations/browsers/browser-viewer)
186
186
  - [MastraBrowser reference](https://mastra.ai/reference/browser/mastra-browser)
187
187
  - 📹 [Mastra browser capabilities workshop](https://www.youtube.com/watch?v=E9KFsZEnQO8\&t=5s)
@@ -115,6 +115,6 @@ Use shorter recordings when possible. Long browser sessions produce larger files
115
115
 
116
116
  ## Next steps
117
117
 
118
- - [AgentBrowser](https://mastra.ai/docs/browser/agent-browser)
119
- - [Stagehand](https://mastra.ai/docs/browser/stagehand)
118
+ - [AgentBrowser](https://mastra.ai/integrations/browsers/agent-browser)
119
+ - [Stagehand](https://mastra.ai/integrations/browsers/stagehand)
120
120
  - [Browser overview](https://mastra.ai/docs/browser/overview)
@@ -8,14 +8,15 @@ Channels connect agents to messaging and collaboration platforms like Slack, Mic
8
8
 
9
9
  Start with the page for your platform:
10
10
 
11
- - [Slack](https://mastra.ai/docs/capabilities/channels/slack)
12
- - [Microsoft Teams](https://mastra.ai/docs/capabilities/channels/teams)
13
- - [Discord](https://mastra.ai/docs/capabilities/channels/discord)
14
- - [Telegram](https://mastra.ai/docs/capabilities/channels/telegram)
15
- - [WhatsApp](https://mastra.ai/docs/capabilities/channels/whatsapp)
16
- - [iMessage](https://mastra.ai/docs/capabilities/channels/imessage)
11
+ - [Slack](https://mastra.ai/integrations/channels/slack)
12
+ - [Microsoft Teams](https://mastra.ai/integrations/channels/teams)
13
+ - [Discord](https://mastra.ai/integrations/channels/discord)
14
+ - [Telegram](https://mastra.ai/integrations/channels/telegram)
15
+ - [WhatsApp](https://mastra.ai/integrations/channels/whatsapp)
16
+ - [iMessage](https://mastra.ai/integrations/channels/imessage)
17
+ - [GitHub](https://mastra.ai/integrations/channels/github)
17
18
 
18
- [More](https://mastra.ai/docs/capabilities/channels/other-adapters) lists additional platforms. Mastra channels work with compatible [Chat SDK adapters](https://chat-sdk.dev/adapters) beyond the platforms listed here, and the same Mastra configuration pattern applies across adapters.
19
+ [Other adapters](#other-adapters) lists additional platforms. Mastra channels work with compatible [Chat SDK adapters](https://chat-sdk.dev/adapters) beyond the platforms listed here, and the same Mastra configuration pattern applies across adapters.
19
20
 
20
21
  ## When to use channels
21
22
 
@@ -274,6 +275,68 @@ export const mastra = new Mastra({
274
275
 
275
276
  Vercel's managed Redis integration and Upstash Redis both work well. For more on when a distributed pub/sub is needed, see the [PubSub guide](https://mastra.ai/docs/server/pubsub) and the [`RedisStreamsPubSub` reference](https://mastra.ai/reference/pubsub/redis-streams).
276
277
 
278
+ ## Other adapters
279
+
280
+ Mastra channels use Chat SDK adapters, so the platform guides aren't the full list of supported platforms. Use any Chat SDK platform adapter that exports an adapter factory compatible with `channels.adapters`.
281
+
282
+ ### Adapter catalog
283
+
284
+ The [Chat SDK adapter catalog](https://chat-sdk.dev/adapters) is the canonical source for available adapters. The list below is a snapshot and may not always be up to date.
285
+
286
+ At the time of writing, Chat SDK lists adapters for:
287
+
288
+ - AgentPhone
289
+ - Baileys WhatsApp
290
+ - Discord
291
+ - GitHub
292
+ - Google Chat
293
+ - iMessage
294
+ - Kapso
295
+ - Lark / Feishu
296
+ - Linear
297
+ - Liveblocks
298
+ - Matrix
299
+ - Mattermost
300
+ - Messenger
301
+ - Novu
302
+ - Resend
303
+ - Sendblue
304
+ - Telegram
305
+ - Twilio
306
+ - Velt
307
+ - Web
308
+ - Webex
309
+ - WeChat
310
+ - WhatsApp Business Cloud
311
+ - X
312
+ - Zalo
313
+ - Zernio
314
+
315
+ Check the adapter's docs for its package name, credential variables, webhook requirements, and platform-specific behavior.
316
+
317
+ ### Use the same Mastra wiring
318
+
319
+ The Mastra side of each Chat SDK adapter follows the same setup. Install the adapter package and add its factory to `channels.adapters`. Then configure the platform credentials and point its webhook to the generated Mastra route.
320
+
321
+ Use one of the platform guides as a reference for the Mastra wiring:
322
+
323
+ - [Discord](https://mastra.ai/integrations/channels/discord)
324
+ - [Microsoft Teams](https://mastra.ai/integrations/channels/teams)
325
+ - [Slack](https://mastra.ai/integrations/channels/slack)
326
+ - [Telegram](https://mastra.ai/integrations/channels/telegram)
327
+ - [WhatsApp](https://mastra.ai/integrations/channels/whatsapp)
328
+
329
+ ### Check the adapter docs
330
+
331
+ Before wiring a new adapter into Mastra, check the adapter docs for:
332
+
333
+ - Attachment, card, and rich message support.
334
+ - Credential environment variables.
335
+ - Required platform permissions or scopes.
336
+ - Whether regular messages require long-running listeners or polling.
337
+ - Whether the platform needs separate routes for setup, events, or interactions.
338
+ - Webhook verification behavior.
339
+
277
340
  ## Related
278
341
 
279
342
  - [Channels reference](https://mastra.ai/reference/agents/channels)
@@ -16,7 +16,7 @@ Common use cases:
16
16
  - Multi-step tasks that need different expertise at each stage
17
17
  - Tasks where you need fine-grained control over delegation behavior
18
18
 
19
- > **Note:** A parent agent that coordinates subagents is often called a supervisor. The supervisor pattern is one approach to building multi-agent systems in Mastra. For other patterns, read the [conceptual overview](https://mastra.ai/guides/concepts/multi-agent-systems).
19
+ > **Note:** A parent agent that coordinates subagents is often called a supervisor. The supervisor pattern is one approach to building multi-agent systems in Mastra. For other patterns, read the [conceptual overview](https://mastra.ai/docs/guides/multi-agent-systems).
20
20
 
21
21
  ## Quickstart
22
22
 
@@ -453,5 +453,5 @@ Version overrides propagate automatically through delegation. See [Subagent vers
453
453
  - [Agent.generate() reference](https://mastra.ai/reference/agents/generate)
454
454
  - [Agent approval](https://mastra.ai/docs/agents/agent-approval)
455
455
  - [Memory in multi-agent systems](https://mastra.ai/docs/memory/overview)
456
- - [Concept: Multi-agent systems](https://mastra.ai/guides/concepts/multi-agent-systems)
456
+ - [Concept: Multi-agent systems](https://mastra.ai/docs/guides/multi-agent-systems)
457
457
  - 📹 [Mastra supervisor agents workshop](https://www.youtube.com/watch?v=FNb2fL9WhQg\&t=1872s)
@@ -12,12 +12,12 @@ Mastra provides a platform to deploy your server to the cloud. Read the [Mastra
12
12
 
13
13
  The following guides show how to deploy Mastra to specific cloud providers:
14
14
 
15
- - [Amazon Bedrock AgentCore](https://mastra.ai/guides/deployment/aws-bedrock-agentcore)
16
- - [Amazon EC2](https://mastra.ai/guides/deployment/amazon-ec2)
17
- - [AWS Lambda](https://mastra.ai/guides/deployment/aws-lambda)
18
- - [Azure App Services](https://mastra.ai/guides/deployment/azure-app-services)
19
- - [Cloudflare](https://mastra.ai/guides/deployment/cloudflare)
20
- - [Digital Ocean](https://mastra.ai/guides/deployment/digital-ocean)
21
- - [Kubernetes](https://mastra.ai/guides/deployment/kubernetes)
22
- - [Netlify](https://mastra.ai/guides/deployment/netlify)
23
- - [Vercel](https://mastra.ai/guides/deployment/vercel)
15
+ - [Amazon Bedrock AgentCore](https://mastra.ai/integrations/deploy/aws-bedrock-agentcore)
16
+ - [Amazon EC2](https://mastra.ai/integrations/deploy/amazon-ec2)
17
+ - [AWS Lambda](https://mastra.ai/integrations/deploy/aws-lambda)
18
+ - [Azure App Services](https://mastra.ai/integrations/deploy/azure-app-services)
19
+ - [Cloudflare](https://mastra.ai/integrations/deploy/cloudflare)
20
+ - [Digital Ocean](https://mastra.ai/integrations/deploy/digital-ocean)
21
+ - [Kubernetes](https://mastra.ai/integrations/deploy/kubernetes)
22
+ - [Netlify](https://mastra.ai/integrations/deploy/netlify)
23
+ - [Vercel](https://mastra.ai/integrations/deploy/vercel)
@@ -43,14 +43,14 @@ Mastra applications can be deployed to cloud providers and serverless platforms.
43
43
 
44
44
  Use this option for auto-scaling, minimal infrastructure management, or when you're already using one of these platforms.
45
45
 
46
- - [Amazon EC2](https://mastra.ai/guides/deployment/amazon-ec2)
47
- - [AWS Lambda](https://mastra.ai/guides/deployment/aws-lambda)
48
- - [Azure App Services](https://mastra.ai/guides/deployment/azure-app-services)
49
- - [Cloudflare](https://mastra.ai/guides/deployment/cloudflare)
50
- - [Digital Ocean](https://mastra.ai/guides/deployment/digital-ocean)
51
- - [Kubernetes](https://mastra.ai/guides/deployment/kubernetes)
52
- - [Netlify](https://mastra.ai/guides/deployment/netlify)
53
- - [Vercel](https://mastra.ai/guides/deployment/vercel)
46
+ - [Amazon EC2](https://mastra.ai/integrations/deploy/amazon-ec2)
47
+ - [AWS Lambda](https://mastra.ai/integrations/deploy/aws-lambda)
48
+ - [Azure App Services](https://mastra.ai/integrations/deploy/azure-app-services)
49
+ - [Cloudflare](https://mastra.ai/integrations/deploy/cloudflare)
50
+ - [Digital Ocean](https://mastra.ai/integrations/deploy/digital-ocean)
51
+ - [Kubernetes](https://mastra.ai/integrations/deploy/kubernetes)
52
+ - [Netlify](https://mastra.ai/integrations/deploy/netlify)
53
+ - [Vercel](https://mastra.ai/integrations/deploy/vercel)
54
54
 
55
55
  ### Sandbox
56
56
 
@@ -72,7 +72,7 @@ Use these guides when adding Mastra to an existing Next.js or Astro application.
72
72
 
73
73
  Mastra workflows run using the built-in execution engine by default. For production workloads requiring managed infrastructure, workflows can also be deployed to specialized platforms like [Inngest](https://www.inngest.com) that provide step memoization, automatic retries, and real-time monitoring.
74
74
 
75
- Visit the [Workflow Runners guide](https://mastra.ai/docs/deployment/workflow-runners) for execution options and the [Inngest deployment guide](https://mastra.ai/guides/deployment/inngest) for setup instructions.
75
+ Visit the [Workflow Runners guide](https://mastra.ai/docs/deployment/workflow-runners) for execution options and the [Inngest deployment guide](https://mastra.ai/integrations/deploy/inngest) for setup instructions.
76
76
 
77
77
  ## Workers
78
78
 
@@ -17,9 +17,9 @@ Sandboxes have provider-enforced runtime caps and expire. For production hosting
17
17
 
18
18
  The deployer works with any workspace sandbox that supports networking (public port URLs):
19
19
 
20
- - [Vercel Sandbox](https://mastra.ai/reference/workspace/vercel-sandbox) (`@mastra/vercel`)
21
- - [E2B](https://mastra.ai/reference/workspace/e2b-sandbox) (`@mastra/e2b`)
22
- - [Daytona](https://mastra.ai/reference/workspace/daytona-sandbox) (`@mastra/daytona`)
20
+ - [Vercel Sandbox](https://mastra.ai/integrations/sandboxes/vercel) (`@mastra/vercel`)
21
+ - [E2B](https://mastra.ai/integrations/sandboxes/e2b) (`@mastra/e2b`)
22
+ - [Daytona](https://mastra.ai/integrations/sandboxes/daytona) (`@mastra/daytona`)
23
23
 
24
24
  Provider authors can add support by implementing the optional `networking` capability on [`WorkspaceSandbox`](https://mastra.ai/reference/workspace/sandbox).
25
25
 
@@ -4,16 +4,16 @@
4
4
 
5
5
  When Mastra is integrated with a web framework, it deploys alongside your application using the framework's standard deployment process. Follow the instructions below to ensure your Mastra integration deploys correctly.
6
6
 
7
- > **Warning:** If you're deploying to a cloud provider, remove any usage of [LibSQLStore](https://mastra.ai/reference/storage/libsql) from your Mastra configuration. LibSQLStore requires filesystem access and isn't compatible with serverless platforms.
7
+ > **Warning:** If you're deploying to a cloud provider, remove any usage of [LibSQLStore](https://mastra.ai/integrations/databases/libsql) from your Mastra configuration. LibSQLStore requires filesystem access and isn't compatible with serverless platforms.
8
8
 
9
9
  Integration guides:
10
10
 
11
- - [With Next.js](https://mastra.ai/guides/getting-started/next-js)
12
- - [With Astro](https://mastra.ai/guides/getting-started/astro)
11
+ - [With Next.js](https://mastra.ai/integrations/frameworks/next-js)
12
+ - [With Astro](https://mastra.ai/integrations/frameworks/astro)
13
13
 
14
14
  ## With Next.js on Vercel
15
15
 
16
- If you've integrated Mastra with Next.js [by following our guide](https://mastra.ai/guides/getting-started/next-js) and plan to deploy to Vercel, add `serverExternalPackages: ["@mastra/*"]` to your `next.config.ts`:
16
+ If you've integrated Mastra with Next.js [by following our guide](https://mastra.ai/integrations/frameworks/next-js) and plan to deploy to Vercel, add `serverExternalPackages: ["@mastra/*"]` to your `next.config.ts`:
17
17
 
18
18
  ```typescript
19
19
  import type { NextConfig } from 'next'
@@ -27,7 +27,7 @@ export default nextConfig
27
27
 
28
28
  ## With Astro on Vercel
29
29
 
30
- If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/guides/getting-started/astro) and plan to deploy to Vercel, add the Vercel adapter and server output to your `astro.config.mjs`:
30
+ If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/integrations/frameworks/astro) and plan to deploy to Vercel, add the Vercel adapter and server output to your `astro.config.mjs`:
31
31
 
32
32
  ```javascript
33
33
  import { defineConfig } from 'astro/config'
@@ -41,7 +41,7 @@ export default defineConfig({
41
41
 
42
42
  ## With Astro on Netlify
43
43
 
44
- If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/guides/getting-started/astro) and plan to deploy to Netlify, add the Netlify adapter and server output to your `astro.config.mjs`:
44
+ If you've integrated Mastra with Astro [by following our guide](https://mastra.ai/integrations/frameworks/astro) and plan to deploy to Netlify, add the Netlify adapter and server output to your `astro.config.mjs`:
45
45
 
46
46
  ```javascript
47
47
  import { defineConfig } from 'astro/config'
@@ -8,10 +8,10 @@ Mastra [workflows](https://mastra.ai/docs/workflows/overview) can be executed us
8
8
 
9
9
  Inngest is a developer platform for running background workflows without managing infrastructure. Mastra workflows can be deployed to Inngest, which provides step memoization, automatic retries, real-time monitoring, and suspend/resume capabilities.
10
10
 
11
- Visit the [Inngest deployment guide](https://mastra.ai/guides/deployment/inngest) for setup instructions and the [Inngest workflow example](https://github.com/mastra-ai/mastra/tree/main/examples/inngest) for a complete implementation.
11
+ Visit the [Inngest deployment guide](https://mastra.ai/integrations/deploy/inngest) for setup instructions and the [Inngest workflow example](https://github.com/mastra-ai/mastra/tree/main/examples/inngest) for a complete implementation.
12
12
 
13
13
  ## Temporal
14
14
 
15
15
  Temporal is a durable execution platform for orchestrating long-running workflows. Mastra workflows can run on Temporal workers, with each `createStep` mapped to a Temporal activity for automatic retries and durable state.
16
16
 
17
- The `@mastra/temporal` package is experimental and not ready for production use. Visit the [Temporal deployment guide](https://mastra.ai/guides/deployment/temporal) for setup instructions.
17
+ The `@mastra/temporal` package is experimental and not ready for production use. Visit the [Temporal deployment guide](https://mastra.ai/integrations/deploy/temporal) for setup instructions.
@@ -388,7 +388,7 @@ channels: {
388
388
 
389
389
  Controller channel sessions and auto-approval state are held in memory, so use a long-lived server. Pending approvals and live Session state don't survive process restarts. Adapters that can't render approval controls automatically run tools without an approval prompt so the run doesn't remain suspended.
390
390
 
391
- See [Channels](https://mastra.ai/docs/capabilities/channels/overview) for adapter setup and platform-specific webhook configuration.
391
+ See [Channels](https://mastra.ai/docs/capabilities/channels) for adapter setup and platform-specific webhook configuration.
392
392
 
393
393
  ## Connect a UI
394
394
 
@@ -414,4 +414,4 @@ Subscriptions are isolated by Session. Events from another Session on the same c
414
414
  - [Agents](https://mastra.ai/docs/agents/overview)
415
415
  - [Workspace](https://mastra.ai/docs/workspace/overview)
416
416
  - [Observational memory](https://mastra.ai/docs/memory/observational-memory)
417
- - [Channels](https://mastra.ai/docs/capabilities/channels/overview)
417
+ - [Channels](https://mastra.ai/docs/capabilities/channels)
@@ -153,14 +153,14 @@ You can open [Studio](https://mastra.ai/docs/studio/overview) immediately, which
153
153
 
154
154
  Add Mastra to an existing project, or create a new app with your preferred framework:
155
155
 
156
- - [Next.js](https://mastra.ai/guides/getting-started/next-js)
157
- - [React](https://mastra.ai/guides/getting-started/vite-react)
158
- - [Astro](https://mastra.ai/guides/getting-started/astro)
159
- - [Express](https://mastra.ai/guides/getting-started/express)
160
- - [SvelteKit](https://mastra.ai/guides/getting-started/sveltekit)
161
- - [Hono](https://mastra.ai/guides/getting-started/hono)
162
-
163
- For other frameworks, see the [framework integration guides](https://mastra.ai/guides/getting-started/next-js).
156
+ - [Next.js](https://mastra.ai/integrations/frameworks/next-js)
157
+ - [React](https://mastra.ai/integrations/frameworks/vite-react)
158
+ - [Astro](https://mastra.ai/integrations/frameworks/astro)
159
+ - [Express](https://mastra.ai/integrations/frameworks/express)
160
+ - [SvelteKit](https://mastra.ai/integrations/frameworks/sveltekit)
161
+ - [Hono](https://mastra.ai/integrations/frameworks/hono)
162
+
163
+ For other frameworks, see the [framework integration guides](https://mastra.ai/integrations/frameworks/next-js).
164
164
 
165
165
  ## Templates
166
166
 
@@ -15,7 +15,7 @@ Use a durable agent when any of the following apply:
15
15
  - The client may drop and reconnect mid-stream (mobile, spotty networks, long-running calls).
16
16
  - The agentic loop may outlive a single HTTP request (background research, multi-step tool use).
17
17
  - You need an observe/reconnect API where a second client picks up a stream that a first client started.
18
- - You want [Inngest-powered execution](https://mastra.ai/guides/deployment/inngest) with step memoization, retries, and monitoring.
18
+ - You want [Inngest-powered execution](https://mastra.ai/integrations/deploy/inngest) with step memoization, retries, and monitoring.
19
19
 
20
20
  For short-lived, request-scoped calls where the client stays connected, a regular `Agent` with `stream()` or `generate()` is simpler.
21
21
 
@@ -268,6 +268,6 @@ Mastra doesn't provide a distributed lease or lock yet. In multi-replica deploym
268
268
  - [DurableAgent reference](https://mastra.ai/reference/agents/durable-agent)
269
269
  - [`createInngestAgent()` reference](https://mastra.ai/reference/agents/inngest-agent)
270
270
  - [Background tasks](https://mastra.ai/docs/long-running-agents/background-tasks)
271
- - [Inngest deployment guide](https://mastra.ai/guides/deployment/inngest)
271
+ - [Inngest deployment guide](https://mastra.ai/integrations/deploy/inngest)
272
272
  - [Agent overview](https://mastra.ai/docs/agents/overview)
273
273
  - [Worker overview](https://mastra.ai/docs/deployment/workers)
@@ -45,7 +45,7 @@ export const supportAgent = new Agent({
45
45
  })
46
46
  ```
47
47
 
48
- > **Note:** Notification delivery requires a storage adapter with notification support, such as [libSQL](https://mastra.ai/reference/storage/libsql), [PostgreSQL](https://mastra.ai/reference/storage/postgresql), or [MongoDB](https://mastra.ai/reference/storage/mongodb). Configure storage on the Mastra instance so `notify()` can store notification records.
48
+ > **Note:** Notification delivery requires a storage adapter with notification support, such as [libSQL](https://mastra.ai/integrations/databases/libsql), [PostgreSQL](https://mastra.ai/integrations/databases/postgresql), or [MongoDB](https://mastra.ai/integrations/databases/mongodb). Configure storage on the Mastra instance so `notify()` can store notification records.
49
49
 
50
50
  ## Quickstart
51
51
 
@@ -200,20 +200,7 @@ A provider can support more than event ingestion. Add only the capabilities your
200
200
  - **Lifecycle hooks:** Override [`start()`](https://mastra.ai/reference/signals/signal-provider) for async setup and [`stop()`](https://mastra.ai/reference/signals/signal-provider) for cleanup. Call `super.stop()` when overriding `stop()` so the base provider can stop polling and clear its registry.
201
201
  - **Processors and tools:** Return processors from [`getInputProcessors()`](https://mastra.ai/reference/signals/signal-provider) or [`getOutputProcessors()`](https://mastra.ai/reference/signals/signal-provider), and return agent-callable tools from [`getTools()`](https://mastra.ai/reference/signals/signal-provider).
202
202
 
203
- The `@mastra/github-signals` package is a production signal provider that watches GitHub pull requests and notifies threads about comments, review state, continuous integration status, and merges. Use it as a reference for polling, durable subscriptions, tools, processors, and lifecycle hooks.
204
-
205
- ```typescript
206
- import { Agent } from '@mastra/core/agent'
207
- import { GithubSignals } from '@mastra/github-signals'
208
-
209
- export const devAgent = new Agent({
210
- id: 'dev-agent',
211
- name: 'Dev Agent',
212
- instructions: 'Help triage pull request activity.',
213
- model: 'openai/gpt-5.6-sol',
214
- signals: [new GithubSignals()],
215
- })
216
- ```
203
+ For a production provider that watches GitHub pull requests, see the [GitHub Channels integration](https://mastra.ai/integrations/channels/github).
217
204
 
218
205
  ## Related
219
206
 
@@ -147,7 +147,7 @@ Use XML-safe `tagName` and attribute names. They can contain letters, numbers, s
147
147
 
148
148
  #### Storage support
149
149
 
150
- Notification inbox storage is available in the storage adapters that support richer memory and signal workflows: [libSQL](https://mastra.ai/reference/storage/libsql), [PostgreSQL](https://mastra.ai/reference/storage/postgresql), and [MongoDB](https://mastra.ai/reference/storage/mongodb). These adapters expose notification records through `getStore('notifications')`.
150
+ Notification inbox storage is available in the storage adapters that support richer memory and signal workflows: [libSQL](https://mastra.ai/integrations/databases/libsql), [PostgreSQL](https://mastra.ai/integrations/databases/postgresql), and [MongoDB](https://mastra.ai/integrations/databases/mongodb). These adapters expose notification records through `getStore('notifications')`.
151
151
 
152
152
  ### Send processor context
153
153
 
@@ -99,7 +99,7 @@ When a database is `ready`, the provider has finished provisioning and the platf
99
99
 
100
100
  ### Turso (LibSQL)
101
101
 
102
- Turso exposes two environment variables: `TURSO_DATABASE_URL` and `TURSO_AUTH_TOKEN`. The following example connects a [LibSQLStore](https://mastra.ai/reference/storage/libsql) using those variables.
102
+ Turso exposes two environment variables: `TURSO_DATABASE_URL` and `TURSO_AUTH_TOKEN`. The following example connects a [LibSQLStore](https://mastra.ai/integrations/databases/libsql) using those variables.
103
103
 
104
104
  ```ts
105
105
  import { LibSQLStore } from '@mastra/libsql'
@@ -139,7 +139,7 @@ bun add @mastra/libsql@latest
139
139
 
140
140
  ### PostgreSQL
141
141
 
142
- PostgreSQL exposes a single `DATABASE_URL` connection string. The following example connects a [PostgresStore](https://mastra.ai/reference/storage/postgresql) using that variable.
142
+ PostgreSQL exposes a single `DATABASE_URL` connection string. The following example connects a [PostgresStore](https://mastra.ai/integrations/databases/postgresql) using that variable.
143
143
 
144
144
  ```ts
145
145
  import { PostgresStore } from '@mastra/pg'
@@ -132,6 +132,33 @@ mastra deploy --env staging --env-file .env.staging
132
132
 
133
133
  To change variables on a running service without a redeploy, update them in the dashboard and run [`mastra env restart`](https://mastra.ai/reference/cli/mastra).
134
134
 
135
+ ## Private npm packages
136
+
137
+ Projects that depend on packages from a private registry install them during the deploy using the standard `NPM_TOKEN` contract.
138
+
139
+ 1. Store a read-only registry token as `NPM_TOKEN` on the project or environment through the dashboard.
140
+
141
+ 2. Commit a token-free `.npmrc` that points your scope at the registry and reads the token from the environment:
142
+
143
+ ```ini
144
+ @your-org:registry=https://npm.pkg.github.com
145
+ //npm.pkg.github.com/:_authToken=${NPM_TOKEN}
146
+ ```
147
+
148
+ Keep the `${NPM_TOKEN}` reference literal. The package manager resolves it at install time, so the token itself never lands in your repository.
149
+
150
+ 3. Deploy as usual:
151
+
152
+ ```bash
153
+ mastra deploy
154
+ ```
155
+
156
+ In a monorepo, a `.npmrc` in your project directory takes precedence over one at the repository root.
157
+
158
+ `NPM_TOKEN` is available during dependency installation. Mastra redacts its value from the Mastra source-build logs that it streams. The generated Dockerfile receives it as a build argument, so the runtime image stays free of the token. `NPM_TOKEN` is also injected into the running service as a regular environment variable, so treat it as a secret your application can read.
159
+
160
+ Projects without a private-registry `.npmrc` need no changes. When your `.npmrc` references `${NPM_TOKEN}`, set the variable or the dependency install fails.
161
+
135
162
  ## Project resolution
136
163
 
137
164
  Every deploy resolves its target project in this order:
@@ -8,7 +8,7 @@ You get a stable API endpoint, environment variable management, custom domain su
8
8
 
9
9
  > **Note:** `mastra server deploy` is the earlier split deploy path. New projects should use the unified [`mastra deploy`](https://mastra.ai/docs/mastra-platform/deploy) command, which adds preflight validation, environments, and CLI-managed databases.
10
10
 
11
- > **Note:** Server deploy provisions hosted storage automatically. If you override storage with [LibSQLStore](https://mastra.ai/reference/storage/libsql) and a file URL, switch to a remotely hosted database because Mastra platform uses an ephemeral filesystem.
11
+ > **Note:** Server deploy provisions hosted storage automatically. If you override storage with [LibSQLStore](https://mastra.ai/integrations/databases/libsql) and a file URL, switch to a remotely hosted database because Mastra platform uses an ephemeral filesystem.
12
12
 
13
13
  ## Quickstart
14
14
 
@@ -56,12 +56,9 @@ The flow chart connects themes in adjacent trace signal columns:
56
56
 
57
57
  The flow shows association, not causation or execution order. For example, a ribbon between a Goal and an Outcome means that both themes occurred in the same traces. It doesn't show that the goal caused the outcome.
58
58
 
59
- ### Distributions, Other, and Noise
59
+ ### Other and Noise
60
60
 
61
- The cards below the flow show each trace signal's theme distribution:
62
-
63
- - **Trace count**: The number of distinct traces assigned to a theme in the selected snapshot.
64
- - **Stage share**: The percentage of analyzed traces for that trace signal assigned to the theme.
61
+ Each node shows its trace count: the number of distinct traces assigned to that theme in the selected snapshot. A theme's details also state its share, for example "28 of 70 traces in this snapshot (40%)".
65
62
 
66
63
  Studio shows the most common themes for each trace signal type. It may combine smaller themes into **Other** to preserve totals without overcrowding the chart.
67
64
 
@@ -69,26 +66,25 @@ Studio shows the most common themes for each trace signal type. It may combine s
69
66
 
70
67
  ### Snapshots
71
68
 
72
- A snapshot is a moving analysis window over a set of traces. Snapshots can overlap, so don't add their trace counts together. Compare trace count and stage share together because traffic volume can change between windows.
69
+ A snapshot is a moving analysis window over a set of traces. Snapshots can overlap, so don't add their trace counts together. Compare a theme's trace count and its share of the snapshot together because traffic volume can change between windows.
73
70
 
74
71
  A theme can persist, disappear, split, merge, or return across snapshots. Treat theme names and descriptions as generated summaries, not fixed taxonomies.
75
72
 
76
73
  ## Use the Trace Intelligence page
77
74
 
78
75
  1. Use the **Agent** selector to switch between agents with available analysis. An agent doesn't appear until its first themes are ready.
79
- 2. Select a theme in the flow to filter every column to traces containing that theme.
80
- 3. Select **View theme details** to inspect its description, trace count, stage share, generated examples, and history.
76
+ 2. Select a theme in the flow to open its details and filter every column to traces containing that theme.
77
+ 3. The details panel shows the theme's description, its share of the snapshot, paged example summaries, and a trend of its trace count over time.
81
78
  4. Select **Clear filter** to restore the complete flow.
82
79
 
83
80
  You can also:
84
81
 
85
- - Select a theme in a distribution card to open its details and generated example summaries.
86
- - Select **Noise** in a distribution card to inspect its distribution and generated example summaries.
87
- - Drag the distribution cards to reorder the trace signal columns and see a different relationship perspective.
82
+ - Select **Noise** in the flow to inspect its share and generated example summaries.
83
+ - Drag the column headers above the chart to reorder the trace signal columns and see a different relationship perspective.
88
84
  - Use the timeline to select a snapshot, or select **Play** to watch themes change over time.
89
- - Open a theme's history to see whether it persisted and how its coverage changed.
85
+ - Switch to **Compare** to see which themes grew, shrank, entered the range, or left the range between two points in time, or **Lifelines** to follow each theme's share across the whole selected range.
90
86
 
91
- Filtering the flow by a theme is unavailable for snapshots with more than 2,000 traces. Choose another snapshot or clear the active filter to return to the full flow. Theme and Noise details remain available from the distribution cards.
87
+ Filtering the flow by a theme is unavailable for snapshots with more than 2,000 traces. Selecting a theme still opens its details there without filtering the flow.
92
88
 
93
89
  ## Troubleshooting
94
90
 
@@ -202,6 +202,48 @@ export const mastra = new Mastra({
202
202
 
203
203
  Visit the [`MCPServer` reference](https://mastra.ai/reference/tools/mcp-server) for prompts, resources, transports, and other server options.
204
204
 
205
+ ### Publish a stdio server package
206
+
207
+ Package a server that uses the standard input/output (stdio) transport when you want clients to run it locally through a command such as `npx`. Create a separate executable entry point that starts the server:
208
+
209
+ ```typescript
210
+ #!/usr/bin/env node
211
+ import { mcpServer } from './server'
212
+
213
+ mcpServer.startStdio().catch(error => {
214
+ console.error('Failed to start MCP server:', error)
215
+ process.exit(1)
216
+ })
217
+ ```
218
+
219
+ Build the entry point as an executable Node.js file, then point the package's `bin` field to that output. Include the built file in the published package and keep the shebang as its first line:
220
+
221
+ ```json
222
+ {
223
+ "bin": {
224
+ "my-mcp-server": "dist/stdio.js"
225
+ },
226
+ "files": ["dist"]
227
+ }
228
+ ```
229
+
230
+ After publishing the package, configure clients to run it by package name:
231
+
232
+ ```typescript
233
+ import { MCPClient } from '@mastra/mcp'
234
+
235
+ const mcpClient = new MCPClient({
236
+ servers: {
237
+ myServer: {
238
+ command: 'npx',
239
+ args: ['-y', '@your-org/my-mcp-server@1.0.0'],
240
+ },
241
+ },
242
+ })
243
+ ```
244
+
245
+ Visit the [npm package publishing documentation](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages) for package naming, authentication, and publication commands.
246
+
205
247
  ## Build MCP Apps
206
248
 
207
249
  The [MCP Apps extension](https://github.com/modelcontextprotocol/ext-apps) lets MCP tools serve interactive HTML interfaces through `ui://` resources. Mastra Studio renders these apps in sandboxed iframes on tool pages and in agent chat.