@mastra/mcp-docs-server 1.2.11-alpha.5 → 1.2.11

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Vercel logo](https://models.dev/logos/vercel.svg)Vercel
4
4
 
5
- Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 307 models through Mastra's model router.
5
+ Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 306 models through Mastra's model router.
6
6
 
7
7
  Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
8
8
 
@@ -134,7 +134,6 @@ ANTHROPIC_API_KEY=ant-...
134
134
  | `google/gemini-2.5-pro` |
135
135
  | `google/gemini-3-flash` |
136
136
  | `google/gemini-3-pro-image` |
137
- | `google/gemini-3-pro-preview` |
138
137
  | `google/gemini-3.1-flash-image` |
139
138
  | `google/gemini-3.1-flash-image-preview` |
140
139
  | `google/gemini-3.1-flash-lite` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Model Providers
4
4
 
5
- Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 5107 models from 162 providers through a single API.
5
+ Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 5115 models from 162 providers through a single API.
6
6
 
7
7
  ## Features
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![ai&](https://models.dev/logos/aiand.svg)ai&
4
4
 
5
- Access 10 ai& models through Mastra's model router. Authentication is handled automatically using the `AIAND_API_KEY` environment variable.
5
+ Access 8 ai& models through Mastra's model router. Authentication is handled automatically using the `AIAND_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [ai& documentation](https://docs.aiand.com/).
8
8
 
@@ -39,12 +39,10 @@ for await (const chunk of stream) {
39
39
  | `aiand/deepseek-ai/deepseek-v4-flash` | 1.0M | | | | | | $0.15 | $0.25 |
40
40
  | `aiand/deepseek-ai/deepseek-v4-pro` | 1.0M | | | | | | $1 | $3 |
41
41
  | `aiand/google/gemma-4-31b-it` | 262K | | | | | | $0.20 | $0.50 |
42
- | `aiand/moonshotai/kimi-k2.6` | 262K | | | | | | $0.85 | $4 |
43
42
  | `aiand/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.75 | $4 |
44
43
  | `aiand/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $13 |
45
44
  | `aiand/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
46
45
  | `aiand/qwen/qwen3.6-27b` | 262K | | | | | | — | — |
47
- | `aiand/zai-org/glm-5.1` | 200K | | | | | | $1 | $4 |
48
46
  | `aiand/zai-org/glm-5.2` | 1.0M | | | | | | $1 | $4 |
49
47
 
50
48
  ## Advanced configuration
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Berget.AI logo](https://models.dev/logos/berget.svg)Berget.AI
4
4
 
5
- Access 8 Berget.AI models through Mastra's model router. Authentication is handled automatically using the `BERGET_API_KEY` environment variable.
5
+ Access 9 Berget.AI models through Mastra's model router. Authentication is handled automatically using the `BERGET_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [Berget.AI documentation](https://api.berget.ai).
8
8
 
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
41
41
  | `berget/mistralai/Mistral-Medium-3.5-128B` | 262K | | | | | | $2 | $6 |
42
42
  | `berget/mistralai/Mistral-Small-3.2-24B-Instruct-2506` | 32K | | | | | | $0.33 | $0.33 |
43
43
  | `berget/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.83 | $4 |
44
+ | `berget/moonshotai/Kimi-K3` | 328K | | | | | | $3 | $15 |
44
45
  | `berget/openai/gpt-oss-120b` | 128K | | | | | | $0.22 | $0.83 |
45
46
  | `berget/zai-org/GLM-4.7` | 128K | | | | | | $0.77 | $3 |
46
47
  | `berget/zai-org/GLM-5.2` | 524K | | | | | | $2 | $5 |
@@ -38,18 +38,18 @@ for await (const chunk of stream) {
38
38
  | ---------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
39
  | `hyper/deepseek-v4-flash` | 1.0M | | | | | | $0.20 | $0.40 |
40
40
  | `hyper/deepseek-v4-pro` | 1.0M | | | | | | $2 | $5 |
41
- | `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.11 | $0.40 |
42
- | `hyper/glm-5` | 203K | | | | | | $0.91 | $3 |
41
+ | `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.13 | $0.42 |
42
+ | `hyper/glm-5` | 203K | | | | | | $0.81 | $3 |
43
43
  | `hyper/glm-5.1` | 203K | | | | | | $2 | $5 |
44
44
  | `hyper/glm-5.2` | 1.0M | | | | | | $1 | $4 |
45
- | `hyper/gpt-oss-120b` | 131K | | | | | | $0.18 | $0.68 |
45
+ | `hyper/gpt-oss-120b` | 131K | | | | | | $0.18 | $0.65 |
46
46
  | `hyper/kimi-k2.5` | 262K | | | | | | $0.53 | $3 |
47
47
  | `hyper/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
48
- | `hyper/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
48
+ | `hyper/kimi-k2.7-code` | 256K | | | | | | $0.95 | $4 |
49
49
  | `hyper/llama-3.3-70b-instruct` | 128K | | | | | | $0.61 | $1 |
50
- | `hyper/llama-4-maverick-17b-128e-instruct-fp8` | 430K | | | | | | $0.27 | $0.92 |
51
- | `hyper/minimax-m2.7` | 205K | | | | | | $0.42 | $2 |
52
- | `hyper/qwen3-coder-480b-a35b-instruct-int4-mixed-ar` | 106K | | | | | | $0.60 | $2 |
50
+ | `hyper/llama-4-maverick-17b-128e-instruct-fp8` | 430K | | | | | | $0.28 | $0.93 |
51
+ | `hyper/minimax-m2.7` | 205K | | | | | | $0.35 | $1 |
52
+ | `hyper/qwen3-coder-480b-a35b-instruct-int4-mixed-ar` | 106K | | | | | | $0.57 | $2 |
53
53
  | `hyper/qwen3-next-80b-a3b-instruct` | 262K | | | | | | $0.12 | $1 |
54
54
  | `hyper/qwen3.6-flash` | 1.0M | | | | | | $1 | $4 |
55
55
  | `hyper/qwen3.6-max` | 256K | | | | | | $2 | $12 |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Xpersona logo](https://models.dev/logos/xpersona.svg)Xpersona
4
4
 
5
- Access 3 Xpersona models through Mastra's model router. Authentication is handled automatically using the `XPERSONA_API_KEY` environment variable.
5
+ Access 13 Xpersona models through Mastra's model router. Authentication is handled automatically using the `XPERSONA_API_KEY` environment variable.
6
6
 
7
7
  Learn more in the [Xpersona documentation](https://www.xpersona.co/docs).
8
8
 
@@ -36,7 +36,17 @@ for await (const chunk of stream) {
36
36
 
37
37
  | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
38
38
  | --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
- | `xpersona/claude-fable-5` | 1.0M | | | | | | $3 | $18 |
39
+ | `xpersona/claude-fable-5` | 1.0M | | | | | | $3 | $19 |
40
+ | `xpersona/claude-haiku-4-5` | 200K | | | | | | $0.60 | $4 |
41
+ | `xpersona/claude-opus-4-8` | 200K | | | | | | $2 | $9 |
42
+ | `xpersona/claude-sonnet-4-6` | 200K | | | | | | $0.90 | $6 |
43
+ | `xpersona/gemini-3.5-flash` | 1.0M | | | | | | $2 | $12 |
44
+ | `xpersona/gpt-5.4` | 1.1M | | | | | | $0.75 | $6 |
45
+ | `xpersona/gpt-5.4-mini` | 272K | | | | | | $0.38 | $4 |
46
+ | `xpersona/gpt-5.5` | 1.1M | | | | | | $2 | $12 |
47
+ | `xpersona/gpt-5.6` | 372K | | | | | | $2 | $12 |
48
+ | `xpersona/gpt-5.6-sol` | 372K | | | | | | $2 | $12 |
49
+ | `xpersona/gpt-5.6-terra` | 372K | | | | | | $2 | $2 |
40
50
  | `xpersona/xpersona-frieren-coder` | 1.0M | | | | | | $2 | $6 |
41
51
  | `xpersona/xpersona-gpt-5.5` | 1.0M | | | | | | $3 | $18 |
42
52
 
@@ -76,7 +76,8 @@ const result = await scorer.run({
76
76
  The optional `judge` record contains details about the judge model calls made by prompt-based scorer steps. Its known keys are `preprocess`, `analyze`, `generateScore`, and `generateReason`. Each key contains an ordered `executions` array.
77
77
 
78
78
  ```typescript
79
- interface ScorerJudgeExecution {
79
+ interface ScorerJudgeExecutionSuccess {
80
+ status: 'success'
80
81
  prompt: string
81
82
  output: JSONValue
82
83
  judgeModelId: string
@@ -92,6 +93,8 @@ interface ScorerJudgeExecution {
92
93
  }
93
94
  }
94
95
 
96
+ type ScorerJudgeExecution = ScorerJudgeExecutionSuccess
97
+
95
98
  interface ScorerJudgeUsage {
96
99
  inputTokens?: number
97
100
  outputTokens?: number
@@ -114,11 +117,14 @@ Use the step key to access its judge execution details:
114
117
  ```typescript
115
118
  const execution = result.judge?.generateScore?.executions[0]
116
119
 
120
+ console.log(execution?.status)
117
121
  console.log(execution?.judgeModelId)
118
122
  console.log(execution?.usage.totalTokens)
119
123
  console.log(execution?.durationMs)
120
124
  ```
121
125
 
126
+ The `status` value describes the outcome of the logical prompt-step execution, not the quality of the evaluated response. A structured-output fallback that eventually succeeds creates one `success` execution with an `attemptCount` greater than one.
127
+
122
128
  `attemptCount` counts judge invocations, including a structured-output fallback. `modelCallCount` counts the completed model steps across those attempts. `durationMs` covers the full prompt-step execution.
123
129
 
124
130
  Function steps don't create `judge` entries. Usage in this record belongs to the scorer's judge model, not the agent or workflow being evaluated. The optional `cost` field is present only when the execution directly reports an authoritative cost, source, and unit.
@@ -287,6 +287,7 @@ The Reference section provides documentation of Mastra's API, including paramete
287
287
  - [Retention (prune)](https://mastra.ai/reference/storage/retention)
288
288
  - [Upstash Storage](https://mastra.ai/reference/storage/upstash)
289
289
  - [ChunkType](https://mastra.ai/reference/streaming/ChunkType)
290
+ - [smoothStream()](https://mastra.ai/reference/streaming/smoothStream)
290
291
  - [MastraModelOutput](https://mastra.ai/reference/streaming/agents/MastraModelOutput)
291
292
  - [.stream()](https://mastra.ai/reference/streaming/agents/stream)
292
293
  - [.streamLegacy()](https://mastra.ai/reference/streaming/agents/streamLegacy)
@@ -0,0 +1,135 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # `smoothStream()`
4
+
5
+ `smoothStream()` creates an experimental transform stream that buffers text and reasoning deltas before emitting them in consistent chunks. Use it to make streamed responses appear at a steadier pace when a model emits uneven deltas.
6
+
7
+ Non-text chunks pass through unchanged. Any buffered content is emitted before a tool, control, or completion chunk.
8
+
9
+ ## Usage example
10
+
11
+ Pipe an agent's `fullStream` through the transform:
12
+
13
+ ```typescript
14
+ import { smoothStream } from '@mastra/core/stream'
15
+
16
+ const result = await agent.stream('Explain how rainbows form')
17
+
18
+ const stream = result.fullStream.pipeThrough(
19
+ smoothStream({
20
+ delayInMs: 20,
21
+ chunking: 'word',
22
+ }),
23
+ )
24
+
25
+ for await (const chunk of stream) {
26
+ if (chunk.type === 'text-delta') {
27
+ process.stdout.write(chunk.payload.text)
28
+ }
29
+ }
30
+ ```
31
+
32
+ The transform changes only the piped stream. Promise properties and callbacks on the original `MastraModelOutput`, such as `result.text` and `onChunk`, keep the model's original chunk timing.
33
+
34
+ ## AI SDK routes
35
+
36
+ Import `smoothStream()` from `@mastra/ai-sdk` to smooth an agent before `handleChatStream()` converts its output to AI SDK UI chunks:
37
+
38
+ ```typescript
39
+ import { handleChatStream, smoothStream } from '@mastra/ai-sdk'
40
+ import { createUIMessageStreamResponse } from 'ai'
41
+ import { mastra } from '@/src/mastra'
42
+
43
+ export async function POST(req: Request) {
44
+ const params = await req.json()
45
+ const stream = await handleChatStream({
46
+ mastra,
47
+ agentId: 'weatherAgent',
48
+ params,
49
+ experimentalTransform: smoothStream({
50
+ delayInMs: 20,
51
+ chunking: 'word',
52
+ }),
53
+ })
54
+
55
+ return createUIMessageStreamResponse({ stream })
56
+ }
57
+ ```
58
+
59
+ The `@mastra/ai-sdk` export returns a reusable transform factory so route configuration creates a fresh `TransformStream` for every request. The `@mastra/core/stream` export returns a `TransformStream` for direct use with `pipeThrough()`.
60
+
61
+ The reusable factory can also be passed to `Agent.stream()`:
62
+
63
+ ```typescript
64
+ import { smoothStream } from '@mastra/ai-sdk'
65
+
66
+ const result = await agent.stream('Explain how rainbows form', {
67
+ experimentalTransform: smoothStream({ delayInMs: 20 }),
68
+ })
69
+
70
+ for await (const chunk of result.fullStream) {
71
+ // Consume the transformed Mastra chunks.
72
+ }
73
+ ```
74
+
75
+ ## Parameters
76
+
77
+ **options** (`SmoothStreamOptions`): Controls the delay and chunk boundaries for the transformed stream.
78
+
79
+ **options.delayInMs** (`number | null`): Delay in milliseconds after each emitted chunk. Set this value to null to disable the delay.
80
+
81
+ **options.chunking** (`'word' | 'line' | RegExp | SmoothStreamChunkDetector | Intl.Segmenter`): Controls how buffered text and reasoning are divided into chunks.
82
+
83
+ The `chunking` option accepts:
84
+
85
+ - `'word'`: Emits complete words, including trailing whitespace.
86
+ - `'line'`: Emits content through each newline.
87
+ - `RegExp`: Emits content through the first match.
88
+ - `Intl.Segmenter`: Uses locale-aware segmentation, which is useful for languages without spaces between words.
89
+ - `SmoothStreamChunkDetector`: Calls a function with the current buffer. The function returns a non-empty prefix to emit, or `null` or `undefined` to wait for more content.
90
+
91
+ ## Custom chunking
92
+
93
+ Use a regular expression to define a chunk boundary:
94
+
95
+ ```typescript
96
+ const stream = result.fullStream.pipeThrough(
97
+ smoothStream({
98
+ chunking: /[^,]*,\s*/,
99
+ }),
100
+ )
101
+ ```
102
+
103
+ Use `Intl.Segmenter` for locale-aware segmentation:
104
+
105
+ ```typescript
106
+ const stream = result.fullStream.pipeThrough(
107
+ smoothStream({
108
+ chunking: new Intl.Segmenter('ja', { granularity: 'word' }),
109
+ }),
110
+ )
111
+ ```
112
+
113
+ Use a detector function when chunk boundaries depend on custom logic. The returned value must be a prefix of the buffer:
114
+
115
+ ```typescript
116
+ const stream = result.fullStream.pipeThrough(
117
+ smoothStream({
118
+ chunking: buffer => {
119
+ const boundary = buffer.indexOf('. ')
120
+ return boundary === -1 ? null : buffer.slice(0, boundary + 2)
121
+ },
122
+ }),
123
+ )
124
+ ```
125
+
126
+ ## Returns
127
+
128
+ `TransformStream<ChunkType<OUTPUT>, ChunkType<OUTPUT>>`
129
+
130
+ The transform emits smoothed `text-delta` and `reasoning-delta` chunks. It preserves chunk identifiers, run identifiers, sources, and metadata.
131
+
132
+ ## Related
133
+
134
+ - [`MastraModelOutput`](https://mastra.ai/reference/streaming/agents/MastraModelOutput)
135
+ - [`ChunkType`](https://mastra.ai/reference/streaming/ChunkType)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.2.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`ce93a3c`](https://github.com/mastra-ai/mastra/commit/ce93a3c114ea1cbfbd576f3db41d7c26c9844f5b), [`5718a22`](https://github.com/mastra-ai/mastra/commit/5718a229281dcfd36bcd1f42a242e3717e510a33), [`a211d09`](https://github.com/mastra-ai/mastra/commit/a211d09185dc65a746534914cf38b67f21ee9bac), [`0dca9d0`](https://github.com/mastra-ai/mastra/commit/0dca9d0b1356024a53b72ea6f040db528b126caa), [`6218217`](https://github.com/mastra-ai/mastra/commit/62182171b6cfca0b099f1c6a77a2e65e7639ab86), [`5807d3a`](https://github.com/mastra-ai/mastra/commit/5807d3ae1d259b8b7d6df7e5bf2b485c694af9c8), [`57661af`](https://github.com/mastra-ai/mastra/commit/57661afeca52ff9af4e72675ede2134fa503d5a5), [`05db566`](https://github.com/mastra-ai/mastra/commit/05db566fcbdcbf33d0bffca0c72ec30129e2e3ca), [`57661af`](https://github.com/mastra-ai/mastra/commit/57661afeca52ff9af4e72675ede2134fa503d5a5), [`57661af`](https://github.com/mastra-ai/mastra/commit/57661afeca52ff9af4e72675ede2134fa503d5a5), [`5718a22`](https://github.com/mastra-ai/mastra/commit/5718a229281dcfd36bcd1f42a242e3717e510a33), [`57661af`](https://github.com/mastra-ai/mastra/commit/57661afeca52ff9af4e72675ede2134fa503d5a5), [`d1b7e3a`](https://github.com/mastra-ai/mastra/commit/d1b7e3a978a309a5653eeaa490d2d6c7c53bd093), [`29c584a`](https://github.com/mastra-ai/mastra/commit/29c584a13a88831e5ed1fdeb0ff8e82eae180433), [`c093146`](https://github.com/mastra-ai/mastra/commit/c0931466404d3c521308ea119cb165bb7e695155), [`8124754`](https://github.com/mastra-ai/mastra/commit/8124754ae89fbc69f8136d1df4a91904d0f84c4e), [`d12b2e4`](https://github.com/mastra-ai/mastra/commit/d12b2e4023fd9e3d3e93a9169f5088bcee2a849c)]:
8
+ - @mastra/core@1.54.0
9
+
10
+ ## 1.2.11-alpha.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`6218217`](https://github.com/mastra-ai/mastra/commit/62182171b6cfca0b099f1c6a77a2e65e7639ab86), [`d12b2e4`](https://github.com/mastra-ai/mastra/commit/d12b2e4023fd9e3d3e93a9169f5088bcee2a849c)]:
15
+ - @mastra/core@1.54.0-alpha.4
16
+
3
17
  ## 1.2.11-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.11-alpha.5",
3
+ "version": "1.2.11",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,7 +28,7 @@
28
28
  "jsdom": "^26.1.0",
29
29
  "local-pkg": "^1.1.2",
30
30
  "zod": "^4.4.3",
31
- "@mastra/core": "1.54.0-alpha.3",
31
+ "@mastra/core": "1.54.0",
32
32
  "@mastra/mcp": "^1.15.0"
33
33
  },
34
34
  "devDependencies": {
@@ -45,9 +45,9 @@
45
45
  "tsx": "^4.23.1",
46
46
  "typescript": "^6.0.3",
47
47
  "vitest": "4.1.10",
48
- "@internal/lint": "0.0.117",
49
- "@internal/types-builder": "0.0.92",
50
- "@mastra/core": "1.54.0-alpha.3"
48
+ "@internal/lint": "0.0.118",
49
+ "@internal/types-builder": "0.0.93",
50
+ "@mastra/core": "1.54.0"
51
51
  },
52
52
  "homepage": "https://mastra.ai",
53
53
  "repository": {