@mastra/mcp-docs-server 1.3.13-alpha.5 → 1.3.13-alpha.6

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 (58) hide show
  1. package/.docs/docs/agents/resumable-streams.md +3 -3
  2. package/.docs/docs/agents/tools.md +1 -0
  3. package/.docs/docs/deployment/mastra-server.md +10 -2
  4. package/.docs/docs/deployment/workers.md +3 -1
  5. package/.docs/docs/harness/durable-agents.md +64 -2
  6. package/.docs/docs/memory/semantic-recall.md +24 -1
  7. package/.docs/docs/sandbox/skills.md +32 -3
  8. package/.docs/docs/server/custom-adapters.md +40 -11
  9. package/.docs/docs/server/middleware.md +1 -1
  10. package/.docs/docs/workflows/overview.md +12 -0
  11. package/.docs/docs/workflows/suspend-and-resume.md +1 -1
  12. package/.docs/models/gateways/merge-gateway.md +2 -1
  13. package/.docs/models/gateways/netlify.md +4 -2
  14. package/.docs/models/gateways/openrouter.md +5 -3
  15. package/.docs/models/gateways/vercel.md +4 -1
  16. package/.docs/models/index.md +1 -1
  17. package/.docs/models/providers/anthropic.md +2 -1
  18. package/.docs/models/providers/chutes.md +5 -4
  19. package/.docs/models/providers/cloudflare-workers-ai.md +0 -13
  20. package/.docs/models/providers/deepinfra.md +2 -1
  21. package/.docs/models/providers/edenai.md +6 -7
  22. package/.docs/models/providers/google.md +2 -2
  23. package/.docs/models/providers/kilo.md +20 -18
  24. package/.docs/models/providers/llmgateway-providers.md +439 -433
  25. package/.docs/models/providers/llmgateway.md +4 -1
  26. package/.docs/models/providers/meta.md +5 -4
  27. package/.docs/models/providers/nano-gpt.md +27 -35
  28. package/.docs/models/providers/opencode-go.md +2 -2
  29. package/.docs/models/providers/opencode.md +8 -5
  30. package/.docs/models/providers/prime.md +4 -4
  31. package/.docs/models/providers/wandb.md +1 -1
  32. package/.docs/reference/agent-controller/session.md +1 -1
  33. package/.docs/reference/agents/channels.md +79 -0
  34. package/.docs/reference/agents/durable-agent.md +5 -3
  35. package/.docs/reference/build-with-ai.md +12 -2
  36. package/.docs/reference/code-sdk/mount-agent-controller.md +5 -1
  37. package/.docs/reference/connect/credential.md +2 -1
  38. package/.docs/reference/core/mastra-class.md +1 -1
  39. package/.docs/reference/file-based-agents/tools.md +3 -3
  40. package/.docs/reference/index.md +1 -0
  41. package/.docs/reference/memory/memory-class.md +1 -1
  42. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +33 -0
  43. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +26 -0
  44. package/.docs/reference/processors/processor-interface.md +1 -1
  45. package/.docs/reference/processors/semantic-recall-processor.md +5 -3
  46. package/.docs/reference/processors/skill-search-processor.md +3 -0
  47. package/.docs/reference/processors/skills-processor.md +84 -0
  48. package/.docs/reference/pubsub/lease-provider.md +4 -2
  49. package/.docs/reference/pubsub/redis-streams.md +1 -1
  50. package/.docs/reference/rag/graph-rag.md +1 -1
  51. package/.docs/reference/streaming/agents/MastraModelOutput.md +7 -8
  52. package/.docs/reference/workers/overview.md +2 -2
  53. package/.docs/reference/workflows/run-methods/resume.md +1 -1
  54. package/.docs/reference/workflows/run.md +1 -1
  55. package/.docs/reference/workspace/factory-sandbox.md +7 -7
  56. package/.docs/reference/workspace/platform-sandbox.md +21 -6
  57. package/.docs/reference/workspace/workspace-class.md +5 -5
  58. package/package.json +4 -4
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![DevPass (LLM Gateway) logo](https://models.dev/logos/llmgateway.svg)DevPass (LLM Gateway)
6
6
 
7
- Access 199 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
7
+ Access 202 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [DevPass (LLM Gateway) documentation](https://llmgateway.io/docs).
10
10
 
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
41
41
  | `llmgateway/auto` | 128K | | | | | | — | — |
42
42
  | `llmgateway/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
43
43
  | `llmgateway/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
44
+ | `llmgateway/claude-fable-5-2` | 1.0M | | | | | | $8 | $40 |
44
45
  | `llmgateway/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
45
46
  | `llmgateway/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
46
47
  | `llmgateway/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
@@ -59,10 +60,12 @@ for await (const chunk of stream) {
59
60
  | `llmgateway/custom` | 128K | | | | | | — | — |
60
61
  | `llmgateway/deepseek-v3.2` | 164K | | | | | | $0.26 | $0.38 |
61
62
  | `llmgateway/deepseek-v4-flash` | 1.1M | | | | | | $0.08 | $0.15 |
63
+ | `llmgateway/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
62
64
  | `llmgateway/deepseek-v4-pro` | 1.1M | | | | | | $0.66 | $2 |
63
65
  | `llmgateway/deepseek-v4.1-flash` | 1.1M | | | | | | $0.14 | $0.54 |
64
66
  | `llmgateway/deepseek-v4.1-flash-1017` | 1.1M | | | | | | $0.14 | $0.54 |
65
67
  | `llmgateway/deepseek-v4.1-flash-cyber` | 1.0M | | | | | | $0.30 | $1 |
68
+ | `llmgateway/deepseek-v4.1-flash-uncensored` | 1.0M | | | | | | $0.18 | $0.65 |
66
69
  | `llmgateway/fugu-max` | 1.0M | | | | | | $2 | $6 |
67
70
  | `llmgateway/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
68
71
  | `llmgateway/fugu-ultra-v2.0` | 1.0M | | | | | | $5 | $30 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Meta logo](https://models.dev/logos/meta.svg)Meta
6
6
 
7
- Access 6 Meta models through Mastra's model router. Authentication is handled automatically using the `META_MODEL_API_KEY` environment variable.
7
+ Access 7 Meta models through Mastra's model router. Authentication is handled automatically using the `META_MODEL_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Meta documentation](https://dev.meta.ai/docs).
10
10
 
@@ -19,7 +19,7 @@ const agent = new Agent({
19
19
  id: "my-agent",
20
20
  name: "My Agent",
21
21
  instructions: "You are a helpful assistant",
22
- model: "meta/muse-spark-1.1"
22
+ model: "meta/muse-ember-1.0"
23
23
  });
24
24
 
25
25
  // Generate a response
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
38
38
 
39
39
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
40
  | --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `meta/muse-ember-1.0` | 1.0M | | | | | | $0.10 | $0.50 |
41
42
  | `meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
42
43
  | `meta/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
43
44
  | `meta/muse-spark-1.2-contributor` | 1.0M | | | | | | $0.10 | $0.20 |
@@ -59,7 +60,7 @@ const agent = new Agent({
59
60
  name: "custom-agent",
60
61
  model: {
61
62
  url: "https://api.meta.ai/v1",
62
- id: "meta/muse-spark-1.1",
63
+ id: "meta/muse-ember-1.0",
63
64
  apiKey: process.env.META_MODEL_API_KEY,
64
65
  headers: {
65
66
  "X-Custom-Header": "value"
@@ -80,7 +81,7 @@ const agent = new Agent({
80
81
  const useAdvanced = requestContext.task === "complex";
81
82
  return useAdvanced
82
83
  ? "meta/muse-wonder-1.0"
83
- : "meta/muse-spark-1.1";
84
+ : "meta/muse-ember-1.0";
84
85
  }
85
86
  });
86
87
  ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![NanoGPT logo](https://models.dev/logos/nano-gpt.svg)NanoGPT
6
6
 
7
- Access 641 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
7
+ Access 633 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
10
10
 
@@ -43,7 +43,6 @@ for await (const chunk of stream) {
43
43
  | `nano-gpt/abliteration-ai/abliterated-model-large` | 1.0M | | | | | | $3 | $5 |
44
44
  | `nano-gpt/abliteration-ai/abliterated-model-large-flash` | 1.0M | | | | | | $1 | $2 |
45
45
  | `nano-gpt/abliteration-ai/abliterated-model-large-v2` | 1.0M | | | | | | $3 | $5 |
46
- | `nano-gpt/agnes-3.0-flash` | 524K | | | | | | $0.05 | $0.15 |
47
46
  | `nano-gpt/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
48
47
  | `nano-gpt/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
49
48
  | `nano-gpt/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
@@ -60,6 +59,7 @@ for await (const chunk of stream) {
60
59
  | `nano-gpt/anthracite-org/magnum-v4-72b` | 16K | | | | | | $2 | $3 |
61
60
  | `nano-gpt/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
62
61
  | `nano-gpt/anthropic/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
62
+ | `nano-gpt/anthropic/claude-fable-5.2` | 1.0M | | | | | | $10 | $50 |
63
63
  | `nano-gpt/anthropic/claude-fable-latest` | 1.0M | | | | | | $10 | $50 |
64
64
  | `nano-gpt/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
65
65
  | `nano-gpt/anthropic/claude-haiku-4.5:thinking` | 200K | | | | | | $1 | $5 |
@@ -94,7 +94,6 @@ for await (const chunk of stream) {
94
94
  | `nano-gpt/anthropic/claude-sonnet-5.5:thinking` | 1.0M | | | | | | $2 | $10 |
95
95
  | `nano-gpt/anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
96
96
  | `nano-gpt/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.25 | $0.90 |
97
- | `nano-gpt/asi1-mini` | 128K | | | | | | $1 | $1 |
98
97
  | `nano-gpt/auto-model` | 1.0M | | | | | | — | — |
99
98
  | `nano-gpt/auto-model-basic` | 1.0M | | | | | | $10 | $20 |
100
99
  | `nano-gpt/auto-model-premium` | 1.0M | | | | | | $10 | $20 |
@@ -102,8 +101,6 @@ for await (const chunk of stream) {
102
101
  | `nano-gpt/bytedance-seed/seed-2-1-turbo` | 262K | | | | | | $0.50 | $3 |
103
102
  | `nano-gpt/bytedance-seed/seed-2.0-code` | 262K | | | | | | $0.50 | $3 |
104
103
  | `nano-gpt/bytedance-seed/seed-2.0-lite` | 262K | | | | | | $0.25 | $2 |
105
- | `nano-gpt/bytedance/doubao-seed-2.1-pro` | 256K | | | | | | $1 | $5 |
106
- | `nano-gpt/bytedance/doubao-seed-2.1-turbo` | 256K | | | | | | $0.50 | $3 |
107
104
  | `nano-gpt/bytedance/doubao-seed-character` | 128K | | | | | | $0.15 | $0.37 |
108
105
  | `nano-gpt/celeris-1` | 8K | | | | | | $2 | $6 |
109
106
  | `nano-gpt/claw-high` | 1.0M | | | | | | $0.60 | $1 |
@@ -128,8 +125,8 @@ for await (const chunk of stream) {
128
125
  | `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
129
126
  | `nano-gpt/deepseek/deepseek-v4-flash-0423` | 1.0M | | | | | | $0.14 | $0.28 |
130
127
  | `nano-gpt/deepseek/deepseek-v4-flash-0423:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
131
- | `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.04 | $0.13 |
132
- | `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.04 | $0.13 |
128
+ | `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.05 | $0.16 |
129
+ | `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.05 | $0.16 |
133
130
  | `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.10 | $0.60 |
134
131
  | `nano-gpt/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
135
132
  | `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
@@ -141,11 +138,7 @@ for await (const chunk of stream) {
141
138
  | `nano-gpt/deepseek/deepseek-v4.1-flash-0910-uncensored` | 524K | | | | | | $0.33 | $1 |
142
139
  | `nano-gpt/deepseek/deepseek-v4.1-flash-0910-uncensored:thinking` | 524K | | | | | | $0.33 | $1 |
143
140
  | `nano-gpt/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.10 | $0.60 |
144
- | `nano-gpt/deepseek/deepseek-v4.1-flash-1017-uncensored` | 1.0M | | | | | | $0.33 | $1 |
145
- | `nano-gpt/deepseek/deepseek-v4.1-flash-1017-uncensored:thinking` | 1.0M | | | | | | $0.33 | $1 |
146
141
  | `nano-gpt/deepseek/deepseek-v4.1-flash-1017:thinking` | 1.0M | | | | | | $0.10 | $0.60 |
147
- | `nano-gpt/deepseek/deepseek-v4.1-flash-uncensored` | 1.0M | | | | | | $0.33 | $1 |
148
- | `nano-gpt/deepseek/deepseek-v4.1-flash-uncensored:thinking` | 1.0M | | | | | | $0.33 | $1 |
149
142
  | `nano-gpt/deepseek/deepseek-v4.1-flash:thinking` | 1.0M | | | | | | $0.02 | $0.40 |
150
143
  | `nano-gpt/Doctor-Shotgun/MS3.2-24B-Magnum-Diamond` | 33K | | | | | | $0.49 | $0.49 |
151
144
  | `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
@@ -155,9 +148,6 @@ for await (const chunk of stream) {
155
148
  | `nano-gpt/elorian/glimpse` | 262K | | | | | | $0.63 | $3 |
156
149
  | `nano-gpt/Envoid/Llama-3.05-Nemotron-Tenyxchat-Storybreaker-70B` | 16K | | | | | | $0.49 | $0.49 |
157
150
  | `nano-gpt/Envoid/Llama-3.05-NT-Storybreaker-Ministral-70B` | 16K | | | | | | $0.49 | $0.49 |
158
- | `nano-gpt/ernie-5.0-thinking-preview` | 128K | | | | | | $1 | $4 |
159
- | `nano-gpt/ernie-5.1` | 119K | | | | | | $0.75 | $3 |
160
- | `nano-gpt/ernie-5.1:thinking` | 119K | | | | | | $0.75 | $3 |
161
151
  | `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0` | 33K | | | | | | $2 | $2 |
162
152
  | `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.1` | 33K | | | | | | $2 | $2 |
163
153
  | `nano-gpt/EVA-UNIT-01/EVA-Qwen2.5-32B-v0.2` | 16K | | | | | | $0.80 | $0.80 |
@@ -224,7 +214,6 @@ for await (const chunk of stream) {
224
214
  | `nano-gpt/Gemma-4-31B-Queen` | 262K | | | | | | $0.31 | $0.31 |
225
215
  | `nano-gpt/Gemma-4-31B-SDFT-Heretic-RP` | 262K | | | | | | $0.31 | $0.31 |
226
216
  | `nano-gpt/Gemma-4-31B-StyleTune` | 262K | | | | | | $0.31 | $0.31 |
227
- | `nano-gpt/glm-4-long` | 1.0M | | | | | | $0.20 | $0.20 |
228
217
  | `nano-gpt/GLM-4.6-Derestricted-v5` | 131K | | | | | | $0.40 | $2 |
229
218
  | `nano-gpt/google/diffusiongemma` | 262K | | | | | | $0.05 | $0.15 |
230
219
  | `nano-gpt/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
@@ -293,7 +282,7 @@ for await (const chunk of stream) {
293
282
  | `nano-gpt/meta-llama/llama-3.1-8b-instruct` | 131K | | | | | | $0.02 | $0.04 |
294
283
  | `nano-gpt/meta-llama/llama-3.2-3b-instruct` | 131K | | | | | | $0.03 | $0.05 |
295
284
  | `nano-gpt/meta-llama/llama-3.3-70b-instruct` | 131K | | | | | | $0.05 | $0.23 |
296
- | `nano-gpt/meta-llama/llama-4-maverick` | 1.0M | | | | | | $0.19 | $0.65 |
285
+ | `nano-gpt/meta-llama/llama-4-maverick` | 1.0M | | | | | | $0.15 | $0.60 |
297
286
  | `nano-gpt/meta-llama/llama-4-scout` | 328K | | | | | | $0.09 | $0.46 |
298
287
  | `nano-gpt/meta/muse-glimmer-30b` | 131K | | | | | | $0.35 | $2 |
299
288
  | `nano-gpt/meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
@@ -421,7 +410,7 @@ for await (const chunk of stream) {
421
410
  | `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $10 | $50 |
422
411
  | `nano-gpt/openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
423
412
  | `nano-gpt/openai/gpt-oss-120b` | 128K | | | | | | $0.03 | $0.15 |
424
- | `nano-gpt/openai/gpt-oss-20b` | 131K | | | | | | $0.00 | $0.02 |
413
+ | `nano-gpt/openai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.03 |
425
414
  | `nano-gpt/openai/gpt-oss-safeguard-20b` | 131K | | | | | | $0.07 | $0.30 |
426
415
  | `nano-gpt/openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
427
416
  | `nano-gpt/openai/gpt-terra-latest` | 1.1M | | | | | | $1 | $5 |
@@ -430,7 +419,11 @@ for await (const chunk of stream) {
430
419
  | `nano-gpt/openai/o3` | 200K | | | | | | $2 | $8 |
431
420
  | `nano-gpt/openai/o3-mini-low` | 200K | | | | | | $1 | $4 |
432
421
  | `nano-gpt/openai/o3-pro-2025-06-10` | 200K | | | | | | $22 | $88 |
422
+ | `nano-gpt/orca/orcacyber-flash-1.0` | 1.0M | | | | | | $0.80 | $2 |
423
+ | `nano-gpt/orca/orcacyber-flash-1.0:thinking` | 1.0M | | | | | | $0.80 | $2 |
424
+ | `nano-gpt/orca/orcacyber-glm-5.3-flash` | 1.0M | | | | | | $0.80 | $2 |
433
425
  | `nano-gpt/orca/orcacyber-k3.1-pro` | 1.0M | | | | | | $4 | $20 |
426
+ | `nano-gpt/orca/orcacyber-mimo-flash` | 1.0M | | | | | | $0.80 | $2 |
434
427
  | `nano-gpt/orca/orcacyber-minimax-m3.1-flash` | 262K | | | | | | $0.80 | $2 |
435
428
  | `nano-gpt/orca/orcacyber-qwen3.8-flash-next` | 262K | | | | | | $0.80 | $2 |
436
429
  | `nano-gpt/orca/orcacyber-zero-1.5` | 999K | | | | | | $3 | $8 |
@@ -472,8 +465,8 @@ for await (const chunk of stream) {
472
465
  | `nano-gpt/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.50 | $6 |
473
466
  | `nano-gpt/qwen/qwen3.5-122b-a10b` | 131K | | | | | | $0.26 | $2 |
474
467
  | `nano-gpt/qwen/qwen3.5-122b-a10b:thinking` | 131K | | | | | | $0.26 | $2 |
475
- | `nano-gpt/qwen/qwen3.5-27b` | 260K | | | | | | $0.25 | $2 |
476
- | `nano-gpt/qwen/qwen3.5-27b:thinking` | 260K | | | | | | $0.25 | $2 |
468
+ | `nano-gpt/qwen/qwen3.5-27b` | 260K | | | | | | $0.20 | $2 |
469
+ | `nano-gpt/qwen/qwen3.5-27b:thinking` | 260K | | | | | | $0.20 | $2 |
477
470
  | `nano-gpt/qwen/qwen3.5-35b-a3b` | 260K | | | | | | $0.14 | $1 |
478
471
  | `nano-gpt/qwen/qwen3.5-35b-a3b:thinking` | 260K | | | | | | $0.14 | $1 |
479
472
  | `nano-gpt/qwen/qwen3.5-397b-a17b` | 262K | | | | | | $0.39 | $2 |
@@ -557,30 +550,29 @@ for await (const chunk of stream) {
557
550
  | `nano-gpt/stepfun/step-5-preview` | 1.0M | | | | | | $1 | $3 |
558
551
  | `nano-gpt/synth-2.5-flash` | 30K | | | | | | $0.03 | $0.10 |
559
552
  | `nano-gpt/synth-2.5-pro` | 30K | | | | | | $0.10 | $0.20 |
560
- | `nano-gpt/TEE/deepseek-v3.2` | 164K | | | | | | $0.50 | $1 |
561
- | `nano-gpt/TEE/deepseek-v4.1-flash` | 1.0M | | | | | | $0.65 | $1 |
553
+ | `nano-gpt/TEE/deepseek-v3.2` | 164K | | | | | | $1 | $1 |
554
+ | `nano-gpt/TEE/deepseek-v4.1-flash` | 1.0M | | | | | | $0.60 | $1 |
562
555
  | `nano-gpt/TEE/gemma-4-26b-a4b-uncensored` | 66K | | | | | | $0.15 | $0.70 |
563
556
  | `nano-gpt/TEE/gemma-4-31b-it` | 262K | | | | | | $0.15 | $0.46 |
564
- | `nano-gpt/TEE/gemma4-31b` | 262K | | | | | | $0.40 | $1 |
565
- | `nano-gpt/TEE/gemma4-31b:thinking` | 262K | | | | | | $0.40 | $1 |
566
- | `nano-gpt/TEE/glm-5.1` | 203K | | | | | | $0.70 | $3 |
567
- | `nano-gpt/TEE/glm-5.1-thinking` | 203K | | | | | | $0.70 | $3 |
557
+ | `nano-gpt/TEE/gemma4-31b` | 262K | | | | | | $0.12 | $0.37 |
558
+ | `nano-gpt/TEE/gemma4-31b:thinking` | 262K | | | | | | $0.12 | $0.37 |
559
+ | `nano-gpt/TEE/glm-5.1` | 203K | | | | | | $0.90 | $3 |
560
+ | `nano-gpt/TEE/glm-5.1-thinking` | 203K | | | | | | $0.90 | $3 |
568
561
  | `nano-gpt/TEE/glm-5.2` | 1.0M | | | | | | $1 | $4 |
569
562
  | `nano-gpt/TEE/glm-5.2:thinking` | 1.0M | | | | | | $1 | $4 |
570
563
  | `nano-gpt/TEE/glm-5.3` | 1.0M | | | | | | $1 | $4 |
571
564
  | `nano-gpt/TEE/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
572
- | `nano-gpt/TEE/gpt-oss-120b` | 131K | | | | | | $2 | $2 |
573
- | `nano-gpt/TEE/kimi-k2.6` | 262K | | | | | | $2 | $5 |
574
- | `nano-gpt/TEE/kimi-k3` | 1.0M | | | | | | $3 | $15 |
565
+ | `nano-gpt/TEE/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
566
+ | `nano-gpt/TEE/kimi-k2.6` | 262K | | | | | | $0.39 | $2 |
567
+ | `nano-gpt/TEE/kimi-k3` | 1.0M | | | | | | $2 | $10 |
568
+ | `nano-gpt/TEE/kimi-k3.1-pro` | 262K | | | | | | $4 | $20 |
575
569
  | `nano-gpt/TEE/llama3-3-70b` | 128K | | | | | | $2 | $3 |
576
- | `nano-gpt/TEE/qwen2.5-vl-72b-instruct` | 66K | | | | | | $0.70 | $0.70 |
577
- | `nano-gpt/TEE/qwen3.5-397b-a17b` | 262K | | | | | | $0.55 | $4 |
578
570
  | `nano-gpt/TEE/qwen3.6-27b` | 262K | | | | | | $0.32 | $3 |
579
571
  | `nano-gpt/TEE/qwen3.6-35b-a3b` | 262K | | | | | | $0.20 | $1 |
580
- | `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.40 | $3 |
572
+ | `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.20 | $3 |
581
573
  | `nano-gpt/tencent/hy3` | 262K | | | | | | $0.07 | $0.26 |
582
574
  | `nano-gpt/tencent/hy4` | 1.0M | | | | | | $0.46 | $1 |
583
- | `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.75 | $2 |
575
+ | `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
584
576
  | `nano-gpt/TheDrummer/Anubis-70B-v1` | 66K | | | | | | $0.31 | $0.31 |
585
577
  | `nano-gpt/TheDrummer/Anubis-70B-v1.1` | 32K | | | | | | $0.31 | $0.31 |
586
578
  | `nano-gpt/TheDrummer/artemis-31b-v1.2` | 66K | | | | | | $0.10 | $0.45 |
@@ -641,7 +633,7 @@ for await (const chunk of stream) {
641
633
  | `nano-gpt/z-ai/glm-4.6-original` | 256K | | | | | | $0.50 | $2 |
642
634
  | `nano-gpt/z-ai/GLM-4.6-turbo` | 205K | | | | | | $1 | $3 |
643
635
  | `nano-gpt/z-ai/GLM-4.6-turbo:thinking` | 205K | | | | | | $1 | $3 |
644
- | `nano-gpt/z-ai/glm-4.6:thinking` | 200K | | | | | | $0.50 | $2 |
636
+ | `nano-gpt/z-ai/glm-4.6:thinking` | 200K | | | | | | $0.55 | $2 |
645
637
  | `nano-gpt/z-ai/glm-4.6v` | 128K | | | | | | $0.30 | $0.90 |
646
638
  | `nano-gpt/z-ai/glm-4.6v-original` | 128K | | | | | | $0.60 | $0.90 |
647
639
  | `nano-gpt/z-ai/glm-4.7` | 200K | | | | | | $0.40 | $2 |
@@ -657,8 +649,8 @@ for await (const chunk of stream) {
657
649
  | `nano-gpt/z-ai/glm-5:thinking` | 200K | | | | | | $0.60 | $2 |
658
650
  | `nano-gpt/z-ai/glm-5.1` | 200K | | | | | | $0.70 | $3 |
659
651
  | `nano-gpt/z-ai/glm-5.1:thinking` | 200K | | | | | | $0.70 | $3 |
660
- | `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.19 | $0.59 |
661
- | `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.19 | $0.59 |
652
+ | `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
653
+ | `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
662
654
  | `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $0.60 | $1 |
663
655
  | `nano-gpt/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.30 |
664
656
  | `nano-gpt/z-ai/glm-5.3-flash-apex` | 1.0M | | | | | | $0.15 | $0.50 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenCode Go logo](https://models.dev/logos/opencode-go.svg)OpenCode Go
6
6
 
7
- Access 39 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
7
+ Access 40 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [OpenCode Go documentation](https://opencode.ai/v2/docs/console/go/).
10
10
 
@@ -40,7 +40,6 @@ for await (const chunk of stream) {
40
40
  | ---------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
41
  | `opencode-go/beam-free` | 1.0M | | | | | | — | — |
42
42
  | `opencode-go/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
43
- | `opencode-go/crouton-alpha-free` | 1.0M | | | | | | — | — |
44
43
  | `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
45
44
  | `opencode-go/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
46
45
  | `opencode-go/gemini-4-argon` | 1.0M | | | | | | $2 | $10 |
@@ -58,6 +57,7 @@ for await (const chunk of stream) {
58
57
  | `opencode-go/kimi-k3` | 1.0M | | | | | | $3 | $15 |
59
58
  | `opencode-go/kimi-k3.1-pro` | 1.0M | | | | | | $2 | $10 |
60
59
  | `opencode-go/longcat-2.0` | 1.0M | | | | | | $0.30 | $1 |
60
+ | `opencode-go/longcat-2.5-free` | 1.0M | | | | | | — | — |
61
61
  | `opencode-go/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
62
62
  | `opencode-go/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
63
63
  | `opencode-go/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenCode logo](https://models.dev/logos/opencode.svg)OpenCode
6
6
 
7
- Access 134 OpenCode models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
7
+ Access 137 OpenCode models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [OpenCode documentation](https://opencode.ai/v2/docs/console/models/).
10
10
 
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
42
42
  | `opencode/big-pickle` | 200K | | | | | | — | — |
43
43
  | `opencode/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
44
44
  | `opencode/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
45
+ | `opencode/claude-fable-5-2` | 1.0M | | | | | | $8 | $40 |
45
46
  | `opencode/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
46
47
  | `opencode/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
47
48
  | `opencode/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
@@ -54,7 +55,6 @@ for await (const chunk of stream) {
54
55
  | `opencode/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
55
56
  | `opencode/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
56
57
  | `opencode/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
57
- | `opencode/crouton-alpha-free` | 1.0M | | | | | | — | — |
58
58
  | `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
59
59
  | `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
60
60
  | `opencode/deepseek-v4.1-flash-free` | 200K | | | | | | — | — |
@@ -63,9 +63,9 @@ for await (const chunk of stream) {
63
63
  | `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
64
64
  | `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
65
65
  | `opencode/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
66
- | `opencode/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
67
- | `opencode/gemini-3.7-flash` | 1.0M | | | | | | $2 | $8 |
68
- | `opencode/gemini-3.8-flash` | 1.0M | | | | | | $2 | $8 |
66
+ | `opencode/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
67
+ | `opencode/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
68
+ | `opencode/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
69
69
  | `opencode/gemini-4-argon` | 1.0M | | | | | | $2 | $10 |
70
70
  | `opencode/glm-5` | 205K | | | | | | $1 | $3 |
71
71
  | `opencode/glm-5.1` | 205K | | | | | | $1 | $4 |
@@ -107,11 +107,14 @@ for await (const chunk of stream) {
107
107
  | `opencode/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
108
108
  | `opencode/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
109
109
  | `opencode/kimi-k3` | 1.0M | | | | | | $3 | $15 |
110
+ | `opencode/longcat-2.5-free` | 1.0M | | | | | | — | — |
110
111
  | `opencode/mimo-v2.6-flash-free` | 200K | | | | | | — | — |
111
112
  | `opencode/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
112
113
  | `opencode/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
113
114
  | `opencode/minimax-m3` | 512K | | | | | | $0.30 | $1 |
115
+ | `opencode/minimax-m3.1-flash-free` | 1.0M | | | | | | — | — |
114
116
  | `opencode/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
117
+ | `opencode/muse-ember-1.0` | 1.0M | | | | | | $0.10 | $0.50 |
115
118
  | `opencode/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
116
119
  | `opencode/muse-spark-1.3` | 1.0M | | | | | | $1 | $4 |
117
120
  | `opencode/muse-wonder-1.0` | 1.0M | | | | | | $4 | $20 |
@@ -51,8 +51,8 @@ for await (const chunk of stream) {
51
51
  | `prime/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.44 | $1 |
52
52
  | `prime/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
53
53
  | `prime/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
54
- | `prime/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.08 | $1 |
55
- | `prime/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.09 | $1 |
54
+ | `prime/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.04 | $1 |
55
+ | `prime/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.04 | $0.70 |
56
56
  | `prime/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
57
57
  | `prime/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
58
58
  | `prime/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
@@ -106,8 +106,8 @@ for await (const chunk of stream) {
106
106
  | `prime/x-ai/grok-4.6` | 500K | | | | | | $2 | $6 |
107
107
  | `prime/x-ai/grok-4.7` | 500K | | | | | | $2 | $5 |
108
108
  | `prime/z-ai/glm-5.2` | 1.0M | | | | | | $2 | $5 |
109
- | `prime/z-ai/glm-5.3` | 1.0M | | | | | | $0.50 | $3 |
110
- | `prime/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.50 |
109
+ | `prime/z-ai/glm-5.3` | 1.0M | | | | | | $0.40 | $2 |
110
+ | `prime/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.05 | $0.25 |
111
111
 
112
112
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
113
113
 
@@ -53,7 +53,7 @@ for await (const chunk of stream) {
53
53
  | `wandb/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.60 | $3 |
54
54
  | `wandb/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B` | 262K | | | | | | $0.50 | $2 |
55
55
  | `wandb/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B` | 262K | | | | | | $0.07 | $0.20 |
56
- | `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.50 |
56
+ | `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.47 |
57
57
  | `wandb/openai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.17 |
58
58
  | `wandb/openai/gpt-oss-20b` | 131K | | | | | | $0.03 | $0.13 |
59
59
  | `wandb/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.10 | $0.89 |
@@ -38,7 +38,7 @@ The session is organized into sub-objects, each owning one domain of per-convers
38
38
 
39
39
  **mode** (`SessionMode`): Active mode selection. See mode methods below.
40
40
 
41
- **model** (`SessionModel`): Active model selection, including per-mode persistence. See model methods below.
41
+ **model** (`SessionModel`): Active model selection. One model is persisted per thread and stays active when the session changes modes. See model methods below.
42
42
 
43
43
  **om** (`SessionOM`): Observer and reflector model settings for observational memory.
44
44
 
@@ -106,6 +106,8 @@ const agent = new Agent({
106
106
 
107
107
  **streaming** (`boolean | { updateIntervalMs?: number }`): Stream agent text deltas to the channel as the agent generates them instead of buffering and posting once per step. Requires the underlying adapter to support post-and-edit streaming. Slack defaults to true; other adapters default to false. (Default: `false (true for Slack)`)
108
108
 
109
+ **generativeUI** (`boolean`): \*\*Experimental. Slack only; ignored on other adapters.\*\* Gives runs on the Slack adapter a render_card tool. The agent calls it with a json-render spec and the card is posted to the thread as Block Kit. Invalid specs return a list of issues to the agent instead of posting. Requires the optional @json-render/chat package. See Generative UI cards. (Default: `false`)
110
+
109
111
  **textFormat** (`'markdown' | 'plain'`): Dialect for the agent's final reply text. 'markdown' (the default) posts replies as markdown: adapters with native markdown rendering (Slack) render it directly, others convert it to their platform format. 'plain' posts replies as literal plain text, restoring the pre-markdown behavior for agents prompted to emit a platform dialect such as Slack mrkdwn. Applies to final reply text only; tool cards, error messages, and tripwire notices are unaffected. Native streaming is always markdown regardless of this setting. (Default: `'markdown'`)
110
112
 
111
113
  **textDisplay** (`'show' | 'hidden'`): Whether the agent's reply text is posted to the channel. 'hidden' never posts reply text, so the agent's own messages reach the channel only through tools you give it, such as a reply tool. Tool display, approval prompts, error messages, and typing status are unaffected, and the text still reaches the agent's stream and memory. (Default: `'show'`)
@@ -230,6 +232,83 @@ const agent = new Agent({
230
232
  })
231
233
  ```
232
234
 
235
+ ## Generative UI cards
236
+
237
+ > **Experimental:** `generativeUI` is experimental and may change in a minor release.
238
+
239
+ Set `generativeUI: true` on the Slack adapter to let the agent post structured cards (status summaries, key/value fields, tables, charts, images, and link buttons) instead of long markdown replies. Install the optional peer first:
240
+
241
+ **npm**:
242
+
243
+ ```bash
244
+ npm install @json-render/chat
245
+ ```
246
+
247
+ **pnpm**:
248
+
249
+ ```bash
250
+ pnpm add @json-render/chat
251
+ ```
252
+
253
+ **Yarn**:
254
+
255
+ ```bash
256
+ yarn add @json-render/chat
257
+ ```
258
+
259
+ **Bun**:
260
+
261
+ ```bash
262
+ bun add @json-render/chat
263
+ ```
264
+
265
+ `@json-render/chat` requires zod 4, so projects still on zod 3 can't enable `generativeUI` yet.
266
+
267
+ `@mastra/core` loads `@json-render/chat` at runtime, so `mastra build` and `mastra deploy` don't pick it up on their own. Add it to [`bundler.dynamicPackages`](https://mastra.ai/reference/core/mastra-class) so it's included in the build output:
268
+
269
+ ```typescript
270
+ import { Mastra } from '@mastra/core'
271
+ import { supportAgent } from './agents/support-agent'
272
+
273
+ export const mastra = new Mastra({
274
+ agents: { supportAgent },
275
+ bundler: { dynamicPackages: ['@json-render/chat'] },
276
+ })
277
+ ```
278
+
279
+ ```typescript
280
+ import { Agent } from '@mastra/core/agent'
281
+ import { createSlackAdapter } from '@chat-adapter/slack'
282
+
283
+ export const supportAgent = new Agent({
284
+ id: 'support-agent',
285
+ name: 'Support Agent',
286
+ instructions: 'You are a helpful support assistant.',
287
+ model: 'openai/gpt-6.1-sol',
288
+ channels: {
289
+ adapters: {
290
+ slack: { adapter: createSlackAdapter(), generativeUI: true },
291
+ },
292
+ },
293
+ })
294
+ ```
295
+
296
+ Runs on that adapter get a `render_card` tool whose description lists the available components. The agent passes a flat spec of `{ root, elements }`, where the root element is a `Card`:
297
+
298
+ ```json
299
+ {
300
+ "root": "card",
301
+ "elements": {
302
+ "card": { "type": "Card", "props": { "title": "Deploy status" }, "children": ["fields"] },
303
+ "fields": { "type": "Fields", "children": ["env", "version"] },
304
+ "env": { "type": "Field", "props": { "label": "Environment", "value": "beta" } },
305
+ "version": { "type": "Field", "props": { "label": "Version", "value": "1.8.1" } }
306
+ }
307
+ }
308
+ ```
309
+
310
+ The tool returns `{ ok: true, messageId }` once the card is posted. When the spec is invalid or exceeds the platform's limits (on Slack, one table and 100 rows per card), it returns `{ ok: false, issues }` without posting, so the agent can fix the spec and call it again. The tool call itself isn't rendered as a tool card. Interactive buttons aren't available yet. Cards can link out with `LinkButton`.
311
+
233
312
  ## Custom typing status
234
313
 
235
314
  Pass a function to `typingStatus` to customize the status copy. The function is called once per stream chunk; return a string to set the status, or `false` / `null` / `undefined` to leave the current status unchanged. Return values are de-duplicated so the platform only sees a call when the status changes. When the run ends, any status it set is cleared automatically so runs that finish without posting a message don't leave a stale status on the thread.
@@ -212,7 +212,7 @@ Indexed replay is limited to events still available in the configured cache. The
212
212
 
213
213
  A failed cache write loses only that event from the cache. It has no `index`, and the events written before and after it still replay when the cache numbers and appends an event in one step. The in-memory and Valkey caches always do. `RedisServerCache` does while Redis scripting works, and switches to two steps when the client has no `eval` or Redis Cluster rejects the script with `CROSSSLOT`. A custom cache that keeps the default `listPushIndexed()` also takes two steps. A two-step cache can leave a gap that makes offset replay skip later events, so replay such a log without an `offset` and skip indexes already processed. Cache replay can't recover an event the cache never stored. A transport that retains it, such as `RedisStreamsPubSub`, can still deliver it without an `index`.
214
214
 
215
- An evented agent (`createEventedAgent()`) on a cross-process PubSub, such as Redis Streams, numbers its events only when every process shares the server cache. Configure a shared cache such as `RedisServerCache` on the `Mastra` instance. With the default in-memory server cache, events aren't numbered, so an offset can't skip them: the observer can receive events from before the offset again, and Mastra logs a warning.
215
+ An evented agent (`createEventedAgent()`) on a cross-process PubSub, such as Redis Streams, can use the default in-memory server cache when its steps run in the process that started the run. That process numbers the events. Use a shared cache such as `RedisServerCache` on the `Mastra` instance when steps run in another process, such as a dedicated worker started with `workers: true`. That process can't share the in-memory counter, so its events aren't numbered and an offset can't skip them. Mastra logs a warning in the worker when this happens. Also use a shared cache when an observer reconnects through another process, such as a different server replica, because it can't replay from the starting process's in-memory cache.
216
216
 
217
217
  By default `observe()` waits indefinitely for events. If the process running the run stops unexpectedly, the run stops producing events but never emits a completion event, so the observed stream would wait forever. Pass `idleTimeoutMs` to end the stream after a bounded period of silence. Before timing out, `observe()` can consult an optional `isAlive` check. Return `true` while work continues, such as during a long-running tool call or a pause for human input. A `false` result ends the stream with an error, as does omitting `isAlive`. A transient throw from `isAlive` is treated as "still alive", so a momentary check failure never ends a live stream.
218
218
 
@@ -268,7 +268,9 @@ const { runId } = await durableAgent.stream('Summarize the document')
268
268
  durableAgent.abortRunStream(runId)
269
269
  ```
270
270
 
271
- Publishing the abort request over PubSub requires a shared backend in a multi-process deployment, such as [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams). The default `EventEmitterPubSub` only reaches runs in the same process. `InngestAgent` doesn't implement this method. Cancel an Inngest run with the `abort()` returned by its `stream()`.
271
+ Publishing the abort request over PubSub requires a shared backend in a multi-process deployment, such as [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams). The default `EventEmitterPubSub` only reaches runs in the same process. A run parked on a tool approval is cancelled only in this process: another process sharing the storage can still approve it. To cancel a parked run on every server, call the server's `POST /agents/:agentId/runs/:runId/abort` route, which records the cancellation in storage so a later approval or resume is refused with `409 Conflict` (`AGENT_RESUME_ABORTED_RUN`).
272
+
273
+ `InngestAgent` doesn't implement this method. Cancel an Inngest run with the `abort()` returned by its `stream()`.
272
274
 
273
275
  Stopping a durable run through `abortRunStream()` or `abortThreadStream()` requires `@mastra/core@1.62.0` or later. Earlier versions record the abort without stopping the run.
274
276
 
@@ -427,7 +429,7 @@ Model and tool calls after the checkpoint may run again. Make tool side effects
427
429
 
428
430
  The server's `POST /agents/:agentId/recover` route returns ownership, already-in-progress, suspended-run, and inactive-run conflicts as `409 Conflict`. An unavailable checkpoint returns `500 Internal Server Error`.
429
431
 
430
- **options.force** (`boolean`): Take the run over even while another execution holds it. That execution loses the run and stops, and streams for the run drop the events it still publishes. Its writes are rejected when the storage adapter supports run fencing. (Default: `false`)
432
+ **options.force** (`boolean`): Take the run over even while another execution holds it. That execution loses the run and stops, and streams for the run drop the events it still publishes. Its writes are rejected when the storage adapter supports run fencing. Tools still running in that execution can finish, so the same tool call can run twice. See make tools safe to repeat. (Default: `false`)
431
433
 
432
434
  Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
433
435
 
@@ -18,9 +18,19 @@ Each `dist/docs` includes:
18
18
 
19
19
  ## Context files
20
20
 
21
- Mastra provides a root [`llms.txt`](https://mastra.ai/llms.txt) file that contains an overview of all available documentation pages. It doesn't provide an `llms-full.txt` file as it's not useful to have all documentation in one file.
21
+ Mastra provides a root [`llms.txt`](https://mastra.ai/llms.txt) file that contains an overview of all available documentation pages.
22
22
 
23
- Instead, each documentation page has its own `llms.txt` file. These files are streamlined markdown files. At the end of each docs page you'll find a link to the corresponding `llms.txt` file.
23
+ To load many pages in one request, use the `llms-full.txt` bundles. They contain the full Markdown of every page in sidebar order:
24
+
25
+ - [`/llms-full.txt`](https://mastra.ai/llms-full.txt): All documentation
26
+ - [`/docs/llms-full.txt`](https://mastra.ai/docs/llms-full.txt): Docs
27
+ - [`/models/llms-full.txt`](https://mastra.ai/models/llms-full.txt): Models
28
+ - [`/integrations/llms-full.txt`](https://mastra.ai/integrations/llms-full.txt): Integrations
29
+ - [`/reference/llms-full.txt`](https://mastra.ai/reference/llms-full.txt): Reference
30
+
31
+ The full bundle is large, so prefer a section bundle or individual pages when you only need part of the documentation.
32
+
33
+ Each documentation page also has its own `llms.txt` file. These files are streamlined markdown files. At the end of each docs page you'll find a link to the corresponding `llms.txt` file.
24
34
 
25
35
  Add `/llms.txt` to any Mastra docs URL to access it. You can also request it by adding a `.md` extension to the end of the URL.
26
36
 
@@ -74,7 +74,11 @@ const { controller } = await mountAgentControllerOnMastra({ mastra })
74
74
 
75
75
  **disableBuiltinTools** (`BuiltinToolId[]`): Agent controller built-in tools (for example, 'submit_plan') removed from every session. Tool guidance skips disabled tools, and plan mode writes the plan file instead of calling 'submit_plan' when it's disabled.
76
76
 
77
- **storage** (`StorageConfig`): Custom storage config instead of the auto-detected default.
77
+ **storage** (`StorageConfig | MastraCompositeStore`): Custom storage config instead of the auto-detected default, or a pre-built store instance. An injected instance has no connection test or LibSQL fallback. In both cases the SDK wraps the store: scorer results are discarded unless disableScoreStorage is false, and local observability goes to a separate DuckDB store only when local tracing is enabled and that store opens; otherwise local observability is disabled. Cloud export runs independently when cloud credentials are configured.
78
+
79
+ **storageBackend** (`'libsql' | 'pg'`): Backend of an injected storage instance. Inferred for LibSQLStore and PostgresStore; required for any other injected store, otherwise mounting throws.
80
+
81
+ **vector** (`MastraVector`): Pre-built vector store for recall search. Skips creating the default vector store. When storage is a pre-built instance, no default vector store is created, so pass vector to keep semantic recall search; without it, recall still browses history but can't search semantically.
78
82
 
79
83
  **workspace** (`AgentControllerConfig["workspace"]`): Override the workspace. (Default: `local filesystem + local sandbox based on the detected project`)
80
84
 
@@ -42,7 +42,7 @@ Most applications should prefer [`tools()`](https://mastra.ai/reference/connect/
42
42
 
43
43
  **connectionId** (`string`): ID of the connection to fetch credentials for.
44
44
 
45
- **options** (`{ client?: ConnectClientOptions }`): Optional platform client overrides (accessToken, orgId, baseUrl, fetch). See ConnectClientOptions in tools().
45
+ **options** (`{ client?: ConnectClientOptions; resourceId?: string }`): Optional platform client overrides (accessToken, orgId, baseUrl, fetch; see ConnectClientOptions in tools()) and the end-user resourceId. Pass resourceId when the connection is scoped to an end user. The value is trimmed and must be 1-256 characters, otherwise invalid_options is thrown before any request is sent. The value is sent as the x-mastra-resource-id header, takes precedence over client.resourceId, and the platform returns not found for a resource-scoped connection when it's missing or doesn't match.
46
46
 
47
47
  ## Credential handling
48
48
 
@@ -56,6 +56,7 @@ Throws `MastraConnectError` with a `code` property:
56
56
 
57
57
  | Code | When |
58
58
  | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
59
+ | `invalid_options` | An option is invalid, for example an empty `resourceId` or one longer than 256 characters after trimming |
59
60
  | `missing_access_token` | No platform token configured |
60
61
  | `connection_not_found` | The connection doesn't exist or isn't accessible |
61
62
  | `unsupported_credential_type` | The connection's credential type can't be returned |