@mastra/mcp-docs-server 1.2.7-alpha.6 → 1.2.7-alpha.8
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.
- package/.docs/models/environment-variables.md +2 -0
- package/.docs/models/gateways/netlify.md +4 -1
- package/.docs/models/gateways/openrouter.md +7 -5
- package/.docs/models/gateways/vercel.md +5 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/crossmodel.md +109 -0
- package/.docs/models/providers/llmgateway.md +6 -1
- package/.docs/models/providers/meta.md +101 -0
- package/.docs/models/providers/nano-gpt.md +2 -2
- package/.docs/models/providers/openai.md +5 -1
- package/.docs/models/providers/poolside.md +6 -5
- package/.docs/models/providers/routing-run.md +20 -34
- package/.docs/models/providers/the-grid-ai.md +3 -3
- package/.docs/models/providers.md +2 -0
- package/CHANGELOG.md +7 -0
- package/package.json +5 -5
|
@@ -31,6 +31,7 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
31
31
|
| [Cloudflare Workers AI](https://mastra.ai/models/providers/cloudflare-workers-ai) | `cloudflare-workers-ai/*` | `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_API_KEY` |
|
|
32
32
|
| [Cortecs](https://mastra.ai/models/providers/cortecs) | `cortecs/*` | `CORTECS_API_KEY` |
|
|
33
33
|
| [CrofAI](https://mastra.ai/models/providers/crof) | `crof/*` | `CROF_API_KEY` |
|
|
34
|
+
| [CrossModel](https://mastra.ai/models/providers/crossmodel) | `crossmodel/*` | `CROSSMODEL_API_KEY` |
|
|
34
35
|
| [D.Run (China)](https://mastra.ai/models/providers/drun) | `drun/*` | `DRUN_API_KEY` |
|
|
35
36
|
| [Databricks](https://mastra.ai/models/providers/databricks) | `databricks/*` | `DATABRICKS_HOST`, `DATABRICKS_TOKEN` |
|
|
36
37
|
| [Deep Infra](https://mastra.ai/models/providers/deepinfra) | `deepinfra/*` | `DEEPINFRA_API_KEY` |
|
|
@@ -68,6 +69,7 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
68
69
|
| [LongCat](https://mastra.ai/models/providers/longcat) | `longcat/*` | `LONGCAT_API_KEY` |
|
|
69
70
|
| [LucidQuery](https://mastra.ai/models/providers/lucidquery) | `lucidquery/*` | `LUCIDQUERY_API_KEY` |
|
|
70
71
|
| [Meganova](https://mastra.ai/models/providers/meganova) | `meganova/*` | `MEGANOVA_API_KEY` |
|
|
72
|
+
| [Meta](https://mastra.ai/models/providers/meta) | `meta/*` | `META_MODEL_API_KEY` |
|
|
71
73
|
| [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax) | `minimax/*` | `MINIMAX_API_KEY` |
|
|
72
74
|
| [MiniMax (minimaxi.com)](https://mastra.ai/models/providers/minimax-cn) | `minimax-cn/*` | `MINIMAX_API_KEY` |
|
|
73
75
|
| [MiniMax Token Plan (minimax.io)](https://mastra.ai/models/providers/minimax-coding-plan) | `minimax-coding-plan/*` | `MINIMAX_API_KEY` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Netlify
|
|
4
4
|
|
|
5
|
-
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access
|
|
5
|
+
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 70 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
|
|
8
8
|
|
|
@@ -101,6 +101,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
101
101
|
| `openai/gpt-5.5-2026-04-23` |
|
|
102
102
|
| `openai/gpt-5.5-pro` |
|
|
103
103
|
| `openai/gpt-5.5-pro-2026-04-23` |
|
|
104
|
+
| `openai/gpt-5.6-luna` |
|
|
105
|
+
| `openai/gpt-5.6-sol` |
|
|
106
|
+
| `openai/gpt-5.6-terra` |
|
|
104
107
|
| `openai/o3` |
|
|
105
108
|
| `openai/o3-mini` |
|
|
106
109
|
| `openai/o4-mini` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenRouter
|
|
4
4
|
|
|
5
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
5
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 345 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
8
8
|
|
|
@@ -104,7 +104,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
104
104
|
| `google/gemini-2.5-flash` |
|
|
105
105
|
| `google/gemini-2.5-flash-image` |
|
|
106
106
|
| `google/gemini-2.5-flash-lite` |
|
|
107
|
-
| `google/gemini-2.5-flash-lite-preview-09-2025` |
|
|
108
107
|
| `google/gemini-2.5-pro` |
|
|
109
108
|
| `google/gemini-2.5-pro-preview` |
|
|
110
109
|
| `google/gemini-2.5-pro-preview-05-06` |
|
|
@@ -140,7 +139,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
140
139
|
| `inflection/inflection-3-pi` |
|
|
141
140
|
| `inflection/inflection-3-productivity` |
|
|
142
141
|
| `kwaipilot/kat-coder-pro-v2` |
|
|
143
|
-
| `liquid/lfm-2-24b-a2b` |
|
|
144
142
|
| `liquid/lfm-2.5-1.2b-instruct:free` |
|
|
145
143
|
| `liquid/lfm-2.5-1.2b-thinking:free` |
|
|
146
144
|
| `mancer/weaver` |
|
|
@@ -254,6 +252,12 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
254
252
|
| `openai/gpt-5.4-pro` |
|
|
255
253
|
| `openai/gpt-5.5` |
|
|
256
254
|
| `openai/gpt-5.5-pro` |
|
|
255
|
+
| `openai/gpt-5.6-luna` |
|
|
256
|
+
| `openai/gpt-5.6-luna-pro` |
|
|
257
|
+
| `openai/gpt-5.6-sol` |
|
|
258
|
+
| `openai/gpt-5.6-sol-pro` |
|
|
259
|
+
| `openai/gpt-5.6-terra` |
|
|
260
|
+
| `openai/gpt-5.6-terra-pro` |
|
|
257
261
|
| `openai/gpt-audio` |
|
|
258
262
|
| `openai/gpt-audio-mini` |
|
|
259
263
|
| `openai/gpt-chat-latest` |
|
|
@@ -287,8 +291,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
287
291
|
| `poolside/laguna-m.1:free` |
|
|
288
292
|
| `poolside/laguna-xs-2.1` |
|
|
289
293
|
| `poolside/laguna-xs-2.1:free` |
|
|
290
|
-
| `poolside/laguna-xs.2` |
|
|
291
|
-
| `poolside/laguna-xs.2:free` |
|
|
292
294
|
| `qwen/qwen-2.5-72b-instruct` |
|
|
293
295
|
| `qwen/qwen-2.5-7b-instruct` |
|
|
294
296
|
| `qwen/qwen-2.5-coder-32b-instruct` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vercel
|
|
4
4
|
|
|
5
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
5
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 305 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
|
|
8
8
|
|
|
@@ -177,6 +177,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
177
177
|
| `meta/llama-3.3-70b` |
|
|
178
178
|
| `meta/llama-4-maverick` |
|
|
179
179
|
| `meta/llama-4-scout` |
|
|
180
|
+
| `meta/muse-spark-1.1` |
|
|
180
181
|
| `minimax/minimax-m2` |
|
|
181
182
|
| `minimax/minimax-m2.1` |
|
|
182
183
|
| `minimax/minimax-m2.1-lightning` |
|
|
@@ -250,6 +251,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
250
251
|
| `openai/gpt-5.4-pro` |
|
|
251
252
|
| `openai/gpt-5.5` |
|
|
252
253
|
| `openai/gpt-5.5-pro` |
|
|
254
|
+
| `openai/gpt-5.6-luna` |
|
|
255
|
+
| `openai/gpt-5.6-sol` |
|
|
256
|
+
| `openai/gpt-5.6-terra` |
|
|
253
257
|
| `openai/gpt-image-1` |
|
|
254
258
|
| `openai/gpt-image-1-mini` |
|
|
255
259
|
| `openai/gpt-image-1.5` |
|
package/.docs/models/index.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Model Providers
|
|
4
4
|
|
|
5
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
5
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 4634 models from 143 providers through a single API.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# CrossModel
|
|
4
|
+
|
|
5
|
+
Access 37 CrossModel models through Mastra's model router. Authentication is handled automatically using the `CROSSMODEL_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [CrossModel documentation](https://www.crossmodel.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
CROSSMODEL_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "crossmodel/anthropic/claude-fable-5"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [CrossModel documentation](https://www.crossmodel.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `crossmodel/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `crossmodel/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `crossmodel/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
42
|
+
| `crossmodel/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `crossmodel/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
44
|
+
| `crossmodel/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
+
| `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
46
|
+
| `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
47
|
+
| `crossmodel/gemini/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
48
|
+
| `crossmodel/gemini/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
49
|
+
| `crossmodel/gemini/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
50
|
+
| `crossmodel/gemini/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
51
|
+
| `crossmodel/gemini/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
52
|
+
| `crossmodel/gemini/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
53
|
+
| `crossmodel/minimax/minimax-m2.7` | 205K | | | | | | $0.33 | $1 |
|
|
54
|
+
| `crossmodel/minimax/minimax-m3` | 1.0M | | | | | | $0.33 | $1 |
|
|
55
|
+
| `crossmodel/moonshot/kimi-k2.5` | 262K | | | | | | $0.62 | $3 |
|
|
56
|
+
| `crossmodel/moonshot/kimi-k2.6` | 262K | | | | | | $1 | $4 |
|
|
57
|
+
| `crossmodel/moonshot/kimi-k2.7-code` | 262K | | | | | | $1 | $4 |
|
|
58
|
+
| `crossmodel/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
59
|
+
| `crossmodel/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
60
|
+
| `crossmodel/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
61
|
+
| `crossmodel/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
62
|
+
| `crossmodel/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
63
|
+
| `crossmodel/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
64
|
+
| `crossmodel/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
65
|
+
| `crossmodel/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.32 | $2 |
|
|
66
|
+
| `crossmodel/qwen/qwen3.7-max` | 1.0M | | | | | | $2 | $6 |
|
|
67
|
+
| `crossmodel/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
68
|
+
| `crossmodel/tencent/hy3-preview` | 256K | | | | | | $0.19 | $0.63 |
|
|
69
|
+
| `crossmodel/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
70
|
+
| `crossmodel/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
71
|
+
| `crossmodel/z-ai/glm-4.7` | 200K | | | | | | $0.47 | $2 |
|
|
72
|
+
| `crossmodel/z-ai/glm-5` | 200K | | | | | | $0.60 | $3 |
|
|
73
|
+
| `crossmodel/z-ai/glm-5-turbo` | 200K | | | | | | $0.90 | $4 |
|
|
74
|
+
| `crossmodel/z-ai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
75
|
+
| `crossmodel/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
76
|
+
|
|
77
|
+
## Advanced configuration
|
|
78
|
+
|
|
79
|
+
### Custom headers
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
const agent = new Agent({
|
|
83
|
+
id: "custom-agent",
|
|
84
|
+
name: "custom-agent",
|
|
85
|
+
model: {
|
|
86
|
+
url: "https://api.crossmodel.ai/v1",
|
|
87
|
+
id: "crossmodel/anthropic/claude-fable-5",
|
|
88
|
+
apiKey: process.env.CROSSMODEL_API_KEY,
|
|
89
|
+
headers: {
|
|
90
|
+
"X-Custom-Header": "value"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Dynamic model selection
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
const agent = new Agent({
|
|
100
|
+
id: "dynamic-agent",
|
|
101
|
+
name: "Dynamic Agent",
|
|
102
|
+
model: ({ requestContext }) => {
|
|
103
|
+
const useAdvanced = requestContext.task === "complex";
|
|
104
|
+
return useAdvanced
|
|
105
|
+
? "crossmodel/z-ai/glm-5.2"
|
|
106
|
+
: "crossmodel/anthropic/claude-fable-5";
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# LLM Gateway
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 182 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
8
8
|
|
|
@@ -81,6 +81,7 @@ for await (const chunk of stream) {
|
|
|
81
81
|
| `llmgateway/glm-4.7-flash` | 200K | | | | | | $0.06 | $0.40 |
|
|
82
82
|
| `llmgateway/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.40 |
|
|
83
83
|
| `llmgateway/glm-5` | 203K | | | | | | $0.72 | $2 |
|
|
84
|
+
| `llmgateway/glm-5-2` | 1.0M | | | | | | $1 | $4 |
|
|
84
85
|
| `llmgateway/glm-5.1` | 205K | | | | | | $0.93 | $3 |
|
|
85
86
|
| `llmgateway/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
86
87
|
| `llmgateway/gpt-3.5-turbo` | 16K | | | | | | $0.50 | $2 |
|
|
@@ -113,6 +114,9 @@ for await (const chunk of stream) {
|
|
|
113
114
|
| `llmgateway/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
114
115
|
| `llmgateway/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
115
116
|
| `llmgateway/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
117
|
+
| `llmgateway/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
118
|
+
| `llmgateway/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
119
|
+
| `llmgateway/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
116
120
|
| `llmgateway/gpt-oss-120b` | 131K | | | | | | $0.05 | $0.25 |
|
|
117
121
|
| `llmgateway/gpt-oss-20b` | 131K | | | | | | $0.04 | $0.15 |
|
|
118
122
|
| `llmgateway/grok-4` | 256K | | | | | | $3 | $15 |
|
|
@@ -200,6 +204,7 @@ for await (const chunk of stream) {
|
|
|
200
204
|
| `llmgateway/qwen3-vl-plus` | 262K | | | | | | $0.20 | $2 |
|
|
201
205
|
| `llmgateway/qwen3.5-9b` | 262K | | | | | | $0.10 | $0.15 |
|
|
202
206
|
| `llmgateway/qwen3.6-35b-a3b` | 262K | | | | | | $0.25 | $1 |
|
|
207
|
+
| `llmgateway/qwen3.6-flash` | 262K | | | | | | $0.15 | $0.90 |
|
|
203
208
|
| `llmgateway/qwen3.6-max-preview` | 262K | | | | | | $1 | $8 |
|
|
204
209
|
| `llmgateway/qwen3.6-plus` | 262K | | | | | | $0.50 | $3 |
|
|
205
210
|
| `llmgateway/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Meta
|
|
4
|
+
|
|
5
|
+
Access 1 Meta model through Mastra's model router. Authentication is handled automatically using the `META_MODEL_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Meta documentation](https://dev.meta.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
META_MODEL_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "meta/muse-spark-1.1"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Meta documentation](https://dev.meta.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
40
|
+
|
|
41
|
+
## Advanced configuration
|
|
42
|
+
|
|
43
|
+
### Custom headers
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
const agent = new Agent({
|
|
47
|
+
id: "custom-agent",
|
|
48
|
+
name: "custom-agent",
|
|
49
|
+
model: {
|
|
50
|
+
url: "https://api.meta.ai/v1",
|
|
51
|
+
id: "meta/muse-spark-1.1",
|
|
52
|
+
apiKey: process.env.META_MODEL_API_KEY,
|
|
53
|
+
headers: {
|
|
54
|
+
"X-Custom-Header": "value"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Dynamic model selection
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
const agent = new Agent({
|
|
64
|
+
id: "dynamic-agent",
|
|
65
|
+
name: "Dynamic Agent",
|
|
66
|
+
model: ({ requestContext }) => {
|
|
67
|
+
const useAdvanced = requestContext.task === "complex";
|
|
68
|
+
return useAdvanced
|
|
69
|
+
? "meta/muse-spark-1.1"
|
|
70
|
+
: "meta/muse-spark-1.1";
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Direct provider installation
|
|
76
|
+
|
|
77
|
+
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
78
|
+
|
|
79
|
+
**npm**:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
npm install @ai-sdk/openai
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**pnpm**:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
pnpm add @ai-sdk/openai
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
**Yarn**:
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
yarn add @ai-sdk/openai
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Bun**:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
bun add @ai-sdk/openai
|
|
101
|
+
```
|
|
@@ -430,8 +430,8 @@ for await (const chunk of stream) {
|
|
|
430
430
|
| `nano-gpt/perceptron/perceptron-mk1` | 33K | | | | | | $0.15 | $2 |
|
|
431
431
|
| `nano-gpt/phi-4-mini-instruct` | 128K | | | | | | $0.17 | $0.68 |
|
|
432
432
|
| `nano-gpt/phi-4-multimodal-instruct` | 128K | | | | | | $0.07 | $0.11 |
|
|
433
|
-
| `nano-gpt/poolside/laguna-m.1` |
|
|
434
|
-
| `nano-gpt/poolside/laguna-xs.2` |
|
|
433
|
+
| `nano-gpt/poolside/laguna-m.1` | 262K | | | | | | $0.20 | $0.40 |
|
|
434
|
+
| `nano-gpt/poolside/laguna-xs.2` | 262K | | | | | | $0.20 | $0.40 |
|
|
435
435
|
| `nano-gpt/qvq-max` | 128K | | | | | | $1 | $5 |
|
|
436
436
|
| `nano-gpt/qwen-3.6-plus` | 992K | | | | | | $0.45 | $3 |
|
|
437
437
|
| `nano-gpt/qwen-long` | 10.0M | | | | | | $0.10 | $0.41 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenAI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 55 OpenAI models through Mastra's model router. Authentication is handled automatically using the `OPENAI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenAI documentation](https://platform.openai.com/docs/models).
|
|
8
8
|
|
|
@@ -70,6 +70,10 @@ for await (const chunk of stream) {
|
|
|
70
70
|
| `openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
71
71
|
| `openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
72
72
|
| `openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
73
|
+
| `openai/gpt-5.6` | 1.1M | | | | | | $5 | $30 |
|
|
74
|
+
| `openai/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
75
|
+
| `openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
76
|
+
| `openai/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
73
77
|
| `openai/gpt-image-1` | — | | | | | | — | — |
|
|
74
78
|
| `openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
75
79
|
| `openai/gpt-image-1.5` | — | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Poolside
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 3 Poolside models through Mastra's model router. Authentication is handled automatically using the `POOLSIDE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Poolside documentation](https://platform.poolside.ai).
|
|
8
8
|
|
|
@@ -34,10 +34,11 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `poolside/poolside/laguna-m.1`
|
|
40
|
-
| `poolside/poolside/laguna-xs.
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `poolside/poolside/laguna-m.1` | 262K | | | | | | — | — |
|
|
40
|
+
| `poolside/poolside/laguna-xs-2.1` | 262K | | | | | | — | — |
|
|
41
|
+
| `poolside/poolside/laguna-xs.2` | 262K | | | | | | — | — |
|
|
41
42
|
|
|
42
43
|
## Advanced configuration
|
|
43
44
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# routing.run
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 12 routing.run models through Mastra's model router. Authentication is handled automatically using the `ROUTING_RUN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [routing.run documentation](https://docs.routing.run).
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ const agent = new Agent({
|
|
|
17
17
|
id: "my-agent",
|
|
18
18
|
name: "My Agent",
|
|
19
19
|
instructions: "You are a helpful assistant",
|
|
20
|
-
model: "routing-run/
|
|
20
|
+
model: "routing-run/claude-opus-4-8"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -34,34 +34,20 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `routing-run/
|
|
40
|
-
| `routing-run/
|
|
41
|
-
| `routing-run/
|
|
42
|
-
| `routing-run/
|
|
43
|
-
| `routing-run/
|
|
44
|
-
| `routing-run/
|
|
45
|
-
| `routing-run/
|
|
46
|
-
| `routing-run/
|
|
47
|
-
| `routing-run/
|
|
48
|
-
| `routing-run/
|
|
49
|
-
| `routing-run/
|
|
50
|
-
| `routing-run/
|
|
51
|
-
| `routing-run/route/mimo-v2.5-pro` | 1.0M | | | | | | $0.45 | $1 |
|
|
52
|
-
| `routing-run/route/mimo-v2.5-pro-6bit` | 1.0M | | | | | | $0.45 | $1 |
|
|
53
|
-
| `routing-run/route/minimax-m2.5` | 100K | | | | | | $0.19 | $1 |
|
|
54
|
-
| `routing-run/route/minimax-m2.5-highspeed` | 100K | | | | | | $0.19 | $1 |
|
|
55
|
-
| `routing-run/route/minimax-m2.7` | 100K | | | | | | $0.33 | $1 |
|
|
56
|
-
| `routing-run/route/minimax-m2.7-highspeed` | 100K | | | | | | $0.33 | $1 |
|
|
57
|
-
| `routing-run/route/mistral-large-3` | 128K | | | | | | $0.50 | $2 |
|
|
58
|
-
| `routing-run/route/mistral-medium-2505` | 128K | | | | | | $0.40 | $2 |
|
|
59
|
-
| `routing-run/route/mistral-small-2503` | 128K | | | | | | $0.15 | $0.60 |
|
|
60
|
-
| `routing-run/route/qwen3.6-27b` | 202K | | | | | | $1 | $3 |
|
|
61
|
-
| `routing-run/route/qwen3.6-27b-202k` | 202K | | | | | | $1 | $3 |
|
|
62
|
-
| `routing-run/route/step-3.5-flash` | 262K | | | | | | $0.10 | $0.29 |
|
|
63
|
-
| `routing-run/route/step-3.5-flash-2603` | 262K | | | | | | $0.10 | $0.30 |
|
|
64
|
-
| `routing-run/route/stepfun-3.5-flash` | 262K | | | | | | $0.10 | $0.29 |
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ---------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `routing-run/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
40
|
+
| `routing-run/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
41
|
+
| `routing-run/deepseek-v4-flash` | 1.0M | | | | | | $0.11 | $0.22 |
|
|
42
|
+
| `routing-run/deepseek-v4-pro` | 1.0M | | | | | | $0.35 | $0.70 |
|
|
43
|
+
| `routing-run/glm-5.2` | 200K | | | | | | $0.80 | $2 |
|
|
44
|
+
| `routing-run/glm-5.2-nitro` | 200K | | | | | | $0.80 | $2 |
|
|
45
|
+
| `routing-run/kimi-k2.6` | 200K | | | | | | $0.28 | $1 |
|
|
46
|
+
| `routing-run/kimi-k2.6-nitro` | 200K | | | | | | $0.28 | $1 |
|
|
47
|
+
| `routing-run/kimi-k2.7-code` | 200K | | | | | | $0.28 | $1 |
|
|
48
|
+
| `routing-run/kimi-k2.7-code-nitro` | 200K | | | | | | $0.28 | $1 |
|
|
49
|
+
| `routing-run/nemotron-3-ultra` | 131K | | | | | | $0.10 | $0.10 |
|
|
50
|
+
| `routing-run/qwen3.5-9b` | 262K | | | | | | $0.16 | $0.48 |
|
|
65
51
|
|
|
66
52
|
## Advanced configuration
|
|
67
53
|
|
|
@@ -72,8 +58,8 @@ const agent = new Agent({
|
|
|
72
58
|
id: "custom-agent",
|
|
73
59
|
name: "custom-agent",
|
|
74
60
|
model: {
|
|
75
|
-
url: "https://
|
|
76
|
-
id: "routing-run/
|
|
61
|
+
url: "https://api.routing.run/v1",
|
|
62
|
+
id: "routing-run/claude-opus-4-8",
|
|
77
63
|
apiKey: process.env.ROUTING_RUN_API_KEY,
|
|
78
64
|
headers: {
|
|
79
65
|
"X-Custom-Header": "value"
|
|
@@ -91,8 +77,8 @@ const agent = new Agent({
|
|
|
91
77
|
model: ({ requestContext }) => {
|
|
92
78
|
const useAdvanced = requestContext.task === "complex";
|
|
93
79
|
return useAdvanced
|
|
94
|
-
? "routing-run/
|
|
95
|
-
: "routing-run/
|
|
80
|
+
? "routing-run/qwen3.5-9b"
|
|
81
|
+
: "routing-run/claude-opus-4-8";
|
|
96
82
|
}
|
|
97
83
|
});
|
|
98
84
|
```
|
|
@@ -37,13 +37,13 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ---------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `the-grid-ai/agent-max` | 1.0M | | | | | | — | — |
|
|
40
|
-
| `the-grid-ai/agent-prime` |
|
|
40
|
+
| `the-grid-ai/agent-prime` | 197K | | | | | | — | — |
|
|
41
41
|
| `the-grid-ai/agent-standard` | 128K | | | | | | — | — |
|
|
42
42
|
| `the-grid-ai/code-max` | 1.0M | | | | | | — | — |
|
|
43
|
-
| `the-grid-ai/code-prime` |
|
|
43
|
+
| `the-grid-ai/code-prime` | 197K | | | | | | — | — |
|
|
44
44
|
| `the-grid-ai/code-standard` | 128K | | | | | | — | — |
|
|
45
45
|
| `the-grid-ai/text-max` | 1.0M | | | | | | — | — |
|
|
46
|
-
| `the-grid-ai/text-prime` |
|
|
46
|
+
| `the-grid-ai/text-prime` | 197K | | | | | | — | — |
|
|
47
47
|
| `the-grid-ai/text-standard` | 128K | | | | | | — | — |
|
|
48
48
|
|
|
49
49
|
## Advanced configuration
|
|
@@ -35,6 +35,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
35
35
|
- [Cloudflare Workers AI](https://mastra.ai/models/providers/cloudflare-workers-ai)
|
|
36
36
|
- [Cortecs](https://mastra.ai/models/providers/cortecs)
|
|
37
37
|
- [CrofAI](https://mastra.ai/models/providers/crof)
|
|
38
|
+
- [CrossModel](https://mastra.ai/models/providers/crossmodel)
|
|
38
39
|
- [D.Run (China)](https://mastra.ai/models/providers/drun)
|
|
39
40
|
- [Databricks](https://mastra.ai/models/providers/databricks)
|
|
40
41
|
- [Deep Infra](https://mastra.ai/models/providers/deepinfra)
|
|
@@ -69,6 +70,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
69
70
|
- [LongCat](https://mastra.ai/models/providers/longcat)
|
|
70
71
|
- [LucidQuery](https://mastra.ai/models/providers/lucidquery)
|
|
71
72
|
- [Meganova](https://mastra.ai/models/providers/meganova)
|
|
73
|
+
- [Meta](https://mastra.ai/models/providers/meta)
|
|
72
74
|
- [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax)
|
|
73
75
|
- [MiniMax (minimaxi.com)](https://mastra.ai/models/providers/minimax-cn)
|
|
74
76
|
- [MiniMax Token Plan (minimax.io)](https://mastra.ai/models/providers/minimax-coding-plan)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.2.7-alpha.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`177010f`](https://github.com/mastra-ai/mastra/commit/177010ff096d2e4b28d89803be5b1a4cad2a0d6b), [`54a51e0`](https://github.com/mastra-ai/mastra/commit/54a51e0a484fe1ebad3fb1f7ef5282a075709eb7)]:
|
|
8
|
+
- @mastra/core@1.51.0-alpha.3
|
|
9
|
+
|
|
3
10
|
## 1.2.7-alpha.5
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.2.7-alpha.
|
|
3
|
+
"version": "1.2.7-alpha.8",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"jsdom": "^26.1.0",
|
|
29
29
|
"local-pkg": "^1.1.2",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@mastra/
|
|
32
|
-
"@mastra/
|
|
31
|
+
"@mastra/core": "1.51.0-alpha.3",
|
|
32
|
+
"@mastra/mcp": "^1.13.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hono/node-server": "^1.19.11",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"tsx": "^4.22.4",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"vitest": "4.1.9",
|
|
48
|
-
"@internal/lint": "0.0.113",
|
|
49
48
|
"@internal/types-builder": "0.0.88",
|
|
50
|
-
"@
|
|
49
|
+
"@internal/lint": "0.0.113",
|
|
50
|
+
"@mastra/core": "1.51.0-alpha.3"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|
|
53
53
|
"repository": {
|