@mastra/mcp-docs-server 1.2.14-alpha.4 → 1.2.14
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/neon.md +6 -6
- package/.docs/models/gateways/netlify.md +6 -6
- package/.docs/models/gateways/openrouter.md +6 -6
- package/.docs/models/gateways/vercel.md +7 -7
- package/.docs/models/index.md +97 -96
- package/.docs/models/providers/alibaba-cn.md +25 -23
- package/.docs/models/providers/alibaba-token-plan-cn.md +24 -24
- package/.docs/models/providers/alibaba-token-plan.md +25 -23
- package/.docs/models/providers/alibaba.md +25 -23
- package/.docs/models/providers/ambient.md +26 -24
- package/.docs/models/providers/baseten.md +25 -23
- package/.docs/models/providers/chutes.md +25 -23
- package/.docs/models/providers/cortecs.md +133 -85
- package/.docs/models/providers/crof.md +25 -23
- package/.docs/models/providers/crossmodel.md +25 -23
- package/.docs/models/providers/deepinfra.md +24 -22
- package/.docs/models/providers/digitalocean.md +25 -23
- package/.docs/models/providers/empiriolabs.md +25 -23
- package/.docs/models/providers/fireworks-ai.md +24 -24
- package/.docs/models/providers/greenpt.md +25 -23
- package/.docs/models/providers/groq.md +25 -23
- package/.docs/models/providers/huggingface.md +25 -23
- package/.docs/models/providers/hyper.md +31 -29
- package/.docs/models/providers/impossibl.md +25 -23
- package/.docs/models/providers/infomaniak.md +24 -24
- package/.docs/models/providers/kilo.md +26 -24
- package/.docs/models/providers/llmgateway.md +26 -24
- package/.docs/models/providers/minimax.md +23 -25
- package/.docs/models/providers/mistral.md +25 -23
- package/.docs/models/providers/modal.md +25 -23
- package/.docs/models/providers/modelis.md +25 -23
- package/.docs/models/providers/nano-gpt.md +26 -24
- package/.docs/models/providers/neuralwatt.md +25 -23
- package/.docs/models/providers/ofox.md +25 -23
- package/.docs/models/providers/ollama-cloud.md +25 -23
- package/.docs/models/providers/openai.md +26 -28
- package/.docs/models/providers/opencode-go.md +25 -23
- package/.docs/models/providers/opencode.md +25 -23
- package/.docs/models/providers/perplexity-agent.md +24 -24
- package/.docs/models/providers/pioneer.md +25 -23
- package/.docs/models/providers/requesty.md +25 -23
- package/.docs/models/providers/routing-run.md +25 -23
- package/.docs/models/providers/scx.md +25 -23
- package/.docs/models/providers/tensorx.md +25 -23
- package/.docs/models/providers/togetherai.md +24 -22
- package/.docs/models/providers/umans-ai-coding-plan.md +24 -24
- package/.docs/models/providers/umans-ai.md +25 -23
- package/.docs/models/providers/wandb.md +25 -23
- package/.docs/models/providers/xai.md +28 -26
- package/.docs/models/providers/zai-coding-plan.md +25 -23
- package/.docs/models/providers/zhipuai-coding-plan.md +25 -23
- package/CHANGELOG.md +7 -0
- package/package.json +6 -6
|
@@ -11,22 +11,22 @@ ALIBABA_TOKEN_PLAN_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "alibaba-token-plan/MiniMax-M2.5"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -67,28 +67,30 @@ for await (const chunk of stream) {
|
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
const agent = new Agent({
|
|
70
|
-
id:
|
|
71
|
-
name:
|
|
70
|
+
id: "custom-agent",
|
|
71
|
+
name: "custom-agent",
|
|
72
72
|
model: {
|
|
73
|
-
url:
|
|
74
|
-
id:
|
|
73
|
+
url: "https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1",
|
|
74
|
+
id: "alibaba-token-plan/MiniMax-M2.5",
|
|
75
75
|
apiKey: process.env.ALIBABA_TOKEN_PLAN_API_KEY,
|
|
76
76
|
headers: {
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
})
|
|
77
|
+
"X-Custom-Header": "value"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
### Dynamic model selection
|
|
84
84
|
|
|
85
85
|
```typescript
|
|
86
86
|
const agent = new Agent({
|
|
87
|
-
id:
|
|
88
|
-
name:
|
|
87
|
+
id: "dynamic-agent",
|
|
88
|
+
name: "Dynamic Agent",
|
|
89
89
|
model: ({ requestContext }) => {
|
|
90
|
-
const useAdvanced = requestContext.task ===
|
|
91
|
-
return useAdvanced
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
const useAdvanced = requestContext.task === "complex";
|
|
91
|
+
return useAdvanced
|
|
92
|
+
? "alibaba-token-plan/wan2.7-image-pro"
|
|
93
|
+
: "alibaba-token-plan/MiniMax-M2.5";
|
|
94
|
+
}
|
|
95
|
+
});
|
|
94
96
|
```
|
|
@@ -11,22 +11,22 @@ DASHSCOPE_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "alibaba/qvq-max"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -95,28 +95,30 @@ for await (const chunk of stream) {
|
|
|
95
95
|
|
|
96
96
|
```typescript
|
|
97
97
|
const agent = new Agent({
|
|
98
|
-
id:
|
|
99
|
-
name:
|
|
98
|
+
id: "custom-agent",
|
|
99
|
+
name: "custom-agent",
|
|
100
100
|
model: {
|
|
101
|
-
url:
|
|
102
|
-
id:
|
|
101
|
+
url: "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
|
102
|
+
id: "alibaba/qvq-max",
|
|
103
103
|
apiKey: process.env.DASHSCOPE_API_KEY,
|
|
104
104
|
headers: {
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
})
|
|
105
|
+
"X-Custom-Header": "value"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
### Dynamic model selection
|
|
112
112
|
|
|
113
113
|
```typescript
|
|
114
114
|
const agent = new Agent({
|
|
115
|
-
id:
|
|
116
|
-
name:
|
|
115
|
+
id: "dynamic-agent",
|
|
116
|
+
name: "Dynamic Agent",
|
|
117
117
|
model: ({ requestContext }) => {
|
|
118
|
-
const useAdvanced = requestContext.task ===
|
|
119
|
-
return useAdvanced
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
const useAdvanced = requestContext.task === "complex";
|
|
119
|
+
return useAdvanced
|
|
120
|
+
? "alibaba/qwq-plus"
|
|
121
|
+
: "alibaba/qvq-max";
|
|
122
|
+
}
|
|
123
|
+
});
|
|
122
124
|
```
|
|
@@ -11,22 +11,22 @@ AMBIENT_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "ambient/ambient/large"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -40,7 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `ambient/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
41
|
| `ambient/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
42
42
|
| `ambient/moonshotai/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
43
|
-
| `ambient/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.
|
|
43
|
+
| `ambient/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.70 | $4 |
|
|
44
44
|
| `ambient/stepfun/step-3.7-flash` | 262K | | | | | | $0.19 | $1 |
|
|
45
45
|
| `ambient/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.40 | $2 |
|
|
46
46
|
| `ambient/z-ai/glm-5.2` | 203K | | | | | | $1 | $4 |
|
|
@@ -53,28 +53,30 @@ for await (const chunk of stream) {
|
|
|
53
53
|
|
|
54
54
|
```typescript
|
|
55
55
|
const agent = new Agent({
|
|
56
|
-
id:
|
|
57
|
-
name:
|
|
56
|
+
id: "custom-agent",
|
|
57
|
+
name: "custom-agent",
|
|
58
58
|
model: {
|
|
59
|
-
url:
|
|
60
|
-
id:
|
|
59
|
+
url: "https://api.ambient.xyz/v1",
|
|
60
|
+
id: "ambient/ambient/large",
|
|
61
61
|
apiKey: process.env.AMBIENT_API_KEY,
|
|
62
62
|
headers: {
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
})
|
|
63
|
+
"X-Custom-Header": "value"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
### Dynamic model selection
|
|
70
70
|
|
|
71
71
|
```typescript
|
|
72
72
|
const agent = new Agent({
|
|
73
|
-
id:
|
|
74
|
-
name:
|
|
73
|
+
id: "dynamic-agent",
|
|
74
|
+
name: "Dynamic Agent",
|
|
75
75
|
model: ({ requestContext }) => {
|
|
76
|
-
const useAdvanced = requestContext.task ===
|
|
77
|
-
return useAdvanced
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
const useAdvanced = requestContext.task === "complex";
|
|
77
|
+
return useAdvanced
|
|
78
|
+
? "ambient/zai-org/GLM-5.2-FP8"
|
|
79
|
+
: "ambient/ambient/large";
|
|
80
|
+
}
|
|
81
|
+
});
|
|
80
82
|
```
|
|
@@ -11,22 +11,22 @@ BASETEN_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "baseten/MiniMaxAI/MiniMax-M2.5"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -59,28 +59,30 @@ for await (const chunk of stream) {
|
|
|
59
59
|
|
|
60
60
|
```typescript
|
|
61
61
|
const agent = new Agent({
|
|
62
|
-
id:
|
|
63
|
-
name:
|
|
62
|
+
id: "custom-agent",
|
|
63
|
+
name: "custom-agent",
|
|
64
64
|
model: {
|
|
65
|
-
url:
|
|
66
|
-
id:
|
|
65
|
+
url: "https://inference.baseten.co/v1",
|
|
66
|
+
id: "baseten/MiniMaxAI/MiniMax-M2.5",
|
|
67
67
|
apiKey: process.env.BASETEN_API_KEY,
|
|
68
68
|
headers: {
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
})
|
|
69
|
+
"X-Custom-Header": "value"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
### Dynamic model selection
|
|
76
76
|
|
|
77
77
|
```typescript
|
|
78
78
|
const agent = new Agent({
|
|
79
|
-
id:
|
|
80
|
-
name:
|
|
79
|
+
id: "dynamic-agent",
|
|
80
|
+
name: "Dynamic Agent",
|
|
81
81
|
model: ({ requestContext }) => {
|
|
82
|
-
const useAdvanced = requestContext.task ===
|
|
83
|
-
return useAdvanced
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
const useAdvanced = requestContext.task === "complex";
|
|
83
|
+
return useAdvanced
|
|
84
|
+
? "baseten/zai-org/GLM-5.2-Fast"
|
|
85
|
+
: "baseten/MiniMaxAI/MiniMax-M2.5";
|
|
86
|
+
}
|
|
87
|
+
});
|
|
86
88
|
```
|
|
@@ -11,22 +11,22 @@ CHUTES_API_KEY=your-api-key
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
|
-
import { Agent } from
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
15
|
|
|
16
16
|
const agent = new Agent({
|
|
17
|
-
id:
|
|
18
|
-
name:
|
|
19
|
-
instructions:
|
|
20
|
-
model:
|
|
21
|
-
})
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "chutes/Nemotron-3-Nano-Omni-30B-TEE"
|
|
21
|
+
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
24
|
-
const response = await agent.generate(
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
25
|
|
|
26
26
|
// Stream a response
|
|
27
|
-
const stream = await agent.stream(
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
28
|
for await (const chunk of stream) {
|
|
29
|
-
console.log(chunk)
|
|
29
|
+
console.log(chunk);
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -56,28 +56,30 @@ for await (const chunk of stream) {
|
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
58
|
const agent = new Agent({
|
|
59
|
-
id:
|
|
60
|
-
name:
|
|
59
|
+
id: "custom-agent",
|
|
60
|
+
name: "custom-agent",
|
|
61
61
|
model: {
|
|
62
|
-
url:
|
|
63
|
-
id:
|
|
62
|
+
url: "https://llm.chutes.ai/v1",
|
|
63
|
+
id: "chutes/Nemotron-3-Nano-Omni-30B-TEE",
|
|
64
64
|
apiKey: process.env.CHUTES_API_KEY,
|
|
65
65
|
headers: {
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
})
|
|
66
|
+
"X-Custom-Header": "value"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
### Dynamic model selection
|
|
73
73
|
|
|
74
74
|
```typescript
|
|
75
75
|
const agent = new Agent({
|
|
76
|
-
id:
|
|
77
|
-
name:
|
|
76
|
+
id: "dynamic-agent",
|
|
77
|
+
name: "Dynamic Agent",
|
|
78
78
|
model: ({ requestContext }) => {
|
|
79
|
-
const useAdvanced = requestContext.task ===
|
|
80
|
-
return useAdvanced
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
const useAdvanced = requestContext.task === "complex";
|
|
80
|
+
return useAdvanced
|
|
81
|
+
? "chutes/zai-org/GLM-5.2-TEE"
|
|
82
|
+
: "chutes/Nemotron-3-Nano-Omni-30B-TEE";
|
|
83
|
+
}
|
|
84
|
+
});
|
|
83
85
|
```
|