@mastra/mcp-docs-server 1.3.4 → 1.3.5-alpha.1
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/channels.md +7 -3
- package/.docs/docs/memory/observational-memory.md +25 -1
- package/.docs/integrations/file-storage/mesa.md +40 -39
- package/.docs/models/gateways/netlify.md +3 -1
- package/.docs/models/gateways/openrouter.md +3 -1
- package/.docs/models/gateways/vercel.md +9 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/deepinfra.md +1 -3
- package/.docs/models/providers/edenai.md +8 -5
- package/.docs/models/providers/fireworks-ai.md +2 -2
- package/.docs/models/providers/hyper.md +1 -1
- package/.docs/models/providers/kilo.md +11 -9
- package/.docs/models/providers/llmgateway-providers.md +12 -11
- package/.docs/models/providers/llmgateway.md +6 -6
- package/.docs/models/providers/nano-gpt.md +1 -1
- package/.docs/models/providers/nvidia.md +4 -4
- package/.docs/models/providers/opencode.md +2 -1
- package/.docs/reference/agents/channels.md +1 -1
- package/.docs/reference/memory/observational-memory.md +3 -3
- package/package.json +4 -4
package/.docs/docs/channels.md
CHANGED
|
@@ -118,15 +118,19 @@ Use the generated public URL as the base URL for webhook paths, for example `htt
|
|
|
118
118
|
|
|
119
119
|
## Thread context
|
|
120
120
|
|
|
121
|
-
When a user mentions the agent mid-conversation in a channel thread, the agent may not have prior context.
|
|
121
|
+
When a user mentions the agent mid-conversation in a channel thread, the agent may not have prior context. On the first mention, Mastra fetches earlier messages from the platform and saves them into the agent's memory thread before the mention runs.
|
|
122
122
|
|
|
123
|
-
1. On the first mention in a thread, the agent fetches recent messages
|
|
124
|
-
2.
|
|
123
|
+
1. On the first mention in a thread, the agent fetches the thread's first message and the most recent messages before the mention. `maxMessages` (default `10`) sets the window: the first message plus up to `maxMessages - 1` recent messages. When messages fall between the two, a `[… N earlier Slack messages omitted]` marker (the platform name matches the channel) is saved in their place.
|
|
124
|
+
2. Each fetched message is saved to memory as its own user message, attributed to its author and platform message id and carrying its attachments, with a `source: 'thread-history'` attribute. The mention itself then dispatches as a normal message.
|
|
125
125
|
3. After responding, the agent subscribes to the thread and has full history through Mastra memory.
|
|
126
126
|
4. Subsequent messages in that thread don't re-fetch from the platform.
|
|
127
127
|
|
|
128
128
|
Set `threadContext: { maxMessages: 0 }` to disable this behavior. This only applies to non-direct message threads.
|
|
129
129
|
|
|
130
|
+
Agents without memory can't save the rows, so they receive the same history as context text inside the mention instead. The same fallback applies when the write to memory fails.
|
|
131
|
+
|
|
132
|
+
Memory's `lastMessages` option limits how many messages reach the prompt. Its default of `10` trims the first message and the omitted marker when `maxMessages` is `10`, so set `lastMessages` to at least `maxMessages + 1`.
|
|
133
|
+
|
|
130
134
|
Mastra also adds a short system message that tells the agent which channel and platform the request came from, such as whether the message came from a direct message or public channel. Set `threadContext: { addSystemMessage: false }` to skip it.
|
|
131
135
|
|
|
132
136
|
## Tool approval
|
|
@@ -776,7 +776,7 @@ Reflection works similarly: the Reflector runs in the background when observatio
|
|
|
776
776
|
| `observation.bufferTokens` | `0.2` | How often to buffer. `0.2` means every 20% of `messageTokens`. With the default 30k threshold, that's roughly every 6k tokens. Can also be an absolute token count (e.g. `5000`). |
|
|
777
777
|
| `observation.bufferActivation` | `0.8` | How aggressively to clear the message window on activation. `0.8` means remove enough messages to keep only 20% of `messageTokens` remaining. Lower values keep more message history. |
|
|
778
778
|
| `observation.blockAfter` | `1.2` | Safety net if buffering can't keep up. Values from 1 up to (but not including) 100 multiply `messageTokens`. For example, `1.2` creates a threshold of 36k tokens (1.2 × 30k), above which activation may overshoot the retention target rather than use fewer chunks. Values of 100 or more are absolute token counts (e.g. `50_000`) and must be greater than `messageTokens`. |
|
|
779
|
-
| `activateAfterIdle` | none | Forces buffered observations to activate after a period of inactivity, even before `observation.messageTokens` is reached. Accepts a numeric millisecond value such as `300_000`, duration strings like `"5m"` or `"1hr"`,
|
|
779
|
+
| `activateAfterIdle` | none | Forces buffered observations to activate after a period of inactivity, even before `observation.messageTokens` is reached. Accepts a numeric millisecond value such as `300_000`, duration strings like `"5m"` or `"1hr"`, `"auto"` for a provider-aware prompt cache TTL, or an object of per-provider TTLs such as `{ default: 'auto', anthropic: '1h' }`. |
|
|
780
780
|
| `activateOnProviderChange` | `false` | Forces buffered observations to activate when the next step uses a different `provider/model` than the one that produced the latest assistant step. Use this when switching providers or models would invalidate prompt cache reuse. |
|
|
781
781
|
| `reflection.bufferActivation` | `0.5` | When to start background reflection. `0.5` means reflection begins when observations reach 50% of the `observationTokens` threshold. |
|
|
782
782
|
| `reflection.activateAfterIdle` | none | Opts buffered reflections into idle activation. Reflections don't inherit top-level `activateAfterIdle`. |
|
|
@@ -814,6 +814,30 @@ With `"auto"`, this activates buffered observations based on the active provider
|
|
|
814
814
|
|
|
815
815
|
Changing models or providers mid-thread will invalidate the prompt cache. If your agent can switch between providers or models mid-thread, `activateOnProviderChange: true` forces buffered observations to activate before the new provider runs. That avoids sending a large raw window to a provider that can't reuse the previous prompt cache.
|
|
816
816
|
|
|
817
|
+
#### Per-provider idle TTLs
|
|
818
|
+
|
|
819
|
+
`"auto"` can't see a cache TTL that you set on individual messages, such as Anthropic's `cacheControl: { type: 'ephemeral', ttl: '1h' }`. It keeps using the provider's 5-minute default, so buffered observations activate while the 1-hour cache is still warm. Pass an object to set the TTL per provider instead:
|
|
820
|
+
|
|
821
|
+
```typescript
|
|
822
|
+
const memory = new Memory({
|
|
823
|
+
options: {
|
|
824
|
+
observationalMemory: {
|
|
825
|
+
model: 'google/gemini-2.5-flash',
|
|
826
|
+
activateAfterIdle: { default: 'auto', anthropic: '1h' },
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
})
|
|
830
|
+
```
|
|
831
|
+
|
|
832
|
+
Set the `anthropic` entry to the same TTL as your `cacheControl.ttl`. Mastra doesn't read the per-message cache setting, so the two must be kept in sync by hand.
|
|
833
|
+
|
|
834
|
+
How the object resolves:
|
|
835
|
+
|
|
836
|
+
- Keys are provider names. Mastra compares them case-insensitively with the part of the model's provider before the first `.`, so `anthropic` matches both `anthropic` and `anthropic.messages`. Claude served through another provider uses that provider's key instead, for example `amazon-bedrock`. Keys must not contain `.` or `/`.
|
|
837
|
+
- Each value accepts the same forms as a single TTL: milliseconds, a duration string, `"auto"`, or `false` to turn off idle activation for that provider.
|
|
838
|
+
- `default` applies to every provider without its own key. Without `default`, those providers don't idle-activate.
|
|
839
|
+
- `observation.activateAfterIdle` and `reflection.activateAfterIdle` accept the same object. An `observation.activateAfterIdle` object replaces the top-level value and isn't merged with it.
|
|
840
|
+
|
|
817
841
|
### Disabling
|
|
818
842
|
|
|
819
843
|
To disable async buffering and use synchronous observation/reflection instead:
|
|
@@ -45,13 +45,15 @@ Mount one Mesa repo and pass the filesystem to a workspace:
|
|
|
45
45
|
```typescript
|
|
46
46
|
import { Agent } from '@mastra/core/agent'
|
|
47
47
|
import { Workspace } from '@mastra/core/workspace'
|
|
48
|
-
import { MesaFilesystem } from '@mastra/mesa'
|
|
48
|
+
import { MesaFilesystem, repo } from '@mastra/mesa'
|
|
49
49
|
|
|
50
50
|
const workspace = new Workspace({
|
|
51
51
|
filesystem: new MesaFilesystem({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
privateKey: process.env.MESA_PRIVATE_KEY,
|
|
53
|
+
authors: [{ name: 'File Agent', email: 'agent@example.com' }],
|
|
54
|
+
layout: {
|
|
55
|
+
'/docs': repo('docs', { mode: 'rw', at: { bookmark: 'main' } }),
|
|
56
|
+
},
|
|
55
57
|
}),
|
|
56
58
|
})
|
|
57
59
|
|
|
@@ -63,21 +65,21 @@ const agent = new Agent({
|
|
|
63
65
|
})
|
|
64
66
|
```
|
|
65
67
|
|
|
66
|
-
`
|
|
68
|
+
`privateKey` falls back to `MESA_PRIVATE_KEY` when omitted. The layout uses `repo()`, re-exported from the [Mesa SDK](https://docs.mesa.dev/content/getting-started/introduction), to declare which repos to mount and where.
|
|
67
69
|
|
|
68
70
|
## Constructor parameters
|
|
69
71
|
|
|
70
|
-
**
|
|
72
|
+
**privateKey** (`string`): Mesa private key. Falls back to MESA\_PRIVATE\_KEY when omitted.
|
|
71
73
|
|
|
72
|
-
**
|
|
74
|
+
**authors** (`[Author, ...Author[]]`): Commit authors attributed to writes made through this filesystem.
|
|
73
75
|
|
|
74
|
-
**
|
|
76
|
+
**layout** (`Layout`): Mesa mount layout mapping absolute paths to repos, built with repo().
|
|
75
77
|
|
|
76
78
|
**cache** (`{ diskCache?: { path: string; maxSizeBytes?: number } }`): Mesa filesystem cache configuration.
|
|
77
79
|
|
|
78
80
|
**ttl** (`number`): Mesa mount token lifetime in seconds.
|
|
79
81
|
|
|
80
|
-
**readOnly** (`boolean`): Mount
|
|
82
|
+
**readOnly** (`boolean`): Mount every repo in the layout as read-only. (Default: `false`)
|
|
81
83
|
|
|
82
84
|
## Properties
|
|
83
85
|
|
|
@@ -108,7 +110,7 @@ const agent = new Agent({
|
|
|
108
110
|
Reads a file from Mesa.
|
|
109
111
|
|
|
110
112
|
```typescript
|
|
111
|
-
const content = await filesystem.readFile('/
|
|
113
|
+
const content = await filesystem.readFile('/docs/README.md', {
|
|
112
114
|
encoding: 'utf-8',
|
|
113
115
|
})
|
|
114
116
|
```
|
|
@@ -120,7 +122,7 @@ Returns: `Promise<string | Buffer>`
|
|
|
120
122
|
Writes a file to Mesa.
|
|
121
123
|
|
|
122
124
|
```typescript
|
|
123
|
-
await filesystem.writeFile('/
|
|
125
|
+
await filesystem.writeFile('/docs/report.md', '# Report')
|
|
124
126
|
```
|
|
125
127
|
|
|
126
128
|
Returns: `Promise<void>`
|
|
@@ -130,7 +132,7 @@ Returns: `Promise<void>`
|
|
|
130
132
|
Appends content to a file.
|
|
131
133
|
|
|
132
134
|
```typescript
|
|
133
|
-
await filesystem.appendFile('/
|
|
135
|
+
await filesystem.appendFile('/docs/log.txt', 'new line\n')
|
|
134
136
|
```
|
|
135
137
|
|
|
136
138
|
Returns: `Promise<void>`
|
|
@@ -140,7 +142,7 @@ Returns: `Promise<void>`
|
|
|
140
142
|
Deletes a file.
|
|
141
143
|
|
|
142
144
|
```typescript
|
|
143
|
-
await filesystem.deleteFile('/
|
|
145
|
+
await filesystem.deleteFile('/docs/old-report.md')
|
|
144
146
|
```
|
|
145
147
|
|
|
146
148
|
Returns: `Promise<void>`
|
|
@@ -150,7 +152,7 @@ Returns: `Promise<void>`
|
|
|
150
152
|
Copies a file.
|
|
151
153
|
|
|
152
154
|
```typescript
|
|
153
|
-
await filesystem.copyFile('/
|
|
155
|
+
await filesystem.copyFile('/docs/report.md', '/docs/archive/report.md')
|
|
154
156
|
```
|
|
155
157
|
|
|
156
158
|
Returns: `Promise<void>`
|
|
@@ -160,7 +162,7 @@ Returns: `Promise<void>`
|
|
|
160
162
|
Moves or renames a file.
|
|
161
163
|
|
|
162
164
|
```typescript
|
|
163
|
-
await filesystem.moveFile('/
|
|
165
|
+
await filesystem.moveFile('/docs/draft.md', '/docs/final.md')
|
|
164
166
|
```
|
|
165
167
|
|
|
166
168
|
Returns: `Promise<void>`
|
|
@@ -172,7 +174,7 @@ Returns: `Promise<void>`
|
|
|
172
174
|
Creates a directory.
|
|
173
175
|
|
|
174
176
|
```typescript
|
|
175
|
-
await filesystem.mkdir('/
|
|
177
|
+
await filesystem.mkdir('/docs/reports', { recursive: true })
|
|
176
178
|
```
|
|
177
179
|
|
|
178
180
|
Returns: `Promise<void>`
|
|
@@ -182,7 +184,7 @@ Returns: `Promise<void>`
|
|
|
182
184
|
Removes a directory.
|
|
183
185
|
|
|
184
186
|
```typescript
|
|
185
|
-
await filesystem.rmdir('/
|
|
187
|
+
await filesystem.rmdir('/docs/reports', { recursive: true })
|
|
186
188
|
```
|
|
187
189
|
|
|
188
190
|
Returns: `Promise<void>`
|
|
@@ -192,7 +194,7 @@ Returns: `Promise<void>`
|
|
|
192
194
|
Lists directory entries.
|
|
193
195
|
|
|
194
196
|
```typescript
|
|
195
|
-
const entries = await filesystem.readdir('/
|
|
197
|
+
const entries = await filesystem.readdir('/docs', {
|
|
196
198
|
recursive: true,
|
|
197
199
|
extension: '.md',
|
|
198
200
|
})
|
|
@@ -207,7 +209,7 @@ Returns: `Promise<FileEntry[]>`
|
|
|
207
209
|
Checks whether a path exists.
|
|
208
210
|
|
|
209
211
|
```typescript
|
|
210
|
-
const exists = await filesystem.exists('/
|
|
212
|
+
const exists = await filesystem.exists('/docs/README.md')
|
|
211
213
|
```
|
|
212
214
|
|
|
213
215
|
Returns: `Promise<boolean>`
|
|
@@ -217,7 +219,7 @@ Returns: `Promise<boolean>`
|
|
|
217
219
|
Returns file or directory metadata.
|
|
218
220
|
|
|
219
221
|
```typescript
|
|
220
|
-
const stat = await filesystem.stat('/
|
|
222
|
+
const stat = await filesystem.stat('/docs/README.md')
|
|
221
223
|
```
|
|
222
224
|
|
|
223
225
|
Returns: `Promise<FileStat>`
|
|
@@ -227,7 +229,7 @@ Returns: `Promise<FileStat>`
|
|
|
227
229
|
Returns the canonical path from Mesa.
|
|
228
230
|
|
|
229
231
|
```typescript
|
|
230
|
-
const realPath = await filesystem.realpath('/
|
|
232
|
+
const realPath = await filesystem.realpath('/docs/README.md')
|
|
231
233
|
```
|
|
232
234
|
|
|
233
235
|
Returns: `Promise<string>`
|
|
@@ -240,7 +242,7 @@ Creates a Mesa-backed Bash runtime for this filesystem.
|
|
|
240
242
|
|
|
241
243
|
```typescript
|
|
242
244
|
const bash = await filesystem.bash({
|
|
243
|
-
cwd: '/
|
|
245
|
+
cwd: '/docs',
|
|
244
246
|
})
|
|
245
247
|
```
|
|
246
248
|
|
|
@@ -248,34 +250,32 @@ Returns: `Promise<Bash>`
|
|
|
248
250
|
|
|
249
251
|
## Path semantics
|
|
250
252
|
|
|
251
|
-
Methods expect absolute paths. For `MesaFilesystem`, paths are rooted at the Mesa mount and
|
|
253
|
+
Methods expect absolute paths. For `MesaFilesystem`, paths are rooted at the Mesa mount and start with a path from the layout:
|
|
252
254
|
|
|
253
255
|
```typescript
|
|
254
|
-
await filesystem.readFile('/
|
|
256
|
+
await filesystem.readFile('/docs/README.md')
|
|
255
257
|
```
|
|
256
258
|
|
|
257
259
|
Don't omit the leading slash:
|
|
258
260
|
|
|
259
261
|
```typescript
|
|
260
|
-
await filesystem.readFile('
|
|
261
|
-
await filesystem.readFile('/
|
|
262
|
+
await filesystem.readFile('docs/README.md') // Incorrect
|
|
263
|
+
await filesystem.readFile('/docs/README.md') // Correct
|
|
262
264
|
```
|
|
263
265
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
When you mount multiple repos, each repo is available under the org segment:
|
|
266
|
+
When you mount multiple repos, each repo is available under its layout path:
|
|
267
267
|
|
|
268
268
|
```typescript
|
|
269
269
|
const filesystem = new MesaFilesystem({
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
{
|
|
273
|
-
{
|
|
274
|
-
|
|
270
|
+
authors: [{ name: 'File Agent' }],
|
|
271
|
+
layout: {
|
|
272
|
+
'/docs': repo('docs', { mode: 'rw', at: { bookmark: 'main' } }),
|
|
273
|
+
'/website': repo('website', { mode: 'rw', at: { bookmark: 'main' } }),
|
|
274
|
+
},
|
|
275
275
|
})
|
|
276
276
|
|
|
277
|
-
await filesystem.readFile('/
|
|
278
|
-
await filesystem.readFile('/
|
|
277
|
+
await filesystem.readFile('/docs/README.md')
|
|
278
|
+
await filesystem.readFile('/website/package.json')
|
|
279
279
|
```
|
|
280
280
|
|
|
281
281
|
## Mesa versioning APIs
|
|
@@ -283,7 +283,7 @@ await filesystem.readFile('/acme/website/package.json')
|
|
|
283
283
|
Access the underlying Mesa filesystem for Mesa-specific change and bookmark operations:
|
|
284
284
|
|
|
285
285
|
```typescript
|
|
286
|
-
await filesystem.writeFile('/
|
|
286
|
+
await filesystem.writeFile('/docs/draft.md', 'Draft')
|
|
287
287
|
|
|
288
288
|
const current = await filesystem.change.current({
|
|
289
289
|
repo: 'docs',
|
|
@@ -300,11 +300,12 @@ More details on versioning semantics can be found in [Mesa's docs](https://docs.
|
|
|
300
300
|
|
|
301
301
|
## Read-only mode
|
|
302
302
|
|
|
303
|
-
Set `readOnly: true` to block write operations through Mastra:
|
|
303
|
+
Set `readOnly: true` to mount every repo in the layout read-only and block write operations through Mastra:
|
|
304
304
|
|
|
305
305
|
```typescript
|
|
306
306
|
const filesystem = new MesaFilesystem({
|
|
307
|
-
|
|
307
|
+
authors: [{ name: 'File Agent' }],
|
|
308
|
+
layout: { '/docs': repo('docs', { mode: 'ro', at: { bookmark: 'main' } }) },
|
|
308
309
|
readOnly: true,
|
|
309
310
|
})
|
|
310
311
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Netlify
|
|
6
6
|
|
|
7
|
-
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access
|
|
7
|
+
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 269 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
|
|
10
10
|
|
|
@@ -130,6 +130,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
130
130
|
| `openrouter/~z-ai/glm-flash-latest` |
|
|
131
131
|
| `openrouter/~z-ai/glm-latest` |
|
|
132
132
|
| `openrouter/anthracite-org/magnum-v4-72b` |
|
|
133
|
+
| `openrouter/apodex/apodex-1.1-mini:free` |
|
|
133
134
|
| `openrouter/baidu/ernie-4.5-vl-424b-a47b` |
|
|
134
135
|
| `openrouter/bytedance-seed/seed-1.6` |
|
|
135
136
|
| `openrouter/bytedance-seed/seed-1.6-flash` |
|
|
@@ -278,6 +279,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
278
279
|
| `openrouter/thinkingmachines/inkling` |
|
|
279
280
|
| `openrouter/thinkingmachines/inkling-small` |
|
|
280
281
|
| `openrouter/typesafe/jev-router` |
|
|
282
|
+
| `openrouter/unbiased/pareto-26.10-preview` |
|
|
281
283
|
| `openrouter/undi95/remm-slerp-l2-13b` |
|
|
282
284
|
| `openrouter/upstage/solar-mini4` |
|
|
283
285
|
| `openrouter/upstage/solar-pro4` |
|
|
@@ -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 389 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -83,6 +83,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
83
83
|
| `anthropic/claude-sonnet-4.6` |
|
|
84
84
|
| `anthropic/claude-sonnet-5` |
|
|
85
85
|
| `anthropic/claude-sonnet-5.5` |
|
|
86
|
+
| `apodex/apodex-1.1-mini:free` |
|
|
86
87
|
| `arcee-ai/trinity-large-thinking` |
|
|
87
88
|
| `baidu/ernie-4.5-vl-424b-a47b` |
|
|
88
89
|
| `bytedance-seed/seed-1.6` |
|
|
@@ -392,6 +393,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
392
393
|
| `thinkingmachines/inkling-small:free` |
|
|
393
394
|
| `thinkingmachines/inkling:free` |
|
|
394
395
|
| `unbiased/pareto` |
|
|
396
|
+
| `unbiased/pareto-26.10-preview` |
|
|
395
397
|
| `undi95/remm-slerp-l2-13b` |
|
|
396
398
|
| `upstage/solar-mini4` |
|
|
397
399
|
| `upstage/solar-pro-3` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vercel
|
|
6
6
|
|
|
7
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 402 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
|
|
10
10
|
|
|
@@ -209,7 +209,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
209
209
|
| `klingai/kling-v3.0-i2v` |
|
|
210
210
|
| `klingai/kling-v3.0-motion-control` |
|
|
211
211
|
| `klingai/kling-v3.0-t2v` |
|
|
212
|
-
| `liquid/d1` |
|
|
213
212
|
| `meituan/longcat-2.5-preview` |
|
|
214
213
|
| `meta/llama-3.1-70b` |
|
|
215
214
|
| `meta/llama-3.1-8b` |
|
|
@@ -223,6 +222,13 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
223
222
|
| `meta/muse-spark-1.2-contributor` |
|
|
224
223
|
| `meta/muse-spark-1.3` |
|
|
225
224
|
| `meta/muse-spark-1.3-contributor` |
|
|
225
|
+
| `microsoft/mai-transcribe-1.5` |
|
|
226
|
+
| `microsoft/mai-transcribe-2` |
|
|
227
|
+
| `microsoft/mai-transcribe-2-streaming` |
|
|
228
|
+
| `microsoft/mai-voice-2` |
|
|
229
|
+
| `microsoft/mai-voice-2-flash` |
|
|
230
|
+
| `microsoft/mai-voice-2.1` |
|
|
231
|
+
| `microsoft/mai-voice-2.1-flash` |
|
|
226
232
|
| `minimax/minimax-h3` |
|
|
227
233
|
| `minimax/minimax-h3-max` |
|
|
228
234
|
| `minimax/minimax-m2` |
|
|
@@ -383,6 +389,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
383
389
|
| `spacexai/grok-imagine-image-2.0` |
|
|
384
390
|
| `spacexai/grok-imagine-video` |
|
|
385
391
|
| `spacexai/grok-imagine-video-1.5` |
|
|
392
|
+
| `spacexai/grok-imagine-video-1.5-lite` |
|
|
386
393
|
| `spacexai/grok-stt` |
|
|
387
394
|
| `spacexai/grok-tts` |
|
|
388
395
|
| `spacexai/grok-voice-think-fast-1.0` |
|
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 7743 models from 212 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -53,7 +53,7 @@ for await (const chunk of stream) {
|
|
|
53
53
|
| `deepinfra/google/gemma-3-27b-it` | 131K | | | | | | $0.08 | $0.16 |
|
|
54
54
|
| `deepinfra/google/gemma-3-4b-it` | 131K | | | | | | $0.05 | $0.10 |
|
|
55
55
|
| `deepinfra/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.07 | $0.34 |
|
|
56
|
-
| `deepinfra/google/gemma-4-31B-it` | 262K | | | | | | $0.
|
|
56
|
+
| `deepinfra/google/gemma-4-31B-it` | 262K | | | | | | $0.15 | $0.40 |
|
|
57
57
|
| `deepinfra/google/gemma-4-E4B-it` | 131K | | | | | | $0.02 | $0.10 |
|
|
58
58
|
| `deepinfra/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $0.10 | $0.32 |
|
|
59
59
|
| `deepinfra/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
@@ -71,7 +71,6 @@ for await (const chunk of stream) {
|
|
|
71
71
|
| `deepinfra/Qwen/Qwen3-Max` | 256K | | | | | | $1 | $6 |
|
|
72
72
|
| `deepinfra/Qwen/Qwen3-Next-80B-A3B-Instruct` | 262K | | | | | | $0.09 | $1 |
|
|
73
73
|
| `deepinfra/Qwen/Qwen3-VL-235B-A22B-Instruct` | 262K | | | | | | $0.20 | $0.88 |
|
|
74
|
-
| `deepinfra/Qwen/Qwen3.5-122B-A10B` | 262K | | | | | | $0.29 | $2 |
|
|
75
74
|
| `deepinfra/Qwen/Qwen3.5-27B` | 262K | | | | | | $0.26 | $3 |
|
|
76
75
|
| `deepinfra/Qwen/Qwen3.5-35B-A3B` | 262K | | | | | | $0.14 | $1 |
|
|
77
76
|
| `deepinfra/Qwen/Qwen3.5-397B-A17B` | 262K | | | | | | $0.45 | $3 |
|
|
@@ -92,7 +91,6 @@ for await (const chunk of stream) {
|
|
|
92
91
|
| `deepinfra/XiaomiMiMo/MiMo-V2.6-Pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
93
92
|
| `deepinfra/zai-org/GLM-4.6` | 203K | | | | | | $0.50 | $2 |
|
|
94
93
|
| `deepinfra/zai-org/GLM-4.7` | 203K | | | | | | $0.40 | $2 |
|
|
95
|
-
| `deepinfra/zai-org/GLM-5.1` | 203K | | | | | | $1 | $4 |
|
|
96
94
|
| `deepinfra/zai-org/GLM-5.2` | 1.0M | | | | | | $0.75 | $2 |
|
|
97
95
|
| `deepinfra/zai-org/GLM-5.3` | 1.0M | | | | | | $0.90 | $4 |
|
|
98
96
|
| `deepinfra/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Eden AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 289 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Eden AI documentation](https://docs.edenai.co).
|
|
10
10
|
|
|
@@ -114,7 +114,7 @@ for await (const chunk of stream) {
|
|
|
114
114
|
| `edenai/deepinfra/google/gemma-3-27b-it` | 131K | | | | | | $0.08 | $0.16 |
|
|
115
115
|
| `edenai/deepinfra/google/gemma-3-4b-it` | 131K | | | | | | $0.05 | $0.10 |
|
|
116
116
|
| `edenai/deepinfra/meta-llama/Llama-3.2-11B-Vision-Instruct` | 131K | | | | | | $0.34 | $0.34 |
|
|
117
|
-
| `edenai/deepinfra/meta-llama/Llama-3.3-70B-Instruct` |
|
|
117
|
+
| `edenai/deepinfra/meta-llama/Llama-3.3-70B-Instruct` | 131K | | | | | | $0.10 | $0.32 |
|
|
118
118
|
| `edenai/deepinfra/meta-llama/Llama-Guard-3-8B` | 131K | | | | | | $0.06 | $0.06 |
|
|
119
119
|
| `edenai/deepinfra/meta-models/Muse-Glimmer-30B` | 131K | | | | | | $0.30 | $1 |
|
|
120
120
|
| `edenai/deepinfra/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.45 | $2 |
|
|
@@ -164,8 +164,8 @@ for await (const chunk of stream) {
|
|
|
164
164
|
| `edenai/groq/openai/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
165
165
|
| `edenai/groq/openai/gpt-oss-safeguard-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
166
166
|
| `edenai/infomaniak/mistralai/Ministral-3-14B-Instruct-2512` | 100K | | | | | | $0.34 | $0.45 |
|
|
167
|
-
| `edenai/ionos/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.
|
|
168
|
-
| `edenai/ionos/openai/gpt-oss-120b` | 131K | | | | | | $0.17 | $0.
|
|
167
|
+
| `edenai/ionos/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.73 | $0.73 |
|
|
168
|
+
| `edenai/ionos/openai/gpt-oss-120b` | 131K | | | | | | $0.17 | $0.73 |
|
|
169
169
|
| `edenai/minimax/MiniMax-M2` | 205K | | | | | | $0.30 | $1 |
|
|
170
170
|
| `edenai/minimax/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
|
|
171
171
|
| `edenai/minimax/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
@@ -266,10 +266,13 @@ for await (const chunk of stream) {
|
|
|
266
266
|
| `edenai/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
267
267
|
| `edenai/qwen/qwen3.8-omni-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
268
268
|
| `edenai/qwen/qwq-plus` | 131K | | | | | | $0.80 | $2 |
|
|
269
|
-
| `edenai/scaleway/deepseek-v4-flash-0731` | 256K | | | | | | $0.45 | $0.
|
|
269
|
+
| `edenai/scaleway/deepseek-v4-flash-0731` | 256K | | | | | | $0.45 | $0.90 |
|
|
270
270
|
| `edenai/scaleway/gemma-3-27b-it` | 40K | | | | | | $0.29 | $0.57 |
|
|
271
271
|
| `edenai/scaleway/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.68 |
|
|
272
272
|
| `edenai/scaleway/llama-3.3-70b-instruct` | 128K | | | | | | $1 | $1 |
|
|
273
|
+
| `edenai/tencent/deepseek-v4-pro-0813` | 1.0M | | | | | | $0.66 | $2 |
|
|
274
|
+
| `edenai/tencent/hy3` | 256K | | | | | | $0.13 | $0.53 |
|
|
275
|
+
| `edenai/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
273
276
|
| `edenai/tensorx/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.25 | $0.30 |
|
|
274
277
|
| `edenai/tensorx/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $2 | $4 |
|
|
275
278
|
| `edenai/tensorx/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.50 | $2 |
|
|
@@ -38,7 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| ----------------------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
-
| `fireworks-ai/accounts/fireworks/models/deepseek-v4p1-flash` | 1.0M | | | | | | $0.
|
|
41
|
+
| `fireworks-ai/accounts/fireworks/models/deepseek-v4p1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
42
42
|
| `fireworks-ai/accounts/fireworks/models/ember-1` | 1.0M | | | | | | $3 | $15 |
|
|
43
43
|
| `fireworks-ai/accounts/fireworks/models/glm-5p3` | 1.0M | | | | | | $1 | $4 |
|
|
44
44
|
| `fireworks-ai/accounts/fireworks/models/glm-5p3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
@@ -50,7 +50,7 @@ for await (const chunk of stream) {
|
|
|
50
50
|
| `fireworks-ai/accounts/fireworks/models/nemotron-lightning-3p5-30b-a3b` | 262K | | | | | | $0.05 | $0.20 |
|
|
51
51
|
| `fireworks-ai/accounts/fireworks/models/qwen3p8-2p4t-a95b` | 262K | | | | | | $2 | $6 |
|
|
52
52
|
| `fireworks-ai/accounts/fireworks/models/qwen3p8-max` | 262K | | | | | | $2 | $6 |
|
|
53
|
-
| `fireworks-ai/accounts/fireworks/routers/deepseek-flash-latest` | 1.0M | | | | | | $0.
|
|
53
|
+
| `fireworks-ai/accounts/fireworks/routers/deepseek-flash-latest` | 1.0M | | | | | | $0.30 | $1 |
|
|
54
54
|
| `fireworks-ai/accounts/fireworks/routers/glm-5p3-fast` | 1.0M | | | | | | $2 | $7 |
|
|
55
55
|
| `fireworks-ai/accounts/fireworks/routers/glm-fast-latest` | 1.0M | | | | | | $2 | $7 |
|
|
56
56
|
| `fireworks-ai/accounts/fireworks/routers/glm-flash-latest` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
@@ -42,7 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `hyper/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
43
43
|
| `hyper/deepseek-v4-pro` | 1.0M | | | | | | $2 | $5 |
|
|
44
44
|
| `hyper/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
45
|
-
| `hyper/deepseek-v4.1-flash` | 1.0M | | | | | | $0.
|
|
45
|
+
| `hyper/deepseek-v4.1-flash` | 1.0M | | | | | | $0.33 | $1 |
|
|
46
46
|
| `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.10 | $0.33 |
|
|
47
47
|
| `hyper/glm-5.2` | 1.0M | | | | | | $2 | $5 |
|
|
48
48
|
| `hyper/glm-5.3` | 1.0M | | | | | | $2 | $5 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Kilo Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 396 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,12 +42,12 @@ 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.
|
|
46
|
-
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.
|
|
45
|
+
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.03 | $0.60 |
|
|
46
|
+
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.14 | $4 |
|
|
47
47
|
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $1 |
|
|
48
48
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
49
49
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
50
|
-
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.
|
|
50
|
+
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.68 | $10 |
|
|
51
51
|
| `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
|
|
52
52
|
| `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
53
53
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
@@ -55,7 +55,7 @@ for await (const chunk of stream) {
|
|
|
55
55
|
| `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
|
|
56
56
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
57
57
|
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.02 | $0.30 |
|
|
58
|
-
| `kilo/~z-ai/glm-latest` |
|
|
58
|
+
| `kilo/~z-ai/glm-latest` | 262K | | | | | | $0.12 | $1 |
|
|
59
59
|
| `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
60
60
|
| `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
61
61
|
| `kilo/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
@@ -83,6 +83,7 @@ for await (const chunk of stream) {
|
|
|
83
83
|
| `kilo/anthropic/claude-sonnet-4.6` | 1.0M | | | | | | $3 | $15 |
|
|
84
84
|
| `kilo/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
85
85
|
| `kilo/anthropic/claude-sonnet-5.5` | 1.0M | | | | | | $2 | $10 |
|
|
86
|
+
| `kilo/apodex/apodex-1.1-mini:free` | 262K | | | | | | — | — |
|
|
86
87
|
| `kilo/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.25 | $0.80 |
|
|
87
88
|
| `kilo/baidu/ernie-4.5-vl-424b-a47b` | 123K | | | | | | $0.42 | $1 |
|
|
88
89
|
| `kilo/bytedance-seed/seed-1.6` | 262K | | | | | | $0.25 | $2 |
|
|
@@ -100,7 +101,7 @@ for await (const chunk of stream) {
|
|
|
100
101
|
| `kilo/cohere/command-r7b-12-2024` | 128K | | | | | | $0.04 | $0.15 |
|
|
101
102
|
| `kilo/cohere/north-mini-code:free` | 256K | | | | | | — | — |
|
|
102
103
|
| `kilo/deepseek/deepseek-chat` | 128K | | | | | | $0.26 | $1 |
|
|
103
|
-
| `kilo/deepseek/deepseek-chat-v3-0324` |
|
|
104
|
+
| `kilo/deepseek/deepseek-chat-v3-0324` | 128K | | | | | | $0.29 | $1 |
|
|
104
105
|
| `kilo/deepseek/deepseek-chat-v3.1` | 164K | | | | | | $0.25 | $0.95 |
|
|
105
106
|
| `kilo/deepseek/deepseek-r1` | 64K | | | | | | $0.70 | $3 |
|
|
106
107
|
| `kilo/deepseek/deepseek-r1-0528` | 164K | | | | | | $0.70 | $3 |
|
|
@@ -212,7 +213,7 @@ for await (const chunk of stream) {
|
|
|
212
213
|
| `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
213
214
|
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.43 | $2 |
|
|
214
215
|
| `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
|
|
215
|
-
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $0.
|
|
216
|
+
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $0.68 | $10 |
|
|
216
217
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
217
218
|
| `kilo/morph/morph-v3-large` | 262K | | | | | | $0.90 | $2 |
|
|
218
219
|
| `kilo/nex-agi/nex-n2.5-mini` | 262K | | | | | | $0.03 | $0.10 |
|
|
@@ -389,9 +390,9 @@ for await (const chunk of stream) {
|
|
|
389
390
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
390
391
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
391
392
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
392
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
393
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.08 | $0.33 |
|
|
393
394
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
394
|
-
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.
|
|
395
|
+
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.75 | $2 |
|
|
395
396
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
396
397
|
| `kilo/thedrummer/skyfall-36b-v2` | 33K | | | | | | $0.55 | $0.80 |
|
|
397
398
|
| `kilo/thedrummer/unslopnemo-12b` | 1.0M | | | | | | $0.40 | $0.40 |
|
|
@@ -399,6 +400,7 @@ for await (const chunk of stream) {
|
|
|
399
400
|
| `kilo/thinkingmachines/inkling-small` | 524K | | | | | | $0.45 | $1 |
|
|
400
401
|
| `kilo/thinkingmachines/inkling-small:free` | 1.0M | | | | | | — | — |
|
|
401
402
|
| `kilo/unbiased/pareto` | 262K | | | | | | $3 | $8 |
|
|
403
|
+
| `kilo/unbiased/pareto-26.10-preview` | 1.0M | | | | | | $0.80 | $3 |
|
|
402
404
|
| `kilo/undi95/remm-slerp-l2-13b` | 6K | | | | | | $0.35 | $0.65 |
|
|
403
405
|
| `kilo/upstage/solar-mini4` | 524K | | | | | | $0.10 | $0.40 |
|
|
404
406
|
| `kilo/upstage/solar-pro-3` | 131K | | | | | | $0.15 | $0.60 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 430 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
|
|
|
@@ -52,7 +52,7 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `llmgateway-providers/alibaba/qwen-omni-turbo` | 33K | | | | | | $0.20 | $0.80 |
|
|
53
53
|
| `llmgateway-providers/alibaba/qwen-plus` | 131K | | | | | | $0.40 | $1 |
|
|
54
54
|
| `llmgateway-providers/alibaba/qwen-plus-latest` | 1.0M | | | | | | $0.40 | $1 |
|
|
55
|
-
| `llmgateway-providers/alibaba/qwen3-coder-flash` |
|
|
55
|
+
| `llmgateway-providers/alibaba/qwen3-coder-flash` | 998K | | | | | | $0.30 | $2 |
|
|
56
56
|
| `llmgateway-providers/alibaba/qwen3-coder-plus` | 1.0M | | | | | | $1 | $5 |
|
|
57
57
|
| `llmgateway-providers/alibaba/qwen3-max` | 256K | | | | | | $1 | $6 |
|
|
58
58
|
| `llmgateway-providers/alibaba/qwen3-vl-flash` | 262K | | | | | | $0.05 | $0.40 |
|
|
@@ -61,14 +61,14 @@ for await (const chunk of stream) {
|
|
|
61
61
|
| `llmgateway-providers/alibaba/qwen3.5-27b` | 262K | | | | | | $0.30 | $2 |
|
|
62
62
|
| `llmgateway-providers/alibaba/qwen3.5-35b-a3b` | 262K | | | | | | $0.25 | $2 |
|
|
63
63
|
| `llmgateway-providers/alibaba/qwen3.6-35b-a3b` | 262K | | | | | | $0.38 | $2 |
|
|
64
|
-
| `llmgateway-providers/alibaba/qwen3.6-flash` |
|
|
64
|
+
| `llmgateway-providers/alibaba/qwen3.6-flash` | 984K | | | | | | $0.25 | $2 |
|
|
65
65
|
| `llmgateway-providers/alibaba/qwen3.6-max-preview` | 262K | | | | | | $1 | $8 |
|
|
66
|
-
| `llmgateway-providers/alibaba/qwen3.6-plus` |
|
|
67
|
-
| `llmgateway-providers/alibaba/qwen3.7-flash` |
|
|
68
|
-
| `llmgateway-providers/alibaba/qwen3.7-max` |
|
|
69
|
-
| `llmgateway-providers/alibaba/qwen3.7-plus` |
|
|
70
|
-
| `llmgateway-providers/alibaba/qwen3.8-flash` |
|
|
71
|
-
| `llmgateway-providers/alibaba/qwen3.8-max` |
|
|
66
|
+
| `llmgateway-providers/alibaba/qwen3.6-plus` | 984K | | | | | | $0.50 | $3 |
|
|
67
|
+
| `llmgateway-providers/alibaba/qwen3.7-flash` | 984K | | | | | | $0.03 | $0.13 |
|
|
68
|
+
| `llmgateway-providers/alibaba/qwen3.7-max` | 984K | | | | | | $3 | $8 |
|
|
69
|
+
| `llmgateway-providers/alibaba/qwen3.7-plus` | 984K | | | | | | $0.40 | $2 |
|
|
70
|
+
| `llmgateway-providers/alibaba/qwen3.8-flash` | 984K | | | | | | $0.15 | $0.47 |
|
|
71
|
+
| `llmgateway-providers/alibaba/qwen3.8-max` | 984K | | | | | | $2 | $6 |
|
|
72
72
|
| `llmgateway-providers/alibaba/qwen35-397b-a17b` | 262K | | | | | | $0.60 | $4 |
|
|
73
73
|
| `llmgateway-providers/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
74
74
|
| `llmgateway-providers/anthropic/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
@@ -175,11 +175,12 @@ for await (const chunk of stream) {
|
|
|
175
175
|
| `llmgateway-providers/cerebras/gpt-oss-120b` | 131K | | | | | | $0.35 | $0.75 |
|
|
176
176
|
| `llmgateway-providers/cerebras/llama-3.3-70b-instruct` | 128K | | | | | | $0.85 | $1 |
|
|
177
177
|
| `llmgateway-providers/cerebras/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | $0.60 | $1 |
|
|
178
|
+
| `llmgateway-providers/consensusprotocol/deepseek-v4-flash` | 524K | | | | | | $0.10 | $0.20 |
|
|
178
179
|
| `llmgateway-providers/consensusprotocol/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
179
180
|
| `llmgateway-providers/consensusprotocol/gemma-4-31b-it` | 262K | | | | | | $0.10 | $0.25 |
|
|
180
181
|
| `llmgateway-providers/consensusprotocol/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.25 |
|
|
181
|
-
| `llmgateway-providers/consensusprotocol/gpt-oss-20b` |
|
|
182
|
-
| `llmgateway-providers/consensusprotocol/Qwen3.8-27B` |
|
|
182
|
+
| `llmgateway-providers/consensusprotocol/gpt-oss-20b` | 128K | | | | | | $0.04 | $0.19 |
|
|
183
|
+
| `llmgateway-providers/consensusprotocol/Qwen3.8-27B` | 262K | | | | | | $0.08 | $0.35 |
|
|
183
184
|
| `llmgateway-providers/deepinfra/deepseek-v3.2` | 160K | | | | | | $0.26 | $0.38 |
|
|
184
185
|
| `llmgateway-providers/deepinfra/deepseek-v4-flash` | 1.0M | | | | | | $0.08 | $0.18 |
|
|
185
186
|
| `llmgateway-providers/deepinfra/deepseek-v4-pro` | 1.0M | | | | | | $1 | $3 |
|
|
@@ -214,7 +214,7 @@ for await (const chunk of stream) {
|
|
|
214
214
|
| `llmgateway/qwen3-32b` | 41K | | | | | | $0.36 | $0.87 |
|
|
215
215
|
| `llmgateway/qwen3-coder-30b-a3b-instruct` | 262K | | | | | | $0.07 | $0.27 |
|
|
216
216
|
| `llmgateway/qwen3-coder-480b-a35b-instruct` | 262K | | | | | | $0.38 | $2 |
|
|
217
|
-
| `llmgateway/qwen3-coder-flash` |
|
|
217
|
+
| `llmgateway/qwen3-coder-flash` | 998K | | | | | | $0.30 | $2 |
|
|
218
218
|
| `llmgateway/qwen3-coder-next` | 262K | | | | | | $0.11 | $0.68 |
|
|
219
219
|
| `llmgateway/qwen3-coder-plus` | 1.0M | | | | | | $1 | $5 |
|
|
220
220
|
| `llmgateway/qwen3-max` | 262K | | | | | | $0.84 | $3 |
|
|
@@ -230,14 +230,14 @@ for await (const chunk of stream) {
|
|
|
230
230
|
| `llmgateway/qwen3.5-35b-a3b` | 262K | | | | | | $0.25 | $2 |
|
|
231
231
|
| `llmgateway/qwen3.5-9b` | 262K | | | | | | $0.10 | $0.15 |
|
|
232
232
|
| `llmgateway/qwen3.6-35b-a3b` | 262K | | | | | | $0.25 | $1 |
|
|
233
|
-
| `llmgateway/qwen3.6-flash` |
|
|
233
|
+
| `llmgateway/qwen3.6-flash` | 984K | | | | | | $0.25 | $2 |
|
|
234
234
|
| `llmgateway/qwen3.6-max-preview` | 262K | | | | | | $1 | $8 |
|
|
235
|
-
| `llmgateway/qwen3.6-plus` |
|
|
236
|
-
| `llmgateway/qwen3.7-flash` |
|
|
235
|
+
| `llmgateway/qwen3.6-plus` | 984K | | | | | | $0.50 | $3 |
|
|
236
|
+
| `llmgateway/qwen3.7-flash` | 984K | | | | | | $0.03 | $0.13 |
|
|
237
237
|
| `llmgateway/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
238
|
-
| `llmgateway/qwen3.7-plus` |
|
|
238
|
+
| `llmgateway/qwen3.7-plus` | 984K | | | | | | $0.40 | $2 |
|
|
239
239
|
| `llmgateway/qwen3.8-2.4t-a95b` | 1.0M | | | | | | $2 | $6 |
|
|
240
|
-
| `llmgateway/Qwen3.8-27B` |
|
|
240
|
+
| `llmgateway/Qwen3.8-27B` | 262K | | | | | | $0.08 | $0.35 |
|
|
241
241
|
| `llmgateway/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
242
242
|
| `llmgateway/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
243
243
|
| `llmgateway/qwen35-397b-a17b` | 262K | | | | | | $0.60 | $4 |
|
|
@@ -549,7 +549,6 @@ for await (const chunk of stream) {
|
|
|
549
549
|
| `nano-gpt/TEE/qwen3.6-27b` | 262K | | | | | | $0.32 | $3 |
|
|
550
550
|
| `nano-gpt/TEE/qwen3.6-35b-a3b` | 262K | | | | | | $0.20 | $1 |
|
|
551
551
|
| `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.40 | $3 |
|
|
552
|
-
| `nano-gpt/TEE/qwen3.8-27b-uncensored` | 262K | | | | | | $0.30 | $2 |
|
|
553
552
|
| `nano-gpt/tencent/hy3` | 262K | | | | | | $0.07 | $0.26 |
|
|
554
553
|
| `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
555
554
|
| `nano-gpt/TheDrummer/Anubis-70B-v1` | 66K | | | | | | $0.31 | $0.31 |
|
|
@@ -571,6 +570,7 @@ for await (const chunk of stream) {
|
|
|
571
570
|
| `nano-gpt/THUDM/GLM-4-9B-0414` | 32K | | | | | | $0.20 | $0.20 |
|
|
572
571
|
| `nano-gpt/THUDM/GLM-Z1-9B-0414` | 32K | | | | | | $0.20 | $0.20 |
|
|
573
572
|
| `nano-gpt/unbiased/pareto` | 262K | | | | | | $3 | $8 |
|
|
573
|
+
| `nano-gpt/unbiased/pareto-26.10-preview` | 1.0M | | | | | | $0.80 | $3 |
|
|
574
574
|
| `nano-gpt/undi95/remm-slerp-l2-13b` | 6K | | | | | | $0.80 | $1 |
|
|
575
575
|
| `nano-gpt/universal-summarizer` | 33K | | | | | | $30 | $30 |
|
|
576
576
|
| `nano-gpt/unsloth/gemma-3-12b-it` | 131K | | | | | | $0.27 | $0.27 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Nvidia
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 106 Nvidia models through Mastra's model router. Authentication is handled automatically using the `NVIDIA_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Nvidia documentation](https://docs.api.nvidia.com/nim/).
|
|
10
10
|
|
|
@@ -43,6 +43,8 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `nvidia/black-forest-labs/flux_1-schnell` | 77 | | | | | | — | — |
|
|
44
44
|
| `nvidia/black-forest-labs/flux_2-klein-4b` | 41K | | | | | | — | — |
|
|
45
45
|
| `nvidia/black-forest-labs/flux.1-dev` | 4K | | | | | | — | — |
|
|
46
|
+
| `nvidia/deepseek-ai/deepseek-v4.1-flash` | 1.0M | | | | | | — | — |
|
|
47
|
+
| `nvidia/google/diffusiongemma-26b-a4b-it` | 250K | | | | | | — | — |
|
|
46
48
|
| `nvidia/google/gemma-3-12b-it` | 131K | | | | | | — | — |
|
|
47
49
|
| `nvidia/google/gemma-3-4b-it` | 131K | | | | | | — | — |
|
|
48
50
|
| `nvidia/google/gemma-4-31b-it` | 256K | | | | | | — | — |
|
|
@@ -56,9 +58,6 @@ for await (const chunk of stream) {
|
|
|
56
58
|
| `nvidia/mistralai/magistral-small-2506` | 33K | | | | | | — | — |
|
|
57
59
|
| `nvidia/mistralai/mistral-7b-instruct-v0.3` | 66K | | | | | | — | — |
|
|
58
60
|
| `nvidia/mistralai/mistral-medium-3-instruct` | 131K | | | | | | — | — |
|
|
59
|
-
| `nvidia/mistralai/mistral-nemotron` | 128K | | | | | | — | — |
|
|
60
|
-
| `nvidia/mistralai/mixtral-8x22b-instruct` | 66K | | | | | | — | — |
|
|
61
|
-
| `nvidia/mistralai/mixtral-8x7b-instruct` | 33K | | | | | | — | — |
|
|
62
61
|
| `nvidia/moonshotai/kimi-k3` | 1.0M | | | | | | — | — |
|
|
63
62
|
| `nvidia/nvidia/active-speaker-detection` | — | | | | | | — | — |
|
|
64
63
|
| `nvidia/nvidia/bevformer` | 128K | | | | | | — | — |
|
|
@@ -76,6 +75,7 @@ for await (const chunk of stream) {
|
|
|
76
75
|
| `nvidia/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning` | 256K | | | | | | — | — |
|
|
77
76
|
| `nvidia/nvidia/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.20 | $0.80 |
|
|
78
77
|
| `nvidia/nvidia/nemotron-3-ultra-550b-a55b` | 1.0M | | | | | | $0.50 | $3 |
|
|
78
|
+
| `nvidia/nvidia/nemotron-3.5-content-safety` | 128K | | | | | | — | — |
|
|
79
79
|
| `nvidia/nvidia/nemotron-3.5-lightning-30b-a3b` | 262K | | | | | | — | — |
|
|
80
80
|
| `nvidia/nvidia/nemotron-voicechat` | 128K | | | | | | — | — |
|
|
81
81
|
| `nvidia/nvidia/nv-embed-v1` | 33K | | | | | | — | — |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Zen
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 115 OpenCode Zen 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 Zen documentation](https://opencode.ai/docs/zen).
|
|
10
10
|
|
|
@@ -57,6 +57,7 @@ for await (const chunk of stream) {
|
|
|
57
57
|
| `opencode/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
58
58
|
| `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
59
59
|
| `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
60
|
+
| `opencode/fledge-alpha-free` | 1.0M | | | | | | — | — |
|
|
60
61
|
| `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
61
62
|
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
62
63
|
| `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
@@ -47,7 +47,7 @@ The `channels` property accepts a `ChannelConfig` object with the following fiel
|
|
|
47
47
|
|
|
48
48
|
**userName** (`string`): Bot display name shown in platform messages. Defaults to the agent's name, or 'Mastra' if no name is set. (Default: `` agent's `name` ``)
|
|
49
49
|
|
|
50
|
-
**threadContext** (`{ maxMessages?: number; addSystemMessage?: boolean }`): How the agent picks up context about the current thread. maxMessages
|
|
50
|
+
**threadContext** (`{ maxMessages?: number; addSystemMessage?: boolean }`): How the agent picks up context about the current thread. maxMessages sets how many platform messages are saved to memory on first mention: the thread's first message plus up to maxMessages - 1 recent messages, with an omitted-count marker between them when needed (set to 0 to disable; only applies to non-DM threads). addSystemMessage: false skips the built-in system message that tells the agent which channel/platform a request came from. (Default: `{ maxMessages: 10, addSystemMessage: true }`)
|
|
51
51
|
|
|
52
52
|
**chatOptions** (`Omit<ChatConfig, 'adapters' | 'state' | 'userName'>`): Additional options passed directly to the Chat SDK. Use for advanced configuration such as dedupeTtlMs, fallbackStreamingPlaceholderText, lockScope, and messageHistory.
|
|
53
53
|
|
|
@@ -41,7 +41,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
41
41
|
|
|
42
42
|
**scope** (`'resource' | 'thread'`): Memory scope for observations. 'thread' keeps observations per-thread. 'resource' is deprecated and will be removed in a future release. It shares observations across all threads for a resource and works much worse than thread scope for prompt caching and agent understanding. For cross-thread continuity, use thread scope with retrieval or resource-scoped working memory. See resource scope (deprecated). (Default: `'thread'`)
|
|
43
43
|
|
|
44
|
-
**activateAfterIdle** (`number | string | false | "auto"
|
|
44
|
+
**activateAfterIdle** (`number | string | false | "auto" | Record<string, number | string | false | "auto">`): Time before buffered observations are forced to activate after inactivity, even before observation.messageTokens is reached. Accepts a numeric millisecond value such as 300\_000, duration strings like "5m" or "1hr", "auto" for a provider-aware prompt cache TTL, false to disable inherited observation idle activation, or an object of per-provider TTLs such as { default: "auto", anthropic: "1h" }. Object keys match the actor model provider before the first ., case-insensitively, so anthropic covers the direct Anthropic provider but not Claude through another provider such as amazon-bedrock; default covers every other provider. Reflections do not inherit this setting. Use reflection.activateAfterIdle to opt reflections into idle activation.
|
|
45
45
|
|
|
46
46
|
**activateOnProviderChange** (`boolean`): Force buffered observations to activate when the actor provider or model changes. Reflections do not inherit this setting. Use reflection.activateOnProviderChange to opt reflections into provider-change activation. (Default: `false`)
|
|
47
47
|
|
|
@@ -91,7 +91,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
91
91
|
|
|
92
92
|
**observation.bufferActivation** (`number`): How much of the message window to clear when buffered observations activate. Values between 0 and 1 are the fraction of messageTokens to remove: 0.8 removes \~80% of the message history and keeps \~20% (6k tokens with the default 30k). Values of 1000 or more are the token count to keep: 4000 keeps \~4k message tokens after activation. Note the direction flips: a higher ratio removes more history, while a higher token count keeps more.
|
|
93
93
|
|
|
94
|
-
**observation.activateAfterIdle** (`number | string | false | "auto"
|
|
94
|
+
**observation.activateAfterIdle** (`number | string | false | "auto" | Record<string, number | string | false | "auto">`): Time before buffered observations are forced to activate after inactivity. Accepts milliseconds, a duration string, "auto" for a provider-aware prompt cache TTL, false, or an object of per-provider TTLs. An object replaces the top-level value and is not merged with it. If unset, the top-level activateAfterIdle value is used for observations. Set false to disable the top-level idle setting for observations. Currently only applied when using the standalone ObservationalMemory class; new Memory(...) applies the top-level activateAfterIdle only.
|
|
95
95
|
|
|
96
96
|
**observation.activateOnProviderChange** (`boolean`): Force buffered observations to activate when the actor provider or model changes. If unset, the top-level activateOnProviderChange value is used for observations. Currently only applied when using the standalone ObservationalMemory class; new Memory(...) applies the top-level activateOnProviderChange only.
|
|
97
97
|
|
|
@@ -125,7 +125,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
125
125
|
|
|
126
126
|
**reflection.bufferActivation** (`number`): When background reflection starts, as a ratio (0-1) of observationTokens: 0.5 starts reflecting in the background once observations reach 50% of the threshold (20k tokens with the default 40k). When the full threshold is reached, the buffered reflection replaces the observations it covers, preserving any new observations appended after that range.
|
|
127
127
|
|
|
128
|
-
**reflection.activateAfterIdle** (`number | string | false | "auto"
|
|
128
|
+
**reflection.activateAfterIdle** (`number | string | false | "auto" | Record<string, number | string | false | "auto">`): Time before buffered reflections are forced to activate after inactivity. Accepts milliseconds, a duration string, "auto" for a provider-aware prompt cache TTL, false, or an object of per-provider TTLs. Reflections do not inherit top-level activateAfterIdle; set this explicitly to opt reflections into idle activation. Currently only applied when using the standalone ObservationalMemory class; this setting has no effect through new Memory(...).
|
|
129
129
|
|
|
130
130
|
**reflection.activateOnProviderChange** (`boolean`): Force buffered reflections to activate when the actor provider or model changes. Reflections do not inherit top-level activateOnProviderChange; set this explicitly to opt reflections into provider-change activation. Currently only applied when using the standalone ObservationalMemory class; this setting has no effect through new Memory(...).
|
|
131
131
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5-alpha.1",
|
|
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.
|
|
29
|
+
"@mastra/core": "1.75.0-alpha.0",
|
|
30
30
|
"@mastra/mcp": "^2.1.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
46
|
"@internal/lint": "0.0.140",
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
47
|
+
"@mastra/core": "1.75.0-alpha.0",
|
|
48
|
+
"@internal/types-builder": "0.0.115"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://mastra.ai",
|
|
51
51
|
"repository": {
|