@mastra/mcp-docs-server 1.3.3-alpha.1 → 1.3.3-alpha.3
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/docs/agents/human-in-the-loop.md +4 -0
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +2 -1
- package/.docs/models/providers/crossmodel.md +3 -3
- package/.docs/models/providers/deepinfra.md +1 -1
- package/.docs/models/providers/kilo.md +9 -9
- package/.docs/models/providers/llmgateway-providers.md +2 -3
- package/.docs/models/providers/nano-gpt.md +3 -2
- package/.docs/models/providers/vivgrid.md +3 -1
- package/.docs/models/providers/vultr.md +22 -17
- package/.docs/reference/agent-controller/session.md +8 -8
- package/package.json +5 -5
|
@@ -407,6 +407,10 @@ const handleResume = async () => {
|
|
|
407
407
|
}
|
|
408
408
|
```
|
|
409
409
|
|
|
410
|
+
When a suspended or approval-gated tool call resumes, the stream emits a `tool-call-resumed` chunk with the same `toolCallId` before the call's `tool-result`. Its `payload.kind` is `'suspension'` or `'approval'`, and the payload repeats the original `args`, `suspendPayload`, and `resumeSchema`. The chunk is only emitted when a real suspension or approval request is cleared.
|
|
411
|
+
|
|
412
|
+
With `@mastra/ai-sdk`, it arrives as a `data-tool-call-suspended` part (or `data-tool-call-approval` part for approvals) with `resumed: true`, which replaces the original part and keeps its payload. Use this signal to mark a question as answered. Don't infer it from the shape of the tool output: when the suspension came from a sub-agent, the output of the delegation call is the sub-agent's result, not your answer.
|
|
413
|
+
|
|
410
414
|
## Automatic tool resumption
|
|
411
415
|
|
|
412
416
|
When using tools that call `suspend()`, you can enable automatic resumption so the agent resumes suspended tools based on the user's next message. Set `autoResumeSuspendedTools` to `true` in the agent's default options or per-request:
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vercel
|
|
6
6
|
|
|
7
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 396 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
|
|
10
10
|
|
|
@@ -400,6 +400,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
400
400
|
| `thinkingmachines/inkling-small` |
|
|
401
401
|
| `voyage/rerank-2.5` |
|
|
402
402
|
| `voyage/rerank-2.5-lite` |
|
|
403
|
+
| `voyage/rerank-3` |
|
|
404
|
+
| `voyage/rerank-3-lite` |
|
|
403
405
|
| `voyage/voyage-3-large` |
|
|
404
406
|
| `voyage/voyage-3.5` |
|
|
405
407
|
| `voyage/voyage-3.5-lite` |
|
package/.docs/models/index.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Model Providers
|
|
6
6
|
|
|
7
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
7
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 7723 models from 212 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# 302.AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 122 302.AI models through Mastra's model router. Authentication is handled automatically using the `302AI_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [302.AI documentation](https://doc.302.ai).
|
|
10
10
|
|
|
@@ -56,6 +56,7 @@ for await (const chunk of stream) {
|
|
|
56
56
|
| `302ai/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
57
57
|
| `302ai/claude-sonnet-4-6-thinking` | 1.0M | | | | | | $3 | $15 |
|
|
58
58
|
| `302ai/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
59
|
+
| `302ai/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
59
60
|
| `302ai/deepseek-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
60
61
|
| `302ai/deepseek-v3.2` | 128K | | | | | | $0.29 | $0.43 |
|
|
61
62
|
| `302ai/deepseek-v3.2-thinking` | 128K | | | | | | $0.29 | $0.43 |
|
|
@@ -48,10 +48,10 @@ for await (const chunk of stream) {
|
|
|
48
48
|
| `crossmodel/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
49
49
|
| `crossmodel/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
50
50
|
| `crossmodel/anthropic/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
51
|
-
| `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
52
|
-
| `crossmodel/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.
|
|
51
|
+
| `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
52
|
+
| `crossmodel/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.30 | $1 |
|
|
53
53
|
| `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
|
|
54
|
-
| `crossmodel/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.
|
|
54
|
+
| `crossmodel/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
55
55
|
| `crossmodel/gemini/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
56
56
|
| `crossmodel/gemini/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
57
57
|
| `crossmodel/gemini/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
@@ -55,7 +55,7 @@ for await (const chunk of stream) {
|
|
|
55
55
|
| `deepinfra/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.07 | $0.34 |
|
|
56
56
|
| `deepinfra/google/gemma-4-31B-it` | 262K | | | | | | $0.13 | $0.38 |
|
|
57
57
|
| `deepinfra/google/gemma-4-E4B-it` | 131K | | | | | | $0.02 | $0.10 |
|
|
58
|
-
| `deepinfra/meta-llama/Llama-3.3-70B-Instruct-Turbo` |
|
|
58
|
+
| `deepinfra/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 66K | | | | | | $0.10 | $0.32 |
|
|
59
59
|
| `deepinfra/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
60
60
|
| `deepinfra/meta-llama/Llama-4-Scout-17B-16E-Instruct` | 328K | | | | | | $0.10 | $0.30 |
|
|
61
61
|
| `deepinfra/MiniMaxAI/MiniMax-M3` | 524K | | | | | | $0.28 | $1 |
|
|
@@ -47,7 +47,7 @@ for await (const chunk of stream) {
|
|
|
47
47
|
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $0.13 |
|
|
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.
|
|
50
|
+
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.28 | $10 |
|
|
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 |
|
|
@@ -140,7 +140,7 @@ for await (const chunk of stream) {
|
|
|
140
140
|
| `kilo/google/gemma-3-27b-it` | 131K | | | | | | $0.08 | $0.16 |
|
|
141
141
|
| `kilo/google/gemma-3-4b-it` | 131K | | | | | | $0.05 | $0.10 |
|
|
142
142
|
| `kilo/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.04 | $0.22 |
|
|
143
|
-
| `kilo/google/gemma-4-31b-it` | 262K | | | | | | $0.
|
|
143
|
+
| `kilo/google/gemma-4-31b-it` | 262K | | | | | | $0.09 | $0.34 |
|
|
144
144
|
| `kilo/google/lyria-3-clip-preview` | 1.0M | | | | | | — | — |
|
|
145
145
|
| `kilo/google/lyria-3-pro-preview` | 1.0M | | | | | | — | — |
|
|
146
146
|
| `kilo/gryphe/mythomax-l2-13b` | 4K | | | | | | $0.08 | $0.11 |
|
|
@@ -167,7 +167,7 @@ for await (const chunk of stream) {
|
|
|
167
167
|
| `kilo/meta-llama/llama-3.1-8b-instruct` | 131K | | | | | | $0.02 | $0.04 |
|
|
168
168
|
| `kilo/meta-llama/llama-3.2-1b-instruct` | 60K | | | | | | $0.03 | $0.20 |
|
|
169
169
|
| `kilo/meta-llama/llama-3.2-3b-instruct` | 131K | | | | | | $0.05 | $0.33 |
|
|
170
|
-
| `kilo/meta-llama/llama-3.3-70b-instruct` |
|
|
170
|
+
| `kilo/meta-llama/llama-3.3-70b-instruct` | 66K | | | | | | $0.10 | $0.32 |
|
|
171
171
|
| `kilo/meta-llama/llama-4-maverick` | 128K | | | | | | $0.19 | $0.65 |
|
|
172
172
|
| `kilo/meta-llama/llama-4-scout` | 328K | | | | | | $0.10 | $0.30 |
|
|
173
173
|
| `kilo/meta-llama/llama-guard-4-12b` | 164K | | | | | | $0.18 | $0.18 |
|
|
@@ -212,7 +212,7 @@ for await (const chunk of stream) {
|
|
|
212
212
|
| `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
213
213
|
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.65 | $3 |
|
|
214
214
|
| `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
|
|
215
|
-
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $
|
|
215
|
+
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $0.28 | $10 |
|
|
216
216
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
217
217
|
| `kilo/morph/morph-v3-large` | 262K | | | | | | $0.90 | $2 |
|
|
218
218
|
| `kilo/nex-agi/nex-n2.5-mini` | 262K | | | | | | $0.03 | $0.10 |
|
|
@@ -321,7 +321,7 @@ for await (const chunk of stream) {
|
|
|
321
321
|
| `kilo/qwen/qwen3-235b-a22b` | 131K | | | | | | $0.46 | $2 |
|
|
322
322
|
| `kilo/qwen/qwen3-235b-a22b-2507` | 262K | | | | | | $0.15 | $0.60 |
|
|
323
323
|
| `kilo/qwen/qwen3-235b-a22b-thinking-2507` | 131K | | | | | | $0.23 | $2 |
|
|
324
|
-
| `kilo/qwen/qwen3-30b-a3b` |
|
|
324
|
+
| `kilo/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.13 | $0.52 |
|
|
325
325
|
| `kilo/qwen/qwen3-30b-a3b-instruct-2507` | 128K | | | | | | $0.13 | $0.52 |
|
|
326
326
|
| `kilo/qwen/qwen3-30b-a3b-thinking-2507` | 82K | | | | | | $0.20 | $2 |
|
|
327
327
|
| `kilo/qwen/qwen3-32b` | 41K | | | | | | $0.08 | $0.28 |
|
|
@@ -359,7 +359,7 @@ for await (const chunk of stream) {
|
|
|
359
359
|
| `kilo/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
360
360
|
| `kilo/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
361
361
|
| `kilo/qwen/qwen3.8-2.4t-a95b` | 1.0M | | | | | | $2 | $6 |
|
|
362
|
-
| `kilo/qwen/qwen3.8-27b` |
|
|
362
|
+
| `kilo/qwen/qwen3.8-27b` | 1.0M | | | | | | $0.42 | $3 |
|
|
363
363
|
| `kilo/qwen/qwen3.8-27b:free` | 262K | | | | | | — | — |
|
|
364
364
|
| `kilo/qwen/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
365
365
|
| `kilo/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
@@ -389,9 +389,9 @@ for await (const chunk of stream) {
|
|
|
389
389
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
390
390
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
391
391
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
392
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
392
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.08 | $0.33 |
|
|
393
393
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
394
|
-
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.
|
|
394
|
+
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.75 | $2 |
|
|
395
395
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
396
396
|
| `kilo/thedrummer/skyfall-36b-v2` | 33K | | | | | | $0.55 | $0.80 |
|
|
397
397
|
| `kilo/thedrummer/unslopnemo-12b` | 1.0M | | | | | | $0.40 | $0.40 |
|
|
@@ -413,7 +413,7 @@ for await (const chunk of stream) {
|
|
|
413
413
|
| `kilo/x-ai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
414
414
|
| `kilo/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
415
415
|
| `kilo/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
416
|
-
| `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.
|
|
416
|
+
| `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.07 | $0.28 |
|
|
417
417
|
| `kilo/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
418
418
|
| `kilo/xiaomi/mimo-v2.6-pro-ultraspeed` | 1.0M | | | | | | $4 | $9 |
|
|
419
419
|
| `kilo/z-ai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 431 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
|
|
|
@@ -175,8 +175,7 @@ for await (const chunk of stream) {
|
|
|
175
175
|
| `llmgateway-providers/cerebras/gpt-oss-120b` | 131K | | | | | | $0.35 | $0.75 |
|
|
176
176
|
| `llmgateway-providers/cerebras/llama-3.3-70b-instruct` | 128K | | | | | | $0.85 | $1 |
|
|
177
177
|
| `llmgateway-providers/cerebras/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | $0.60 | $1 |
|
|
178
|
-
| `llmgateway-providers/consensusprotocol/deepseek-v4-flash`
|
|
179
|
-
| `llmgateway-providers/consensusprotocol/deepseek-v4.1-flash` | 1.0M | | | | | | $0.20 | $0.60 |
|
|
178
|
+
| `llmgateway-providers/consensusprotocol/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
180
179
|
| `llmgateway-providers/consensusprotocol/gemma-4-31b-it` | 262K | | | | | | $0.10 | $0.25 |
|
|
181
180
|
| `llmgateway-providers/consensusprotocol/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.25 |
|
|
182
181
|
| `llmgateway-providers/consensusprotocol/gpt-oss-20b` | 66K | | | | | | $0.04 | $0.19 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# NanoGPT
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 600 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
|
|
|
@@ -260,6 +260,7 @@ for await (const chunk of stream) {
|
|
|
260
260
|
| `nano-gpt/inclusionai/ling-3.0-flash` | 262K | | | | | | $0.07 | $0.22 |
|
|
261
261
|
| `nano-gpt/inclusionai/ling-3.0-flash-vl` | 262K | | | | | | $0.06 | $0.18 |
|
|
262
262
|
| `nano-gpt/inclusionai/ling-3.0-flash:thinking` | 262K | | | | | | $0.07 | $0.22 |
|
|
263
|
+
| `nano-gpt/inclusionai/ling-3.1-flash` | 262K | | | | | | $0.07 | $0.22 |
|
|
263
264
|
| `nano-gpt/inference-net/schematron-v2-small` | 128K | | | | | | $0.05 | $0.23 |
|
|
264
265
|
| `nano-gpt/inference-net/schematron-v2-turbo` | 128K | | | | | | $0.03 | $0.15 |
|
|
265
266
|
| `nano-gpt/inflatebot/MN-12B-Mag-Mell-R1` | 16K | | | | | | $0.49 | $0.49 |
|
|
@@ -629,7 +630,7 @@ for await (const chunk of stream) {
|
|
|
629
630
|
| `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
|
|
630
631
|
| `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
|
|
631
632
|
| `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $3 |
|
|
632
|
-
| `nano-gpt/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.
|
|
633
|
+
| `nano-gpt/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.30 |
|
|
633
634
|
| `nano-gpt/z-ai/glm-5.3-flash-cybersecurity` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
634
635
|
| `nano-gpt/z-ai/glm-5.3-flash-uncensored` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
635
636
|
| `nano-gpt/z-ai/glm-5.3-uncensored` | 1.0M | | | | | | $1 | $2 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vivgrid
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 36 Vivgrid models through Mastra's model router. Authentication is handled automatically using the `VIVGRID_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vivgrid documentation](https://docs.vivgrid.com/models).
|
|
10
10
|
|
|
@@ -43,6 +43,7 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `vivgrid/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
44
44
|
| `vivgrid/claude-opus-5-5` | 1.0M | | | | | | $4 | $20 |
|
|
45
45
|
| `vivgrid/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
46
|
+
| `vivgrid/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
46
47
|
| `vivgrid/deepseek-v3.2` | 128K | | | | | | $0.28 | $0.42 |
|
|
47
48
|
| `vivgrid/deepseek-v4-flash` | 1.0M | | | | | | $0.15 | $0.30 |
|
|
48
49
|
| `vivgrid/deepseek-v4-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
@@ -70,6 +71,7 @@ for await (const chunk of stream) {
|
|
|
70
71
|
| `vivgrid/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
71
72
|
| `vivgrid/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
72
73
|
| `vivgrid/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
74
|
+
| `vivgrid/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
|
|
73
75
|
| `vivgrid/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
74
76
|
| `vivgrid/viv-fast` | 1.0M | | | | | | $0.13 | $0.40 |
|
|
75
77
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vultr
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 15 Vultr models through Mastra's model router. Authentication is handled automatically using the `VULTR_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vultr documentation](https://api.vultrinference.com/).
|
|
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: "vultr/
|
|
22
|
+
model: "vultr/deepseek-v4-flash-0731"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -36,18 +36,23 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
## Models
|
|
38
38
|
|
|
39
|
-
| Model
|
|
40
|
-
|
|
|
41
|
-
| `vultr/deepseek-
|
|
42
|
-
| `vultr/
|
|
43
|
-
| `vultr/
|
|
44
|
-
| `vultr/
|
|
45
|
-
| `vultr/
|
|
46
|
-
| `vultr/
|
|
47
|
-
| `vultr/
|
|
48
|
-
| `vultr/
|
|
49
|
-
| `vultr/
|
|
50
|
-
| `vultr/
|
|
39
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
|
+
| ---------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `vultr/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.10 | $0.25 |
|
|
42
|
+
| `vultr/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
43
|
+
| `vultr/glm-5.2` | 1.0M | | | | | | $0.75 | $3 |
|
|
44
|
+
| `vultr/glm-5.3` | 1.0M | | | | | | $0.75 | $3 |
|
|
45
|
+
| `vultr/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.35 |
|
|
46
|
+
| `vultr/glm-5.x-menthol` | 203K | | | | | | $0.40 | $2 |
|
|
47
|
+
| `vultr/laguna-s-2.1` | 1.0M | | | | | | $0.09 | $0.18 |
|
|
48
|
+
| `vultr/mimo-v2.6-flash-rl` | 1.0M | | | | | | $0.10 | $0.25 |
|
|
49
|
+
| `vultr/mimo-v2.6-pro-rl` | 1.0M | | | | | | $0.40 | $0.80 |
|
|
50
|
+
| `vultr/minimax-m3` | 524K | | | | | | $0.20 | $0.90 |
|
|
51
|
+
| `vultr/muse-glimmer-30b` | 131K | | | | | | $0.25 | $1 |
|
|
52
|
+
| `vultr/nemotron-3-nano-omni-30b-a3b-reasoning` | 262K | | | | | | $0.10 | $0.25 |
|
|
53
|
+
| `vultr/nemotron-3.5-content-safety` | 131K | | | | | | $0.05 | $0.15 |
|
|
54
|
+
| `vultr/qwen3.8-27b` | 262K | | | | | | $0.15 | $1 |
|
|
55
|
+
| `vultr/qwen3.8-flash-next` | 262K | | | | | | $0.10 | $0.20 |
|
|
51
56
|
|
|
52
57
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
53
58
|
|
|
@@ -61,7 +66,7 @@ const agent = new Agent({
|
|
|
61
66
|
name: "custom-agent",
|
|
62
67
|
model: {
|
|
63
68
|
url: "https://api.vultrinference.com/v1",
|
|
64
|
-
id: "vultr/
|
|
69
|
+
id: "vultr/deepseek-v4-flash-0731",
|
|
65
70
|
apiKey: process.env.VULTR_API_KEY,
|
|
66
71
|
headers: {
|
|
67
72
|
"X-Custom-Header": "value"
|
|
@@ -79,8 +84,8 @@ const agent = new Agent({
|
|
|
79
84
|
model: ({ requestContext }) => {
|
|
80
85
|
const useAdvanced = requestContext.task === "complex";
|
|
81
86
|
return useAdvanced
|
|
82
|
-
? "vultr/
|
|
83
|
-
: "vultr/
|
|
87
|
+
? "vultr/qwen3.8-flash-next"
|
|
88
|
+
: "vultr/deepseek-v4-flash-0731";
|
|
84
89
|
}
|
|
85
90
|
});
|
|
86
91
|
```
|
|
@@ -293,9 +293,9 @@ To change the resource ID, use [`controller.setResourceId()`](https://mastra.ai/
|
|
|
293
293
|
|
|
294
294
|
`session.thread` owns the active thread binding and resource-scoped thread operations. Stored threads and messages can survive controller recreation when storage is configured. The live session and its event bus don't.
|
|
295
295
|
|
|
296
|
-
### `session.thread.create({ title?, id? })`
|
|
296
|
+
### `session.thread.create({ title?, id?, requestContext? })`
|
|
297
297
|
|
|
298
|
-
Create a thread, bind the session to it, and open its event stream.
|
|
298
|
+
Create a thread, bind the session to it, and open its event stream. Pass `requestContext` when memory is a function that reads the signed-in user.
|
|
299
299
|
|
|
300
300
|
```typescript
|
|
301
301
|
const thread = await session.thread.create({
|
|
@@ -314,9 +314,9 @@ Rename the active stored thread.
|
|
|
314
314
|
await session.thread.rename({ title: 'Fix login failure' })
|
|
315
315
|
```
|
|
316
316
|
|
|
317
|
-
### `session.thread.clone({ sourceThreadId?, title?, resourceId? })`
|
|
317
|
+
### `session.thread.clone({ sourceThreadId?, title?, resourceId?, requestContext? })`
|
|
318
318
|
|
|
319
|
-
Clone an owned thread and its messages, then bind the session to the clone.
|
|
319
|
+
Clone an owned thread and its messages, then bind the session to the clone. Pass `requestContext` when memory is a function that reads the signed-in user.
|
|
320
320
|
|
|
321
321
|
```typescript
|
|
322
322
|
const clone = await session.thread.clone({
|
|
@@ -327,17 +327,17 @@ const clone = await session.thread.clone({
|
|
|
327
327
|
|
|
328
328
|
Returns: `Promise<AgentControllerThread>`
|
|
329
329
|
|
|
330
|
-
### `session.thread.switch({ threadId, emitEvent? })`
|
|
330
|
+
### `session.thread.switch({ threadId, emitEvent?, requestContext? })`
|
|
331
331
|
|
|
332
|
-
Switch to an owned stored thread and hydrate its mode, model, and observational memory settings.
|
|
332
|
+
Switch to an owned stored thread and hydrate its mode, model, and observational memory settings. Pass `requestContext` when memory is a function that reads the signed-in user.
|
|
333
333
|
|
|
334
334
|
```typescript
|
|
335
335
|
await session.thread.switch({ threadId: 'thread-8' })
|
|
336
336
|
```
|
|
337
337
|
|
|
338
|
-
### `session.thread.delete({ threadId })`
|
|
338
|
+
### `session.thread.delete({ threadId, requestContext? })`
|
|
339
339
|
|
|
340
|
-
Delete an owned thread. Deleting the active thread also clears the current binding.
|
|
340
|
+
Delete an owned thread. Deleting the active thread also clears the current binding. Pass `requestContext` when memory is a function that reads the signed-in user.
|
|
341
341
|
|
|
342
342
|
```typescript
|
|
343
343
|
await session.thread.delete({ threadId: 'thread-8' })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.3-alpha.
|
|
3
|
+
"version": "1.3.3-alpha.3",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
|
|
27
27
|
"local-pkg": "^1.1.2",
|
|
28
28
|
"zod": "^4.6.4",
|
|
29
|
-
"@mastra/
|
|
30
|
-
"@mastra/
|
|
29
|
+
"@mastra/core": "1.73.0-alpha.1",
|
|
30
|
+
"@mastra/mcp": "^2.1.2-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.0.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"tsx": "^4.23.1",
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
|
-
"@internal/types-builder": "0.0.113",
|
|
47
46
|
"@internal/lint": "0.0.138",
|
|
48
|
-
"@
|
|
47
|
+
"@internal/types-builder": "0.0.113",
|
|
48
|
+
"@mastra/core": "1.73.0-alpha.1"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://mastra.ai",
|
|
51
51
|
"repository": {
|