@mastra/mcp-docs-server 1.3.2-alpha.8 → 1.3.3-alpha.1

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 (132) hide show
  1. package/.docs/docs/agents/code-mode.md +1 -1
  2. package/.docs/docs/agents/human-in-the-loop.md +2 -2
  3. package/.docs/docs/agents/processors.md +61 -7
  4. package/.docs/docs/agents/tools.md +3 -1
  5. package/.docs/docs/connections/acp.md +3 -3
  6. package/.docs/docs/connections/mcp.md +3 -1
  7. package/.docs/docs/deployment/workers.md +10 -3
  8. package/.docs/docs/develop.md +4 -4
  9. package/.docs/docs/evals/datasets.md +1 -1
  10. package/.docs/docs/evals/evals-with-memory.md +7 -6
  11. package/.docs/docs/evals/experiments.md +4 -4
  12. package/.docs/docs/evals/multi-turn.md +2 -2
  13. package/.docs/docs/evals/vitest-integration.md +1 -1
  14. package/.docs/docs/guides/authentication-identity.md +4 -2
  15. package/.docs/docs/guides/mcp-authentication-authorization.md +136 -0
  16. package/.docs/docs/harness/agent-controller.md +6 -4
  17. package/.docs/docs/harness/background-tasks.md +2 -2
  18. package/.docs/docs/harness/goals.md +27 -4
  19. package/.docs/docs/harness/schedules.md +28 -1
  20. package/.docs/docs/harness/signals.md +2 -2
  21. package/.docs/docs/index.md +1 -1
  22. package/.docs/docs/mastra-platform/deploy.md +1 -1
  23. package/.docs/docs/mastra-platform/environments.md +1 -1
  24. package/.docs/docs/mastra-platform/observability.md +1 -1
  25. package/.docs/docs/mastra-platform/workspaces.md +1 -1
  26. package/.docs/docs/memory/observational-memory.md +3 -3
  27. package/.docs/docs/memory/overview.md +1 -1
  28. package/.docs/docs/sandbox/skills.md +1 -1
  29. package/.docs/docs/server/pubsub.md +1 -1
  30. package/.docs/docs/server/server-adapters.md +55 -12
  31. package/.docs/docs/studio/auth.md +1 -1
  32. package/.docs/docs/workflows/control-flow.md +2 -1
  33. package/.docs/docs/workflows/dynamic-workflows.md +1 -1
  34. package/.docs/docs/workflows/overview.md +1 -1
  35. package/.docs/docs/workflows/scheduled-workflows.md +16 -8
  36. package/.docs/integrations/frameworks/nestjs.md +34 -1
  37. package/.docs/models/environment-variables.md +3 -1
  38. package/.docs/models/gateways/merge-gateway.md +3 -1
  39. package/.docs/models/gateways/netlify.md +3 -6
  40. package/.docs/models/gateways/openrouter.md +6 -3
  41. package/.docs/models/gateways/vercel.md +10 -4
  42. package/.docs/models/index.md +212 -2
  43. package/.docs/models/providers/302ai.md +5 -1
  44. package/.docs/models/providers/alibaba-cn.md +2 -1
  45. package/.docs/models/providers/alibaba-coding-plan-cn.md +1 -3
  46. package/.docs/models/providers/alibaba-coding-plan.md +1 -3
  47. package/.docs/models/providers/alibaba.md +5 -2
  48. package/.docs/models/providers/ambient.md +3 -1
  49. package/.docs/models/providers/anthropic.md +3 -2
  50. package/.docs/models/providers/bailing.md +1 -1
  51. package/.docs/models/providers/baseten.md +2 -1
  52. package/.docs/models/providers/bee.md +82 -0
  53. package/.docs/models/providers/cloudflare-workers-ai.md +3 -3
  54. package/.docs/models/providers/coralbricks.md +2 -3
  55. package/.docs/models/providers/cortecs.md +4 -3
  56. package/.docs/models/providers/crossmodel.md +2 -1
  57. package/.docs/models/providers/deepinfra.md +2 -5
  58. package/.docs/models/providers/digitalocean.md +2 -1
  59. package/.docs/models/providers/edenai.md +289 -290
  60. package/.docs/models/providers/kilo.md +30 -27
  61. package/.docs/models/providers/llmgateway-providers.md +25 -21
  62. package/.docs/models/providers/llmgateway.md +17 -8
  63. package/.docs/models/providers/minimax-cn-coding-plan.md +12 -11
  64. package/.docs/models/providers/minimax-coding-plan.md +12 -11
  65. package/.docs/models/providers/mistral.md +1 -2
  66. package/.docs/models/providers/nan.md +3 -2
  67. package/.docs/models/providers/nano-gpt.md +8 -6
  68. package/.docs/models/providers/nebius.md +2 -1
  69. package/.docs/models/providers/nvidia.md +1 -47
  70. package/.docs/models/providers/ofox.md +3 -1
  71. package/.docs/models/providers/openai.md +44 -41
  72. package/.docs/models/providers/opencode-go.md +1 -5
  73. package/.docs/models/providers/opencode.md +4 -2
  74. package/.docs/models/providers/pareto.md +77 -0
  75. package/.docs/models/providers/pioneer.md +4 -2
  76. package/.docs/models/providers/privatemode-ai.md +2 -2
  77. package/.docs/models/providers/requesty.md +7 -1
  78. package/.docs/models/providers/scaleway.md +2 -1
  79. package/.docs/models/providers/tempr.md +48 -5
  80. package/.docs/models/providers/togetherai.md +1 -3
  81. package/.docs/models/providers/umans-ai-coding-plan.md +1 -1
  82. package/.docs/models/providers/umans-ai.md +1 -1
  83. package/.docs/models/providers.md +3 -1
  84. package/.docs/reference/agent-controller/agent-controller-class.md +2 -0
  85. package/.docs/reference/agent-controller/session.md +5 -5
  86. package/.docs/reference/agents/channels.md +3 -1
  87. package/.docs/reference/agents/durable-agent.md +1 -1
  88. package/.docs/reference/channels/teams-provider.md +189 -0
  89. package/.docs/reference/classifier/classifier.md +84 -15
  90. package/.docs/reference/client-js/agent-controller.md +1 -1
  91. package/.docs/reference/client-js/observability.md +1 -1
  92. package/.docs/reference/code-sdk/acp-server.md +101 -0
  93. package/.docs/reference/coding-agent/create-coding-agent.md +2 -2
  94. package/.docs/reference/configuration.md +2 -1
  95. package/.docs/reference/datasets/finalizeExperiment.md +1 -1
  96. package/.docs/reference/evals/create-classifier-scorer.md +2 -1
  97. package/.docs/reference/evals/create-scorer.md +1 -1
  98. package/.docs/reference/file-based-agents/logger.md +1 -1
  99. package/.docs/reference/file-based-agents/schedules.md +3 -3
  100. package/.docs/reference/file-based-agents/workspace.md +1 -1
  101. package/.docs/reference/index.md +2 -0
  102. package/.docs/reference/memory/observational-memory.md +3 -1
  103. package/.docs/reference/migrations/mcp-v2.md +1 -1
  104. package/.docs/reference/observability/tracing/interfaces.md +1 -1
  105. package/.docs/reference/observability/tracing/spans.md +1 -1
  106. package/.docs/reference/observability/tracing/trace-query.md +37 -16
  107. package/.docs/reference/processors/classifier-processor.md +12 -4
  108. package/.docs/reference/processors/model-selection-processor.md +13 -6
  109. package/.docs/reference/processors/prefill-error-handler.md +2 -2
  110. package/.docs/reference/processors/processor-interface.md +2 -2
  111. package/.docs/reference/processors/provider-history-compat.md +37 -17
  112. package/.docs/reference/processors/stream-error-retry-processor.md +9 -4
  113. package/.docs/reference/processors/tool-search-processor.md +1 -1
  114. package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
  115. package/.docs/reference/pubsub/redis-streams.md +3 -3
  116. package/.docs/reference/rag/graph-rag.md +1 -1
  117. package/.docs/reference/server/elysia-adapter.md +2 -0
  118. package/.docs/reference/server/express-adapter.md +1 -1
  119. package/.docs/reference/server/fastify-adapter.md +2 -0
  120. package/.docs/reference/server/hono-adapter.md +2 -0
  121. package/.docs/reference/server/koa-adapter.md +2 -0
  122. package/.docs/reference/server/nestjs-adapter.md +48 -0
  123. package/.docs/reference/storage/retention.md +1 -1
  124. package/.docs/reference/tools/mcp-server.md +25 -10
  125. package/.docs/reference/workers/overview.md +3 -1
  126. package/.docs/reference/workflows/step.md +2 -1
  127. package/.docs/reference/workflows/workflow.md +1 -1
  128. package/.docs/reference/workspace/local-sandbox.md +2 -0
  129. package/.docs/reference/workspace/platform-sandbox.md +1 -1
  130. package/.docs/reference/workspace/sandbox.md +1 -1
  131. package/.docs/reference/workspace/workspace-class.md +1 -1
  132. package/package.json +6 -6
