@mastra/mcp-docs-server 1.3.5-alpha.14 → 1.3.5-alpha.18

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 (51) hide show
  1. package/.docs/docs/agents/overview.md +1 -1
  2. package/.docs/docs/auth/composite-auth.md +1 -1
  3. package/.docs/docs/auth/custom-auth-provider.md +28 -22
  4. package/.docs/docs/auth/jwt.md +1 -1
  5. package/.docs/docs/auth/overview.md +2 -2
  6. package/.docs/docs/auth/simple-auth.md +6 -1
  7. package/.docs/docs/browser.md +1 -2
  8. package/.docs/docs/deployment/overview.md +1 -1
  9. package/.docs/docs/deployment/web-framework.md +1 -1
  10. package/.docs/docs/evals/built-in-scorers.md +2 -2
  11. package/.docs/docs/guides/overview.md +15 -0
  12. package/.docs/docs/harness/agent-controller.md +7 -10
  13. package/.docs/docs/mastra-platform/configuration.md +1 -1
  14. package/.docs/docs/observability/overview.md +0 -5
  15. package/.docs/docs/sandbox/filesystem.md +12 -12
  16. package/.docs/docs/studio/observability.md +1 -1
  17. package/.docs/integrations/voice/livekit.md +449 -2
  18. package/.docs/models/gateways/netlify.md +2 -1
  19. package/.docs/models/gateways/openrouter.md +3 -1
  20. package/.docs/models/gateways/vercel.md +6 -2
  21. package/.docs/models/index.md +1 -1
  22. package/.docs/models/providers/aki-io.md +12 -12
  23. package/.docs/models/providers/edenai.md +15 -13
  24. package/.docs/models/providers/kilo.md +10 -9
  25. package/.docs/models/providers/llmgateway-providers.md +4 -1
  26. package/.docs/models/providers/llmgateway.md +2 -1
  27. package/.docs/models/providers/mistral.md +7 -6
  28. package/.docs/models/providers/nano-gpt.md +2 -3
  29. package/.docs/models/providers/opencode-go.md +2 -2
  30. package/.docs/models/providers/opencode.md +3 -1
  31. package/.docs/models/providers/requesty.md +3 -1
  32. package/.docs/models/providers/the-grid-ai.md +19 -12
  33. package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
  34. package/.docs/reference/agent-controller/session.md +18 -11
  35. package/.docs/reference/agents/createSkill.md +1 -2
  36. package/.docs/reference/agents/getModel.md +1 -1
  37. package/.docs/reference/agents/getSkill.md +6 -1
  38. package/.docs/reference/agents/listSkills.md +0 -1
  39. package/.docs/reference/auth/jwt.md +1 -1
  40. package/.docs/reference/auth/supabase.md +1 -1
  41. package/.docs/reference/browser/mastra-browser.md +13 -11
  42. package/.docs/reference/cli/create-mastra.md +1 -1
  43. package/.docs/reference/client-js/agent-controller.md +19 -3
  44. package/.docs/reference/client-js/conversations.md +1 -1
  45. package/.docs/reference/client-js/mastra-client.md +2 -2
  46. package/.docs/reference/client-js/workflows.md +18 -2
  47. package/.docs/reference/code-sdk/mount-agent-controller.md +1 -1
  48. package/.docs/reference/memory/observational-memory.md +2 -0
  49. package/.docs/reference/tools/mcp-server.md +1 -1
  50. package/.docs/reference/vectors/lance.md +56 -10
  51. package/package.json +5 -5
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Eden AI logo](https://models.dev/logos/edenai.svg)Eden AI
6
6
 
7
- Access 292 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
7
+ Access 294 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Eden AI documentation](https://docs.edenai.co).
10
10
 
@@ -142,6 +142,8 @@ for await (const chunk of stream) {
142
142
  | `edenai/flexai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.17 |
143
143
  | `edenai/flexai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.10 |
144
144
  | `edenai/flexai/Step-3.7-Flash` | 262K | | | | | | $0.20 | $1 |
145
+ | `edenai/google/deep-research-max-preview-04-2026` | 1.0M | | | | | | $2 | $12 |
146
+ | `edenai/google/deep-research-preview-04-2026` | 1.0M | | | | | | $2 | $12 |
145
147
  | `edenai/google/gemini-2.5-flash-image` | 33K | | | | | | $0.30 | $3 |
146
148
  | `edenai/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
147
149
  | `edenai/google/gemini-3-pro-image` | 66K | | | | | | $2 | $12 |
@@ -156,11 +158,11 @@ for await (const chunk of stream) {
156
158
  | `edenai/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
157
159
  | `edenai/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
158
160
  | `edenai/google/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
159
- | `edenai/google/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
160
- | `edenai/google/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
161
- | `edenai/google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
161
+ | `edenai/google/gemini-3.7-flash` | 1.0M | | | | | | $2 | $8 |
162
+ | `edenai/google/gemini-3.8-flash` | 1.0M | | | | | | $2 | $8 |
163
+ | `edenai/google/gemini-flash-latest` | 1.0M | | | | | | $2 | $8 |
162
164
  | `edenai/google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
163
- | `edenai/greenference/deepseek-v4.1-flash` | 1.0M | | | | | | $0.00 | $0.09 |
165
+ | `edenai/greenference/deepseek-v4.1-flash` | 1.0M | | | | | | $0.22 | $0.88 |
164
166
  | `edenai/greenference/gpt-oss-20b` | 131K | | | | | | $0.01 | $0.04 |
165
167
  | `edenai/groq/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
166
168
  | `edenai/groq/openai/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
@@ -270,7 +272,7 @@ for await (const chunk of stream) {
270
272
  | `edenai/qwen/qwq-plus` | 131K | | | | | | $0.80 | $2 |
271
273
  | `edenai/scaleway/deepseek-v4-flash-0731` | 256K | | | | | | $0.45 | $0.90 |
272
274
  | `edenai/scaleway/gemma-3-27b-it` | 40K | | | | | | $0.29 | $0.57 |
273
- | `edenai/scaleway/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.67 |
275
+ | `edenai/scaleway/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.68 |
274
276
  | `edenai/scaleway/llama-3.3-70b-instruct` | 128K | | | | | | $1 | $1 |
275
277
  | `edenai/tencent/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.66 | $2 |
276
278
  | `edenai/tencent/hy3` | 256K | | | | | | $0.13 | $0.53 |
@@ -304,13 +306,13 @@ for await (const chunk of stream) {
304
306
  | `edenai/vertex/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
305
307
  | `edenai/vertex/gemini-3.6-flash@eu` | 1.0M | | | | | | $0.75 | $4 |
306
308
  | `edenai/vertex/gemini-3.6-flash@us` | 1.0M | | | | | | $0.75 | $4 |
307
- | `edenai/vertex/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
308
- | `edenai/vertex/gemini-3.7-flash@eu` | 1.0M | | | | | | $0.75 | $4 |
309
- | `edenai/vertex/gemini-3.7-flash@us` | 1.0M | | | | | | $0.75 | $4 |
310
- | `edenai/vertex/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
311
- | `edenai/vertex/gemini-3.8-flash@eu` | 1.0M | | | | | | $0.75 | $4 |
312
- | `edenai/vertex/gemini-3.8-flash@us` | 1.0M | | | | | | $0.75 | $4 |
313
- | `edenai/vertex/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
309
+ | `edenai/vertex/gemini-3.7-flash` | 1.0M | | | | | | $2 | $8 |
310
+ | `edenai/vertex/gemini-3.7-flash@eu` | 1.0M | | | | | | $2 | $8 |
311
+ | `edenai/vertex/gemini-3.7-flash@us` | 1.0M | | | | | | $2 | $8 |
312
+ | `edenai/vertex/gemini-3.8-flash` | 1.0M | | | | | | $2 | $8 |
313
+ | `edenai/vertex/gemini-3.8-flash@eu` | 1.0M | | | | | | $2 | $8 |
314
+ | `edenai/vertex/gemini-3.8-flash@us` | 1.0M | | | | | | $2 | $8 |
315
+ | `edenai/vertex/gemini-flash-latest` | 1.0M | | | | | | $2 | $8 |
314
316
  | `edenai/vertex/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
315
317
  | `edenai/xai/grok-4.20-0309-non-reasoning` | 1.0M | | | | | | $1 | $3 |
316
318
  | `edenai/xai/grok-4.20-0309-reasoning` | 1.0M | | | | | | $1 | $3 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Kilo Gateway logo](https://models.dev/logos/kilo.svg)Kilo Gateway
6
6
 
7
- Access 395 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
7
+ Access 396 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Kilo Gateway documentation](https://kilo.ai).
10
10
 
@@ -43,18 +43,18 @@ for await (const chunk of stream) {
43
43
  | `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
44
44
  | `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
45
45
  | `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.00 | $2 |
46
- | `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.28 | $4 |
47
- | `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.02 | $1 |
46
+ | `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.25 | $4 |
47
+ | `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $1 |
48
48
  | `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
49
49
  | `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
50
- | `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.80 | $13 |
50
+ | `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.83 | $13 |
51
51
  | `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
52
52
  | `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
53
53
  | `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
54
54
  | `kilo/~openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
55
55
  | `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
56
56
  | `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
57
- | `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.04 | $0.50 |
57
+ | `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.02 | $0.50 |
58
58
  | `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.03 | $12 |
59
59
  | `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
60
60
  | `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
@@ -83,7 +83,6 @@ for await (const chunk of stream) {
83
83
  | `kilo/anthropic/claude-sonnet-4.6` | 1.0M | | | | | | $3 | $15 |
84
84
  | `kilo/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
85
85
  | `kilo/anthropic/claude-sonnet-5.5` | 1.0M | | | | | | $2 | $10 |
86
- | `kilo/apodex/apodex-1.1-mini:free` | 262K | | | | | | — | — |
87
86
  | `kilo/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.25 | $0.80 |
88
87
  | `kilo/baidu/ernie-4.5-vl-424b-a47b` | 123K | | | | | | $0.42 | $1 |
89
88
  | `kilo/bytedance-seed/seed-1.6` | 262K | | | | | | $0.25 | $2 |
@@ -105,8 +104,8 @@ for await (const chunk of stream) {
105
104
  | `kilo/deepseek/deepseek-chat-v3.1` | 164K | | | | | | $0.25 | $0.95 |
106
105
  | `kilo/deepseek/deepseek-r1` | 64K | | | | | | $0.70 | $3 |
107
106
  | `kilo/deepseek/deepseek-r1-0528` | 164K | | | | | | $0.70 | $3 |
108
- | `kilo/deepseek/deepseek-v3.1-terminus` | 131K | | | | | | $0.30 | $1 |
109
- | `kilo/deepseek/deepseek-v3.2` | 164K | | | | | | $0.26 | $0.42 |
107
+ | `kilo/deepseek/deepseek-v3.1-terminus` | 164K | | | | | | $0.27 | $1 |
108
+ | `kilo/deepseek/deepseek-v3.2` | 131K | | | | | | $0.28 | $0.42 |
110
109
  | `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
111
110
  | `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
112
111
  | `kilo/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
@@ -136,6 +135,7 @@ for await (const chunk of stream) {
136
135
  | `kilo/google/gemini-3.6-flash` | 1.0M | | | | | | $0.38 | $2 |
137
136
  | `kilo/google/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
138
137
  | `kilo/google/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
138
+ | `kilo/google/gemini-nano-banana-2.1` | 66K | | | | | | $2 | $8 |
139
139
  | `kilo/google/gemma-2-27b-it` | 8K | | | | | | $0.65 | $0.65 |
140
140
  | `kilo/google/gemma-3-12b-it` | 131K | | | | | | $0.05 | $0.15 |
141
141
  | `kilo/google/gemma-3-27b-it` | 131K | | | | | | $0.08 | $0.16 |
@@ -197,6 +197,7 @@ for await (const chunk of stream) {
197
197
  | `kilo/mistralai/mistral-large` | 128K | | | | | | $2 | $6 |
198
198
  | `kilo/mistralai/mistral-large-2407` | 131K | | | | | | $2 | $6 |
199
199
  | `kilo/mistralai/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
200
+ | `kilo/mistralai/mistral-large-4-0` | 524K | | | | | | $1 | $4 |
200
201
  | `kilo/mistralai/mistral-medium-3` | 131K | | | | | | $0.40 | $2 |
201
202
  | `kilo/mistralai/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
202
203
  | `kilo/mistralai/mistral-medium-3.1` | 131K | | | | | | $0.40 | $2 |
@@ -324,7 +325,7 @@ for await (const chunk of stream) {
324
325
  | `kilo/qwen/qwen3-235b-a22b-2507` | 262K | | | | | | $0.15 | $0.60 |
325
326
  | `kilo/qwen/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.23 | $2 |
326
327
  | `kilo/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.13 | $0.52 |
327
- | `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 128K | | | | | | $0.13 | $0.52 |
328
+ | `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 262K | | | | | | $0.13 | $0.52 |
328
329
  | `kilo/qwen/qwen3-30b-a3b-thinking-2507` | 82K | | | | | | $0.20 | $2 |
329
330
  | `kilo/qwen/qwen3-32b` | 41K | | | | | | $0.08 | $0.28 |
330
331
  | `kilo/qwen/qwen3-8b` | 131K | | | | | | $0.12 | $0.46 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![LLM Gateway logo](https://models.dev/logos/llmgateway-providers.svg)LLM Gateway
6
6
 
7
- Access 439 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
7
+ Access 442 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 [LLM Gateway documentation](https://llmgateway.io/docs).
10
10
 
@@ -219,6 +219,7 @@ for await (const chunk of stream) {
219
219
  | `llmgateway-providers/embercloud/glm-5.2` | 203K | | | | | | $1 | $4 |
220
220
  | `llmgateway-providers/embercloud/kimi-k2.5` | 262K | | | | | | $0.41 | $2 |
221
221
  | `llmgateway-providers/embercloud/qwen3-coder-next` | 262K | | | | | | $0.11 | $0.68 |
222
+ | `llmgateway-providers/entrim/deepseek-v4.1-flash` | 1.0M | | | | | | $0.20 | $0.60 |
222
223
  | `llmgateway-providers/fireworks/deepseek-v4-flash` | 1.0M | | | | | | $0.22 | $0.66 |
223
224
  | `llmgateway-providers/fireworks/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
224
225
  | `llmgateway-providers/fireworks/deepseek-v4.1-flash` | 1.0M | | | | | | $0.22 | $0.66 |
@@ -279,6 +280,7 @@ for await (const chunk of stream) {
279
280
  | `llmgateway-providers/mistral/ministral-3b-2512` | 131K | | | | | | $0.10 | $0.10 |
280
281
  | `llmgateway-providers/mistral/ministral-8b-2512` | 262K | | | | | | $0.15 | $0.15 |
281
282
  | `llmgateway-providers/mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
283
+ | `llmgateway-providers/mistral/mistral-large-4` | 1.0M | | | | | | $1 | $4 |
282
284
  | `llmgateway-providers/mistral/mistral-large-latest` | 128K | | | | | | $4 | $12 |
283
285
  | `llmgateway-providers/mistral/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
284
286
  | `llmgateway-providers/mistral/mistral-small-2506` | 128K | | | | | | $0.10 | $0.30 |
@@ -390,6 +392,7 @@ for await (const chunk of stream) {
390
392
  | `llmgateway-providers/sakana/fugu-max` | 1.0M | | | | | | $2 | $6 |
391
393
  | `llmgateway-providers/sakana/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
392
394
  | `llmgateway-providers/sakana/fugu-ultra-v2.0` | 1.0M | | | | | | $5 | $30 |
395
+ | `llmgateway-providers/sciforium/deepseek-v4.1-flash` | 1.0M | | | | | | $0.25 | $0.94 |
393
396
  | `llmgateway-providers/scx-ai-gp/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
394
397
  | `llmgateway-providers/scx-ai-gp/glm-5.2` | 1.0M | | | | | | $0.88 | $3 |
395
398
  | `llmgateway-providers/scx-ai-gp/glm-5.2-fast` | 1.0M | | | | | | $2 | $7 |
@@ -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 214 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
7
+ Access 215 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
 
@@ -187,6 +187,7 @@ for await (const chunk of stream) {
187
187
  | `llmgateway/ministral-3b-2512` | 131K | | | | | | $0.10 | $0.10 |
188
188
  | `llmgateway/ministral-8b-2512` | 262K | | | | | | $0.15 | $0.15 |
189
189
  | `llmgateway/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
190
+ | `llmgateway/mistral-large-4` | 1.0M | | | | | | $1 | $4 |
190
191
  | `llmgateway/mistral-large-latest` | 128K | | | | | | $4 | $12 |
191
192
  | `llmgateway/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
192
193
  | `llmgateway/mistral-small-2506` | 128K | | | | | | $0.10 | $0.30 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Mistral logo](https://models.dev/logos/mistral.svg)Mistral
6
6
 
7
- Access 34 Mistral models through Mastra's model router. Authentication is handled automatically using the `MISTRAL_API_KEY` environment variable.
7
+ Access 35 Mistral models through Mastra's model router. Authentication is handled automatically using the `MISTRAL_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Mistral documentation](https://docs.mistral.ai/getting-started/models/).
10
10
 
@@ -38,11 +38,12 @@ for await (const chunk of stream) {
38
38
  | --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
39
  | `mistral/codestral-latest` | 256K | | | | | | $0.30 | $0.90 |
40
40
  | `mistral/magistral-medium-latest` | 128K | | | | | | $2 | $5 |
41
- | `mistral/ministral-3b-latest` | 128K | | | | | | $0.04 | $0.04 |
42
- | `mistral/ministral-8b-latest` | 128K | | | | | | $0.10 | $0.10 |
41
+ | `mistral/ministral-3b-latest` | 131K | | | | | | $0.04 | $0.04 |
42
+ | `mistral/ministral-8b-latest` | 262K | | | | | | $0.10 | $0.10 |
43
43
  | `mistral/mistral-embed` | 8K | | | | | | $0.10 | — |
44
44
  | `mistral/mistral-large-2411` | 131K | | | | | | $2 | $6 |
45
45
  | `mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
46
+ | `mistral/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
46
47
  | `mistral/mistral-large-latest` | 262K | | | | | | $0.50 | $2 |
47
48
  | `mistral/mistral-medium-2505` | 131K | | | | | | $0.40 | $2 |
48
49
  | `mistral/mistral-medium-2508` | 262K | | | | | | $0.40 | $2 |
@@ -50,8 +51,8 @@ for await (const chunk of stream) {
50
51
  | `mistral/mistral-medium-latest` | 262K | | | | | | $2 | $8 |
51
52
  | `mistral/mistral-nemo` | 128K | | | | | | $0.15 | $0.15 |
52
53
  | `mistral/mistral-small-2506` | 128K | | | | | | $0.10 | $0.30 |
53
- | `mistral/mistral-small-2603` | 256K | | | | | | $0.15 | $0.60 |
54
- | `mistral/mistral-small-latest` | 256K | | | | | | $0.15 | $0.60 |
54
+ | `mistral/mistral-small-2603` | 262K | | | | | | $0.15 | $0.60 |
55
+ | `mistral/mistral-small-latest` | 262K | | | | | | $0.15 | $0.60 |
55
56
  | `mistral/open-mistral-7b` | 8K | | | | | | $0.25 | $0.25 |
56
57
  | `mistral/open-mixtral-8x22b` | 64K | | | | | | $2 | $6 |
57
58
  | `mistral/open-mixtral-8x7b` | 32K | | | | | | $0.70 | $0.70 |
@@ -59,7 +60,7 @@ for await (const chunk of stream) {
59
60
  | `mistral/pixtral-large-latest` | 128K | | | | | | $2 | $6 |
60
61
  | `mistral/voxtral-mini-latest` | — | | | | | | — | — |
61
62
  | `mistral/voxtral-mini-tts-latest` | — | | | | | | — | — |
62
- | `mistral/voxtral-small-latest` | 32K | | | | | | $0.10 | $0.30 |
63
+ | `mistral/voxtral-small-latest` | 33K | | | | | | $0.10 | $0.30 |
63
64
  | `mistral/zai-glm-5-2` | 1.0M | | | | | | $1 | $4 |
64
65
  | `mistral/zai-glm-5-3` | 1.0M | | | | | | $1 | $4 |
65
66
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![NanoGPT logo](https://models.dev/logos/nano-gpt.svg)NanoGPT
6
6
 
7
- Access 610 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
7
+ Access 609 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
 
@@ -313,6 +313,7 @@ for await (const chunk of stream) {
313
313
  | `nano-gpt/mistralai/ministral-3b-2512` | 131K | | | | | | $0.10 | $0.10 |
314
314
  | `nano-gpt/mistralai/ministral-8b-2512` | 262K | | | | | | $0.15 | $0.15 |
315
315
  | `nano-gpt/mistralai/mistral-large` | 128K | | | | | | $2 | $6 |
316
+ | `nano-gpt/mistralai/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
316
317
  | `nano-gpt/mistralai/mistral-medium-3` | 131K | | | | | | $0.40 | $2 |
317
318
  | `nano-gpt/mistralai/mistral-medium-3.1` | 131K | | | | | | $0.40 | $2 |
318
319
  | `nano-gpt/mistralai/mistral-medium-3.5` | 256K | | | | | | $2 | $8 |
@@ -511,7 +512,6 @@ for await (const chunk of stream) {
511
512
  | `nano-gpt/sakana/fugu-max` | 1.0M | | | | | | $2 | $6 |
512
513
  | `nano-gpt/sakana/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
513
514
  | `nano-gpt/sakana/fugu-ultra-v1.1` | 1.0M | | | | | | $5 | $30 |
514
- | `nano-gpt/sakana/sakana-namazu` | 262K | | | | | | $0.95 | $4 |
515
515
  | `nano-gpt/Salesforce/Llama-xLAM-2-70b-fc-r` | 128K | | | | | | $3 | $3 |
516
516
  | `nano-gpt/Sao10K/L3-8B-Stheno-v3.2` | 16K | | | | | | $0.20 | $0.20 |
517
517
  | `nano-gpt/Sao10K/L3.1-70B-Euryale-v2.2` | 20K | | | | | | $0.31 | $0.36 |
@@ -523,7 +523,6 @@ for await (const chunk of stream) {
523
523
  | `nano-gpt/soob3123/amoral-gemma3-27B-v2` | 33K | | | | | | $0.30 | $0.30 |
524
524
  | `nano-gpt/soob3123/GrayLine-Qwen3-8B` | 33K | | | | | | $0.30 | $0.30 |
525
525
  | `nano-gpt/soob3123/Veiled-Calla-12B` | 33K | | | | | | $0.30 | $0.30 |
526
- | `nano-gpt/stealth/space-bunny-alpha` | 1.0M | | | | | | $0.05 | $0.15 |
527
526
  | `nano-gpt/Steelskull/L3.3-Cu-Mai-R1-70b` | 33K | | | | | | $0.49 | $0.49 |
528
527
  | `nano-gpt/Steelskull/L3.3-Electra-R1-70b` | 33K | | | | | | $0.70 | $0.70 |
529
528
  | `nano-gpt/Steelskull/L3.3-MS-Nevoria-70b` | 33K | | | | | | $0.49 | $0.49 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenCode Go logo](https://models.dev/logos/opencode-go.svg)OpenCode Go
6
6
 
7
- Access 33 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
7
+ Access 34 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/docs/go).
10
10
 
@@ -66,7 +66,7 @@ for await (const chunk of stream) {
66
66
  | `opencode-go/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
67
67
  | `opencode-go/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
68
68
  | `opencode-go/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
69
- | `opencode-go/space-bunny-free` | 1.0M | | | | | | — | — |
69
+ | `opencode-go/space-bunny` | 1.0M | | | | | | $0.15 | $0.60 |
70
70
 
71
71
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
72
72
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenCode Zen logo](https://models.dev/logos/opencode.svg)OpenCode Zen
6
6
 
7
- Access 116 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
7
+ Access 118 OpenCode Zen 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 Zen documentation](https://opencode.ai/docs/zen).
10
10
 
@@ -57,6 +57,7 @@ for await (const chunk of stream) {
57
57
  | `opencode/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.14 | $0.28 |
58
58
  | `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
59
59
  | `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
60
+ | `opencode/exo-free` | 1.0M | | | | | | — | — |
60
61
  | `opencode/fledge-alpha-free` | 1.0M | | | | | | — | — |
61
62
  | `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
62
63
  | `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
@@ -109,6 +110,7 @@ for await (const chunk of stream) {
109
110
  | `opencode/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
110
111
  | `opencode/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
111
112
  | `opencode/minimax-m3` | 512K | | | | | | $0.30 | $1 |
113
+ | `opencode/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
112
114
  | `opencode/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
113
115
  | `opencode/muse-spark-1.3` | 1.0M | | | | | | $1 | $4 |
114
116
  | `opencode/muse-spark-1.3-contributor-free` | 1.0M | | | | | | — | — |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Requesty logo](https://models.dev/logos/requesty.svg)Requesty
6
6
 
7
- Access 166 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
7
+ Access 168 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Requesty documentation](https://requesty.ai/solution/llm-routing/models).
10
10
 
@@ -167,6 +167,8 @@ for await (const chunk of stream) {
167
167
  | `requesty/minimax-m2.7-highspeed` | 200K | | | | | | $0.60 | $2 |
168
168
  | `requesty/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
169
169
  | `requesty/minimax-m3@eu` | 1.0M | | | | | | $0.40 | $2 |
170
+ | `requesty/mistral-large-4` | 1.0M | | | | | | $0.68 | $2 |
171
+ | `requesty/mistral-large-4@eu` | 1.0M | | | | | | $0.68 | $2 |
170
172
  | `requesty/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
171
173
  | `requesty/mistral-medium-3-5@eu` | 262K | | | | | | $2 | $8 |
172
174
  | `requesty/mistral-medium-latest` | 131K | | | | | | $0.44 | $2 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![The Grid AI logo](https://models.dev/logos/the-grid-ai.svg)The Grid AI
6
6
 
7
- Access 9 The Grid AI models through Mastra's model router. Authentication is handled automatically using the `THEGRID_API_KEY` environment variable.
7
+ Access 16 The Grid AI models through Mastra's model router. Authentication is handled automatically using the `THEGRID_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [The Grid AI documentation](https://thegrid.ai/docs).
10
10
 
@@ -36,17 +36,24 @@ for await (const chunk of stream) {
36
36
 
37
37
  ## Models
38
38
 
39
- | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
- | ---------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
- | `the-grid-ai/agent-max` | 1.0M | | | | | | — | — |
42
- | `the-grid-ai/agent-prime` | 197K | | | | | | — | — |
43
- | `the-grid-ai/agent-standard` | 128K | | | | | | — | — |
44
- | `the-grid-ai/code-max` | 1.0M | | | | | | — | — |
45
- | `the-grid-ai/code-prime` | 197K | | | | | | — | — |
46
- | `the-grid-ai/code-standard` | 128K | | | | | | — | — |
47
- | `the-grid-ai/text-max` | 1.0M | | | | | | — | — |
48
- | `the-grid-ai/text-prime` | 197K | | | | | | — | — |
49
- | `the-grid-ai/text-standard` | 128K | | | | | | — | — |
39
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
40
+ | ---------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
41
+ | `the-grid-ai/agent-max` | 1.0M | | | | | | — | — |
42
+ | `the-grid-ai/agent-prime` | 197K | | | | | | — | — |
43
+ | `the-grid-ai/agent-standard` | 128K | | | | | | — | — |
44
+ | `the-grid-ai/bytedance-pro-latest` | 262K | | | | | | — | — |
45
+ | `the-grid-ai/claude-opus-latest` | 1.0M | | | | | | — | — |
46
+ | `the-grid-ai/code-max` | 1.0M | | | | | | — | — |
47
+ | `the-grid-ai/code-prime` | 197K | | | | | | — | — |
48
+ | `the-grid-ai/code-standard` | 128K | | | | | | — | — |
49
+ | `the-grid-ai/deepseek-pro-latest` | 1.0M | | | | | | — | — |
50
+ | `the-grid-ai/gemini-pro-latest` | 1.0M | | | | | | — | — |
51
+ | `the-grid-ai/glm-latest` | 1.0M | | | | | | — | — |
52
+ | `the-grid-ai/gpt-sol-latest` | 1.0M | | | | | | — | — |
53
+ | `the-grid-ai/minimax-latest` | 1.0M | | | | | | — | — |
54
+ | `the-grid-ai/text-max` | 1.0M | | | | | | — | — |
55
+ | `the-grid-ai/text-prime` | 197K | | | | | | — | — |
56
+ | `the-grid-ai/text-standard` | 128K | | | | | | — | — |
50
57
 
51
58
  Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
52
59
 
@@ -56,7 +56,7 @@ A message lifecycle starts with the initial message in `message_start`. Compact
56
56
 
57
57
  **modes.name** (`string`): Display name.
58
58
 
59
- **modes.defaultModelId** (`string`): Model selected when a session enters this mode without a stored selection.
59
+ **modes.defaultModelId** (`string`): Model used when a session starts in this mode without a stored selection. Mode switches do not apply it.
60
60
 
61
61
  **modes.description** (`string`): Text shown in mode selectors.
62
62
 
@@ -94,7 +94,7 @@ A message lifecycle starts with the initial message in `message_start`. Compact
94
94
 
95
95
  **tools** (`DynamicArgument<ToolsInput | undefined>`): Tools shared by controller runs and available to configured subagents.
96
96
 
97
- **workspace** (`DynamicArgument<Workspace | undefined>`): Static workspace or per-session workspace factory. A session must resolve a valid workspace.
97
+ **workspace** (`DynamicArgument<Workspace | undefined>`): Static workspace or per-session workspace factory. A workspace is optional. Sessions without one support threads, state, and agent runs. They have no workspace tools unless the mode's agent has its own workspace.
98
98
 
99
99
  **browser** (`DynamicArgument<MastraBrowser | undefined>`): Static browser or per-session browser factory.
100
100
 
@@ -459,7 +459,7 @@ const mode = session.mode.resolve()
459
459
 
460
460
  ### `session.mode.switch({ modeId })`
461
461
 
462
- Switch to another mode. The session saves the outgoing mode's model before persisting the new mode on the active thread. It then restores the incoming mode's selected or default model. The session emits `mode_changed` immediately and `model_changed` after model resolution.
462
+ Switch to another mode and persist the mode on the active thread. The session emits `mode_changed`. Switching modes doesn't change the active model; switch the model separately when your host assigns different models to different modes.
463
463
 
464
464
  ```typescript
465
465
  await session.mode.switch({ modeId: 'build' })
@@ -467,7 +467,7 @@ await session.mode.switch({ modeId: 'build' })
467
467
 
468
468
  ## Model
469
469
 
470
- `session.model` owns the active model selection, including per-mode model memory.
470
+ `session.model` owns the session's single active model selection.
471
471
 
472
472
  ### `session.model.get()`
473
473
 
@@ -495,21 +495,28 @@ if (session.model.hasSelection()) {
495
495
  }
496
496
  ```
497
497
 
498
- ### `session.model.switch({ modelId, scope?, modeId? })`
498
+ ### `session.model.set({ modelId })`
499
499
 
500
- Switch the active model. When `scope` is `'thread'` (the default), the model ID is persisted as the per-mode model so it's restored when switching back. Reports the selection to the controller's `modelUseCountTracker` and emits a `model_changed` event.
500
+ Set the active model in memory without persisting it, reporting model use, or emitting a `model_changed` event.
501
501
 
502
502
  ```typescript
503
- // Set for the current session only
504
- await session.model.switch({
505
- modelId: 'anthropic/claude-sonnet-4-6',
506
- scope: 'global',
507
- })
503
+ session.model.set({ modelId: 'anthropic/claude-sonnet-4-6' })
504
+ ```
505
+
506
+ ### `session.model.switch(modelId, options?)`
507
+
508
+ Switch the session's active model. The model ID is persisted as the thread's `currentModelId` and restored with that thread. Reports the selection to the controller's `modelUseCountTracker` and emits a `model_changed` event.
508
509
 
509
- // Persist to the current thread (default)
510
- await session.model.switch({ modelId: 'anthropic/claude-sonnet-4-6' })
510
+ Pass `{ thinkingLevel }` as the second argument to switch and persist both values in one operation. The level must be `'off'`, `'low'`, `'medium'`, `'high'`, `'xhigh'`, or `'max'`, and the controller's state schema must accept it. Both live values are updated before events are emitted. Omitting the option preserves the existing thinking-level override. Every `model_changed` event includes the current `{ modelId, thinkingLevel }`, even when the thinking level is unchanged. The level is `undefined` when the session has no override.
511
+
512
+ ```typescript
513
+ await session.model.switch('anthropic/claude-sonnet-4-6', {
514
+ thinkingLevel: 'high',
515
+ })
511
516
  ```
512
517
 
518
+ The client SDK exposes the same operation as `session.switchModel(modelId, { thinkingLevel })`.
519
+
513
520
  ## Observational Memory
514
521
 
515
522
  The observational-memory model selection, grouped by role under `session.om.observer` and `session.om.reflector`. Both roles expose the same methods. Reads return the value from session state when set, falling back to the controller's `omConfig` defaults.
@@ -65,12 +65,11 @@ The skill is assigned a synthetic path of `inline/<name>` (e.g., `inline/code-re
65
65
 
66
66
  - `name` is required and must be a valid slug
67
67
  - `description` is required
68
- - `instructions` is required and non-empty
69
68
 
70
69
  If validation fails, an `Error` is thrown with details about the invalid fields.
71
70
 
72
71
  ```typescript
73
- // Throws: Invalid skill "": name is required
72
+ // Throws: Invalid skill "": name: Skill name cannot be empty
74
73
  createSkill({ name: '', description: 'test', instructions: 'test' })
75
74
  ```
76
75
 
@@ -20,7 +20,7 @@ await agent.getModel()
20
20
 
21
21
  ## Returns
22
22
 
23
- **model** (`MastraLanguageModel | Promise<MastraLanguageModel>`): The language model configured for the agent, either as a direct instance or a promise that resolves to the model.
23
+ **model** (`MastraLanguageModel | MastraLegacyLanguageModel | Promise<MastraLanguageModel | MastraLegacyLanguageModel>`): The language model configured for the agent, either as a direct instance or a promise that resolves to the model.
24
24
 
25
25
  ## Extended usage example
26
26
 
@@ -40,7 +40,10 @@ interface Skill {
40
40
  description: string
41
41
  instructions: string
42
42
  path: string
43
- source: { type: string; projectPath: string }
43
+ source:
44
+ | { type: 'external'; packagePath: string }
45
+ | { type: 'local'; projectPath: string }
46
+ | { type: 'managed'; mastraPath: string }
44
47
  references: string[]
45
48
  scripts: string[]
46
49
  assets: string[]
@@ -51,6 +54,8 @@ interface Skill {
51
54
  }
52
55
  ```
53
56
 
57
+ `source` describes where Mastra discovered the skill. Skills from a path with a `node_modules` segment are `external`, skills under `.mastra/skills` are `managed`, and all other skills, including those created with [`createSkill()`](https://mastra.ai/reference/agents/createSkill), are `local`.
58
+
54
59
  ## Merging behavior
55
60
 
56
61
  When both agent-level skills and workspace skills are configured, `.getSkill()` searches the merged set. Agent-level skills take precedence on name conflicts.
@@ -35,7 +35,6 @@ interface SkillMetadata {
35
35
  name: string
36
36
  description: string
37
37
  path: string
38
- source: { type: string; projectPath: string }
39
38
  references: string[]
40
39
  scripts: string[]
41
40
  assets: string[]
@@ -23,7 +23,7 @@ export const mastra = new Mastra({
23
23
 
24
24
  ## Constructor parameters
25
25
 
26
- **secret** (`string`): A unique string used to sign and verify JSON Web Tokens (JWTs) for authenticating incoming requests.
26
+ **secret** (`string`): A unique string used to sign and verify JSON Web Tokens (JWTs) for authenticating incoming requests. Falls back to JWT\_AUTH\_SECRET when omitted. The resolved secret must be non-empty: the constructor throws an error if neither is set, or if this option is an empty string (an empty string does not fall back to JWT\_AUTH\_SECRET). (Default: `process.env.JWT_AUTH_SECRET`)
27
27
 
28
28
  ## Related
29
29
 
@@ -30,7 +30,7 @@ export const mastra = new Mastra({
30
30
 
31
31
  **name** (`string`): Custom name for the auth provider instance.
32
32
 
33
- **authorizeUser** (`(user: User, request: HoneRequest) => Promise<boolean> | boolean`): Custom authorization function to determine if a user should be granted access. Called after token verification. By default, checks the 'isAdmin' column in the 'users' table.
33
+ **authorizeUser** (`(user: User, request: MastraAuthRequest) => Promise<boolean> | boolean`): Custom authorization function to determine if a user should be granted access. Called after token verification. By default, checks the 'isAdmin' column in the 'users' table.
34
34
 
35
35
  ## Related
36
36
 
@@ -157,12 +157,12 @@ const tools = browser.getTools()
157
157
 
158
158
  ### Screencast
159
159
 
160
- #### `startScreencast(options?, threadId?)`
160
+ #### `startScreencast(options?)`
161
161
 
162
162
  Starts streaming browser frames. Returns a `ScreencastStream` that emits frame events.
163
163
 
164
164
  ```typescript
165
- const stream = await browser.startScreencast({ format: 'jpeg', quality: 80 }, 'thread-123')
165
+ const stream = await browser.startScreencast({ format: 'jpeg', quality: 80 })
166
166
 
167
167
  stream.on('frame', frame => {
168
168
  console.log('Frame received:', frame.data.length, 'bytes')
@@ -205,29 +205,31 @@ await browser.injectKeyboardEvent({
205
205
 
206
206
  ### State
207
207
 
208
- #### `getState(threadId?)`
208
+ #### `getBrowserState(threadId?)`
209
209
 
210
- Gets the current browser state including URL and tabs.
210
+ Gets the current browser state, including open tabs and the active tab index. Returns `null` when no state is available.
211
211
 
212
212
  ```typescript
213
- const state = await browser.getState('thread-123')
214
- console.log('Current URL:', state.currentUrl)
215
- console.log('Tabs:', state.tabs)
213
+ const state = await browser.getBrowserState('thread-123')
214
+ if (state) {
215
+ console.log('Active tab:', state.tabs[state.activeTabIndex]?.url)
216
+ console.log('Tabs:', state.tabs)
217
+ }
216
218
  ```
217
219
 
218
- **Returns:** `Promise<BrowserState>`
220
+ **Returns:** `Promise<BrowserState | null>`
219
221
 
220
222
  ```typescript
221
223
  interface BrowserState {
222
- currentUrl: string | null
223
224
  tabs: BrowserTabState[]
224
225
  activeTabIndex: number
226
+ closeReason?: 'agent' | 'user' | 'process_restart' | 'error'
227
+ activeUrlChangeSource?: 'agent' | 'user'
225
228
  }
226
229
 
227
230
  interface BrowserTabState {
228
- id: string
229
231
  url: string
230
- title: string
232
+ title?: string
231
233
  }
232
234
  ```
233
235