@mastra/mcp-docs-server 1.1.29-alpha.3 → 1.1.29-alpha.4
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/gateways/openrouter.md +3 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-cn.md +2 -1
- package/.docs/models/providers/deepseek.md +2 -2
- package/.docs/models/providers/llmgateway.md +4 -1
- package/.docs/models/providers/nvidia.md +2 -1
- package/.docs/models/providers/opencode-go.md +1 -1
- package/.docs/models/providers/opencode.md +1 -2
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/xiaomi-token-plan-ams.md +9 -7
- package/.docs/models/providers/xiaomi-token-plan-cn.md +9 -7
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +9 -7
- package/.docs/models/providers/xiaomi.md +4 -2
- package/.docs/models/providers/zai-coding-plan.md +11 -20
- package/.docs/models/providers/zhipuai-coding-plan.md +11 -21
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenRouter
|
|
2
2
|
|
|
3
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
3
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 177 models through Mastra's model router.
|
|
4
4
|
|
|
5
5
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
6
6
|
|
|
@@ -198,6 +198,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
198
198
|
| `xiaomi/mimo-v2-flash` |
|
|
199
199
|
| `xiaomi/mimo-v2-omni` |
|
|
200
200
|
| `xiaomi/mimo-v2-pro` |
|
|
201
|
+
| `xiaomi/mimo-v2.5` |
|
|
202
|
+
| `xiaomi/mimo-v2.5-pro` |
|
|
201
203
|
| `z-ai/glm-4.5` |
|
|
202
204
|
| `z-ai/glm-4.5-air` |
|
|
203
205
|
| `z-ai/glm-4.5-air:free` |
|
package/.docs/models/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Model Providers
|
|
2
2
|
|
|
3
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
3
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 3739 models from 104 providers through a single API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Alibaba (China)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 78 Alibaba (China) models through Mastra's model router. Authentication is handled automatically using the `DASHSCOPE_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Alibaba (China) documentation](https://www.alibabacloud.com/help/en/model-studio/models).
|
|
6
6
|
|
|
@@ -103,6 +103,7 @@ for await (const chunk of stream) {
|
|
|
103
103
|
| `alibaba-cn/qwen3.5-397b-a17b` | 262K | | | | | | $0.43 | $3 |
|
|
104
104
|
| `alibaba-cn/qwen3.5-flash` | 1.0M | | | | | | $0.17 | $2 |
|
|
105
105
|
| `alibaba-cn/qwen3.5-plus` | 1.0M | | | | | | $0.57 | $3 |
|
|
106
|
+
| `alibaba-cn/qwen3.6-max-preview` | 246K | | | | | | $1 | $8 |
|
|
106
107
|
| `alibaba-cn/qwen3.6-plus` | 1.0M | | | | | | $0.28 | $2 |
|
|
107
108
|
| `alibaba-cn/qwq-32b` | 131K | | | | | | $0.29 | $0.86 |
|
|
108
109
|
| `alibaba-cn/qwq-plus` | 131K | | | | | | $0.23 | $0.57 |
|
|
@@ -32,8 +32,8 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
34
34
|
| ---------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
35
|
-
| `deepseek/deepseek-chat` |
|
|
36
|
-
| `deepseek/deepseek-reasoner` |
|
|
35
|
+
| `deepseek/deepseek-chat` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
36
|
+
| `deepseek/deepseek-reasoner` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
37
37
|
| `deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
38
38
|
| `deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
39
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LLM Gateway
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 184 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
6
6
|
|
|
@@ -55,6 +55,8 @@ for await (const chunk of stream) {
|
|
|
55
55
|
| `llmgateway/deepseek-r1-0528` | 64K | | | | | | $0.80 | $2 |
|
|
56
56
|
| `llmgateway/deepseek-v3.1` | 128K | | | | | | $0.56 | $2 |
|
|
57
57
|
| `llmgateway/deepseek-v3.2` | 164K | | | | | | $0.28 | $0.42 |
|
|
58
|
+
| `llmgateway/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
59
|
+
| `llmgateway/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
58
60
|
| `llmgateway/devstral-2512` | 262K | | | | | | $0.40 | $2 |
|
|
59
61
|
| `llmgateway/devstral-small-2507` | 128K | | | | | | $0.10 | $0.30 |
|
|
60
62
|
| `llmgateway/gemini-2.0-flash` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
@@ -137,6 +139,7 @@ for await (const chunk of stream) {
|
|
|
137
139
|
| `llmgateway/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
|
|
138
140
|
| `llmgateway/kimi-k2-thinking-turbo` | 262K | | | | | | $1 | $8 |
|
|
139
141
|
| `llmgateway/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
142
|
+
| `llmgateway/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
140
143
|
| `llmgateway/llama-3-70b-instruct` | 8K | | | | | | $0.51 | $0.74 |
|
|
141
144
|
| `llmgateway/llama-3-8b-instruct` | 8K | | | | | | $0.04 | $0.04 |
|
|
142
145
|
| `llmgateway/llama-3.1-70b-instruct` | 128K | | | | | | $0.72 | $0.72 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Nvidia
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 79 Nvidia models through Mastra's model router. Authentication is handled automatically using the `NVIDIA_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Nvidia documentation](https://docs.api.nvidia.com/nim/).
|
|
6
6
|
|
|
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `nvidia/deepseek-ai/deepseek-v3.1` | 128K | | | | | | — | — |
|
|
42
42
|
| `nvidia/deepseek-ai/deepseek-v3.1-terminus` | 128K | | | | | | — | — |
|
|
43
43
|
| `nvidia/deepseek-ai/deepseek-v3.2` | 164K | | | | | | — | — |
|
|
44
|
+
| `nvidia/deepseek-ai/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
44
45
|
| `nvidia/deepseek-ai/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
45
46
|
| `nvidia/google/codegemma-1.1-7b` | 128K | | | | | | — | — |
|
|
46
47
|
| `nvidia/google/codegemma-7b` | 128K | | | | | | — | — |
|
|
@@ -42,7 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `opencode-go/kimi-k2.6` | 262K | | | | | | $0.32 | $1 |
|
|
43
43
|
| `opencode-go/mimo-v2-omni` | 262K | | | | | | $0.40 | $2 |
|
|
44
44
|
| `opencode-go/mimo-v2-pro` | 1.0M | | | | | | $1 | $3 |
|
|
45
|
-
| `opencode-go/mimo-v2.5` |
|
|
45
|
+
| `opencode-go/mimo-v2.5` | 1.0M | | | | | | $0.40 | $2 |
|
|
46
46
|
| `opencode-go/mimo-v2.5-pro` | 1.0M | | | | | | $1 | $3 |
|
|
47
47
|
| `opencode-go/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
48
48
|
| `opencode-go/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenCode Zen
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 40 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
|
|
6
6
|
|
|
@@ -35,7 +35,6 @@ for await (const chunk of stream) {
|
|
|
35
35
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
36
|
| -------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
37
|
| `opencode/big-pickle` | 200K | | | | | | — | — |
|
|
38
|
-
| `opencode/claude-3-5-haiku` | 200K | | | | | | $0.80 | $4 |
|
|
39
38
|
| `opencode/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
40
39
|
| `opencode/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
41
40
|
| `opencode/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Together AI
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 17 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
6
6
|
|
|
@@ -35,6 +35,7 @@ for await (const chunk of stream) {
|
|
|
35
35
|
| `togetherai/deepseek-ai/DeepSeek-R1` | 164K | | | | | | $3 | $7 |
|
|
36
36
|
| `togetherai/deepseek-ai/DeepSeek-V3` | 131K | | | | | | $1 | $1 |
|
|
37
37
|
| `togetherai/deepseek-ai/DeepSeek-V3-1` | 131K | | | | | | $0.60 | $2 |
|
|
38
|
+
| `togetherai/deepseek-ai/DeepSeek-V4-Pro` | 512K | | | | | | $2 | $4 |
|
|
38
39
|
| `togetherai/essentialai/Rnj-1-Instruct` | 33K | | | | | | $0.15 | $0.15 |
|
|
39
40
|
| `togetherai/google/gemma-4-31B-it` | 262K | | | | | | $0.20 | $0.50 |
|
|
40
41
|
| `togetherai/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $0.88 | $0.88 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Xiaomi Token Plan (Europe)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 5 Xiaomi Token Plan (Europe) models through Mastra's model router. Authentication is handled automatically using the `XIAOMI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Xiaomi Token Plan (Europe) documentation](https://platform.xiaomimimo.com/#/docs).
|
|
6
6
|
|
|
@@ -32,11 +32,13 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `xiaomi-token-plan-ams/mimo-v2-omni`
|
|
38
|
-
| `xiaomi-token-plan-ams/mimo-v2-pro`
|
|
39
|
-
| `xiaomi-token-plan-ams/mimo-v2-tts`
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `xiaomi-token-plan-ams/mimo-v2-omni` | 256K | | | | | | — | — |
|
|
38
|
+
| `xiaomi-token-plan-ams/mimo-v2-pro` | 1.0M | | | | | | — | — |
|
|
39
|
+
| `xiaomi-token-plan-ams/mimo-v2-tts` | 8K | | | | | | — | — |
|
|
40
|
+
| `xiaomi-token-plan-ams/mimo-v2.5` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `xiaomi-token-plan-ams/mimo-v2.5-pro` | 1.0M | | | | | | — | — |
|
|
40
42
|
|
|
41
43
|
## Advanced configuration
|
|
42
44
|
|
|
@@ -66,7 +68,7 @@ const agent = new Agent({
|
|
|
66
68
|
model: ({ requestContext }) => {
|
|
67
69
|
const useAdvanced = requestContext.task === "complex";
|
|
68
70
|
return useAdvanced
|
|
69
|
-
? "xiaomi-token-plan-ams/mimo-v2-
|
|
71
|
+
? "xiaomi-token-plan-ams/mimo-v2.5-pro"
|
|
70
72
|
: "xiaomi-token-plan-ams/mimo-v2-omni";
|
|
71
73
|
}
|
|
72
74
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Xiaomi Token Plan (China)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 5 Xiaomi Token Plan (China) models through Mastra's model router. Authentication is handled automatically using the `XIAOMI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Xiaomi Token Plan (China) documentation](https://platform.xiaomimimo.com/#/docs).
|
|
6
6
|
|
|
@@ -32,11 +32,13 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `xiaomi-token-plan-cn/mimo-v2-omni`
|
|
38
|
-
| `xiaomi-token-plan-cn/mimo-v2-pro`
|
|
39
|
-
| `xiaomi-token-plan-cn/mimo-v2-tts`
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `xiaomi-token-plan-cn/mimo-v2-omni` | 256K | | | | | | — | — |
|
|
38
|
+
| `xiaomi-token-plan-cn/mimo-v2-pro` | 1.0M | | | | | | — | — |
|
|
39
|
+
| `xiaomi-token-plan-cn/mimo-v2-tts` | 8K | | | | | | — | — |
|
|
40
|
+
| `xiaomi-token-plan-cn/mimo-v2.5` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `xiaomi-token-plan-cn/mimo-v2.5-pro` | 1.0M | | | | | | — | — |
|
|
40
42
|
|
|
41
43
|
## Advanced configuration
|
|
42
44
|
|
|
@@ -66,7 +68,7 @@ const agent = new Agent({
|
|
|
66
68
|
model: ({ requestContext }) => {
|
|
67
69
|
const useAdvanced = requestContext.task === "complex";
|
|
68
70
|
return useAdvanced
|
|
69
|
-
? "xiaomi-token-plan-cn/mimo-v2-
|
|
71
|
+
? "xiaomi-token-plan-cn/mimo-v2.5-pro"
|
|
70
72
|
: "xiaomi-token-plan-cn/mimo-v2-omni";
|
|
71
73
|
}
|
|
72
74
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Xiaomi Token Plan (Singapore)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 5 Xiaomi Token Plan (Singapore) models through Mastra's model router. Authentication is handled automatically using the `XIAOMI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Xiaomi Token Plan (Singapore) documentation](https://platform.xiaomimimo.com/#/docs).
|
|
6
6
|
|
|
@@ -32,11 +32,13 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `xiaomi-token-plan-sgp/mimo-v2-omni`
|
|
38
|
-
| `xiaomi-token-plan-sgp/mimo-v2-pro`
|
|
39
|
-
| `xiaomi-token-plan-sgp/mimo-v2-tts`
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `xiaomi-token-plan-sgp/mimo-v2-omni` | 256K | | | | | | — | — |
|
|
38
|
+
| `xiaomi-token-plan-sgp/mimo-v2-pro` | 1.0M | | | | | | — | — |
|
|
39
|
+
| `xiaomi-token-plan-sgp/mimo-v2-tts` | 8K | | | | | | — | — |
|
|
40
|
+
| `xiaomi-token-plan-sgp/mimo-v2.5` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `xiaomi-token-plan-sgp/mimo-v2.5-pro` | 1.0M | | | | | | — | — |
|
|
40
42
|
|
|
41
43
|
## Advanced configuration
|
|
42
44
|
|
|
@@ -66,7 +68,7 @@ const agent = new Agent({
|
|
|
66
68
|
model: ({ requestContext }) => {
|
|
67
69
|
const useAdvanced = requestContext.task === "complex";
|
|
68
70
|
return useAdvanced
|
|
69
|
-
? "xiaomi-token-plan-sgp/mimo-v2-
|
|
71
|
+
? "xiaomi-token-plan-sgp/mimo-v2.5-pro"
|
|
70
72
|
: "xiaomi-token-plan-sgp/mimo-v2-omni";
|
|
71
73
|
}
|
|
72
74
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Xiaomi
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 5 Xiaomi models through Mastra's model router. Authentication is handled automatically using the `XIAOMI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Xiaomi documentation](https://platform.xiaomimimo.com/#/docs).
|
|
6
6
|
|
|
@@ -37,6 +37,8 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| `xiaomi/mimo-v2-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
38
38
|
| `xiaomi/mimo-v2-omni` | 256K | | | | | | $0.40 | $2 |
|
|
39
39
|
| `xiaomi/mimo-v2-pro` | 1.0M | | | | | | $1 | $3 |
|
|
40
|
+
| `xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.40 | $2 |
|
|
41
|
+
| `xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $1 | $3 |
|
|
40
42
|
|
|
41
43
|
## Advanced configuration
|
|
42
44
|
|
|
@@ -66,7 +68,7 @@ const agent = new Agent({
|
|
|
66
68
|
model: ({ requestContext }) => {
|
|
67
69
|
const useAdvanced = requestContext.task === "complex";
|
|
68
70
|
return useAdvanced
|
|
69
|
-
? "xiaomi/mimo-v2-pro"
|
|
71
|
+
? "xiaomi/mimo-v2.5-pro"
|
|
70
72
|
: "xiaomi/mimo-v2-flash";
|
|
71
73
|
}
|
|
72
74
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Z.AI Coding Plan
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 4 Z.AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Z.AI Coding Plan documentation](https://docs.z.ai/devpack/overview).
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ const agent = new Agent({
|
|
|
15
15
|
id: "my-agent",
|
|
16
16
|
name: "My Agent",
|
|
17
17
|
instructions: "You are a helpful assistant",
|
|
18
|
-
model: "zai-coding-plan/glm-4.5"
|
|
18
|
+
model: "zai-coding-plan/glm-4.5-air"
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Generate a response
|
|
@@ -32,21 +32,12 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `zai-coding-plan/glm-4.5`
|
|
38
|
-
| `zai-coding-plan/glm-4.
|
|
39
|
-
| `zai-coding-plan/glm-
|
|
40
|
-
| `zai-coding-plan/glm-
|
|
41
|
-
| `zai-coding-plan/glm-4.6` | 205K | | | | | | — | — |
|
|
42
|
-
| `zai-coding-plan/glm-4.6v` | 128K | | | | | | — | — |
|
|
43
|
-
| `zai-coding-plan/glm-4.7` | 205K | | | | | | — | — |
|
|
44
|
-
| `zai-coding-plan/glm-4.7-flash` | 200K | | | | | | — | — |
|
|
45
|
-
| `zai-coding-plan/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.40 |
|
|
46
|
-
| `zai-coding-plan/glm-5` | 205K | | | | | | — | — |
|
|
47
|
-
| `zai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
|
|
48
|
-
| `zai-coding-plan/glm-5.1` | 200K | | | | | | — | — |
|
|
49
|
-
| `zai-coding-plan/glm-5v-turbo` | 200K | | | | | | — | — |
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ----------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `zai-coding-plan/glm-4.5-air` | 131K | | | | | | — | — |
|
|
38
|
+
| `zai-coding-plan/glm-4.7` | 205K | | | | | | — | — |
|
|
39
|
+
| `zai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
|
|
40
|
+
| `zai-coding-plan/glm-5.1` | 200K | | | | | | — | — |
|
|
50
41
|
|
|
51
42
|
## Advanced configuration
|
|
52
43
|
|
|
@@ -58,7 +49,7 @@ const agent = new Agent({
|
|
|
58
49
|
name: "custom-agent",
|
|
59
50
|
model: {
|
|
60
51
|
url: "https://api.z.ai/api/coding/paas/v4",
|
|
61
|
-
id: "zai-coding-plan/glm-4.5",
|
|
52
|
+
id: "zai-coding-plan/glm-4.5-air",
|
|
62
53
|
apiKey: process.env.ZHIPU_API_KEY,
|
|
63
54
|
headers: {
|
|
64
55
|
"X-Custom-Header": "value"
|
|
@@ -76,8 +67,8 @@ const agent = new Agent({
|
|
|
76
67
|
model: ({ requestContext }) => {
|
|
77
68
|
const useAdvanced = requestContext.task === "complex";
|
|
78
69
|
return useAdvanced
|
|
79
|
-
? "zai-coding-plan/glm-
|
|
80
|
-
: "zai-coding-plan/glm-4.5";
|
|
70
|
+
? "zai-coding-plan/glm-5.1"
|
|
71
|
+
: "zai-coding-plan/glm-4.5-air";
|
|
81
72
|
}
|
|
82
73
|
});
|
|
83
74
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Zhipu AI Coding Plan
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 4 Zhipu AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Zhipu AI Coding Plan documentation](https://docs.bigmodel.cn/cn/coding-plan/overview).
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ const agent = new Agent({
|
|
|
15
15
|
id: "my-agent",
|
|
16
16
|
name: "My Agent",
|
|
17
17
|
instructions: "You are a helpful assistant",
|
|
18
|
-
model: "zhipuai-coding-plan/glm-4.5"
|
|
18
|
+
model: "zhipuai-coding-plan/glm-4.5-air"
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Generate a response
|
|
@@ -32,22 +32,12 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `zhipuai-coding-plan/glm-4.5`
|
|
38
|
-
| `zhipuai-coding-plan/glm-4.
|
|
39
|
-
| `zhipuai-coding-plan/glm-
|
|
40
|
-
| `zhipuai-coding-plan/glm-
|
|
41
|
-
| `zhipuai-coding-plan/glm-4.6` | 205K | | | | | | — | — |
|
|
42
|
-
| `zhipuai-coding-plan/glm-4.6v` | 128K | | | | | | — | — |
|
|
43
|
-
| `zhipuai-coding-plan/glm-4.6v-flash` | 128K | | | | | | — | — |
|
|
44
|
-
| `zhipuai-coding-plan/glm-4.7` | 205K | | | | | | — | — |
|
|
45
|
-
| `zhipuai-coding-plan/glm-4.7-flash` | 200K | | | | | | — | — |
|
|
46
|
-
| `zhipuai-coding-plan/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.40 |
|
|
47
|
-
| `zhipuai-coding-plan/glm-5` | 205K | | | | | | — | — |
|
|
48
|
-
| `zhipuai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
|
|
49
|
-
| `zhipuai-coding-plan/glm-5.1` | 200K | | | | | | — | — |
|
|
50
|
-
| `zhipuai-coding-plan/glm-5v-turbo` | 200K | | | | | | — | — |
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `zhipuai-coding-plan/glm-4.5-air` | 131K | | | | | | — | — |
|
|
38
|
+
| `zhipuai-coding-plan/glm-4.7` | 205K | | | | | | — | — |
|
|
39
|
+
| `zhipuai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
|
|
40
|
+
| `zhipuai-coding-plan/glm-5.1` | 200K | | | | | | — | — |
|
|
51
41
|
|
|
52
42
|
## Advanced configuration
|
|
53
43
|
|
|
@@ -59,7 +49,7 @@ const agent = new Agent({
|
|
|
59
49
|
name: "custom-agent",
|
|
60
50
|
model: {
|
|
61
51
|
url: "https://open.bigmodel.cn/api/coding/paas/v4",
|
|
62
|
-
id: "zhipuai-coding-plan/glm-4.5",
|
|
52
|
+
id: "zhipuai-coding-plan/glm-4.5-air",
|
|
63
53
|
apiKey: process.env.ZHIPU_API_KEY,
|
|
64
54
|
headers: {
|
|
65
55
|
"X-Custom-Header": "value"
|
|
@@ -77,8 +67,8 @@ const agent = new Agent({
|
|
|
77
67
|
model: ({ requestContext }) => {
|
|
78
68
|
const useAdvanced = requestContext.task === "complex";
|
|
79
69
|
return useAdvanced
|
|
80
|
-
? "zhipuai-coding-plan/glm-
|
|
81
|
-
: "zhipuai-coding-plan/glm-4.5";
|
|
70
|
+
? "zhipuai-coding-plan/glm-5.1"
|
|
71
|
+
: "zhipuai-coding-plan/glm-4.5-air";
|
|
82
72
|
}
|
|
83
73
|
});
|
|
84
74
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.1.29-alpha.
|
|
3
|
+
"version": "1.1.29-alpha.4",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"tsx": "^4.21.0",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
48
|
"vitest": "4.1.5",
|
|
49
|
-
"@
|
|
49
|
+
"@mastra/core": "1.29.0-alpha.1",
|
|
50
50
|
"@internal/types-builder": "0.0.61",
|
|
51
|
-
"@
|
|
51
|
+
"@internal/lint": "0.0.86"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|