@@ -270,7 +270,7 @@ session.subscribe(event => {
270
270
  })
271
271
  ```
272
272
 
273
- The `always_allow_category` decision grants the tool category for the rest of the live Session. Session grants aren't durable process-level permissions.
273
+ The `always_allow_category` decision grants the tool category for the gate's thread. Grants aren't durable process-level permissions.
274
274
 
275
275
  Interactive tools such as [`ask_user`](https://mastra.ai/reference/tools/ask-user-tool) and [`submit_plan`](https://mastra.ai/reference/tools/submit-plan-tool) use resumable tool suspensions instead. Resume them with [`session.respondToToolSuspension()`](https://mastra.ai/reference/agent-controller/session):
276
276
 
@@ -401,7 +401,7 @@ Create the session under `thread.resourceId`. Because a session can bind only th
401
401
 
402
402
  Failures that aren't refusals (a storage outage, a bug in your resolver's dependencies) still post an error to the thread, so a broken bot doesn't look like a silent one. If you need to tell them apart in your own code, a refusal is a `ChannelSessionRejectedError` with the original error as its `cause`.
403
403
 
404
- `resolveSession` also runs when a user answers an approval card, with that action's request context, so a shared install revalidates the person approving rather than trusting the person who sent the original message.
404
+ `resolveSession` also runs when a user answers an approval card, with that action's request context. A shared install revalidates the person approving rather than trusting the person who sent the original message.
405
405
 
406
406
  ### Handle stale approvals
407
407
 
@@ -470,7 +470,7 @@ const subscription = await session.subscribe({
470
470
  subscription.unsubscribe()
471
471
  ```
472
472
 
473
- `subscribe()` takes an options object and is async, unlike the in-process listener. Its promise resolves once the stream is established and rejects when it can't connect, so a rejected call leaves nothing running in the background. `reconnect: true` re-establishes a stream that drops after it was established, with exponential backoff.
473
+ `subscribe()` takes an options object and is async, unlike the in-process listener. Its promise resolves once the stream is established and rejects when it can't connect. A rejected call leaves nothing running in the background. `reconnect: true` re-establishes a stream that drops after it was established, with exponential backoff.
474
474
 
475
475
  The server doesn't replay events missed while the stream was down, so read `session.state()` from `onReconnect` for the current mode, model, and thread. The client surface has no `session.displayState.get()`.
476
476
 
@@ -483,4 +483,6 @@ Send work with `session.sendMessage(content)`, or `session.sendMessage({ content
483
483
  - [Agents](https://mastra.ai/docs/agents/overview)
484
484
  - [Workspace](https://mastra.ai/docs/sandbox/overview)
485
485
  - [Observational memory](https://mastra.ai/docs/memory/observational-memory)
486
- - [Channels](https://mastra.ai/docs/channels)
486
+ - [Channels](https://mastra.ai/docs/channels)
487
+ - [Mastra Code](https://code.mastra.ai)
488
+ - [Mastra Factory](https://factory.mastra.ai)
@@ -231,7 +231,7 @@ When this `researchAgent` is delegated to from a supervisor that has no backgrou
231
231
 
232
232
  Mastra supports one nested background-tool level inside a delegated run: a root agent can delegate to a subagent, and that subagent can dispatch an eligible ordinary tool in the background. A second delegated-agent edge runs in the foreground and doesn't receive nested background guidance. This limit is execution-scoped and doesn't mutate the shared subagent configuration.
233
233
 
234
- Which layer to use depends on where consistency matters: subagent-level configuration travels with the agent, so its background behavior stays the same under every supervisor, whereas the supervisor-side opt-in above centralizes that tuning in one place. This boundary stops at a single nested delegation level and has no workflow integration.
234
+ Which layer to use depends on where consistency matters: subagent-level configuration travels with the agent, which keeps its background behavior the same under every supervisor, whereas the supervisor-side opt-in above centralizes that tuning in one place. This boundary stops at a single nested delegation level and has no workflow integration.
235
235
 
236
236
  ## Suspending and resuming
237
237
 
@@ -268,7 +268,7 @@ export const reviewTool = createTool({
268
268
  })
269
269
  ```
270
270
 
271
- The first invocation of `execute` sees `resumeData === undefined` and calls `suspend`. After the task is resumed, the runtime restarts the tool with `resumeData` populated. The `if` condition is false, so the tool returns its real result.
271
+ The first invocation of `execute` sees `resumeData === undefined` and calls `suspend`. After the task is resumed, the runtime restarts the tool with `resumeData` populated. The `if` condition is false. The tool returns its real result.
272
272
 
