@mastra/mcp-docs-server 1.2.3-alpha.6 → 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/docs/observability/metrics/overview.md +2 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/deepinfra.md +3 -2
- package/.docs/models/providers/friendli.md +1 -3
- package/.docs/models/providers/gmicloud.md +18 -15
- package/.docs/models/providers/inceptron.md +10 -8
- package/.docs/models/providers/llmgateway.md +3 -6
- package/.docs/models/providers/neuralwatt.md +9 -5
- package/.docs/models/providers/subconscious.md +71 -0
- package/.docs/models/providers.md +1 -0
- package/.docs/reference/observability/metrics/automatic-metrics.md +2 -2
- package/CHANGELOG.md +14 -0
- package/package.json +4 -4
|
@@ -8,9 +8,9 @@ Three categories of metrics are emitted automatically:
|
|
|
8
8
|
- **Token usage metrics**: Input and output token counts broken down by type (text, cache, audio, image, reasoning).
|
|
9
9
|
- **Cost estimation**: Estimated cost per model call based on an embedded pricing registry.
|
|
10
10
|
|
|
11
|
-
> **Note:** Metrics require an
|
|
11
|
+
> **Note:** Metrics require an analytics-capable store for observability. Most relational databases (LibSQL, MSSQL) aren't supported for metrics. In-memory storage resets on restart.
|
|
12
12
|
>
|
|
13
|
-
> For local development, use [DuckDB](https://duckdb.org/) through `@mastra/duckdb`. For production, use [ClickHouse](https://clickhouse.com/) through `@mastra/clickhouse`.
|
|
13
|
+
> For local development, use [DuckDB](https://duckdb.org/) through `@mastra/duckdb`. For production, use [ClickHouse](https://clickhouse.com/) through `@mastra/clickhouse`. `PostgresStoreVNext` with the observability domain enabled also supports metrics, but always provide a time range to avoid full partition scans.
|
|
14
14
|
>
|
|
15
15
|
> Google Cloud Spanner supports metrics, but it's not recommended for heavy metrics workloads. The Spanner adapter disables metrics by default because metrics are write-heavy and scan-heavy. Set `disableMetrics: false` only for light workloads, or route metrics to an OLAP store.
|
|
16
16
|
|
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
|
# Deep Infra
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 26 Deep Infra models through Mastra's model router. Authentication is handled automatically using the `DEEPINFRA_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Deep Infra documentation](https://deepinfra.com/models).
|
|
6
6
|
|
|
@@ -57,6 +57,7 @@ for await (const chunk of stream) {
|
|
|
57
57
|
| `deepinfra/zai-org/GLM-4.7-Flash` | 203K | | | | | | $0.06 | $0.40 |
|
|
58
58
|
| `deepinfra/zai-org/GLM-5` | 203K | | | | | | $0.60 | $2 |
|
|
59
59
|
| `deepinfra/zai-org/GLM-5.1` | 203K | | | | | | $1 | $4 |
|
|
60
|
+
| `deepinfra/zai-org/GLM-5.2` | 1.0M | | | | | | $0.95 | $3 |
|
|
60
61
|
|
|
61
62
|
## Advanced configuration
|
|
62
63
|
|
|
@@ -85,7 +86,7 @@ const agent = new Agent({
|
|
|
85
86
|
model: ({ requestContext }) => {
|
|
86
87
|
const useAdvanced = requestContext.task === "complex";
|
|
87
88
|
return useAdvanced
|
|
88
|
-
? "deepinfra/zai-org/GLM-5.
|
|
89
|
+
? "deepinfra/zai-org/GLM-5.2"
|
|
89
90
|
: "deepinfra/MiniMaxAI/MiniMax-M2.5";
|
|
90
91
|
}
|
|
91
92
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Friendli
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 7 Friendli models through Mastra's model router. Authentication is handled automatically using the `FRIENDLI_TOKEN` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Friendli documentation](https://friendli.ai/docs/guides/serverless_endpoints/introduction).
|
|
6
6
|
|
|
@@ -36,8 +36,6 @@ for await (const chunk of stream) {
|
|
|
36
36
|
| --------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
37
|
| `friendli/deepseek-ai/DeepSeek-V3.2` | 164K | | | | | | $0.50 | $2 |
|
|
38
38
|
| `friendli/google/gemma-4-31B-it` | 262K | | | | | | $0.14 | $0.40 |
|
|
39
|
-
| `friendli/meta-llama/Llama-3.1-8B-Instruct` | 131K | | | | | | $0.10 | $0.10 |
|
|
40
|
-
| `friendli/meta-llama/Llama-3.3-70B-Instruct` | 131K | | | | | | $0.60 | $0.60 |
|
|
41
39
|
| `friendli/MiniMaxAI/MiniMax-M2.5` | 197K | | | | | | $0.30 | $1 |
|
|
42
40
|
| `friendli/Qwen/Qwen3-235B-A22B-Instruct-2507` | 262K | | | | | | $0.20 | $0.80 |
|
|
43
41
|
| `friendli/zai-org/GLM-5` | 203K | | | | | | $1 | $3 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# GMI Cloud
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 11 GMI Cloud models through Mastra's model router. Authentication is handled automatically using the `GMICLOUD_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [GMI Cloud documentation](https://docs.gmicloud.ai).
|
|
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: "gmicloud/
|
|
18
|
+
model: "gmicloud/Qwen/Qwen3.7-Max"
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Generate a response
|
|
@@ -32,16 +32,19 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `gmicloud/anthropic/claude-opus-4.6`
|
|
38
|
-
| `gmicloud/anthropic/claude-opus-4.7`
|
|
39
|
-
| `gmicloud/anthropic/claude-sonnet-4.6`
|
|
40
|
-
| `gmicloud/deepseek-ai/DeepSeek-V4-Flash`
|
|
41
|
-
| `gmicloud/deepseek-ai/DeepSeek-V4-Pro`
|
|
42
|
-
| `gmicloud/moonshotai/Kimi-K2.6`
|
|
43
|
-
| `gmicloud/
|
|
44
|
-
| `gmicloud/
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ---------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `gmicloud/anthropic/claude-opus-4.6` | 410K | | | | | | $5 | $25 |
|
|
38
|
+
| `gmicloud/anthropic/claude-opus-4.7` | 410K | | | | | | $5 | $23 |
|
|
39
|
+
| `gmicloud/anthropic/claude-sonnet-4.6` | 410K | | | | | | $3 | $15 |
|
|
40
|
+
| `gmicloud/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.11 | $0.22 |
|
|
41
|
+
| `gmicloud/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $1 | $3 |
|
|
42
|
+
| `gmicloud/moonshotai/Kimi-K2.6` | 66K | | | | | | $0.85 | $4 |
|
|
43
|
+
| `gmicloud/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
44
|
+
| `gmicloud/Qwen/Qwen3.7-Max` | 1.0M | | | | | | $3 | $8 |
|
|
45
|
+
| `gmicloud/zai-org/GLM-5-FP8` | 203K | | | | | | $0.60 | $2 |
|
|
46
|
+
| `gmicloud/zai-org/GLM-5.1-FP8` | 203K | | | | | | $0.98 | $3 |
|
|
47
|
+
| `gmicloud/zai-org/GLM-5.2-FP8` | 1.0M | | | | | | $0.98 | $3 |
|
|
45
48
|
|
|
46
49
|
## Advanced configuration
|
|
47
50
|
|
|
@@ -53,7 +56,7 @@ const agent = new Agent({
|
|
|
53
56
|
name: "custom-agent",
|
|
54
57
|
model: {
|
|
55
58
|
url: "https://api.gmi-serving.com/v1",
|
|
56
|
-
id: "gmicloud/
|
|
59
|
+
id: "gmicloud/Qwen/Qwen3.7-Max",
|
|
57
60
|
apiKey: process.env.GMICLOUD_API_KEY,
|
|
58
61
|
headers: {
|
|
59
62
|
"X-Custom-Header": "value"
|
|
@@ -71,8 +74,8 @@ const agent = new Agent({
|
|
|
71
74
|
model: ({ requestContext }) => {
|
|
72
75
|
const useAdvanced = requestContext.task === "complex";
|
|
73
76
|
return useAdvanced
|
|
74
|
-
? "gmicloud/zai-org/GLM-5.
|
|
75
|
-
: "gmicloud/
|
|
77
|
+
? "gmicloud/zai-org/GLM-5.2-FP8"
|
|
78
|
+
: "gmicloud/Qwen/Qwen3.7-Max";
|
|
76
79
|
}
|
|
77
80
|
});
|
|
78
81
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Inceptron
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 6 Inceptron models through Mastra's model router. Authentication is handled automatically using the `INCEPTRON_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Inceptron documentation](https://docs.inceptron.io).
|
|
6
6
|
|
|
@@ -32,12 +32,14 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `inceptron/MiniMaxAI/MiniMax-M2.5`
|
|
38
|
-
| `inceptron/moonshotai/Kimi-K2.6`
|
|
39
|
-
| `inceptron/
|
|
40
|
-
| `inceptron/
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `inceptron/MiniMaxAI/MiniMax-M2.5` | 197K | | | | | | $0.15 | $0.90 |
|
|
38
|
+
| `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.66 | $4 |
|
|
39
|
+
| `inceptron/moonshotai/Kimi-K2.6-Fast` | 262K | | | | | | $1 | $7 |
|
|
40
|
+
| `inceptron/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.75 | $4 |
|
|
41
|
+
| `inceptron/zai-org/GLM-5.1-FP8` | 203K | | | | | | $1 | $4 |
|
|
42
|
+
| `inceptron/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
41
43
|
|
|
42
44
|
## Advanced configuration
|
|
43
45
|
|
|
@@ -67,7 +69,7 @@ const agent = new Agent({
|
|
|
67
69
|
model: ({ requestContext }) => {
|
|
68
70
|
const useAdvanced = requestContext.task === "complex";
|
|
69
71
|
return useAdvanced
|
|
70
|
-
? "inceptron/zai-org/GLM-5.
|
|
72
|
+
? "inceptron/zai-org/GLM-5.2"
|
|
71
73
|
: "inceptron/MiniMaxAI/MiniMax-M2.5";
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -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 |
|
|
@@ -127,9 +125,8 @@ for await (const chunk of stream) {
|
|
|
127
125
|
| `llmgateway/grok-build-0-1` | 256K | | | | | | $1 | $2 |
|
|
128
126
|
| `llmgateway/kimi-k2` | 256K | | | | | | $0.57 | $2 |
|
|
129
127
|
| `llmgateway/kimi-k2-thinking` | 262K | | | | | | $0.57 | $2 |
|
|
130
|
-
| `llmgateway/kimi-k2-thinking-turbo` | 262K | | | | | | $1 | $8 |
|
|
131
128
|
| `llmgateway/kimi-k2.5` | 262K | | | | | | $0.41 | $2 |
|
|
132
|
-
| `llmgateway/kimi-k2.6` | 262K | | | | | | $0.
|
|
129
|
+
| `llmgateway/kimi-k2.6` | 262K | | | | | | $0.40 | $2 |
|
|
133
130
|
| `llmgateway/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
134
131
|
| `llmgateway/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
135
132
|
| `llmgateway/llama-3-70b-instruct` | 8K | | | | | | $0.51 | $0.74 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Neuralwatt
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 18 Neuralwatt models through Mastra's model router. Authentication is handled automatically using the `NEURALWATT_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Neuralwatt documentation](https://portal.neuralwatt.com/docs).
|
|
6
6
|
|
|
@@ -34,12 +34,17 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
36
|
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
-
| `neuralwatt/glm-5-fast` | 203K | | | | | | $1 | $4 |
|
|
38
|
-
| `neuralwatt/glm-5.1-fast` | 203K | | | | | | $1 | $4 |
|
|
39
37
|
| `neuralwatt/glm-5.2` | 1.0M | | | | | | $1 | $5 |
|
|
38
|
+
| `neuralwatt/glm-5.2-fast` | 1.0M | | | | | | $1 | $5 |
|
|
39
|
+
| `neuralwatt/glm-5.2-flex` | 1.0M | | | | | | $0.72 | $2 |
|
|
40
40
|
| `neuralwatt/glm-5.2-short` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `neuralwatt/glm-5.2-short-fast` | 200K | | | | | | $1 | $5 |
|
|
42
|
+
| `neuralwatt/glm-5.2-short-fast-flex` | 200K | | | | | | $0.72 | $2 |
|
|
43
|
+
| `neuralwatt/glm-5.2-short-flex` | 200K | | | | | | $0.72 | $2 |
|
|
41
44
|
| `neuralwatt/kimi-k2.5-fast` | 262K | | | | | | $0.52 | $3 |
|
|
42
45
|
| `neuralwatt/kimi-k2.6-fast` | 262K | | | | | | $0.69 | $3 |
|
|
46
|
+
| `neuralwatt/kimi-k2.6-flex` | 262K | | | | | | $0.34 | $2 |
|
|
47
|
+
| `neuralwatt/kimi-k2.7-code-flex` | 262K | | | | | | $0.47 | $2 |
|
|
43
48
|
| `neuralwatt/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.52 | $3 |
|
|
44
49
|
| `neuralwatt/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.69 | $3 |
|
|
45
50
|
| `neuralwatt/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.95 | $4 |
|
|
@@ -47,7 +52,6 @@ for await (const chunk of stream) {
|
|
|
47
52
|
| `neuralwatt/Qwen/Qwen3.6-35B-A3B` | 131K | | | | | | $0.29 | $1 |
|
|
48
53
|
| `neuralwatt/qwen3.5-397b-fast` | 262K | | | | | | $0.69 | $4 |
|
|
49
54
|
| `neuralwatt/qwen3.6-35b-fast` | 131K | | | | | | $0.29 | $1 |
|
|
50
|
-
| `neuralwatt/zai-org/GLM-5.1-FP8` | 203K | | | | | | $1 | $4 |
|
|
51
55
|
|
|
52
56
|
## Advanced configuration
|
|
53
57
|
|
|
@@ -77,7 +81,7 @@ const agent = new Agent({
|
|
|
77
81
|
model: ({ requestContext }) => {
|
|
78
82
|
const useAdvanced = requestContext.task === "complex";
|
|
79
83
|
return useAdvanced
|
|
80
|
-
? "neuralwatt/
|
|
84
|
+
? "neuralwatt/qwen3.6-35b-fast"
|
|
81
85
|
: "neuralwatt/Qwen/Qwen3.5-397B-A17B-FP8";
|
|
82
86
|
}
|
|
83
87
|
});
|
|
@@ -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)
|
|
@@ -13,7 +13,7 @@ Metrics are extracted from spans when they end. The observability layer inspects
|
|
|
13
13
|
Two conditions must be true for a metric to reach storage:
|
|
14
14
|
|
|
15
15
|
1. `MastraStorageExporter` is configured as an exporter.
|
|
16
|
-
2. The storage backend supports metrics (ClickHouse or
|
|
16
|
+
2. The storage backend supports metrics (ClickHouse, DuckDB, or Postgres v-next with the observability domain enabled).
|
|
17
17
|
|
|
18
18
|
If metrics aren't available, see [troubleshooting](#troubleshooting).
|
|
19
19
|
|
|
@@ -116,7 +116,7 @@ When you spot a spike in latency or token usage on the Metrics dashboard, correl
|
|
|
116
116
|
|
|
117
117
|
- **Observability is configured**: Verify that your `Mastra` instance has an `observability` config with at least one exporter.
|
|
118
118
|
- **`MastraStorageExporter` or `MastraPlatformExporter` is present**: Other exporters (Datadog, Langfuse, etc.) don't surface metrics in Mastra. `MastraStorageExporter` is required for the local Studio dashboard, and `MastraPlatformExporter` is required to view metrics in Mastra platform.
|
|
119
|
-
- **Storage supports metrics**: Metrics require an
|
|
119
|
+
- **Storage supports metrics**: Metrics require an analytics-capable store (ClickHouse, DuckDB, or Postgres v-next with the observability domain enabled). Other row-oriented databases (LibSQL, MSSQL) and document stores (MongoDB) aren't supported for metrics.
|
|
120
120
|
- **Sampling isn't 0%**: If sampling probability is `0` or strategy is `never`, all spans become no-ops and no metrics are extracted.
|
|
121
121
|
|
|
122
122
|
### Duration metrics are missing
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
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
|
+
|
|
10
|
+
## 1.2.3-alpha.7
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`cdd5f93`](https://github.com/mastra-ai/mastra/commit/cdd5f939cefa67390629704dce92563ccbf492b2), [`1b8728a`](https://github.com/mastra-ai/mastra/commit/1b8728a57fd844205a452b0b4216d20ff60c784a), [`213feb8`](https://github.com/mastra-ai/mastra/commit/213feb87bfdd1d8ec00ea660e218f9bcfcb34e7b)]:
|
|
15
|
+
- @mastra/core@1.48.0-alpha.3
|
|
16
|
+
|
|
3
17
|
## 1.2.3-alpha.5
|
|
4
18
|
|
|
5
19
|
### 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,8 +46,8 @@
|
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"vitest": "4.1.8",
|
|
48
48
|
"@internal/types-builder": "0.0.84",
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
49
|
+
"@mastra/core": "1.48.0-alpha.4",
|
|
50
|
+
"@internal/lint": "0.0.109"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|
|
53
53
|
"repository": {
|