@mastra/mcp-docs-server 1.3.0-alpha.2 → 1.3.0-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 +4 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/google.md +3 -3
- package/.docs/models/providers/kilo.md +8 -5
- package/.docs/models/providers/llmgateway-providers.md +3 -1
- package/.docs/models/providers/nano-gpt.md +3 -1
- package/.docs/models/providers/opencode-go.md +2 -1
- package/.docs/models/providers/snowflake-cortex.md +4 -4
- package/.docs/models/providers/togetherai.md +1 -1
- package/.docs/reference/agents/durable-agent.md +2 -0
- package/.docs/reference/agents/inngest-agent.md +2 -0
- package/.docs/reference/observability/tracing/trace-query.md +17 -1
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenRouter
|
|
6
6
|
|
|
7
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 386 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -359,6 +359,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
359
359
|
| `qwen/qwen3.8-27b:free` |
|
|
360
360
|
| `qwen/qwen3.8-flash` |
|
|
361
361
|
| `qwen/qwen3.8-max-0902` |
|
|
362
|
+
| `qwen/qwen3.8-max-prime` |
|
|
362
363
|
| `qwen/qwen3.8-omni-flash` |
|
|
363
364
|
| `rekaai/reka-edge` |
|
|
364
365
|
| `rekaai/reka-flash-3` |
|
|
@@ -371,6 +372,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
371
372
|
| `sao10k/l3-lunaris-8b` |
|
|
372
373
|
| `sao10k/l3.1-euryale-70b` |
|
|
373
374
|
| `sao10k/l3.3-euryale-70b` |
|
|
375
|
+
| `stealth/space-bunny-alpha` |
|
|
374
376
|
| `stepfun/step-3.5-flash` |
|
|
375
377
|
| `stepfun/step-3.7-flash` |
|
|
376
378
|
| `tencent/hunyuan-a13b-instruct` |
|
|
@@ -420,4 +422,5 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
420
422
|
| `z-ai/glm-5.3` |
|
|
421
423
|
| `z-ai/glm-5.3-flash` |
|
|
422
424
|
| `z-ai/glm-5.3-flashx` |
|
|
425
|
+
| `z-ai/glm-5.3-prime` |
|
|
423
426
|
| `z-ai/glm-5v-turbo` |
|
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 7594 models from 210 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -39,7 +39,7 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| ------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
40
40
|
| `google/deep-research-max-preview-04-2026` | 131K | | | | | | $2 | $12 |
|
|
41
41
|
| `google/deep-research-preview-04-2026` | 131K | | | | | | $2 | $12 |
|
|
42
|
-
| `google/gemini-2.5-computer-use-preview-10-2025` |
|
|
42
|
+
| `google/gemini-2.5-computer-use-preview-10-2025` | 128K | | | | | | $1 | $10 |
|
|
43
43
|
| `google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
44
44
|
| `google/gemini-2.5-flash-image` | 33K | | | | | | $0.30 | $30 |
|
|
45
45
|
| `google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
@@ -47,9 +47,9 @@ for await (const chunk of stream) {
|
|
|
47
47
|
| `google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
48
48
|
| `google/gemini-2.5-pro-preview-tts` | 8K | | | | | | $1 | $20 |
|
|
49
49
|
| `google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
50
|
-
| `google/gemini-3-pro-image` |
|
|
50
|
+
| `google/gemini-3-pro-image` | 66K | | | | | | $2 | $120 |
|
|
51
51
|
| `google/gemini-3-pro-image-preview` | 131K | | | | | | $2 | $120 |
|
|
52
|
-
| `google/gemini-3.1-flash-image` |
|
|
52
|
+
| `google/gemini-3.1-flash-image` | 131K | | | | | | $0.50 | $60 |
|
|
53
53
|
| `google/gemini-3.1-flash-image-preview` | 66K | | | | | | $0.50 | $60 |
|
|
54
54
|
| `google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
55
55
|
| `google/gemini-3.1-flash-lite-image` | 66K | | | | | | $0.25 | $30 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Kilo Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 393 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
10
10
|
|
|
@@ -42,8 +42,8 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `kilo/~anthropic/claude-haiku-latest` | 200K | | | | | | $1 | $5 |
|
|
43
43
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
44
44
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
-
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.10 | $0.
|
|
46
|
-
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.
|
|
45
|
+
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.10 | $0.60 |
|
|
46
|
+
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.39 | $1 |
|
|
47
47
|
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.04 | $0.55 |
|
|
48
48
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
49
49
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
@@ -116,7 +116,7 @@ for await (const chunk of stream) {
|
|
|
116
116
|
| `kilo/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
117
117
|
| `kilo/dots-studio/dots-3-note-preview:free` | 512K | | | | | | — | — |
|
|
118
118
|
| `kilo/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
119
|
-
| `kilo/google/gemini-2.5-flash-image` | 33K | | | | | | $0.
|
|
119
|
+
| `kilo/google/gemini-2.5-flash-image` | 33K | | | | | | $0.15 | $1 |
|
|
120
120
|
| `kilo/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
121
121
|
| `kilo/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
122
122
|
| `kilo/google/gemini-2.5-pro-preview` | 1.0M | | | | | | $1 | $10 |
|
|
@@ -127,7 +127,7 @@ for await (const chunk of stream) {
|
|
|
127
127
|
| `kilo/google/gemini-3.1-flash-image-preview` | 66K | | | | | | $0.50 | $3 |
|
|
128
128
|
| `kilo/google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.13 | $0.75 |
|
|
129
129
|
| `kilo/google/gemini-3.1-flash-lite-image` | 66K | | | | | | $0.25 | $2 |
|
|
130
|
-
| `kilo/google/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.
|
|
130
|
+
| `kilo/google/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.13 | $0.75 |
|
|
131
131
|
| `kilo/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $1 | $6 |
|
|
132
132
|
| `kilo/google/gemini-3.1-pro-preview-customtools` | 1.0M | | | | | | $2 | $12 |
|
|
133
133
|
| `kilo/google/gemini-3.5-flash` | 1.0M | | | | | | $0.75 | $5 |
|
|
@@ -361,6 +361,7 @@ for await (const chunk of stream) {
|
|
|
361
361
|
| `kilo/qwen/qwen3.8-27b:free` | 262K | | | | | | — | — |
|
|
362
362
|
| `kilo/qwen/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
363
363
|
| `kilo/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
364
|
+
| `kilo/qwen/qwen3.8-max-prime` | 1.0M | | | | | | $4 | $12 |
|
|
364
365
|
| `kilo/qwen/qwen3.8-omni-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
365
366
|
| `kilo/rekaai/reka-edge` | 16K | | | | | | $0.10 | $0.10 |
|
|
366
367
|
| `kilo/rekaai/reka-flash-3` | 66K | | | | | | $0.10 | $0.20 |
|
|
@@ -378,6 +379,7 @@ for await (const chunk of stream) {
|
|
|
378
379
|
| `kilo/stealth/claude-opus-4.8` | 1.0M | | | | | | $4 | $20 |
|
|
379
380
|
| `kilo/stealth/claude-sonnet-4.6` | 1.0M | | | | | | $2 | $12 |
|
|
380
381
|
| `kilo/stealth/qwen3.6-plus` | 1.0M | | | | | | $0.25 | $2 |
|
|
382
|
+
| `kilo/stealth/space-bunny-alpha` | 1.0M | | | | | | — | — |
|
|
381
383
|
| `kilo/stepfun/step-3.5-flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
382
384
|
| `kilo/stepfun/step-3.7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
383
385
|
| `kilo/stepfun/step-3.7-flash:free` | 262K | | | | | | — | — |
|
|
@@ -427,6 +429,7 @@ for await (const chunk of stream) {
|
|
|
427
429
|
| `kilo/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
428
430
|
| `kilo/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
429
431
|
| `kilo/z-ai/glm-5.3-flashx` | 1.0M | | | | | | $0.37 | $1 |
|
|
432
|
+
| `kilo/z-ai/glm-5.3-prime` | 1.0M | | | | | | $3 | $9 |
|
|
430
433
|
| `kilo/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
|
|
431
434
|
|
|
432
435
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 428 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
|
|
|
@@ -140,6 +140,8 @@ for await (const chunk of stream) {
|
|
|
140
140
|
| `llmgateway-providers/azure/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
141
141
|
| `llmgateway-providers/azure/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
142
142
|
| `llmgateway-providers/azure/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
143
|
+
| `llmgateway-providers/azure/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
144
|
+
| `llmgateway-providers/azure/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
143
145
|
| `llmgateway-providers/azure/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
144
146
|
| `llmgateway-providers/azure/o1` | 200K | | | | | | $15 | $60 |
|
|
145
147
|
| `llmgateway-providers/azure/o3` | 200K | | | | | | $2 | $8 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# NanoGPT
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 592 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
|
|
|
@@ -491,6 +491,7 @@ for await (const chunk of stream) {
|
|
|
491
491
|
| `nano-gpt/qwen/qwen3.8-flash` | 992K | | | | | | $0.14 | $0.42 |
|
|
492
492
|
| `nano-gpt/qwen/qwen3.8-max` | 991K | | | | | | $2 | $6 |
|
|
493
493
|
| `nano-gpt/qwen/qwen3.8-max-0902` | 992K | | | | | | $2 | $6 |
|
|
494
|
+
| `nano-gpt/qwen/qwen3.8-max-prime` | 1.0M | | | | | | $4 | $12 |
|
|
494
495
|
| `nano-gpt/qwen/qwen3.8-max:thinking` | 991K | | | | | | $2 | $6 |
|
|
495
496
|
| `nano-gpt/qwen/qwen3.8-omni-flash` | 992K | | | | | | $0.15 | $0.47 |
|
|
496
497
|
| `nano-gpt/qwen3-vl-235b-a22b-instruct-original` | 33K | | | | | | $0.30 | $2 |
|
|
@@ -511,6 +512,7 @@ for await (const chunk of stream) {
|
|
|
511
512
|
| `nano-gpt/soob3123/amoral-gemma3-27B-v2` | 33K | | | | | | $0.30 | $0.30 |
|
|
512
513
|
| `nano-gpt/soob3123/GrayLine-Qwen3-8B` | 33K | | | | | | $0.30 | $0.30 |
|
|
513
514
|
| `nano-gpt/soob3123/Veiled-Calla-12B` | 33K | | | | | | $0.30 | $0.30 |
|
|
515
|
+
| `nano-gpt/stealth/space-bunny-alpha` | 1.0M | | | | | | $0.05 | $0.15 |
|
|
514
516
|
| `nano-gpt/Steelskull/L3.3-Cu-Mai-R1-70b` | 33K | | | | | | $0.49 | $0.49 |
|
|
515
517
|
| `nano-gpt/Steelskull/L3.3-Electra-R1-70b` | 33K | | | | | | $0.70 | $0.70 |
|
|
516
518
|
| `nano-gpt/Steelskull/L3.3-MS-Nevoria-70b` | 33K | | | | | | $0.49 | $0.49 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Go
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 41 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenCode Go documentation](https://opencode.ai/docs/go).
|
|
10
10
|
|
|
@@ -47,6 +47,7 @@ for await (const chunk of stream) {
|
|
|
47
47
|
| `opencode-go/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
48
48
|
| `opencode-go/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
49
49
|
| `opencode-go/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
50
|
+
| `opencode-go/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
50
51
|
| `opencode-go/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
51
52
|
| `opencode-go/grok-4.7` | 500K | | | | | | $2 | $6 |
|
|
52
53
|
| `opencode-go/hy3` | 256K | | | | | | $0.14 | $0.58 |
|
|
@@ -52,11 +52,11 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `snowflake-cortex/deepseek-r1` | 128K | | | | | | — | — |
|
|
53
53
|
| `snowflake-cortex/gemini-3.1-pro` | 1.0M | | | | | | — | — |
|
|
54
54
|
| `snowflake-cortex/mistral-large2` | 262K | | | | | | — | — |
|
|
55
|
-
| `snowflake-cortex/openai-gpt-4.1` |
|
|
56
|
-
| `snowflake-cortex/openai-gpt-5` |
|
|
55
|
+
| `snowflake-cortex/openai-gpt-4.1` | 128K | | | | | | — | — |
|
|
56
|
+
| `snowflake-cortex/openai-gpt-5` | 272K | | | | | | — | — |
|
|
57
57
|
| `snowflake-cortex/openai-gpt-5-mini` | 272K | | | | | | — | — |
|
|
58
|
-
| `snowflake-cortex/openai-gpt-5-nano` |
|
|
59
|
-
| `snowflake-cortex/openai-gpt-5.1` |
|
|
58
|
+
| `snowflake-cortex/openai-gpt-5-nano` | 272K | | | | | | — | — |
|
|
59
|
+
| `snowflake-cortex/openai-gpt-5.1` | 272K | | | | | | — | — |
|
|
60
60
|
| `snowflake-cortex/openai-gpt-5.2` | 400K | | | | | | — | — |
|
|
61
61
|
| `snowflake-cortex/openai-gpt-5.4` | 1.1M | | | | | | — | — |
|
|
62
62
|
| `snowflake-cortex/openai-gpt-5.5` | 1.1M | | | | | | — | — |
|
|
@@ -60,7 +60,7 @@ for await (const chunk of stream) {
|
|
|
60
60
|
| `togetherai/Qwen/Qwen3.6-Plus` | 1.0M | | | | | | $0.50 | $3 |
|
|
61
61
|
| `togetherai/Qwen/Qwen3.7-Max` | 1.0M | | | | | | $1 | $4 |
|
|
62
62
|
| `togetherai/thinkingmachines/Inkling` | 524K | | | | | | $1 | $4 |
|
|
63
|
-
| `togetherai/zai-org/GLM-5.2` |
|
|
63
|
+
| `togetherai/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
64
64
|
| `togetherai/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
65
65
|
| `togetherai/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
66
66
|
|
|
@@ -390,6 +390,8 @@ Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
|
|
|
390
390
|
|
|
391
391
|
**autoResumeSuspendedTools** (`boolean`): Automatically resume tools that suspended, instead of waiting for an external resume() call.
|
|
392
392
|
|
|
393
|
+
**closeOnSuspend** (`boolean`): When true, close the stream when the run suspends (for example for tool approval) so fullStream, text, and getFullOutput() resolve at the suspension boundary instead of staying open, matching non-durable Agent.stream(). Useful for callers such as AG-UI or A2A that need the stream to end. Defaults to false, which keeps the stream open across suspension so a later resume can continue streaming on the same reader. resume()/resumeStream() always return a fresh stream. (Default: `false`)
|
|
394
|
+
|
|
393
395
|
**toolCallConcurrency** (`number`): Maximum number of tool calls to execute concurrently.
|
|
394
396
|
|
|
395
397
|
**includeRawChunks** (`boolean`): Include raw provider chunks in the stream output.
|
|
@@ -275,6 +275,8 @@ Returns: `boolean`
|
|
|
275
275
|
|
|
276
276
|
**autoResumeSuspendedTools** (`boolean`): Automatically resume tools that suspended, instead of waiting for an external resume() call.
|
|
277
277
|
|
|
278
|
+
**closeOnSuspend** (`boolean`): When true, close the stream when the run suspends (for example for tool approval) so fullStream, text, and getFullOutput() resolve at the suspension boundary instead of staying open, matching non-durable Agent.stream(). Useful for callers such as AG-UI or A2A that need the stream to end. Defaults to false, which keeps the stream open across suspension so a later resume can continue streaming on the same reader. resume()/resumeStream() always return a fresh stream. (Default: `false`)
|
|
279
|
+
|
|
278
280
|
**toolCallConcurrency** (`number`): Maximum number of tool calls to execute concurrently.
|
|
279
281
|
|
|
280
282
|
**includeRawChunks** (`boolean`): Include raw provider chunks in the stream output.
|
|
@@ -287,7 +287,7 @@ Hono and Fastify enforce the request-body limit before JSON parsing. Express and
|
|
|
287
287
|
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
|
|
288
288
|
| Trace | `traceId`, `threadId`, `resourceId`, `entityName`, `entityType`, `environment`, `status` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
|
|
289
289
|
| Trace metadata | `metadata.<key>` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
|
|
290
|
-
| Trace | `startedAt`, `endedAt`
|
|
290
|
+
| Trace | `startedAt`, `endedAt`, `durationMs` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
|
|
291
291
|
| Trace | `tags` | `includes`, `notIncludes`, `exists`, `notExists` |
|
|
292
292
|
| Span | `name`, `spanType`, `model`, `provider`, `status`, `entityType`, `entityId`, `entityName`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
|
|
293
293
|
| Span | `startedAt`, `endedAt`, `durationMs` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
|
|
@@ -303,6 +303,22 @@ Compose predicates with `{ op: 'and', args: [...] }`, `{ op: 'or', args: [...] }
|
|
|
303
303
|
|
|
304
304
|
String comparisons are case-sensitive, and literals are never coerced. Canonical string fields compare exact stored values. Metadata string values are trimmed before comparison, as described below. Numeric predicates, including `score` and `durationMs`, require numbers, while timestamp predicates require ISO timestamp strings. A missing value satisfies neither positive nor ordered predicates, although it does satisfy the negative operators `ne` and `notIn`. Combine a negative predicate with `exists` when the field must also be present.
|
|
305
305
|
|
|
306
|
+
### Filter by root duration
|
|
307
|
+
|
|
308
|
+
At trace scope, `durationMs` is the current completed root span's elapsed time in milliseconds. The value is derived from `endedAt - startedAt` when the query runs:
|
|
309
|
+
|
|
310
|
+
```typescript
|
|
311
|
+
const slowRootTraces = {
|
|
312
|
+
op: 'gt',
|
|
313
|
+
left: { path: 'durationMs' },
|
|
314
|
+
right: { literal: 5000 },
|
|
315
|
+
}
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
This top-level predicate doesn't inspect child spans. In contrast, `spans.some` with a `durationMs` predicate examines the current root span and current child spans, so a long child can satisfy that clause even when its root is shorter.
|
|
319
|
+
|
|
320
|
+
Trace queries exclude incomplete roots before evaluating predicates. As a result, `{ op: 'notExists', path: 'durationMs' }` doesn't find running traces or malformed roots without a usable `endedAt`.
|
|
321
|
+
|
|
306
322
|
### Filter by span properties
|
|
307
323
|
|
|
308
324
|
Every condition inside one `spans.some` or `spans.none` clause applies to the same current span. For example, this predicate finds a failed tool span whose name is `medication_lookup`; a matching name on one span and an error on another don't satisfy it:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.0-alpha.
|
|
3
|
+
"version": "1.3.0-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",
|
|
@@ -26,7 +26,7 @@
|
|
|
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/core": "1.70.0-alpha.
|
|
29
|
+
"@mastra/core": "1.70.0-alpha.2",
|
|
30
30
|
"@mastra/mcp": "^2.1.0-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"tsx": "^4.23.1",
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
|
+
"@mastra/core": "1.70.0-alpha.2",
|
|
46
47
|
"@internal/lint": "0.0.135",
|
|
47
|
-
"@internal/types-builder": "0.0.110"
|
|
48
|
-
"@mastra/core": "1.70.0-alpha.1"
|
|
48
|
+
"@internal/types-builder": "0.0.110"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://mastra.ai",
|
|
51
51
|
"repository": {
|