273
273
  To resume the task once an approval arrives:
274
274
 
@@ -67,11 +67,26 @@ A goal step runs inside the agentic execution loop, right after `isTaskComplete`
67
67
 
68
68
  The step is a no-op for background-task, mid-tool-loop, and working-memory-only iterations, the same gating as `isTaskComplete`.
69
69
 
70
- **The judge model is the activation switch.** If no judge resolves (neither the per-objective override nor the agent's `goal.judge`), the goal step performs no scoring or budget consumption and emits no `goal` chunk.
70
+ Each evaluation emits a typed `goal` stream chunk (`GoalEvaluationPayload`: `objective`, `iteration`, `maxRuns`, `passed`, `status`, `results`, `reason`, `duration`, `timedOut`, `maxRunsReached`, `suppressFeedback`) so a UI can show goal progress mid-run.
71
+
72
+ **The judge model is the activation switch.** If no judge resolves, from either the per-objective override or the agent's `goal.judge`, the goal step performs no scoring or budget consumption and emits no `goal` chunk. The gate covers every scorer: Mastra checks it before selecting a scorer, so a custom `goal.scorer` still needs a judge to resolve.
73
+
74
+ Effective settings resolve as per-objective record value, then agent `goal` config, then a built-in default (`maxRuns` `50` and the default judge prompt).
75
+
76
+ ### Judge and scorer
77
+
78
+ `goal.judge` and `goal.scorer` work at different levels. `goal.scorer` is the evaluation pipeline that produces the score the loop gates on. `goal.judge` is the model the default pipeline calls to reach that score.
79
+
80
+ Omit `scorer` and Mastra builds a default LLM-as-judge scorer, which returns `1` when the objective is achieved and `0` otherwise. Configure it with these settings:
71
81
 
72
- Effective settings resolve as per-objective record value → agent `goal` config → built-in default (`maxRuns` `50`, a default judge prompt).
82
+ - `goal.judge`: The model that decides whether the objective is met.
83
+ - `goal.prompt`: Extra instructions for the judge. Defaults to the built-in goal judge prompt.
84
+ - `goal.tools`: Read-only verification tools the judge can call before deciding, so it can confirm the work instead of grading the agent's text alone.
85
+ - `goal.maxSteps`: Step budget for the judge's own agentic loop. Defaults to `5`.
73
86
 
74
- By default the step uses a built-in LLM-as-judge scorer that returns `1` when the objective is achieved and `0` otherwise. Supply your own scorer with `goal.scorer` to customize judging.
87
+ Pass `goal.scorer` to replace the pipeline with your own [scorer](https://mastra.ai/reference/evals/create-scorer), either a scorer instance or a registered scorer id. The custom scorer brings its own judging, so `goal.prompt`, `goal.tools`, and `goal.maxSteps` no longer apply, and Mastra stops resolving the judge model for judging. A `goal.judge` resolver function still runs, and its return value is discarded.
88
+
89
+ Configure the default scorer with `judge`, `maxRuns`, and `prompt`:
75
90
 
76
91
  ```typescript
77
92
  const worker = new Agent({
@@ -91,7 +106,15 @@ const worker = new Agent({
91
106
  })
92
107
  ```
93
108
 
94
- Each evaluation emits a typed `goal` stream chunk (`GoalEvaluationPayload`: `objective`, `iteration`, `maxRuns`, `passed`, `status`, `results`, `reason`, `duration`, `timedOut`, `maxRunsReached`, `suppressFeedback`) so a UI can show goal progress mid-run.
109
+ To hand the decision to your own scorer, pass it as `scorer` and keep `judge` set, because the activation gate still applies:
110
+
111
+ ```typescript
112
+ goal: {
113
+ judge: 'openai/gpt-5-mini',
114
+ // Replaces the built-in judge pipeline. `prompt`, `tools`, and `maxSteps` no longer apply.
115
+ scorer: 'tests-pass',
116
+ }
117
+ ```
95
118
 
96
119
  ## Managing the objective
97
120
 
@@ -73,7 +73,7 @@ Without a `threadId`, each fire is an isolated `agent.generate()` run. Nothing i
73
73
 
74
74
  ### Threaded
75
75
 
76
- With a `threadId`, the schedule sends a [signal](https://mastra.ai/docs/harness/signals) into that thread, so the prompt joins the agent's conversation. Threaded schedules require a `resourceId` alongside the `threadId`.
76
+ With a `threadId`, the schedule sends a [signal](https://mastra.ai/docs/harness/signals) into that thread. The prompt joins the agent's conversation. Threaded schedules require a `resourceId` alongside the `threadId`.
77
77
 
78
78
  ```typescript
79
79
  await mastra.schedules.create({
@@ -196,6 +196,33 @@ Every hook context includes `agentId` (the agent the schedule fired for) alongsi
196
196
 
197
197
  Hook exceptions are caught and logged. They never re-route the worker or trigger another hook.
198
198
 
199
+ ## Recurring prompts in Mastra Code
200
+
201
+ Mastra Code offers the `/schedules` command, which attaches a recurring prompt to the current conversation thread. Unlike `mastra.schedules`, these schedules live only in the Mastra Code process that created them: nothing is written to storage, and each fire is sent to the thread with `agent.sendSignal()` directly.
202
+
203
+ Run `/schedules` to open a menu with **Create schedule** and one row per schedule on the current thread. Creating a schedule walks through these steps:
204
+
205
+ 1. Choose what each fire sends: a **Prompt**, a **Prompt file** that's re-read on every fire, or a **Script** that runs on every fire.
206
+ 2. Enter the prompt text or the file path. Paths resolve from the project root. For a script, you can add a prompt that's sent after the script output.
207
+ 3. Pick a cadence from `1m` to `1d`, or type one such as `20m` or `3h`. Minute steps must divide an hour and hour steps must divide a day.
208
+ 4. Confirm.
209
+
210
+ Scripts run from the project root with a 60-second timeout, and their stdout, stderr, and exit code become the prompt. The extra prompt is never passed to the script.
211
+
212
+ Selecting an existing schedule offers **Run now**, **Pause** or **Resume**, and **Delete**. **Run now** fires the schedule once without changing its cadence, works on paused schedules, and is skipped while a fire of the same schedule is still running.
213
+
214
+ Each fire arrives on the thread as a `user`-type signal and shows in the transcript as a `schedule` entry with the schedule's id, cadence, source, and script exit status. If the thread is busy, the running agent receives the prompt as its next input, the same way a message you type mid-run does. If the thread is idle, it wakes and runs. Schedules fire on any thread in the process, not only the one focused in the terminal. After `/new`, a new schedule binds to the new thread.
215
+
216
+ Things to know:
217
+
218
+ - **Session scoped.** Schedules exist only in the Mastra Code process that created them and stop when it exits. Other Mastra Code processes sharing the same database never see or fire them.
219
+ - **Clock boundaries.** `5m` fires at :00, :05, :10 and so on, not five minutes after creation, and `1d` fires at local midnight. Hour and day cadences follow wall-clock time across daylight saving changes, like cron. A fire missed while the machine slept, or one whose timer runs more than a minute late, is skipped, and the schedule resumes at the next boundary.
220
+ - **Overlapping fires are skipped.** If a script is still running when the next boundary arrives, that fire doesn't run.
221
+
222
+ ### Agent schedule tools
223
+
224
+ Turning on **Experimental schedule tools** in `/settings` (restart required) gives the agent tools that manage the same schedules: `schedule_create`, `schedule_list`, `schedule_update` (pause or delete), `schedule_resume`, and `schedule_run`. The tools only see and change schedules on the thread of the run that calls them. Because a schedule can run a script on every fire, `schedule_create`, `schedule_resume`, and `schedule_run` need the same approval as running a shell command unless YOLO mode is on. Schedules the agent creates are marked `created by agent` in the transcript.
225
+
199
226
  ## Related
200
227
 
201
228
  - [`mastra.schedules`](https://mastra.ai/reference/schedules/overview): API reference for creating and managing schedules.
@@ -218,7 +218,7 @@ export const agentsMdReminderProcessor: Processor = {
218
218
  }
219
219
  ```
220
220
 
221
- Reactive signals default to `tagName: 'system-reminder'`, so the model receives this context as
221
+ Reactive signals default to `tagName: 'system-reminder'`. The model receives this context as
222
222
 
223
223
  ```xml
224
224
  <system-reminder type="dynamic-agents-md" path="packages/ui/AGENTS.md">
@@ -411,7 +411,7 @@ export const mastra = new Mastra({
411
411
  })
412
412
  ```
413
413
 
414
- `RedisStreamsPubSub` implements both the event delivery contract and distributed leasing, so a single backend handles cross-instance signal delivery and lease ownership. Vercel's managed Redis integration and Upstash Redis both work well. For more on when a distributed pub/sub is needed, see the [PubSub guide](https://mastra.ai/docs/server/pubsub) and the [`RedisStreamsPubSub` reference](https://mastra.ai/reference/pubsub/redis-streams).
414
+ `RedisStreamsPubSub` implements both the event delivery contract and distributed leasing. A single backend handles cross-instance signal delivery and lease ownership. Vercel's managed Redis integration and Upstash Redis both work well. For more on when a distributed pub/sub is needed, see the [PubSub guide](https://mastra.ai/docs/server/pubsub) and the [`RedisStreamsPubSub` reference](https://mastra.ai/reference/pubsub/redis-streams).
415
415
 
416
416
  ## Compatibility and APIs
417
417
 
@@ -188,7 +188,7 @@ Build agents that handle inquiries, schedule appointments, send reminders, and a
188
188
 
189
189
  Used by [Vetnio](https://mastra.ai/customers/vetnio), [Lua](https://mastra.ai/customers/lua-scaling)
190
190
 
191
- Templates: [Docs Chatbot](https://mastra.ai/templates/docs-chatbot), [Slack Agent](https://mastra.ai/templates/slack-agent)
191
+ Template: [Docs Chatbot](https://mastra.ai/templates/docs-chatbot)
192
192
 
193
193
  </details>
194
194
 
@@ -165,7 +165,7 @@ Projects that depend on packages from a private registry install them during the
165
165
 
166
166
  In a monorepo, a `.npmrc` in your project directory takes precedence over one at the repository root.
167
167
 
168
- `NPM_TOKEN` is available during dependency installation. Mastra redacts its value from the Mastra source-build logs that it streams. The generated Dockerfile receives it as a build argument, so the runtime image stays free of the token. `NPM_TOKEN` is also injected into the running service as a regular environment variable, so treat it as a secret your application can read.
168
+ `NPM_TOKEN` is available during dependency installation. Mastra redacts its value from the Mastra source-build logs that it streams. The generated Dockerfile receives it as a build argument. The runtime image stays free of the token. `NPM_TOKEN` is also injected into the running service as a regular environment variable, so treat it as a secret your application can read.
169
169
 
170
170
  Projects without a private-registry `.npmrc` need no changes. When your `.npmrc` references `${NPM_TOKEN}`, set the variable or the dependency install fails.
171
171
 
@@ -59,7 +59,7 @@ Variables are applied when a deploy starts. To apply changed variables to a runn
59
59
  mastra env restart staging
60
60
  ```
61
61
 
62
- To see the set an environment's deploys actually run with, with managed variables listed by name, pull them into a local env file. Each environment is pulled on its own, so the file never mixes in another environment's values:
62
+ To see the set an environment's deploys actually run with, with managed variables listed by name, pull them into a local env file. Each environment is pulled on its own. The file never mixes in another environment's values:
63
63
 
64
64
  ```bash
65
65
  mastra env vars pull staging --output .env.staging
@@ -38,7 +38,7 @@ yarn create mastra
38
38
  bunx create-mastra
39
39
  ```
40
40
 
41
- The create command authenticates with Mastra Platform and creates an observability project. It then mints an access token and writes `MASTRA_PLATFORM_ACCESS_TOKEN` and `MASTRA_PROJECT_ID` to `.env`.
41
+ The create command authenticates with Mastra Platform and creates an observability project. It then creates an access token and writes `MASTRA_PLATFORM_ACCESS_TOKEN` and `MASTRA_PROJECT_ID` to `.env`.
42
42
 
43
43
  ### Existing project
44
44
 
@@ -103,7 +103,7 @@ export async function runInFreshSandbox(command: string) {
103
103
  }
104
104
  ```
105
105
 
106
- Or clone a configured sandbox as the template for a fleet, so the clones inherit credentials, environment, network isolation, and defaults without repeating them:
106
+ Or clone a configured sandbox as the template for a fleet. The clones inherit credentials, environment, network isolation, and defaults without repeating them:
107
107
 
108
108
  ```typescript
109
109
  const template = new PlatformSandbox({ networkIsolation: 'PRIVATE' })
@@ -128,7 +128,7 @@ export const agent = new Agent({
128
128
 
129
129
  Mastra inserts a temporal gap marker when the gap is at least 10 minutes. The marker is stored in memory and also emitted as a transient reminder event, so clients can render it as a lightweight timeline hint.
130
130
 
131
- The observer also sees these markers when it processes the thread, so the observations it writes can anchor memories to when they happened (for example, "User asked about deployment after a 2-day gap").
131
+ The observer also sees these markers when it processes the thread. The observations it writes can anchor memories to when they happened (for example, "User asked about deployment after a 2-day gap").
132
132
 
133
133
  See [the API reference](https://mastra.ai/reference/memory/observational-memory) for the full configuration shape.
134
134
 
@@ -223,7 +223,7 @@ A provider outage usually takes out both stages, so set the policy on both if yo
223
223
 
224
224
  This policy applies only to Observer and Reflector model and provider failures in synchronous, resource-scoped, and buffered observation. Persistence, indexing, transform, locking, invariant, and explicit abort failures remain fatal. It doesn't prevent the underlying provider or network error, change `blockAfter`, or change attachment handling.
225
225
 
226
- > **Warning:** `'continue'` has no backstop for a sustained outage. Unobserved messages stay pending and keep accruing in the main agent's context, so a long outage moves the failure from the memory layer to the model's context limit.
226
+ > **Warning:** `'continue'` has no backstop for a sustained outage. Unobserved messages stay pending and keep accruing in the main agent's context. A long outage moves the failure from the memory layer to the model's context limit.
227
227
 
228
228
  See [the API reference](https://mastra.ai/reference/memory/observational-memory) for the full configuration shape.
229
229
 
@@ -231,7 +231,7 @@ See [the API reference](https://mastra.ai/reference/memory/observational-memory)
231
231
 
232
232
  - **Prompt caching**: OM's context is stable and observations append over time rather than being retrieved at runtime each turn. This keeps the prompt prefix cacheable, which reduces costs.
233
233
  - **Compression**: Raw message history and tool results get compressed into a dense observation log. Smaller context means faster responses and longer coherent conversations.
234
- - **Zero context rot**: The agent sees relevant information instead of noisy tool calls and irrelevant tokens, so the agent stays on task over long sessions.
234
+ - **Zero context rot**: The agent sees relevant information instead of noisy tool calls and irrelevant tokens, which keeps the agent on task over long sessions.
235
235
 
236
236
  ## How it works
237
237
 
@@ -202,7 +202,7 @@ Each delegation creates a fresh `threadId` and a deterministic `resourceId` for
202
202
 
203
203
  > **Note:** Title generation (`generateTitle`) is a top-level thread concern and **isn't** applied to inherited subagent threads. Because each delegation creates an ephemeral thread that no one sees, running title generation for it would waste an LLM call per delegation. To generate titles for a subagent's own threads, give that subagent its own memory configuration.
204
204
 
205
- The supervisor forwards its conversation context to the subagent so it has enough background to complete the task. Only the delegation prompt and the subagent's response are saved; the full parent conversation isn't stored. You can control which messages reach the subagent with the [`messageFilter`](https://mastra.ai/docs/subagents) callback.
205
+ The supervisor forwards its conversation context to the subagent so it has enough background to complete the task. Only the delegation prompt and the subagent's response are saved. The full parent conversation isn't stored. You can control which messages reach the subagent with the [`messageFilter`](https://mastra.ai/docs/subagents) callback.
206
206
 
207
207
  > **Note:** Subagent resource IDs are always suffixed with the agent name (`{parentResourceId}-{agentName}`). Different subagents under the same supervisor never share a resource ID through delegation.
208
208
 
@@ -110,7 +110,7 @@ If multiple highest-priority candidates have the same source type, Mastra can't
110
110
 
111
111
  The agent can bypass name-based resolution by passing the exact path shown in the system message to `skill` or `skill_read`. Paths with or without the trailing `/SKILL.md` work. If several configured paths resolve to the same canonical directory, Mastra treats them as aliases and lists the skill once.
112
112
 
113
- Direct [agent skills](https://mastra.ai/docs/skills) are resolved before filesystem-backed skills, so a direct skill wins when both types use the same name.
113
+ Direct [agent skills](https://mastra.ai/docs/skills) are resolved before filesystem-backed skills. A direct skill wins when both types use the same name.
114
114
 
115
115
  ## Search skill content
116
116
 
@@ -70,7 +70,7 @@ export const mastra = new Mastra({
70
70
 
71
71
  ### Distributed deployments
72
72
 
73
- Use a distributed backend when you run more than one instance or host, so every instance receives the same events. This matters whenever a request handled by one instance must reach work running on another.
73
+ Use a distributed backend when you run more than one instance or host, and every instance receives the same events. This matters whenever a request handled by one instance must reach work running on another.
74
74
 
75
75
  For example, sending a signal to an agent run requires the signal event to cross the process boundary to the instance that owns the run. With the in-process default, that instance never receives the event.
76
76
 
@@ -631,6 +631,48 @@ app.get('/health', ...);
631
631
 
632
632
  > **Tip:** Use manual initialization when you need middleware that runs before Mastra's context is available, or when you need to insert middleware between the context and auth steps.
633
633
 
634
+ ## Start background workers
635
+
636
+ `init()` registers middleware and routes only. It doesn't start Mastra's background [workers](https://mastra.ai/docs/deployment/workers). The server generated by `mastra build` starts them for you, but with a server adapter you call `mastra.startWorkers()` yourself.
637
+
638
+ Without this call, the following features never run:
639
+
640
+ - [Scheduled workflows](https://mastra.ai/docs/workflows/scheduled-workflows): Schedule rows aren't created and cron triggers don't fire.
641
+ - [Agent schedules](https://mastra.ai/docs/harness/schedules) created with `mastra.schedules`
642
+ - Event listeners you've registered on the Mastra instance
643
+
644
+ Call `startWorkers()` once, after the server starts listening:
645
+
646
+ ```typescript
647
+ import express from 'express'
648
+ import { MastraServer } from '@mastra/express'
649
+ import { mastra } from './mastra'
650
+
651
+ const app = express()
652
+ app.use(express.json())
653
+
654
+ const server = new MastraServer({ app, mastra })
655
+ await server.init()
656
+
657
+ const httpServer = app.listen(4111, async () => {
658
+ try {
659
+ await mastra.startWorkers()
660
+ } catch (error) {
661
+ console.error('Failed to start background workers', error)
662
+ httpServer.close(() => process.exit(1))
663
+ }
664
+ })
665
+
666
+ process.on('SIGTERM', async () => {
667
+ await mastra.shutdown()
668
+ process.exit(0)
669
+ })
670
+ ```
671
+
672
+ `startWorkers()` is idempotent, so a second call has no effect. `mastra.shutdown()` stops the workers and drains in-flight workflow runs into a finished or suspended state before workers and pub/sub subscriptions are torn down. The drain is bounded by `drainTimeout` (default 5 seconds), and runs that don't settle within it are abandoned with a warning.
673
+
674
+ If you run workers in a [separate process](https://mastra.ai/docs/deployment/workers), skip `startWorkers()` in the API process and start them in the worker process instead.
675
+
634
676
  ## Adding custom routes
635
677
 
636
678
  You can add your own routes to the app alongside Mastra's routes.
@@ -781,7 +823,7 @@ When using adapters, configure these features directly with your framework. For
781
823
 
782
824
  Server adapters register MCP (Model Context Protocol) routes during `registerRoutes()` when MCP servers are configured in your Mastra instance. MCP allows external tools and services to connect to your Mastra server and interact with your agents.
783
825
 
784
- Each server is exposed at `/api/mcp/:serverId/mcp` over Streamable HTTP. Every request is self-contained, so the routes work unchanged in serverless environments like Cloudflare Workers or Vercel Edge.
826
+ Each server is exposed at `/api/mcp/:serverId/mcp` over Streamable HTTP. Because every request is self-contained, the routes work unchanged in serverless environments like Cloudflare Workers or Vercel Edge.
785
827
 
786
828
  Pass `mcpOptions` to control how the authenticated principal reaches tools. When using the Mastra deployer (the standard `mastra dev` / `mastra build` path), set it in your server config:
787
829
 
@@ -815,14 +857,15 @@ See [MCP](https://mastra.ai/docs/connections/mcp) for configuration details and
815
857
 
816
858
  ## Related
817
859
 
818
- - [Elysia Adapter](https://mastra.ai/reference/server/elysia-adapter) - Elysia-specific setup
819
- - [Hono Adapter](https://mastra.ai/reference/server/hono-adapter) - Hono-specific setup
820
- - [Express Adapter](https://mastra.ai/reference/server/express-adapter) - Express-specific setup
821
- - [NestJS Adapter](https://mastra.ai/reference/server/nestjs-adapter) - NestJS-specific setup
822
- - [Next.js Adapter](https://mastra.ai/reference/server/next-adapter) - Next.js-specific setup
823
- - [TanStack Start Adapter](https://mastra.ai/reference/server/tanstack-start-adapter) - TanStack Start-specific setup
824
- - [Custom Adapters](https://mastra.ai/docs/server/custom-adapters) - Building adapters for other frameworks
825
- - [Server Configuration](https://mastra.ai/docs/server/overview) - Using `mastra build` instead
826
- - [Authentication](https://mastra.ai/docs/auth/overview) - Configuring auth for your server
827
- - [MastraServer Reference](https://mastra.ai/reference/server/mastra-server) - Full API reference
828
- - [createRoute() Reference](https://mastra.ai/reference/server/create-route) - Creating type-safe custom routes
860
+ - [Elysia Adapter](https://mastra.ai/reference/server/elysia-adapter): Elysia-specific setup
861
+ - [Hono Adapter](https://mastra.ai/reference/server/hono-adapter): Hono-specific setup
862
+ - [Express Adapter](https://mastra.ai/reference/server/express-adapter): Express-specific setup
863
+ - [NestJS Adapter](https://mastra.ai/reference/server/nestjs-adapter): NestJS-specific setup
864
+ - [Next.js Adapter](https://mastra.ai/reference/server/next-adapter): Next.js-specific setup
865
+ - [TanStack Start Adapter](https://mastra.ai/reference/server/tanstack-start-adapter): TanStack Start-specific setup
866
+ - [Custom Adapters](https://mastra.ai/docs/server/custom-adapters): Building adapters for other frameworks
867
+ - [Workers](https://mastra.ai/docs/deployment/workers): Running schedulers and other background workers
868
+ - [Server Configuration](https://mastra.ai/docs/server/overview): Using `mastra build` instead
869
+ - [Authentication](https://mastra.ai/docs/auth/overview): Configuring auth for your server
870
+ - [MastraServer Reference](https://mastra.ai/reference/server/mastra-server): Full API reference
871
+ - [createRoute() Reference](https://mastra.ai/reference/server/create-route): Creating type-safe custom routes
@@ -66,7 +66,7 @@ Studio handles the token as follows:
66
66
 
67
67
  - It reads `auth_header` once on load and sends the value as the `Authorization` header on every API request in that session.
68
68
  - It removes `auth_header` from the address bar while preserving other query parameters and the hash.
69
- - It keeps the token in memory only and never writes it to local storage, so the token stays transient and doesn't persist across page reloads.
69
+ - It keeps the token in memory only and never writes it to local storage, so it doesn't persist across page reloads.
70
70
 
71
71
  The token rides in a URL parameter, so the host application is responsible for how that URL is generated and transmitted. URL parameters can be exposed through browser history and referrer headers, plus server access logs.
72
72
 
@@ -255,12 +255,13 @@ A configured classifier can produce typed answers before `.branch()`. Route on t
255
255
 
256
256
  ```typescript
257
257
  import { Classifier } from '@mastra/core/classifier'
258
+ import { typeSafeAi } from '@ai-sdk/typesafe-ai'
258
259
  import { createWorkflow } from '@mastra/core/workflows'
259
260
  import { z } from 'zod'
260
261
 
261
262
  const router = new Classifier({
262
263
  id: 'ticket-router',
263
- model,
264
+ model: typeSafeAi.evaluationModel('jev-latest'),
264
265
  questions: {
265
266
  route: {
266
267
  type: 'choice',
@@ -100,7 +100,7 @@ await mastra.addDynamicWorkflow(definition)
100
100
 
101
101
  ### Register dependencies first
102
102
 
103
- Register referenced components on the same `Mastra` instance before adding the dynamic workflow. Agent and nested workflow entries use their intrinsic IDs. A tool entry uses its key from the `Mastra` `tools` object, so the quickstart registers the tool under `create-greeting` before referencing that key with `toolId`.
103
+ Register referenced components on the same `Mastra` instance before adding the dynamic workflow. Agent and nested workflow entries use their intrinsic IDs. A tool entry uses its key from the `Mastra` `tools` object. The quickstart registers the tool under `create-greeting` before referencing that key with `toolId`.
104
104
 
105
105
  Use a `mapping` entry when one step's output doesn't match the next step's input. Mapping entries can read data from the workflow input and previous step results, along with workflow state and request context. The [definition reference](https://mastra.ai/reference/workflows/dynamic-workflow-definition) lists the supported mapping descriptors.
106
106
 
@@ -294,7 +294,7 @@ const testWorkflow = mastra.getWorkflow('testWorkflow')
294
294
  > 1. It provides access to the Mastra instance configuration (logger, telemetry, storage, registered agents, and vector stores)
295
295
  > 2. It provides full TypeScript type inference for workflow input and output schemas
296
296
  >
297
- > Use `getWorkflow()` with the workflow's **registration key** (the key used when adding it to Mastra). While `getWorkflowById()` is available for retrieving workflows by their `id` property, it doesn't provide the same level of type inference.
297
+ > Use `getWorkflow()` with the workflow's **registration key** (the key used when adding it to Mastra). `getWorkflowById()` retrieves workflows by their `id` property, but it doesn't provide the same level of type inference.
298
298
 
299
299
  ## Running workflows
300
300
 
@@ -40,11 +40,15 @@ export const dailyReport = createWorkflow({
40
40
 
41
41
  A separate "register schedule" call won't happen. The scheduler reads `schedule` straight off the workflow when `Mastra` boots.
42
42
 
43
- ## What `schedule` changes
43
+ ## Execution engine
44
44
 
45
- A workflow that declares `schedule` is auto-promoted to the **evented execution engine**. The public API (`workflow.start()`, `workflow.startAsync()`, `streamLegacy()`, `resume()`) is unchanged, `EventedWorkflow extends Workflow` and overrides each method with matching signatures. From your code, scheduled fires and manual runs are indistinguishable.
45
+ Declaring `schedule` doesn't change how the workflow runs. Scheduled fires run in-process on the host that runs the scheduler, the same way `workflow.start()` or an HTTP-triggered run does. A workflow that declares `schedule` needs no extra storage or worker setup to run directly.
46
46
 
47
- The promotion means evented runs require a storage adapter with concurrent-update support, such as `@mastra/libsql`; otherwise, `createRun()` throws a clear error that points to the `schedule` field. Switch adapters or remove the schedule.
47
+ Split-worker deployments are the exception. When the [`MASTRA_WORKERS`](https://mastra.ai/reference/workers/overview) environment variable is set to any value, including `false`, `createWorkflow` builds scheduled workflows on the **evented execution engine** so that every process in the deployment runs them the same way. Scheduled fires then run on the [orchestration worker](https://mastra.ai/docs/deployment/workers), and Mastra logs a warning to the console when the workflow is created. The public API (`workflow.start()`, `workflow.startAsync()`, `resume()`) doesn't change.
48
+
49
+ Evented runs require a storage adapter that applies concurrent updates atomically, such as `@mastra/libsql` or `@mastra/pg`. With any other adapter, `createRun()` throws an error that lists the supported adapters.
50
+
51
+ Only the environment variable triggers the switch, because `createWorkflow` runs before `Mastra` reads its `workers` option. If you split workers with the `workers` option instead, import `createWorkflow` from `@mastra/core/workflows/evented` for your scheduled workflows.
48
52
 
49
53
  ## Single schedule
50
54
 
@@ -92,7 +96,7 @@ Each entry creates an independent schedule row and fires on its own cron, plus s
92
96
 
93
97
  Studio surfaces schedules as a top-level area, not as a tab inside a workflow:
94
98
 
95
- - **All schedules**: open `/workflows/schedules` for a cross-workflow list. Each row shows the workflow id, cron, next fire, and the most recent run's status, so the list answers "is anything broken?" at a glance.
99
+ - **All schedules**: open `/workflows/schedules` for a cross-workflow list. Each row shows the workflow id, cron, next fire, and the most recent run's status. The list answers "is anything broken?" at a glance.
96
100
  - **Filtered by workflow**: append `?workflowId=<id>` to scope the list to a single workflow, for example `/workflows/schedules?workflowId=daily-report`.
97
101
  - **Schedule detail**: Select any row to open `/workflows/schedules/:scheduleId`. The page shows schedule metadata and **Pause** / **Resume** controls, followed by the full trigger history.
98
102
 
@@ -133,7 +137,7 @@ await client.resumeSchedule('wf_daily-report')
133
137
 
134
138
  In Studio, open the schedule detail page and select **Pause** or **Resume** in the header.
135
139
 
136
- A few rules worth knowing:
140
+ A few rules to know:
137
141
 
138
142
  - Pause is durable. The status is written to the schedules table and survives process restarts and redeploys. The declarative-config upsert never overwrites a user-set status, even when you change `cron`, `timezone`, or other fields.
139
143
  - Resume recomputes `nextFireAt` from now. A schedule paused for a week doesn't fire seven backlogged runs the moment you resume it. It fires on the next regular cron tick.
@@ -159,13 +163,17 @@ The built-in scheduler uses a `setInterval` tick loop to poll the schedules tabl
159
163
 
160
164
  ### Long-lived host (recommended)
161
165
 
162
- Deploy targets such as Fly Machines, Railway, Render, AWS ECS, GKE, or your own server keep the Mastra process alive between cron ticks. Schedules work without extra setup. For production deployments, you can run the scheduler as a [dedicated worker process](https://mastra.ai/docs/deployment/workers) to isolate it from the API layer.
166
+ Deploy targets such as Fly Machines, Railway, Render, AWS ECS, GKE, or your own server keep the Mastra process alive between cron ticks. The server generated by `mastra build` starts the scheduler automatically, so schedules work without extra setup.
167
+
168
+ If you run Mastra with a [server adapter](https://mastra.ai/docs/server/server-adapters), call `mastra.startWorkers()` after your server starts listening. Adapters don't start the scheduler, and schedules never fire without this call. See [Start background workers](https://mastra.ai/docs/server/server-adapters).
169
+
170
+ For production deployments, you can run the scheduler as a [dedicated worker process](https://mastra.ai/docs/deployment/workers) to isolate it from the API layer.
163
171
 
164
172
  ### Serverless platforms
165
173
 
166
- Functions-as-a-service platforms such as Vercel, Netlify, AWS Lambda, and Cloudflare Workers shut the process down after each request, so the tick loop doesn't get a second tick and schedules declared in code don't fire with the built-in scheduler today.
174
+ Functions-as-a-service platforms such as Vercel, Netlify, AWS Lambda, and Cloudflare Workers shut the process down after each request, so the tick loop doesn't get a second tick and schedules declared in code don't fire with the built-in scheduler today. Direct runs still work: calling `run.start()` from an HTTP route runs a workflow that declares `schedule` in-process, like any other workflow.
167
175
 
168
- On these platforms, use [`@mastra/inngest`](#inngest-workflows) instead. Inngest is serverless-native and holds the cron state for you.
176
+ For cron fires on these platforms, use [`@mastra/inngest`](#inngest-workflows) instead. Inngest is serverless-native and holds the cron state for you.
169
177
 
170
178
  ## Inngest workflows
171
179
 
@@ -86,6 +86,39 @@ This creates a `src/mastra` folder with an example weather agent and the followi
86
86
 
87
87
  You'll pass the `src/mastra/index.ts` file to the NestJS adapter in the next step.
88
88
 
89
+ ## Update the generated files for your module system
90
+
91
+ The files that `mastra init` generates need one change to compile in a NestJS project. Check the `type` field in your `package.json`. NestJS CLI v12 creates ECMAScript module (ESM) projects with `"type": "module"`. Earlier versions of the CLI create CommonJS projects.
92
+
93
+ **ESM**:
94
+
95
+ ESM projects use `"moduleResolution": "nodenext"`, which requires file extensions on relative imports. Add `.js` to every relative import in the generated files, for example:
96
+
97
+ ```typescript
98
+ import { weatherWorkflow } from './workflows/weather-workflow.js'
99
+ import { weatherAgent } from './agents/weather-agent.js'
100
+ ```
101
+
102
+ ```typescript
103
+ import { weatherTool } from '../tools/weather-tool.js'
104
+ ```
105
+
106
+ **CommonJS**:
107
+
108
+ CommonJS doesn't support top-level `await`. Open `src/mastra/index.ts` and remove the `DuckDBStore` import and the `domains` option of `MastraCompositeStore`:
109
+
110
+ ```typescript
111
+ import { DuckDBStore } from '@mastra/duckdb'
112
+
113
+ // ...
114
+
115
+ domains: {
116
+ observability: await new DuckDBStore().getStore('observability'),
117
+ },
118
+ ```
119
+
120
+ Observability data is then stored in the default LibSQL storage.
121
+
89
122
  ## Add server adapter
90
123
 
91
124
  Install the NestJS server adapter package:
@@ -119,7 +152,7 @@ Open `src/app.module.ts` and register `MastraModule`:
119
152
  ```typescript
120
153
  import { Module } from '@nestjs/common'
121
154
  import { MastraModule } from '@mastra/nestjs'
122
- import { mastra } from './mastra'
155
+ import { mastra } from './mastra/index.js'
123
156
 
124
157
  @Module({
125
158
  imports: [
@@ -35,6 +35,7 @@ List of required environment variables for each model provider and gateway suppo
35
35
  | [Auriko](https://mastra.ai/models/providers/auriko) | `auriko/*` | `AURIKO_API_KEY` |
36
36
  | [Bailing](https://mastra.ai/models/providers/bailing) | `bailing/*` | `BAILING_API_TOKEN` |
37
37
  | [Baseten](https://mastra.ai/models/providers/baseten) | `baseten/*` | `BASETEN_API_KEY` |
38
+ | [Bee by HEOSSI](https://mastra.ai/models/providers/bee) | `bee/*` | `BEE_API_KEY` |
38
39
  | [Berget.AI](https://mastra.ai/models/providers/berget) | `berget/*` | `BERGET_API_KEY` |
39
40
  | [Blue Claw](https://mastra.ai/models/providers/blueclaw) | `blueclaw/*` | `BLUECLAW_API_KEY` |
40
41
  | [Bothub](https://mastra.ai/models/providers/bothub) | `bothub/*` | `BOTHUB_API_KEY` |
@@ -143,6 +144,7 @@ List of required environment variables for each model provider and gateway suppo
143
144
  | [Opper](https://mastra.ai/models/providers/opper) | `opper/*` | `OPPER_API_KEY` |
144
145
  | [OrcaRouter](https://mastra.ai/models/providers/orcarouter) | `orcarouter/*` | `ORCAROUTER_API_KEY` |
145
146
  | [OVHcloud AI Endpoints](https://mastra.ai/models/providers/ovhcloud) | `ovhcloud/*` | `OVHCLOUD_API_KEY` |
147
+ | [Pareto Inference](https://mastra.ai/models/providers/pareto) | `pareto/*` | `PARETO_API_KEY` |
146
148
  | [Pendra](https://mastra.ai/models/providers/pendra) | `pendra/*` | `PENDRA_API_KEY` |
147
149
  | [Perplexity](https://mastra.ai/models/providers/perplexity) | `perplexity/*` | `PERPLEXITY_API_KEY` |
148
150
  | [Perplexity Agent](https://mastra.ai/models/providers/perplexity-agent) | `perplexity-agent/*` | `PERPLEXITY_API_KEY` |
@@ -174,7 +176,7 @@ List of required environment variables for each model provider and gateway suppo
174
176
  | [Subconscious](https://mastra.ai/models/providers/subconscious) | `subconscious/*` | `SUBCONSCIOUS_API_KEY` |
175
177
  | [submodel](https://mastra.ai/models/providers/submodel) | `submodel/*` | `SUBMODEL_INSTAGEN_ACCESS_KEY` |
176
178
  | [Synthetic](https://mastra.ai/models/providers/synthetic) | `synthetic/*` | `SYNTHETIC_API_KEY` |
177
- | [Tempr](https://mastra.ai/models/providers/tempr) | `tempr/*` | `TEMPR_API_KEY` |
179
+ | [Tempr Gateway](https://mastra.ai/models/providers/tempr) | `tempr/*` | `TEMPR_API_KEY` |
178
180
  | [Tencent Coding Plan (China)](https://mastra.ai/models/providers/tencent-coding-plan) | `tencent-coding-plan/*` | `TENCENT_CODING_PLAN_API_KEY` |
179
181
  | [Tencent Token Plan](https://mastra.ai/models/providers/tencent-token-plan) | `tencent-token-plan/*` | `TENCENT_TOKEN_PLAN_API_KEY` |
180
182
  | [Tencent TokenHub](https://mastra.ai/models/providers/tencent-tokenhub) | `tencent-tokenhub/*` | `TENCENT_TOKENHUB_API_KEY` |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Merge Gateway logo](https://models.dev/logos/merge-gateway.svg)Merge Gateway
6
6
 
7
- Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 191 models through Mastra's model router.
7
+ Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 193 models through Mastra's model router.
8
8
 
9
9
  Learn more in the [Merge Gateway documentation](https://docs.merge.dev/merge-gateway).
10
10
 
@@ -54,6 +54,7 @@ ANTHROPIC_API_KEY=ant-...
54
54
  | `anthropic/claude-sonnet-4-5-20250929` |
55
55
  | `anthropic/claude-sonnet-4-6` |
56
56
  | `anthropic/claude-sonnet-5` |
57
+ | `anthropic/claude-sonnet-5-5` |
57
58
  | `bytedance/dola-seed-2.0-code` |
58
59
  | `bytedance/dola-seed-2.0-code-preview` |
59
60
  | `bytedance/dola-seed-2.0-lite` |
@@ -164,6 +165,7 @@ ANTHROPIC_API_KEY=ant-...
164
165
  | `openai/gpt-6-astra` |
165
166
  | `openai/gpt-6-luna` |
166
167
  | `openai/gpt-6-sol` |
168
+ | `openai/gpt-6.1-sol` |
167
169
  | `openai/gpt-oss-120b` |
168
170
  | `openai/gpt-oss-20b` |
169
171
  | `openai/gpt-oss-safeguard-120b` |