@mastra/mcp-docs-server 1.2.17-alpha.11 → 1.2.17-alpha.14

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 (220) hide show
  1. package/.docs/course/02-agent-tools-mcp/32-conclusion.md +1 -1
  2. package/.docs/docs/agents/code-mode.md +3 -3
  3. package/.docs/docs/agents/guardrails.md +1 -1
  4. package/.docs/docs/agents/{agent-approval.md → human-in-the-loop.md} +5 -5
  5. package/.docs/docs/agents/networks.md +3 -3
  6. package/.docs/docs/agents/overview.md +7 -7
  7. package/.docs/docs/agents/processors.md +2 -2
  8. package/.docs/docs/agents/{using-tools.md → tools.md} +7 -7
  9. package/.docs/docs/{server/auth → auth}/custom-auth-provider.md +1 -1
  10. package/.docs/docs/{server/auth → auth}/fga.md +1 -1
  11. package/.docs/docs/{server/auth.md → auth/overview.md} +4 -4
  12. package/.docs/docs/{server/auth → auth}/simple-auth.md +1 -1
  13. package/.docs/docs/{server/auth → auth}/workers.md +2 -2
  14. package/.docs/docs/{capabilities/channels.md → channels.md} +2 -2
  15. package/.docs/docs/{agents → connections}/a2a.md +2 -2
  16. package/.docs/docs/{agents → connections}/acp.md +1 -1
  17. package/.docs/docs/{mcp/overview.md → connections/mcp.md} +1 -1
  18. package/.docs/docs/connections/overview.md +5 -5
  19. package/.docs/docs/{agents → connections}/sdk-agents.md +1 -1
  20. package/.docs/docs/deployment/mastra-server.md +2 -2
  21. package/.docs/docs/deployment/overview.md +1 -1
  22. package/.docs/docs/deployment/sandbox.md +3 -3
  23. package/.docs/docs/deployment/workers.md +4 -4
  24. package/.docs/docs/guides/multi-agent-systems.md +7 -7
  25. package/.docs/docs/guides/streaming.md +1 -1
  26. package/.docs/docs/harness/agent-controller.md +5 -3
  27. package/.docs/docs/{long-running-agents → harness}/background-tasks.md +5 -5
  28. package/.docs/docs/{long-running-agents → harness}/durable-agents.md +2 -2
  29. package/.docs/docs/{long-running-agents → harness}/goals.md +6 -6
  30. package/.docs/docs/harness/overview.md +11 -10
  31. package/.docs/docs/{long-running-agents → harness}/schedules.md +5 -5
  32. package/.docs/docs/{long-running-agents → harness}/signal-providers.md +4 -4
  33. package/.docs/docs/mastra-platform/deploy.md +1 -1
  34. package/.docs/docs/mastra-platform/overview.md +1 -1
  35. package/.docs/docs/mastra-platform/server.md +1 -1
  36. package/.docs/docs/memory/message-history.md +1 -1
  37. package/.docs/docs/memory/overview.md +4 -4
  38. package/.docs/docs/memory/working-memory.md +1 -1
  39. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
  40. package/.docs/docs/{workspace → sandbox}/filesystem.md +2 -2
  41. package/.docs/docs/{workspace → sandbox}/lsp.md +3 -3
  42. package/.docs/docs/{workspace/sandbox.md → sandbox/overview.md} +3 -3
  43. package/.docs/docs/{workspace → sandbox}/search.md +2 -2
  44. package/.docs/docs/{workspace → sandbox}/skills.md +5 -5
  45. package/.docs/docs/server/custom-api-routes.md +2 -2
  46. package/.docs/docs/server/mastra-client.md +2 -2
  47. package/.docs/docs/server/{mastra-server.md → overview.md} +3 -3
  48. package/.docs/docs/server/pubsub.md +2 -2
  49. package/.docs/docs/server/server-adapters.md +4 -4
  50. package/.docs/docs/{agents/skills.md → skills.md} +4 -4
  51. package/.docs/docs/{storage/overview.md → storage.md} +1 -1
  52. package/.docs/docs/studio/auth.md +4 -4
  53. package/.docs/docs/studio/overview.md +2 -2
  54. package/.docs/docs/{capabilities/subagents.md → subagents.md} +35 -5
  55. package/.docs/docs/workflows/agents-and-tools.md +1 -1
  56. package/.docs/docs/workflows/overview.md +1 -1
  57. package/.docs/docs/workflows/scheduled-workflows.md +2 -2
  58. package/.docs/docs/workflows/snapshots.md +1 -1
  59. package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
  60. package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
  61. package/.docs/integrations/auth/google.md +2 -2
  62. package/.docs/integrations/auth/workos.md +1 -1
  63. package/.docs/integrations/browsers/agent-browser.md +2 -2
  64. package/.docs/integrations/browsers/browser-viewer.md +6 -6
  65. package/.docs/integrations/browsers/firecrawl.md +1 -1
  66. package/.docs/integrations/browsers/stagehand.md +2 -2
  67. package/.docs/integrations/channels/discord.md +2 -2
  68. package/.docs/integrations/channels/github.md +1 -1
  69. package/.docs/integrations/channels/imessage.md +4 -4
  70. package/.docs/integrations/channels/slack.md +5 -5
  71. package/.docs/integrations/channels/teams.md +2 -2
  72. package/.docs/integrations/channels/telegram.md +2 -2
  73. package/.docs/integrations/channels/whatsapp.md +2 -2
  74. package/.docs/integrations/databases/postgresql.md +1 -0
  75. package/.docs/integrations/deploy/amazon-ec2.md +2 -2
  76. package/.docs/integrations/deploy/aws-lambda.md +3 -3
  77. package/.docs/integrations/deploy/azure-app-services.md +2 -2
  78. package/.docs/integrations/deploy/cloudflare.md +2 -2
  79. package/.docs/integrations/deploy/digital-ocean.md +3 -3
  80. package/.docs/integrations/deploy/kubernetes.md +11 -11
  81. package/.docs/integrations/deploy/netlify.md +3 -3
  82. package/.docs/integrations/deploy/vercel.md +2 -2
  83. package/.docs/integrations/file-storage/amazon-s3.md +1 -1
  84. package/.docs/integrations/file-storage/azure-blob.md +1 -1
  85. package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
  86. package/.docs/integrations/file-storage/mesa.md +2 -2
  87. package/.docs/integrations/file-storage/vercel-files.md +1 -1
  88. package/.docs/integrations/frameworks/astro.md +1 -1
  89. package/.docs/integrations/frameworks/electron.md +1 -1
  90. package/.docs/integrations/frameworks/express.md +1 -1
  91. package/.docs/integrations/frameworks/hono.md +1 -1
  92. package/.docs/integrations/frameworks/nestjs.md +1 -1
  93. package/.docs/integrations/frameworks/next-js.md +1 -1
  94. package/.docs/integrations/frameworks/nuxt.md +1 -1
  95. package/.docs/integrations/frameworks/sveltekit.md +1 -1
  96. package/.docs/integrations/frameworks/vite-react.md +1 -1
  97. package/.docs/integrations/sandboxes/agentcore.md +1 -1
  98. package/.docs/integrations/sandboxes/apple-container.md +1 -1
  99. package/.docs/integrations/sandboxes/daytona.md +1 -1
  100. package/.docs/integrations/sandboxes/docker.md +4 -3
  101. package/.docs/integrations/sandboxes/e2b.md +1 -1
  102. package/.docs/integrations/sandboxes/modal.md +1 -1
  103. package/.docs/models/environment-variables.md +5 -0
  104. package/.docs/models/gateways/openrouter.md +2 -1
  105. package/.docs/models/gateways/vercel.md +3 -1
  106. package/.docs/models/index.md +1 -1
  107. package/.docs/models/providers/alibaba-token-plan-cn.md +2 -1
  108. package/.docs/models/providers/alibaba-token-plan.md +2 -1
  109. package/.docs/models/providers/amd.md +73 -0
  110. package/.docs/models/providers/arcee.md +79 -0
  111. package/.docs/models/providers/baseten.md +1 -1
  112. package/.docs/models/providers/cerebras.md +2 -3
  113. package/.docs/models/providers/chutes.md +2 -1
  114. package/.docs/models/providers/cloudflare-workers-ai.md +1 -1
  115. package/.docs/models/providers/cortecs.md +2 -1
  116. package/.docs/models/providers/crof.md +1 -1
  117. package/.docs/models/providers/crossmodel.md +3 -2
  118. package/.docs/models/providers/deepinfra.md +4 -1
  119. package/.docs/models/providers/digitalocean.md +3 -2
  120. package/.docs/models/providers/edenai.md +17 -5
  121. package/.docs/models/providers/empiriolabs.md +10 -1
  122. package/.docs/models/providers/huggingface.md +4 -1
  123. package/.docs/models/providers/hyper.md +8 -7
  124. package/.docs/models/providers/inferx.md +19 -13
  125. package/.docs/models/providers/jalapeno.md +89 -0
  126. package/.docs/models/providers/kilo.md +11 -10
  127. package/.docs/models/providers/llmtr.md +35 -10
  128. package/.docs/models/providers/merge-gateway.md +3 -1
  129. package/.docs/models/providers/nano-gpt.md +9 -13
  130. package/.docs/models/providers/ofox.md +3 -3
  131. package/.docs/models/providers/opencode-go.md +2 -2
  132. package/.docs/models/providers/runinfra.md +76 -0
  133. package/.docs/models/providers/scnet-token-plan.md +85 -0
  134. package/.docs/models/providers/togetherai.md +2 -1
  135. package/.docs/models/providers/umans-ai-coding-plan.md +2 -1
  136. package/.docs/models/providers/umans-ai.md +2 -1
  137. package/.docs/models/providers/vivgrid.md +2 -1
  138. package/.docs/models/providers/xai.md +2 -1
  139. package/.docs/models/providers.md +5 -0
  140. package/.docs/reference/acp/acp-agent.md +2 -2
  141. package/.docs/reference/acp/create-acp-tool.md +1 -1
  142. package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
  143. package/.docs/reference/agents/agent.md +2 -2
  144. package/.docs/reference/agents/channels.md +2 -2
  145. package/.docs/reference/agents/createSkill.md +2 -2
  146. package/.docs/reference/agents/getSkill.md +1 -1
  147. package/.docs/reference/agents/listSkills.md +1 -1
  148. package/.docs/reference/agents/listSuspendedRuns.md +6 -6
  149. package/.docs/reference/agents/listTools.md +2 -2
  150. package/.docs/reference/agents/network.md +1 -1
  151. package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
  152. package/.docs/reference/ai-sdk/network-route.md +1 -1
  153. package/.docs/reference/auth/fga.md +5 -5
  154. package/.docs/reference/auth/jwt.md +1 -1
  155. package/.docs/reference/browser/agent-browser.md +2 -2
  156. package/.docs/reference/browser/browser-viewer.md +2 -2
  157. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  158. package/.docs/reference/browser/mastra-browser.md +1 -1
  159. package/.docs/reference/browser/stagehand-browser.md +2 -2
  160. package/.docs/reference/build-with-ai.md +2 -2
  161. package/.docs/reference/channels/channel-provider.md +1 -1
  162. package/.docs/reference/channels/slack-provider.md +1 -1
  163. package/.docs/reference/cli/mastra.md +2 -0
  164. package/.docs/reference/client-js/agents.md +4 -4
  165. package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
  166. package/.docs/reference/configuration.md +6 -6
  167. package/.docs/reference/core/getEditor.md +1 -1
  168. package/.docs/reference/core/getMCPServer.md +1 -1
  169. package/.docs/reference/core/getMCPServerById.md +1 -1
  170. package/.docs/reference/core/getTool.md +1 -1
  171. package/.docs/reference/core/getToolById.md +1 -1
  172. package/.docs/reference/core/listMCPServers.md +1 -1
  173. package/.docs/reference/core/listTools.md +1 -1
  174. package/.docs/reference/core/removeWorkspace.md +1 -1
  175. package/.docs/reference/editor/mastra-editor.md +2 -2
  176. package/.docs/reference/editor/prompt-blocks.md +2 -2
  177. package/.docs/reference/editor/tool-provider.md +1 -1
  178. package/.docs/reference/editor/tools.md +1 -1
  179. package/.docs/reference/editor/versioning.md +3 -3
  180. package/.docs/reference/evals/prompt-alignment.md +18 -0
  181. package/.docs/reference/evals/rubric.md +1 -1
  182. package/.docs/reference/file-based-agents/memory.md +2 -2
  183. package/.docs/reference/file-based-agents/server.md +3 -3
  184. package/.docs/reference/file-based-agents/skills.md +1 -1
  185. package/.docs/reference/file-based-agents/storage.md +3 -3
  186. package/.docs/reference/file-based-agents/subagents.md +1 -1
  187. package/.docs/reference/file-based-agents/workspace.md +3 -3
  188. package/.docs/reference/manual-install.md +3 -3
  189. package/.docs/reference/migrations/network-to-supervisor.md +2 -2
  190. package/.docs/reference/processors/skill-search-processor.md +1 -1
  191. package/.docs/reference/processors/tool-call-filter.md +7 -7
  192. package/.docs/reference/processors/tool-search-processor.md +1 -1
  193. package/.docs/reference/project-structure.md +1 -1
  194. package/.docs/reference/pubsub/lease-provider.md +3 -3
  195. package/.docs/reference/pubsub/redis-streams.md +1 -1
  196. package/.docs/reference/schedules/overview.md +1 -1
  197. package/.docs/reference/streaming/ChunkType.md +2 -2
  198. package/.docs/reference/streaming/agents/stream.md +3 -1
  199. package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
  200. package/.docs/reference/tools/ask-user-tool.md +1 -1
  201. package/.docs/reference/tools/create-code-mode.md +1 -1
  202. package/.docs/reference/tools/create-tool.md +4 -4
  203. package/.docs/reference/tools/mcp-server.md +47 -2
  204. package/.docs/reference/tools/submit-plan-tool.md +1 -1
  205. package/.docs/reference/tools/task-tools.md +2 -2
  206. package/.docs/reference/vectors/vectorize.md +12 -2
  207. package/.docs/reference/workers/overview.md +2 -2
  208. package/.docs/reference/workspace/local-filesystem.md +1 -1
  209. package/.docs/reference/workspace/local-sandbox.md +4 -3
  210. package/.docs/reference/workspace/process-manager.md +20 -4
  211. package/.docs/reference/workspace/sandbox.md +1 -1
  212. package/.docs/reference/workspace/workspace-class.md +5 -5
  213. package/CHANGELOG.md +15 -0
  214. package/package.json +5 -5
  215. /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
  216. /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
  217. /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
  218. /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
  219. /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
  220. /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
