@mastra/mcp-docs-server 1.2.17-alpha.13 → 1.2.17-alpha.16

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 (209) 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 +27 -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 +2 -0
  104. package/.docs/models/gateways/vercel.md +3 -1
  105. package/.docs/models/index.md +1 -1
  106. package/.docs/models/providers/arcee.md +79 -0
  107. package/.docs/models/providers/baseten.md +1 -1
  108. package/.docs/models/providers/cerebras.md +2 -3
  109. package/.docs/models/providers/cloudflare-workers-ai.md +1 -1
  110. package/.docs/models/providers/cortecs.md +2 -1
  111. package/.docs/models/providers/crof.md +1 -1
  112. package/.docs/models/providers/crossmodel.md +1 -1
  113. package/.docs/models/providers/deepinfra.md +2 -1
  114. package/.docs/models/providers/edenai.md +11 -5
  115. package/.docs/models/providers/huggingface.md +3 -1
  116. package/.docs/models/providers/hyper.md +5 -5
  117. package/.docs/models/providers/jalapeno.md +89 -0
  118. package/.docs/models/providers/kilo.md +8 -7
  119. package/.docs/models/providers/merge-gateway.md +3 -1
  120. package/.docs/models/providers/nano-gpt.md +3 -9
  121. package/.docs/models/providers/vivgrid.md +2 -1
  122. package/.docs/models/providers.md +2 -0
  123. package/.docs/reference/acp/acp-agent.md +2 -2
  124. package/.docs/reference/acp/create-acp-tool.md +1 -1
  125. package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
  126. package/.docs/reference/agents/agent.md +2 -2
  127. package/.docs/reference/agents/channels.md +2 -2
  128. package/.docs/reference/agents/createSkill.md +2 -2
  129. package/.docs/reference/agents/durable-agent.md +1 -1
  130. package/.docs/reference/agents/generate.md +1 -1
  131. package/.docs/reference/agents/getSkill.md +1 -1
  132. package/.docs/reference/agents/listSkills.md +1 -1
  133. package/.docs/reference/agents/listSuspendedRuns.md +6 -6
  134. package/.docs/reference/agents/listTools.md +2 -2
  135. package/.docs/reference/agents/network.md +1 -1
  136. package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
  137. package/.docs/reference/ai-sdk/network-route.md +1 -1
  138. package/.docs/reference/auth/fga.md +7 -5
  139. package/.docs/reference/auth/jwt.md +1 -1
  140. package/.docs/reference/browser/agent-browser.md +2 -2
  141. package/.docs/reference/browser/browser-viewer.md +2 -2
  142. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  143. package/.docs/reference/browser/mastra-browser.md +1 -1
  144. package/.docs/reference/browser/stagehand-browser.md +2 -2
  145. package/.docs/reference/build-with-ai.md +2 -2
  146. package/.docs/reference/channels/channel-provider.md +1 -1
  147. package/.docs/reference/channels/slack-provider.md +1 -1
  148. package/.docs/reference/cli/mastra.md +2 -0
  149. package/.docs/reference/client-js/agents.md +4 -4
  150. package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
  151. package/.docs/reference/configuration.md +6 -6
  152. package/.docs/reference/core/getEditor.md +1 -1
  153. package/.docs/reference/core/getMCPServer.md +1 -1
  154. package/.docs/reference/core/getMCPServerById.md +1 -1
  155. package/.docs/reference/core/getTool.md +1 -1
  156. package/.docs/reference/core/getToolById.md +1 -1
  157. package/.docs/reference/core/listMCPServers.md +1 -1
  158. package/.docs/reference/core/listTools.md +1 -1
  159. package/.docs/reference/core/removeWorkspace.md +1 -1
  160. package/.docs/reference/editor/mastra-editor.md +2 -2
  161. package/.docs/reference/editor/prompt-blocks.md +2 -2
  162. package/.docs/reference/editor/tool-provider.md +1 -1
  163. package/.docs/reference/editor/tools.md +1 -1
  164. package/.docs/reference/editor/versioning.md +3 -3
  165. package/.docs/reference/evals/prompt-alignment.md +18 -0
  166. package/.docs/reference/evals/rubric.md +1 -1
  167. package/.docs/reference/file-based-agents/memory.md +2 -2
  168. package/.docs/reference/file-based-agents/server.md +3 -3
  169. package/.docs/reference/file-based-agents/skills.md +1 -1
  170. package/.docs/reference/file-based-agents/storage.md +3 -3
  171. package/.docs/reference/file-based-agents/subagents.md +1 -1
  172. package/.docs/reference/file-based-agents/workspace.md +3 -3
  173. package/.docs/reference/index.md +1 -0
  174. package/.docs/reference/manual-install.md +3 -3
  175. package/.docs/reference/memory/memory-class.md +1 -0
  176. package/.docs/reference/memory/settled.md +57 -0
  177. package/.docs/reference/migrations/network-to-supervisor.md +2 -2
  178. package/.docs/reference/processors/skill-search-processor.md +1 -1
  179. package/.docs/reference/processors/tool-call-filter.md +7 -7
  180. package/.docs/reference/processors/tool-search-processor.md +1 -1
  181. package/.docs/reference/project-structure.md +1 -1
  182. package/.docs/reference/pubsub/lease-provider.md +3 -3
  183. package/.docs/reference/pubsub/redis-streams.md +1 -1
  184. package/.docs/reference/rag/graph-rag.md +71 -8
  185. package/.docs/reference/schedules/overview.md +1 -1
  186. package/.docs/reference/streaming/ChunkType.md +2 -2
  187. package/.docs/reference/streaming/agents/stream.md +7 -4
  188. package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
  189. package/.docs/reference/tools/ask-user-tool.md +1 -1
  190. package/.docs/reference/tools/create-code-mode.md +1 -1
  191. package/.docs/reference/tools/create-tool.md +4 -4
  192. package/.docs/reference/tools/mcp-server.md +47 -2
  193. package/.docs/reference/tools/submit-plan-tool.md +1 -1
  194. package/.docs/reference/tools/task-tools.md +2 -2
  195. package/.docs/reference/vectors/vectorize.md +12 -2
  196. package/.docs/reference/workers/overview.md +2 -2
  197. package/.docs/reference/workspace/local-filesystem.md +1 -1
  198. package/.docs/reference/workspace/local-sandbox.md +4 -3
  199. package/.docs/reference/workspace/process-manager.md +20 -4
  200. package/.docs/reference/workspace/sandbox.md +1 -1
  201. package/.docs/reference/workspace/workspace-class.md +5 -5
  202. package/CHANGELOG.md +15 -0
  203. package/package.json +4 -4
  204. /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
  205. /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
  206. /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
  207. /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
  208. /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
  209. /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
