@mastra/mcp-docs-server 1.2.3-alpha.7 → 1.2.3-alpha.9
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/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 4481 models from 135 providers through a single API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LLM Gateway
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 178 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
|
|
|
@@ -40,6 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `llmgateway/claude-3-opus` | 200K | | | | | | $15 | $75 |
|
|
41
41
|
| `llmgateway/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
42
42
|
| `llmgateway/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
43
|
+
| `llmgateway/claude-haiku-4-5-free` | 200K | | | | | | — | — |
|
|
43
44
|
| `llmgateway/claude-opus-4-1-20250805` | 200K | | | | | | $15 | $75 |
|
|
44
45
|
| `llmgateway/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
45
46
|
| `llmgateway/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -70,16 +71,13 @@ for await (const chunk of stream) {
|
|
|
70
71
|
| `llmgateway/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
71
72
|
| `llmgateway/glm-4.5-air` | 131K | | | | | | $0.13 | $0.85 |
|
|
72
73
|
| `llmgateway/glm-4.5-airx` | 128K | | | | | | $1 | $5 |
|
|
73
|
-
| `llmgateway/glm-4.5-flash` | 128K | | | | | | — | — |
|
|
74
74
|
| `llmgateway/glm-4.5-x` | 128K | | | | | | $2 | $9 |
|
|
75
75
|
| `llmgateway/glm-4.5v` | 128K | | | | | | $0.60 | $2 |
|
|
76
76
|
| `llmgateway/glm-4.6` | 205K | | | | | | $0.43 | $2 |
|
|
77
77
|
| `llmgateway/glm-4.6v` | 131K | | | | | | $0.30 | $0.90 |
|
|
78
|
-
| `llmgateway/glm-4.6v-flash` | 128K | | | | | | — | — |
|
|
79
78
|
| `llmgateway/glm-4.6v-flashx` | 128K | | | | | | $0.04 | $0.40 |
|
|
80
79
|
| `llmgateway/glm-4.7` | 205K | | | | | | $0.38 | $2 |
|
|
81
80
|
| `llmgateway/glm-4.7-flash` | 200K | | | | | | $0.06 | $0.40 |
|
|
82
|
-
| `llmgateway/glm-4.7-flash-free` | 200K | | | | | | — | — |
|
|
83
81
|
| `llmgateway/glm-4.7-flashx` | 200K | | | | | | $0.07 | $0.40 |
|
|
84
82
|
| `llmgateway/glm-5` | 203K | | | | | | $0.72 | $2 |
|
|
85
83
|
| `llmgateway/glm-5.1` | 205K | | | | | | $0.93 | $3 |
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Subconscious
|
|
2
|
+
|
|
3
|
+
Access 1 Subconscious model through Mastra's model router. Authentication is handled automatically using the `SUBCONSCIOUS_API_KEY` environment variable.
|
|
4
|
+
|
|
5
|
+
Learn more in the [Subconscious documentation](https://docs.subconscious.dev).
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
SUBCONSCIOUS_API_KEY=your-api-key
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { Agent } from "@mastra/core/agent";
|
|
13
|
+
|
|
14
|
+
const agent = new Agent({
|
|
15
|
+
id: "my-agent",
|
|
16
|
+
name: "My Agent",
|
|
17
|
+
instructions: "You are a helpful assistant",
|
|
18
|
+
model: "subconscious/subconscious/tim-qwen3.6-27b"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Generate a response
|
|
22
|
+
const response = await agent.generate("Hello!");
|
|
23
|
+
|
|
24
|
+
// Stream a response
|
|
25
|
+
const stream = await agent.stream("Tell me a story");
|
|
26
|
+
for await (const chunk of stream) {
|
|
27
|
+
console.log(chunk);
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Subconscious documentation](https://docs.subconscious.dev) for details.
|
|
32
|
+
|
|
33
|
+
## Models
|
|
34
|
+
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `subconscious/subconscious/tim-qwen3.6-27b` | 8K | | | | | | — | — |
|
|
38
|
+
|
|
39
|
+
## Advanced configuration
|
|
40
|
+
|
|
41
|
+
### Custom headers
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
const agent = new Agent({
|
|
45
|
+
id: "custom-agent",
|
|
46
|
+
name: "custom-agent",
|
|
47
|
+
model: {
|
|
48
|
+
url: "https://api.subconscious.dev/v1",
|
|
49
|
+
id: "subconscious/subconscious/tim-qwen3.6-27b",
|
|
50
|
+
apiKey: process.env.SUBCONSCIOUS_API_KEY,
|
|
51
|
+
headers: {
|
|
52
|
+
"X-Custom-Header": "value"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Dynamic model selection
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
const agent = new Agent({
|
|
62
|
+
id: "dynamic-agent",
|
|
63
|
+
name: "Dynamic Agent",
|
|
64
|
+
model: ({ requestContext }) => {
|
|
65
|
+
const useAdvanced = requestContext.task === "complex";
|
|
66
|
+
return useAdvanced
|
|
67
|
+
? "subconscious/subconscious/tim-qwen3.6-27b"
|
|
68
|
+
: "subconscious/subconscious/tim-qwen3.6-27b";
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
```
|
|
@@ -106,6 +106,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
106
106
|
- [STACKIT](https://mastra.ai/models/providers/stackit)
|
|
107
107
|
- [StepFun](https://mastra.ai/models/providers/stepfun)
|
|
108
108
|
- [StepFun AI](https://mastra.ai/models/providers/stepfun-ai)
|
|
109
|
+
- [Subconscious](https://mastra.ai/models/providers/subconscious)
|
|
109
110
|
- [submodel](https://mastra.ai/models/providers/submodel)
|
|
110
111
|
- [Synthetic](https://mastra.ai/models/providers/synthetic)
|
|
111
112
|
- [Tencent Coding Plan (China)](https://mastra.ai/models/providers/tencent-coding-plan)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.2.3-alpha.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`705ba98`](https://github.com/mastra-ai/mastra/commit/705ba98726d388a596e896225f237907ca6807a9), [`e62c108`](https://github.com/mastra-ai/mastra/commit/e62c108409dfd6a6cac0a48ec39c5cc81d24fd52), [`bfbbb01`](https://github.com/mastra-ai/mastra/commit/bfbbb01bd845ba54cdc0c678c277d08a7cb847e4)]:
|
|
8
|
+
- @mastra/core@1.48.0-alpha.4
|
|
9
|
+
|
|
3
10
|
## 1.2.3-alpha.7
|
|
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.3-alpha.
|
|
3
|
+
"version": "1.2.3-alpha.9",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"local-pkg": "^1.1.2",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
31
|
"@mastra/mcp": "^1.12.0",
|
|
32
|
-
"@mastra/core": "1.48.0-alpha.
|
|
32
|
+
"@mastra/core": "1.48.0-alpha.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hono/node-server": "^1.19.11",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"vitest": "4.1.8",
|
|
48
48
|
"@internal/types-builder": "0.0.84",
|
|
49
|
-
"@mastra/core": "1.48.0-alpha.
|
|
49
|
+
"@mastra/core": "1.48.0-alpha.4",
|
|
50
50
|
"@internal/lint": "0.0.109"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|