@@ -4,7 +4,7 @@
4
4
 
5
5
  The `IFGAProvider` interface defines a fine-grained authorization (FGA) provider. Mastra calls it to decide whether a user or a system actor may perform a permission on a specific resource. Implement it to connect Mastra to an FGA backend, such as WorkOS Authorization.
6
6
 
7
- For concepts, configuration, and the lifecycle points where Mastra enforces FGA, see [Fine-grained authorization](https://mastra.ai/docs/server/auth/fga).
7
+ For concepts, configuration, and the lifecycle points where Mastra enforces FGA, see [Fine-grained authorization](https://mastra.ai/docs/auth/fga).
8
8
 
9
9
  ## Usage example
10
10
 
@@ -47,7 +47,7 @@ Returns: `Promise<boolean>`
47
47
 
48
48
  ### `require(user, params)`
49
49
 
50
- Throws `FGADeniedError` when `user` lacks the permission. Mastra calls this at its [enforcement points](https://mastra.ai/docs/server/auth/fga).
50
+ Throws `FGADeniedError` when `user` lacks the permission. Mastra calls this at its [enforcement points](https://mastra.ai/docs/auth/fga).
51
51
 
52
52
  Returns: `Promise<void>`
53
53
 
@@ -63,7 +63,7 @@ Authorizes a non-user system actor, such as an autonomous or scheduled agent. Op
63
63
 
64
64
  System actors skip the user-centric `require()` path, so implement `requireActor` to enforce per-agent least privilege for them. Throw `FGADeniedError` to deny. When a provider doesn't implement `requireActor`, Mastra preserves the trusted-actor bypass (allow after the tenant-scope check), so adding the method remains backward compatible.
65
65
 
66
- Treat `actor.permissions` as an untrusted claim. Resolve the agent's authoritative grants from a trusted source keyed by `actor.agentId`, rather than trusting the inline values. See [System actors](https://mastra.ai/docs/server/auth/fga).
66
+ Treat `actor.permissions` as an untrusted claim. Resolve the agent's authoritative grants from a trusted source keyed by `actor.agentId`, rather than trusting the inline values. See [System actors](https://mastra.ai/docs/auth/fga).
67
67
 
68
68
  ```typescript
69
69
  import { FGADeniedError } from '@mastra/core/auth/ee'
@@ -135,6 +135,6 @@ throw new FGADeniedError(user, { type: 'agent', id: 'reporter' }, 'agents:execut
135
135
 
136
136
  ## Related
137
137
 
138
- - [Fine-grained authorization](https://mastra.ai/docs/server/auth/fga)
139
- - [System actors](https://mastra.ai/docs/server/auth/fga)
138
+ - [Fine-grained authorization](https://mastra.ai/docs/auth/fga)
139
+ - [System actors](https://mastra.ai/docs/auth/fga)
140
140
  - [WorkOS authentication](https://mastra.ai/reference/auth/workos)
@@ -25,4 +25,4 @@ export const mastra = new Mastra({
25
25
 
26
26
  ## Related
27
27
 
28
- - [JSON Web Token](https://mastra.ai/docs/server/auth/jwt)
28
+ - [JSON Web Token](https://mastra.ai/docs/auth/jwt)
@@ -54,7 +54,7 @@ then interact with elements using their refs (e.g., @e5).`,
54
54
 
55
55
  `AgentBrowser` provides 16 deterministic tools for browser automation. All tools that interact with elements use refs from the accessibility tree snapshot.
56
56
 
57
- When `recording` is configured, `AgentBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser/overview).
57
+ When `recording` is configured, `AgentBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser).
58
58
 
59
59
  ### Core tools
60
60
 
@@ -403,5 +403,5 @@ The `browser_snapshot` tool returns an accessibility tree with element refs like
403
403
 
404
404
  - [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class reference
405
405
  - [StagehandBrowser](https://mastra.ai/reference/browser/stagehand-browser): AI-powered alternative
406
- - [Browser overview](https://mastra.ai/docs/browser/overview): Conceptual guide
406
+ - [Browser overview](https://mastra.ai/docs/browser): Conceptual guide
407
407
  - [agent-browser guide](https://mastra.ai/integrations/browsers/agent-browser): Usage guide
@@ -194,7 +194,7 @@ await viewer.injectKeyboardEvent({
194
194
 
195
195
  ## Supported CLIs
196
196
 
197
- Each CLI must be installed separately. Each also publishes a [skill](https://mastra.ai/docs/workspace/skills) that teaches the agent its commands and workflows. When a CLI command runs through `workspace_execute_command`, Mastra detects it and injects the CDP URL automatically using the correct flag.
197
+ Each CLI must be installed separately. Each also publishes a [skill](https://mastra.ai/docs/sandbox/skills) that teaches the agent its commands and workflows. When a CLI command runs through `workspace_execute_command`, Mastra detects it and injects the CDP URL automatically using the correct flag.
198
198
 
199
199
  Unlike SDK providers, `BrowserViewer` doesn't provide agent tools. The agent uses CLI commands through `workspace_execute_command` instead.
200
200
 
@@ -229,4 +229,4 @@ browse skills install
229
229
 
230
230
  - [BrowserViewer guide](https://mastra.ai/integrations/browsers/browser-viewer): Setup and usage walkthrough
231
231
  - [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class API reference
232
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox): Workspace configuration
232
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview): Workspace configuration
@@ -68,4 +68,4 @@ In both cases, `FirecrawlBrowser` deletes the remote Firecrawl session when the
68
68
 
69
69
  - [Firecrawl docs](https://mastra.ai/integrations/browsers/firecrawl)
70
70
  - [`AgentBrowser` reference](https://mastra.ai/reference/browser/agent-browser)
71
- - [Browser overview](https://mastra.ai/docs/browser/overview)
71
+ - [Browser overview](https://mastra.ai/docs/browser)
@@ -285,4 +285,4 @@ const browser = new AgentBrowser({
285
285
 
286
286
  - [AgentBrowser](https://mastra.ai/reference/browser/agent-browser): Deterministic browser automation
287
287
  - [StagehandBrowser](https://mastra.ai/reference/browser/stagehand-browser): AI-powered browser automation
288
- - [Browser overview](https://mastra.ai/docs/browser/overview): Conceptual guide to browser automation
288
+ - [Browser overview](https://mastra.ai/docs/browser): Conceptual guide to browser automation
@@ -71,7 +71,7 @@ Use stagehand_extract to get data from pages.`,
71
71
 
72
72
  `StagehandBrowser` provides 7 AI-powered tools for browser automation.
73
73
 
74
- When `recording` is configured, `StagehandBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser/overview).
74
+ When `recording` is configured, `StagehandBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser).
75
75
 
76
76
  Core tools:
77
77
 
@@ -316,5 +316,5 @@ Choose `AgentBrowser` for precise, reproducible automation. Choose `StagehandBro
316
316
 
317
317
  - [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class reference
318
318
  - [AgentBrowser](https://mastra.ai/reference/browser/agent-browser): Deterministic alternative
319
- - [Browser overview](https://mastra.ai/docs/browser/overview): Conceptual guide
319
+ - [Browser overview](https://mastra.ai/docs/browser): Conceptual guide
320
320
  - [Stagehand guide](https://mastra.ai/integrations/browsers/stagehand): Usage guide
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Build with AI
4
4
 
5
- For everyday AI-assisted development with Mastra skills and the CLI, see [Develop](https://mastra.ai/docs/getting-started/develop). This page covers other ways to give coding agents access to Mastra documentation.
5
+ For everyday AI-assisted development with Mastra skills and the CLI, see [Develop](https://mastra.ai/docs/develop). This page covers other ways to give coding agents access to Mastra documentation.
6
6
 
7
7
  ## Embedded package docs
8
8
 
@@ -29,7 +29,7 @@ Examples for the [introduction page](https://mastra.ai/docs):
29
29
 
30
30
  ## MCP docs server
31
31
 
32
- > **Warning:** The MCP docs server isn't recommended for everyday development. Use the [Mastra skill](https://mastra.ai/docs/getting-started/develop) instead because it's more up to date and performs better.
32
+ > **Warning:** The MCP docs server isn't recommended for everyday development. Use the [Mastra skill](https://mastra.ai/docs/develop) instead because it's more up to date and performs better.
33
33
 
34
34
  The `@mastra/mcp-docs-server` package provides direct local access to Mastra’s full documentation via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro). It works with Cursor, Windsurf, Cline, Claude Code, VS Code, Codex or any tool that supports MCP.
35
35
 
@@ -64,4 +64,4 @@ const all = mastra.getChannelProviders()
64
64
  ## Related
65
65
 
66
66
  - [SlackProvider](https://mastra.ai/reference/channels/slack-provider)
67
- - [Channels](https://mastra.ai/docs/capabilities/channels)
67
+ - [Channels](https://mastra.ai/docs/channels)
@@ -226,5 +226,5 @@ const result = await slack.connect('support-agent')
226
226
  ## Related
227
227
 
228
228
  - [ChannelProvider](https://mastra.ai/reference/channels/channel-provider): the interface `SlackProvider` implements
229
- - [Channels](https://mastra.ai/docs/capabilities/channels): concepts, platform setup, and the `createSlackAdapter` path
229
+ - [Channels](https://mastra.ai/docs/channels): concepts, platform setup, and the `createSlackAdapter` path
230
230
  - [Channels reference](https://mastra.ai/reference/agents/channels): the `channels` config on the `Agent` constructor
@@ -1771,6 +1771,8 @@ When a server started with `mastra dev` or `mastra start` has observability metr
1771
1771
 
1772
1772
  At server startup, Mastra also sends an anonymous project-surface snapshot: counts of registered agents, agent controllers, workflows, tools, processors, vector stores, scorers, workspaces, MCP servers, gateways, and channels, plus booleans for memory, voice, editor, and observability usage and the coarse storage backend category. It doesn't send names or identifiers. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/telemetry/feature-telemetry.ts) to check what's collected.
1773
1773
 
1774
+ The Studio UI also collects anonymous browser-side usage analytics, such as page views and UI interactions. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/playground/src/lib/analytics.tsx) to check what's collected. Setting `MASTRA_TELEMETRY_DISABLED` disables this too: the value is injected into the served page, so it applies to `mastra dev` and self-hosted builds alike.
1775
+
1774
1776
  You can opt out of all CLI and usage analytics by setting an environment variable:
1775
1777
 
1776
1778
  ```bash
@@ -285,7 +285,7 @@ await subscription.processDataStream({
285
285
 
286
286
  ### `streamUntilIdle()`
287
287
 
288
- Stream a response and keep the stream open until every [background task](https://mastra.ai/docs/long-running-agents/background-tasks) dispatched during the run completes. The server re-enters the agentic loop on each task completion so the LLM can react to results in the same call. Requires background tasks to be [enabled on the Mastra instance](https://mastra.ai/reference/configuration) and a memory thread; otherwise the call uses a plain `stream()`.
288
+ Stream a response and keep the stream open until every [background task](https://mastra.ai/docs/harness/background-tasks) dispatched during the run completes. The server re-enters the agentic loop on each task completion so the LLM can react to results in the same call. Requires background tasks to be [enabled on the Mastra instance](https://mastra.ai/reference/configuration) and a memory thread; otherwise the call uses a plain `stream()`.
289
289
 
290
290
  ```typescript
291
291
  const response = await agent.streamUntilIdle('Research solana for me', {
@@ -307,7 +307,7 @@ response.processDataStream({
307
307
 
308
308
  ### `resumeStreamUntilIdle()`
309
309
 
310
- Resume a suspended agent stream with custom data and keep the stream open until every [background task](https://mastra.ai/docs/long-running-agents/background-tasks) dispatched during the run completes. Use this to continue execution after a suspension point, such as a workflow suspend within an agent. Requires background tasks to be [enabled on the Mastra instance](https://mastra.ai/reference/configuration) and a memory thread; otherwise the call uses a plain `resumeStream()`:
310
+ Resume a suspended agent stream with custom data and keep the stream open until every [background task](https://mastra.ai/docs/harness/background-tasks) dispatched during the run completes. Use this to continue execution after a suspension point, such as a workflow suspend within an agent. Requires background tasks to be [enabled on the Mastra instance](https://mastra.ai/reference/configuration) and a memory thread; otherwise the call uses a plain `resumeStream()`:
311
311
 
312
312
  ```typescript
313
313
  const response = await agent.resumeStreamUntilIdle(
@@ -497,7 +497,7 @@ if (output.finishReason === 'suspended') {
497
497
 
498
498
  ## Agent schedules
499
499
 
500
- Use the client SDK schedule methods to manage persisted agent schedules over the `/api/schedules` routes. For concepts and server-side examples, see [Schedules](https://mastra.ai/docs/long-running-agents/schedules) and the [`mastra.schedules` reference](https://mastra.ai/reference/schedules/overview).
500
+ Use the client SDK schedule methods to manage persisted agent schedules over the `/api/schedules` routes. For concepts and server-side examples, see [Schedules](https://mastra.ai/docs/harness/schedules) and the [`mastra.schedules` reference](https://mastra.ai/reference/schedules/overview).
501
501
 
502
502
  ### `createSchedule()`
503
503
 
@@ -839,7 +839,7 @@ console.log(result.success) // true
839
839
 
840
840
  ## Version management
841
841
 
842
- Both `Agent` (code-defined) and `StoredAgent` instances have methods for managing configuration versions. See [Editor versioning](https://mastra.ai/docs/editor/overview) for lifecycle and selection behavior.
842
+ Both `Agent` (code-defined) and `StoredAgent` instances have methods for managing configuration versions. See [Editor versioning](https://mastra.ai/docs/studio/editor) for lifecycle and selection behavior.
843
843
 
844
844
  ### Getting an agent with a specific version
845
845
 
@@ -2,13 +2,17 @@
2
2
 
3
3
  # createCodingAgent()
4
4
 
5
- `createCodingAgent()` builds a coding [`Agent`](https://mastra.ai/reference/agents/agent) with portable defaults for the pieces a coding agent always needs: a local workspace, the task-list signal provider, network-retry error processors, and the goal judge prompt. Supply only `model`, `instructions`, and `tools` to get a working agent, or override any default.
5
+ **Added in:** `@mastra/core@1.48.0`
6
6
 
7
- The returned value is a standard `Agent`, so it works anywhere an `Agent` does: including as the agent passed to an [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class).
7
+ `createCodingAgent()` builds a coding [`Agent`](https://mastra.ai/reference/agents/agent) with the essential defaults a coding agent always needs: a local workspace, the task-list signal provider when `memory` is configured, network-retry error processors, and the goal judge prompt. Supply only `model` and `instructions` to get a working agent, or override any default.
8
+
9
+ The returned value is a standard `Agent`, so it works anywhere an `Agent` does: including as the agent passed to an [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class). The function lives in `@mastra/core` with no hosted service behind it, and every default it fills in is a primitive you can also configure on [`new Agent()`](https://mastra.ai/reference/agents/agent) yourself.
10
+
11
+ The defaults match the ones [Mastra Code](https://code.mastra.ai) runs on. The prompt, modes, and tools that make up that product aren't included: `createCodingAgent()` sets up only the runtime pieces listed under [Defaults](#defaults).
8
12
 
9
13
  ## Usage example
10
14
 
11
- Pass a model, instructions, and tools. The factory fills in the workspace, task signal, error processors, and goal prompt:
15
+ Pass a model and instructions. `createCodingAgent()` fills in the workspace and the error processors. The task signal provider is added when `memory` is configured, and the goal prompt when a `goal` is configured:
12
16
 
13
17
  ```typescript
14
18
  import { createCodingAgent } from '@mastra/core/coding-agent'
@@ -18,13 +22,20 @@ const agent = createCodingAgent({
18
22
  name: 'My Coding Agent',
19
23
  model: 'openai/gpt-5',
20
24
  instructions: 'You are a helpful coding assistant.',
21
- tools: {},
22
25
  })
26
+
27
+ const result = await agent.generate('Which test files mention the /health endpoint?')
23
28
  ```
24
29
 
30
+ The agent receives the [workspace tools](https://mastra.ai/reference/workspace/workspace-class) for its resolved workspace, so `tools` is only needed for capabilities beyond the workspace, such as opening a pull request. Mastra also adds a description of the workspace to the system prompt.
31
+
32
+ > **Warning:** The default workspace runs commands on the host machine with the permissions of your application process. See [Workspace](#workspace) for how to swap in an isolated sandbox.
33
+
34
+ For the behavioral prompt Mastra Code uses, covering repository exploration, edits, commands, and commits, build `instructions` with [`buildBasePrompt()`](https://mastra.ai/reference/coding-agent/build-base-prompt).
35
+
25
36
  ## Parameters
26
37
 
27
- `createCodingAgent()` accepts every field of [`AgentConfig`](https://mastra.ai/reference/agents/agent) plus the fields below. Fields you provide always take precedence over the factory defaults.
38
+ `createCodingAgent()` accepts every field of [`AgentConfig`](https://mastra.ai/reference/agents/agent) plus the fields below. Fields you provide replace the corresponding default, except for `signals`: the default task signal provider is merged into the providers you pass. See [Signals](#signals).
28
39
 
29
40
  **model** (`MastraLanguageModel | DynamicArgument<MastraLanguageModel>`): The language model the agent uses. Passed straight through to Agent.
30
41
 
@@ -32,11 +43,11 @@ const agent = createCodingAgent({
32
43
 
33
44
  **tools** (`ToolsInput | DynamicArgument<ToolsInput>`): Tools available to the agent. Passed straight through to Agent.
34
45
 
35
- **workspace** (`AnyWorkspace | undefined`): The workspace backing the agent. When the key is omitted, a default local workspace is built. When set explicitly to undefined, the factory builds no default — opt out when the workspace is wired elsewhere (for example at the AgentController level).
46
+ **workspace** (`AnyWorkspace | undefined`): The workspace backing the agent. When the key is omitted, a default local workspace is built. When set explicitly to undefined, no default is built. Opt out this way when the workspace is wired elsewhere, for example at the AgentController level.
36
47
 
37
48
  **basePath** (`string`): Base path for the default workspace built when workspace is omitted. (Default: `process.cwd()`)
38
49
 
39
- **signals** (`SignalProvider[]`): Signal providers for the agent. When omitted, defaults to a single TaskSignalProvider.
50
+ **signals** (`SignalProvider[]`): Signal providers for the agent. A TaskSignalProvider is added only when memory is configured, and it is merged into the providers you pass rather than replacing them. Without memory, the agent gets exactly the providers you pass, or none.
40
51
 
41
52
  **errorProcessors** (`Processor[]`): Error processors for the agent. When omitted, defaults to unknown stream-error retries with specialized ECONNRESET and bad-request policies, plus PrefillErrorHandler and ProviderHistoryCompat.
42
53
 
@@ -48,18 +59,29 @@ const agent = createCodingAgent({
48
59
 
49
60
  ## Defaults
50
61
 
51
- The factory only fills a default when you don't provide the corresponding field. Caller-provided values always win.
62
+ A default is only filled in when you don't provide the corresponding field. `signals` is the exception: the task signal provider is appended to the providers you pass.
52
63
 
53
64
  | Field | Default when omitted |
54
65
  | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
55
66
  | `workspace` | A [`Workspace`](https://mastra.ai/reference/workspace/workspace-class) backed by `LocalFilesystem` and `LocalSandbox` rooted at the base path. |
56
- | `signals` | A single [`TaskSignalProvider`](https://mastra.ai/reference/signals/task-signal-provider). |
67
+ | `signals` | A [`TaskSignalProvider`](https://mastra.ai/reference/signals/task-signal-provider), added only when `memory` is configured. |
57
68
  | `errorProcessors` | Unknown stream-error retries with specialized ECONNRESET and bad-request policies, plus `PrefillErrorHandler` and `ProviderHistoryCompat`. |
58
69
  | `goal.prompt` | `DEFAULT_GOAL_JUDGE_PROMPT` (only when a `goal` is configured). |
59
70
 
71
+ Nothing else is filled in. There's no default `model`, `instructions`, `tools`, `memory`, storage, or input and output processors.
72
+
73
+ Each default has an explicit opt-out:
74
+
75
+ | Default | How to opt out |
76
+ | ----------------- | ------------------------------------------- |
77
+ | Workspace | `workspace: undefined` |
78
+ | Task tracking | Don't configure `memory` on the agent |
79
+ | Error processors | `errorProcessors: []` |
80
+ | Goal judge prompt | Omit `goal`, or pass your own `goal.prompt` |
81
+
60
82
  ### Workspace
61
83
 
62
- When the `workspace` key is omitted, the factory builds a local workspace rooted at `basePath` (default `process.cwd()`):
84
+ When the `workspace` key is omitted, a local workspace rooted at `basePath` (default `process.cwd()`) is built:
63
85
 
64
86
  ```typescript
65
87
  import { Workspace, LocalFilesystem, LocalSandbox } from '@mastra/core/workspace'
@@ -70,19 +92,94 @@ new Workspace({
70
92
  })
71
93
  ```
72
94
 
73
- To opt out (for example, when the workspace is injected at the [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class) level), pass `workspace: undefined` explicitly:
95
+ To keep that shape but work in a different directory, pass `basePath`:
74
96
 
75
97
  ```typescript
98
+ import { createCodingAgent } from '@mastra/core/coding-agent'
99
+
100
+ const agent = createCodingAgent({
101
+ id: 'my-coding-agent',
102
+ name: 'My Coding Agent',
103
+ model: 'openai/gpt-5',
104
+ instructions: 'You are a helpful coding assistant.',
105
+ basePath: '/srv/checkouts/my-app',
106
+ })
107
+ ```
108
+
109
+ Pass a `workspace` to build the backends yourself. Here the agent reads the whole repository while commands run inside one package. A remote sandbox takes the place of `LocalSandbox` in the same slot, see [Sandbox](https://mastra.ai/docs/sandbox/overview) for the available backends and isolation options:
110
+
111
+ ```typescript
112
+ import { createCodingAgent } from '@mastra/core/coding-agent'
113
+ import { LocalFilesystem, LocalSandbox, Workspace } from '@mastra/core/workspace'
114
+
115
+ const agent = createCodingAgent({
116
+ id: 'my-coding-agent',
117
+ name: 'My Coding Agent',
118
+ model: 'openai/gpt-5',
119
+ instructions: 'You are a helpful coding assistant.',
120
+ workspace: new Workspace({
121
+ filesystem: new LocalFilesystem({ basePath: '/srv/checkouts/my-app' }),
122
+ sandbox: new LocalSandbox({ workingDirectory: '/srv/checkouts/my-app/packages/api' }),
123
+ }),
124
+ })
125
+ ```
126
+
127
+ To opt out (for example, when the workspace is injected at the [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class) level), pass `workspace: undefined` explicitly. An omitted key builds the default, an explicit `undefined` builds nothing:
128
+
129
+ ```typescript
130
+ import { createCodingAgent } from '@mastra/core/coding-agent'
131
+
76
132
  const agent = createCodingAgent({
77
133
  id: 'my-coding-agent',
78
134
  name: 'My Coding Agent',
79
135
  model: 'openai/gpt-5',
80
136
  instructions: 'You are a helpful coding assistant.',
81
- tools: {},
82
137
  workspace: undefined, // opt out of the default workspace
83
138
  })
84
139
  ```
85
140
 
141
+ ### Signals
142
+
143
+ [`TaskSignalProvider`](https://mastra.ai/reference/signals/task-signal-provider) adds the `task_write`, `task_update`, `task_complete`, and `task_check` [task tools](https://mastra.ai/reference/tools/task-tools) and persists the list in thread state, which gives the agent a durable plan across a multi-step request:
144
+
145
+ ```typescript
146
+ import { createCodingAgent } from '@mastra/core/coding-agent'
147
+ import { Memory } from '@mastra/memory'
148
+
149
+ const agent = createCodingAgent({
150
+ id: 'my-coding-agent',
151
+ name: 'My Coding Agent',
152
+ model: 'openai/gpt-5',
153
+ instructions: 'Plan multi-step work with the task tools, then carry it out.',
154
+ memory: new Memory(),
155
+ })
156
+ ```
157
+
158
+ The provider needs a memory-backed thread, so it's only added when `memory` is configured. With memory configured, the provider is merged into any `signals` you pass, which keeps task tracking from being dropped by custom providers. Passing `signals: []` alongside `memory` still yields the task provider. To run a memory-backed agent with no task tracking, configure the agent with [`new Agent()`](https://mastra.ai/reference/agents/agent) instead. Before `@mastra/core@1.49.0`, the provider was always added, which failed in memoryless contexts.
159
+
160
+ `TaskSignalProvider` takes no constructor arguments, so customizing this default means choosing which other providers the agent gets:
161
+
162
+ ```typescript
163
+ import { createCodingAgent } from '@mastra/core/coding-agent'
164
+ import { WebhookSignalProvider } from '@mastra/core/signals'
165
+ import { Memory } from '@mastra/memory'
166
+
167
+ const agent = createCodingAgent({
168
+ id: 'my-coding-agent',
169
+ name: 'My Coding Agent',
170
+ model: 'openai/gpt-5',
171
+ instructions: 'You are a helpful coding assistant.',
172
+ memory: new Memory(),
173
+ signals: [
174
+ new WebhookSignalProvider({
175
+ extractResourceId: payload => (payload as { repository: string }).repository,
176
+ }),
177
+ ],
178
+ })
179
+ ```
180
+
181
+ That agent gets the webhook provider and the task provider.
182
+
86
183
  ### Error processors
87
184
 
88
185
  The default [`StreamErrorRetryProcessor`](https://mastra.ai/reference/processors/stream-error-retry-processor) applies these retry policies:
@@ -91,10 +188,42 @@ The default [`StreamErrorRetryProcessor`](https://mastra.ai/reference/processors
91
188
  - Network resets (`ECONNRESET` / `socket hang up`) retry up to twice with exponential backoff (`1000ms * 2^retryCount`, capped at `30000ms`).
92
189
  - Bad-request errors retry once after `2000ms`.
93
190
 
94
- Specific network-reset and bad-request policies take precedence over the unknown-error policy. Passing `errorProcessors` replaces the default processor stack. `PrefillErrorHandler` and `ProviderHistoryCompat` are also included for provider compatibility.
191
+ Specific network-reset and bad-request policies take precedence over the unknown-error policy. Passing `errorProcessors` replaces the default processor stack. `PrefillErrorHandler` and `ProviderHistoryCompat` are also included for provider compatibility: both repair errors caused by the shape of the message history, such as a provider rejecting a conversation that ends with an assistant message.
192
+
193
+ Retries happen inside the `generate()` or `stream()` call that hit the error, so a recovered failure is invisible to your code. When the retries run out, the error surfaces the way any model error does: `generate()` rejects and `stream()` emits an `error` chunk. `generate()` and `stream()` also accept `errorProcessors` per call, which replaces the agent's stack for that request. See [Processors](https://mastra.ai/docs/agents/processors) for `maxProcessorRetries`, the retry budget these processors share.
194
+
195
+ ### Goal
196
+
197
+ No goal is configured by default. When you pass a `goal` without a `prompt`, `DEFAULT_GOAL_JUDGE_PROMPT` is used. The `goal` config carries the judge and the run budget, while the objective itself is per thread and set with [`setObjective()`](https://mastra.ai/docs/harness/goals):
198
+
199
+ ```typescript
200
+ import { createCodingAgent } from '@mastra/core/coding-agent'
201
+ import { Memory } from '@mastra/memory'
202
+
203
+ const agent = createCodingAgent({
204
+ id: 'my-coding-agent',
205
+ name: 'My Coding Agent',
206
+ model: 'openai/gpt-5',
207
+ instructions: 'You are a helpful coding assistant.',
208
+ memory: new Memory(),
209
+ goal: {
210
+ judge: 'openai/gpt-5-mini',
211
+ maxRuns: 50,
212
+ },
213
+ })
214
+
215
+ const threadId = 'thread-1'
216
+ const resourceId = 'user-1'
217
+
218
+ await agent.setObjective('Get the test suite passing', { threadId, resourceId })
219
+ ```
220
+
221
+ [Goals](https://mastra.ai/docs/harness/goals) require a [storage](https://mastra.ai/docs/storage) backend and a memory-backed thread. Without a resolved `judge`, the goal step is a no-op.
95
222
 
96
223
  ## Related
97
224
 
98
225
  - [`buildBasePrompt()`](https://mastra.ai/reference/coding-agent/build-base-prompt)
226
+ - [Goals](https://mastra.ai/docs/harness/goals)
227
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
99
228
  - [`Agent`](https://mastra.ai/reference/agents/agent)
100
229
  - [`AgentController`](https://mastra.ai/reference/agent-controller/agent-controller-class)
@@ -44,7 +44,7 @@ export const mastra = new Mastra({
44
44
 
45
45
  Enables and configures the background task manager. When enabled, agents can dispatch long-running tool calls (including subagent invocations) to run asynchronously while the agentic loop continues. Tasks are persisted, so a configured `storage` backend is required.
46
46
 
47
- Visit the [Background tasks documentation](https://mastra.ai/docs/long-running-agents/background-tasks) to learn more.
47
+ Visit the [Background tasks documentation](https://mastra.ai/docs/harness/background-tasks) to learn more.
48
48
 
49
49
  ```typescript
50
50
  import { Mastra } from '@mastra/core'
@@ -219,7 +219,7 @@ export const mastra = new Mastra({
219
219
 
220
220
  MCP (Model Context Protocol) servers that expose Mastra tools, agents, workflows, and resources to MCP-compatible clients. Use this to author your own MCP servers that can be consumed by any system that supports the protocol.
221
221
 
222
- Visit the [MCP Overview](https://mastra.ai/docs/mcp/overview) to learn more.
222
+ Visit the [MCP Overview](https://mastra.ai/docs/connections/mcp) to learn more.
223
223
 
224
224
  ```typescript
225
225
  import { Mastra } from '@mastra/core'
@@ -366,7 +366,7 @@ export const mastra = new Mastra({
366
366
 
367
367
  Storage provider for persisting application data. Used by memory, workflows, traces, and other components that require persistence. Mastra supports multiple database backends including PostgreSQL, MongoDB, libSQL, and more.
368
368
 
369
- Visit the [Storage documentation](https://mastra.ai/docs/storage/overview) to learn more.
369
+ Visit the [Storage documentation](https://mastra.ai/docs/storage) to learn more.
370
370
 
371
371
  ```typescript
372
372
  import { Mastra } from '@mastra/core'
@@ -386,7 +386,7 @@ export const mastra = new Mastra({
386
386
 
387
387
  Tools are reusable functions that agents can use to interact with external systems. Each tool defines inputs, outputs, and execution logic.
388
388
 
389
- Visit the [Tools documentation](https://mastra.ai/docs/agents/using-tools) to learn more.
389
+ Visit the [Tools documentation](https://mastra.ai/docs/agents/tools) to learn more.
390
390
 
391
391
  > **Note:** Most users configure tools directly on agents. This top-level configuration is for defining reusable tools that can be shared across multiple agents.
392
392
 
@@ -483,7 +483,7 @@ export const mastra = new Mastra({
483
483
 
484
484
  A Mastra workspace gives agents a persistent environment for storing files and executing commands. Agents inherit the global workspace on the `Mastra` class unless they have their own workspace configured.
485
485
 
486
- See the [Workspace documentation](https://mastra.ai/docs/workspace/sandbox) for implementation details.
486
+ See the [Workspace documentation](https://mastra.ai/docs/sandbox/overview) for implementation details.
487
487
 
488
488
  ```typescript
489
489
  import { Mastra } from '@mastra/core'
@@ -618,7 +618,7 @@ export const mastra = new Mastra({
618
618
 
619
619
  Authentication configuration for the server. Mastra supports multiple authentication providers including JWT, Clerk, Supabase, Firebase, WorkOS, and Auth0.
620
620
 
621
- Visit the [Authentication documentation](https://mastra.ai/docs/server/auth) to learn more.
621
+ Visit the [Authentication documentation](https://mastra.ai/docs/auth/overview) to learn more.
622
622
 
623
623
  ```typescript
624
624
  import { Mastra } from '@mastra/core'
@@ -33,5 +33,5 @@ This method doesn't accept any parameters.
33
33
 
34
34
  ## Related
35
35
 
36
- - [Editor](https://mastra.ai/docs/editor/overview)
36
+ - [Editor](https://mastra.ai/docs/studio/editor)
37
37
  - [MastraEditor reference](https://mastra.ai/reference/editor/mastra-editor)
@@ -43,5 +43,5 @@ const serverById = mastra.getMCPServerById('my-mcp-server')
43
43
 
44
44
  ## See also
45
45
 
46
- - [MCP overview](https://mastra.ai/docs/mcp/overview)
46
+ - [MCP overview](https://mastra.ai/docs/connections/mcp)
47
47
  - [MCP server reference](https://mastra.ai/reference/tools/mcp-server)
@@ -51,5 +51,5 @@ const serverByKey = mastra.getMCPServer('customKey')
51
51
 
52
52
  ## See also
53
53
 
54
- - [MCP overview](https://mastra.ai/docs/mcp/overview)
54
+ - [MCP overview](https://mastra.ai/docs/connections/mcp)
55
55
  - [MCP server reference](https://mastra.ai/reference/tools/mcp-server)
@@ -27,7 +27,7 @@ const tool = mastra.getTool('weather')
27
27
 
28
28
  ## Related
29
29
 
30
- - [Share tools across agents](https://mastra.ai/docs/agents/using-tools)
30
+ - [Share tools across agents](https://mastra.ai/docs/agents/tools)
31
31
  - [Mastra class](https://mastra.ai/reference/core/mastra-class)
32
32
  - [Mastra.getToolById()](https://mastra.ai/reference/core/getToolById)
33
33
  - [Mastra.listTools()](https://mastra.ai/reference/core/listTools)
@@ -42,7 +42,7 @@ const toolById = mastra.getToolById('weather-tool')
42
42
 
43
43
  ## Related
44
44
 
45
- - [Share tools across agents](https://mastra.ai/docs/agents/using-tools)
45
+ - [Share tools across agents](https://mastra.ai/docs/agents/tools)
46
46
  - [Mastra class](https://mastra.ai/reference/core/mastra-class)
47
47
  - [Mastra.getTool()](https://mastra.ai/reference/core/getTool)
48
48
  - [Mastra.listTools()](https://mastra.ai/reference/core/listTools)
@@ -49,5 +49,5 @@ This method doesn't accept any parameters.
49
49
 
50
50
  ## See also
51
51
 
52
- - [MCP overview](https://mastra.ai/docs/mcp/overview)
52
+ - [MCP overview](https://mastra.ai/docs/connections/mcp)
53
53
  - [MCP server reference](https://mastra.ai/reference/tools/mcp-server)
@@ -32,7 +32,7 @@ This method lists the Mastra-level registry. It doesn't include tools that exist
32
32
 
33
33
  ## Related
34
34
 
35
- - [Share tools across agents](https://mastra.ai/docs/agents/using-tools)
35
+ - [Share tools across agents](https://mastra.ai/docs/agents/tools)
36
36
  - [Mastra class](https://mastra.ai/reference/core/mastra-class)
37
37
  - [Mastra.getTool()](https://mastra.ai/reference/core/getTool)
38
38
  - [Mastra.getToolById()](https://mastra.ai/reference/core/getToolById)
@@ -24,5 +24,5 @@ When `destroy` is `true` and `workspace.destroy()` throws, the call rejects with
24
24
 
25
25
  ## Related
26
26
 
27
- - [Sandbox](https://mastra.ai/docs/workspace/sandbox)
27
+ - [Sandbox](https://mastra.ai/docs/sandbox/overview)
28
28
  - [Workspace class](https://mastra.ai/reference/workspace/workspace-class)
@@ -4,7 +4,7 @@
4
4
 
5
5
  The `MastraEditor` class sets up the editor system. Pass it to the `Mastra` constructor to turn on editor features like prompt blocks, agent code override, versioning, and tool providers.
6
6
 
7
- See [Editor](https://mastra.ai/docs/editor/overview) for an introduction to what the editor does.
7
+ See [Editor](https://mastra.ai/docs/studio/editor) for an introduction to what the editor does.
8
8
 
9
9
  ## Usage example
10
10
 
@@ -238,4 +238,4 @@ const source = mastra.getEditor()?.getSource()
238
238
 
239
239
  Returns: `'code' | 'db' | undefined`
240
240
 
241
- When `source` is omitted, Editor uses the configured database storage even though `getSource()` returns `undefined`. See [Editor storage options](https://mastra.ai/docs/editor/overview) for the storage workflows and [code-source versioning](https://mastra.ai/reference/editor/versioning) for activation and Git history behavior.
241
+ When `source` is omitted, Editor uses the configured database storage even though `getSource()` returns `undefined`. See [Editor storage options](https://mastra.ai/docs/studio/editor) for the storage workflows and [code-source versioning](https://mastra.ai/reference/editor/versioning) for activation and Git history behavior.
@@ -4,7 +4,7 @@
4
4
 
5
5
  Prompt blocks are reusable instruction templates managed by Editor. An agent's instructions can combine inline text with embedded prompt blocks and references to independently versioned prompt blocks.
6
6
 
7
- See [Prompt blocks](https://mastra.ai/docs/editor/overview) for the Studio workflow and common uses.
7
+ See [Prompt blocks](https://mastra.ai/docs/studio/editor) for the Studio workflow and common uses.
8
8
 
9
9
  ## Block types
10
10
 
@@ -134,4 +134,4 @@ The default Mastra server prefix is `/api`. A custom server prefix changes the p
134
134
 
135
135
  ## Version resolution
136
136
 
137
- Runtime references resolve the active published block. Editor previews resolve the latest draft. See [Editor versioning](https://mastra.ai/docs/editor/overview) for the shared draft, publish, and restore lifecycle.
137
+ Runtime references resolve the active published block. Editor previews resolve the latest draft. See [Editor versioning](https://mastra.ai/docs/studio/editor) for the shared draft, publish, and restore lifecycle.
@@ -4,7 +4,7 @@
4
4
 
5
5
  The `ToolProvider` interface defines how the editor discovers and resolves integration tools from external platforms. Mastra includes two built-in implementations: `ComposioToolProvider` and `ArcadeToolProvider`.
6
6
 
7
- See [Editor tools](https://mastra.ai/docs/editor/overview) for provider setup and the Studio workflow. See [tool configuration](https://mastra.ai/reference/editor/tools) for stored selections and resolution behavior.
7
+ See [Editor tools](https://mastra.ai/docs/studio/editor) for provider setup and the Studio workflow. See [tool configuration](https://mastra.ai/reference/editor/tools) for stored selections and resolution behavior.
8
8
 
9
9
  ## ToolProvider interface
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Editor stores tool selections as part of an agent version. A stored configuration can add registered tools and tools from integration providers, as well as tools from Model Context Protocol (MCP) clients.
6
6
 
7
- See [Editor tools](https://mastra.ai/docs/editor/overview) for the Studio workflow and common uses.
7
+ See [Editor tools](https://mastra.ai/docs/studio/editor) for the Studio workflow and common uses.
8
8
 
9
9
  ## Tool sources
10
10