@@ -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
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Editor versions stored agents and prompt blocks. Database-backed resources use draft and publish operations. Code-backed agent overrides use deterministic files and Git history.
6
6
 
7
- See [Editor versioning](https://mastra.ai/docs/editor/overview) for release and experimentation patterns.
7
+ See [Editor versioning](https://mastra.ai/docs/studio/editor) for release and experimentation patterns.
8
8
 
9
9
  ## Database lifecycle
10
10
 
@@ -35,7 +35,7 @@ See [`MastraEditor`](https://mastra.ai/reference/editor/mastra-editor) for sourc
35
35
 
36
36
  ## Select an agent version
37
37
 
38
- Calling [`mastra.getAgentById()`](https://mastra.ai/reference/core/getAgentById) without a selector returns the registered code-defined agent. Pass `status` or `versionId` to apply a stored override. See [Select a version](https://mastra.ai/docs/editor/overview) for a TypeScript example.
38
+ Calling [`mastra.getAgentById()`](https://mastra.ai/reference/core/getAgentById) without a selector returns the registered code-defined agent. Pass `status` or `versionId` to apply a stored override. See [Select a version](https://mastra.ai/docs/studio/editor) for a TypeScript example.
39
39
 
40
40
  With the default server prefix, pass selectors as query parameters under `/api`:
41
41
 
@@ -54,7 +54,7 @@ See the [Client SDK agents reference](https://mastra.ai/reference/client-js/agen
54
54
 
55
55
  ## Sub-agent versioning
56
56
 
57
- Version overrides propagate through [supervisor-agent delegation](https://mastra.ai/docs/capabilities/subagents) in request context. Define selectors at three levels:
57
+ Version overrides propagate through [supervisor-agent delegation](https://mastra.ai/docs/subagents) in request context. Define selectors at three levels:
58
58
 
59
59
  1. `Mastra` instance `versions`: Defaults for every invocation
60
60
  2. Server request-body `versions`: Per-request values added to request context
@@ -70,6 +70,24 @@ const scorer = createPromptAlignmentScorerLLM({
70
70
  })
71
71
  ```
72
72
 
73
+ ### Multi-turn conversations
74
+
75
+ By default the scorer only sees the current turn. In a conversation, a reply like `"A"` is meaningless on its own, so the judge can't tell what the user asked for and scores the response as misaligned.
76
+
77
+ Set `includeConversationHistory` to give the judge the prior turns from the agent's memory. The judge uses them to interpret the current prompt, but still scores only the current response.
78
+
79
+ ```typescript
80
+ const scorer = createPromptAlignmentScorerLLM({
81
+ model: 'openai/gpt-5.6-sol',
82
+ options: {
83
+ evaluationMode: 'user',
84
+ includeConversationHistory: { maxMessages: 6 }, // or `true` for the last 10 messages
85
+ },
86
+ })
87
+ ```
88
+
89
+ This only affects agent runs, where the scorer receives the remembered messages. Runs scored from a plain prompt string are unchanged.
90
+
73
91
  ### Multi-Dimensional Analysis
74
92
 
75
93
  Prompt Alignment evaluates responses across four key dimensions with weighted scoring that adapts based on the evaluation mode:
@@ -111,5 +111,5 @@ The `reason` summarizes the result and lists each criterion with its verdict, so
111
111
  ## Related
112
112
 
113
113
  - [isTaskComplete on stream()](https://mastra.ai/reference/streaming/agents/stream)
114
- - [Supervisor agents](https://mastra.ai/docs/capabilities/subagents)
114
+ - [Supervisor agents](https://mastra.ai/docs/subagents)
115
115
  - [createScorer](https://mastra.ai/reference/evals/create-scorer)
@@ -18,7 +18,7 @@ import { Memory } from '@mastra/memory'
18
18
  export default new Memory()
19
19
  ```
20
20
 
21
- The exported instance becomes the agent's `memory`. If your app configures a storage provider on the main Mastra instance, memory data is stored there. See [storage](https://mastra.ai/docs/storage/overview) for more information.
21
+ The exported instance becomes the agent's `memory`. If your app configures a storage provider on the main Mastra instance, memory data is stored there. See [storage](https://mastra.ai/docs/storage) for more information.
22
22
 
23
23
  Use the same `resource` and `thread` values when calling the agent to continue a conversation:
24
24
 
@@ -51,7 +51,7 @@ export default new Memory({
51
51
 
52
52
  Visit the [`Memory` reference](https://mastra.ai/reference/memory/memory-class) for constructor options. Use these pages for related memory features:
53
53
 
54
- - [Storage](https://mastra.ai/docs/storage/overview): configure persistence for memory data.
54
+ - [Storage](https://mastra.ai/docs/storage): configure persistence for memory data.
55
55
  - [Semantic recall](https://mastra.ai/docs/memory/semantic-recall): retrieve relevant past messages by semantic meaning.
56
56
  - [Memory processors](https://mastra.ai/docs/memory/memory-processors): filter, trim, or transform messages before memory adds them to model context.
57
57
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  > **Beta:** Breaking changes may occur without a major version bump until the API is stable.
6
6
 
7
- Mastra configures its HTTP [server](https://mastra.ai/docs/server/mastra-server) from a `server.ts` file directly under `src/mastra/`. The server exposes agents, workflows, and other registered primitives as REST endpoints, and the file default-exports the same `ServerConfig` shape you'd pass to [`new Mastra()`](https://mastra.ai/reference/core/mastra-class).
7
+ Mastra configures its HTTP [server](https://mastra.ai/docs/server/overview) from a `server.ts` file directly under `src/mastra/`. The server exposes agents, workflows, and other registered primitives as REST endpoints, and the file default-exports the same `ServerConfig` shape you'd pass to [`new Mastra()`](https://mastra.ai/reference/core/mastra-class).
8
8
 
9
- Use this page for the file-based convention. For server features, middleware, custom routes, generated API docs, and deployment behavior, see [Server overview](https://mastra.ai/docs/server/mastra-server).
9
+ Use this page for the file-based convention. For server features, middleware, custom routes, generated API docs, and deployment behavior, see [Server overview](https://mastra.ai/docs/server/overview).
10
10
 
11
11
  ## Quickstart
12
12
 
@@ -32,7 +32,7 @@ export default {
32
32
  | Add webhooks or health checks | `apiRoutes` |
33
33
  | Enable generated API docs | `build.openAPIDocs` and `build.swaggerUI` |
34
34
 
35
- See [Mastra server](https://mastra.ai/docs/server/mastra-server), [middleware](https://mastra.ai/docs/server/middleware), and [custom API routes](https://mastra.ai/docs/server/custom-api-routes) for examples.
35
+ See [Mastra server](https://mastra.ai/docs/server/overview), [middleware](https://mastra.ai/docs/server/middleware), and [custom API routes](https://mastra.ai/docs/server/custom-api-routes) for examples.
36
36
 
37
37
  ## Precedence with code
38
38
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  A file-based agent discovers skills from its `skills/` directory and bundles them at build time. Skills are reusable procedures or reference material that the agent can load when relevant, instead of putting every detail into the always-on prompt.
8
8
 
9
- Use this page for the file-based convention. For code-defined skills, see [Agent skills](https://mastra.ai/docs/agents/skills). For the `SKILL.md` package format, see [Workspace skills](https://mastra.ai/docs/workspace/skills).
9
+ Use this page for the file-based convention. For code-defined skills, see [Agent skills](https://mastra.ai/docs/skills). For the `SKILL.md` package format, see [Workspace skills](https://mastra.ai/docs/sandbox/skills).
10
10
 
11
11
  ## Quickstart
12
12
 
@@ -4,9 +4,9 @@
4
4
 
5
5
  > **Beta:** Breaking changes may occur without a major version bump until the API is stable.
6
6
 
7
- Mastra sets the project's default [storage](https://mastra.ai/docs/storage/overview) from a `storage.ts` file directly under `src/mastra/`. The file default-exports a store, which replaces the built-in in-memory store used for memory, workflows, observability, and other storage domains.
7
+ Mastra sets the project's default [storage](https://mastra.ai/docs/storage) from a `storage.ts` file directly under `src/mastra/`. The file default-exports a store, which replaces the built-in in-memory store used for memory, workflows, observability, and other storage domains.
8
8
 
9
- Use this page for the file-based convention. For backend choice, storage domains, retention, and provider details, see [storage overview](https://mastra.ai/docs/storage/overview).
9
+ Use this page for the file-based convention. For backend choice, storage domains, retention, and provider details, see [storage overview](https://mastra.ai/docs/storage).
10
10
 
11
11
  ## Quickstart
12
12
 
@@ -25,7 +25,7 @@ Mastra registers the store before file-based agents and workflows, so storage-de
25
25
 
26
26
  ## Production backends
27
27
 
28
- `storage.ts` can export any Mastra storage adapter, such as LibSQL, PostgreSQL, or MongoDB. For setup patterns, provider support, and schema details, see [storage overview](https://mastra.ai/docs/storage/overview), [observability signal support](https://mastra.ai/docs/observability/overview), and the [storage reference](https://mastra.ai/reference/storage/overview).
28
+ `storage.ts` can export any Mastra storage adapter, such as LibSQL, PostgreSQL, or MongoDB. For setup patterns, provider support, and schema details, see [storage overview](https://mastra.ai/docs/storage), [observability signal support](https://mastra.ai/docs/observability/overview), and the [storage reference](https://mastra.ai/reference/storage/overview).
29
29
 
30
30
  ## Precedence with code
31
31
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  A file-based agent can declare **subagents**, specialist child agents it delegates to. The parent model sees each subagent as a delegation tool named after the subagent directory and calls that tool to hand off a task. The subagent's result returns to the parent conversation.
8
8
 
9
- Use this page for the file-based convention. For broader delegation patterns, hooks, memory isolation, tool approval propagation, and scoring, see [Supervisor agents](https://mastra.ai/docs/capabilities/subagents).
9
+ Use this page for the file-based convention. For broader delegation patterns, hooks, memory isolation, tool approval propagation, and scoring, see [Supervisor agents](https://mastra.ai/docs/subagents).
10
10
 
11
11
  ## Quickstart
12
12