@mastra/mcp-docs-server 1.3.13-alpha.0 → 1.3.13-alpha.2
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/agents/resumable-streams.md +140 -0
- package/.docs/docs/agents/tools.md +2 -2
- package/.docs/docs/auth/overview.md +1 -0
- package/.docs/docs/channels.md +34 -1
- package/.docs/docs/connections/mcp.md +27 -61
- package/.docs/docs/harness/background-tasks.md +2 -1
- package/.docs/docs/harness/durable-agents.md +6 -6
- package/.docs/docs/harness/schedules.md +2 -0
- package/.docs/docs/mastra-platform/connect.md +231 -0
- package/.docs/docs/mastra-platform/overview.md +1 -1
- package/.docs/docs/observability/tracing/overview.md +0 -2
- package/.docs/docs/signals/sending-signals.md +3 -1
- package/.docs/integrations/auth/clerk.md +46 -7
- package/.docs/integrations/auth/neon.md +217 -0
- package/.docs/integrations/auth/supabase.md +46 -7
- package/.docs/integrations/auth/workos.md +54 -15
- package/.docs/integrations/channels/discord.md +84 -6
- package/.docs/integrations/channels/github.md +63 -24
- package/.docs/integrations/channels/slack.md +89 -8
- package/.docs/integrations/channels/teams.md +79 -5
- package/.docs/integrations/channels/telegram.md +47 -6
- package/.docs/integrations/crm/attio.md +42 -0
- package/.docs/integrations/crm/clay.md +42 -0
- package/.docs/integrations/crm/hubspot.md +41 -0
- package/.docs/integrations/databases/neon.md +37 -1
- package/.docs/integrations/databases/postgresql.md +46 -0
- package/.docs/integrations/deploy/render.md +59 -18
- package/.docs/integrations/documents/google-docs.md +41 -0
- package/.docs/integrations/documents/google-sheet.md +41 -0
- package/.docs/integrations/documents/microsoft-excel.md +43 -0
- package/.docs/integrations/documents/microsoft-powerpoint.md +41 -0
- package/.docs/integrations/documents/microsoft-word.md +41 -0
- package/.docs/integrations/documents/notion.md +41 -0
- package/.docs/integrations/documents/one-drive.md +41 -0
- package/.docs/integrations/documents/sharepoint-online.md +41 -0
- package/.docs/integrations/email-calendar/google-calendar.md +41 -0
- package/.docs/integrations/email-calendar/google-mail.md +41 -0
- package/.docs/integrations/email-calendar/outlook.md +41 -0
- package/.docs/integrations/file-storage/amazon-s3.md +1 -1
- package/.docs/integrations/file-storage/google-drive.md +54 -15
- package/.docs/integrations/observability/posthog.md +50 -11
- package/.docs/integrations/other/canva.md +42 -0
- package/.docs/integrations/other/fireflies.md +41 -0
- package/.docs/integrations/other/incident-io.md +41 -0
- package/.docs/integrations/other/resend.md +43 -0
- package/.docs/integrations/other/robinhood.md +44 -0
- package/.docs/integrations/other/sanity.md +42 -0
- package/.docs/integrations/other/snowflake.md +41 -0
- package/.docs/integrations/project-management/jira.md +41 -0
- package/.docs/integrations/project-management/linear.md +41 -0
- package/.docs/integrations/voice/openai.md +40 -0
- package/.docs/integrations.md +40 -1
- package/.docs/models/gateways/custom-gateways.md +2 -0
- package/.docs/models/gateways/netlify.md +6 -3
- package/.docs/models/gateways/openrouter.md +7 -8
- package/.docs/models/gateways/vercel.md +419 -420
- package/.docs/models/index.md +46 -2
- package/.docs/models/providers/aiand.md +1 -1
- package/.docs/models/providers/chutes.md +2 -1
- package/.docs/models/providers/edenai.md +9 -13
- package/.docs/models/providers/empiriolabs.md +3 -3
- package/.docs/models/providers/hyper.md +7 -13
- package/.docs/models/providers/inceptron.md +1 -1
- package/.docs/models/providers/kilo.md +16 -16
- package/.docs/models/providers/llmgateway-providers.md +16 -8
- package/.docs/models/providers/llmgateway.md +4 -4
- package/.docs/models/providers/nano-gpt.md +12 -14
- package/.docs/models/providers/opencode-go.md +3 -1
- package/.docs/models/providers/opencode.md +2 -2
- package/.docs/models/providers/prime.md +1 -1
- package/.docs/models/providers/tencent-token-plan.md +2 -1
- package/.docs/models/providers/tencent-tokenhub.md +2 -1
- package/.docs/models/providers/wandb.md +3 -3
- package/.docs/reference/agents/agent.md +2 -0
- package/.docs/reference/agents/channels.md +38 -1
- package/.docs/reference/agents/durable-agent.md +37 -26
- package/.docs/reference/auth/neon.md +24 -15
- package/.docs/reference/cli/mastra.md +10 -1
- package/.docs/reference/client-js/agents.md +4 -4
- package/.docs/reference/client-js/observability.md +23 -1
- package/.docs/reference/connect/channels.md +55 -1
- package/.docs/reference/connect/providers.md +5 -3
- package/.docs/reference/connect/tools.md +29 -2
- package/.docs/reference/core/getGatewayById.md +14 -1
- package/.docs/reference/observability/tracing/advanced-queries.md +47 -58
- package/.docs/reference/pubsub/redis-streams.md +2 -0
- package/.docs/reference/streaming/agents/MastraModelOutput.md +6 -4
- package/.docs/reference/tools/mcp-server.md +6 -2
- package/.docs/reference/workflows/workflow.md +1 -1
- package/package.json +4 -4
- package/.docs/docs/mastra-platform/connect/channels.md +0 -165
- package/.docs/docs/mastra-platform/connect/overview.md +0 -102
- package/.docs/docs/mastra-platform/connect/providers.md +0 -66
- package/.docs/docs/mastra-platform/connect/tools.md +0 -151
|
@@ -4,6 +4,46 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenAI
|
|
6
6
|
|
|
7
|
+
Use OpenAI with Mastra in three ways:
|
|
8
|
+
|
|
9
|
+
- **Agent tools** let an agent call OpenAI APIs, for example to create images or manage files and vector stores, through [Mastra Connect](https://mastra.ai/docs/mastra-platform/connect).
|
|
10
|
+
- **[Voice](#voice)** adds text-to-speech and speech-to-text with `OpenAIVoice`.
|
|
11
|
+
- **[Realtime](#realtime)** adds speech-to-speech conversations with `OpenAIRealtimeVoice`.
|
|
12
|
+
|
|
13
|
+
To use an OpenAI model as the agent's language model, see [OpenAI models](https://mastra.ai/models/providers/openai) instead.
|
|
14
|
+
|
|
15
|
+
## Connect
|
|
16
|
+
|
|
17
|
+
Before you start, complete the [Connect setup](https://mastra.ai/docs/mastra-platform/connect) to install `@mastra/connect` and configure your platform project.
|
|
18
|
+
|
|
19
|
+
### Agent tools
|
|
20
|
+
|
|
21
|
+
Give agents tools to create responses, chat completions, embeddings, images, and moderations, and manage files, batches, and vector stores in OpenAI.
|
|
22
|
+
|
|
23
|
+
Connect an account with the `openai` provider ID. Run this command from the directory that contains your `.env` file:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
mastra connect add openai
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Then pass [`tools()`](https://mastra.ai/reference/connect/tools) to the agent and select the provider:
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
import { Agent } from '@mastra/core/agent'
|
|
33
|
+
import { tools } from '@mastra/connect'
|
|
34
|
+
|
|
35
|
+
export const openaiAgent = new Agent({
|
|
36
|
+
id: 'openai-agent',
|
|
37
|
+
name: 'OpenAI agent',
|
|
38
|
+
instructions:
|
|
39
|
+
'You help people create responses, chat completions, embeddings, images, and moderations, and manage files, batches, and vector stores in OpenAI.',
|
|
40
|
+
model: '__GATEWAY_OPENAI_MODEL_LUNA__',
|
|
41
|
+
tools: tools({ providers: ['openai'] }),
|
|
42
|
+
})
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The agent gets 26 OpenAI tools, with keys such as `openai_add_vector_store_file`. See [OpenAI tools](https://mastra.ai/reference/connect/providers) for the full list, and the [`tools()` parameters](https://mastra.ai/reference/connect/tools) to restrict tools or require approval before a call runs.
|
|
46
|
+
|
|
7
47
|
## Voice
|
|
8
48
|
|
|
9
49
|
The OpenAIVoice class in Mastra provides text-to-speech and speech-to-text capabilities using OpenAI's models.
|
package/.docs/integrations.md
CHANGED
|
@@ -15,6 +15,23 @@
|
|
|
15
15
|
- [Telegram](https://mastra.ai/integrations/channels/telegram)
|
|
16
16
|
- [WhatsApp](https://mastra.ai/integrations/channels/whatsapp)
|
|
17
17
|
|
|
18
|
+
## Email / Calendar
|
|
19
|
+
|
|
20
|
+
- [Gmail](https://mastra.ai/integrations/email-calendar/google-mail)
|
|
21
|
+
- [Google Calendar](https://mastra.ai/integrations/email-calendar/google-calendar)
|
|
22
|
+
- [Microsoft Outlook](https://mastra.ai/integrations/email-calendar/outlook)
|
|
23
|
+
|
|
24
|
+
## Documents
|
|
25
|
+
|
|
26
|
+
- [Google Docs](https://mastra.ai/integrations/documents/google-docs)
|
|
27
|
+
- [Google Sheets](https://mastra.ai/integrations/documents/google-sheet)
|
|
28
|
+
- [Microsoft Excel](https://mastra.ai/integrations/documents/microsoft-excel)
|
|
29
|
+
- [Microsoft PowerPoint](https://mastra.ai/integrations/documents/microsoft-powerpoint)
|
|
30
|
+
- [Microsoft Word](https://mastra.ai/integrations/documents/microsoft-word)
|
|
31
|
+
- [Notion](https://mastra.ai/integrations/documents/notion)
|
|
32
|
+
- [OneDrive](https://mastra.ai/integrations/documents/one-drive)
|
|
33
|
+
- [SharePoint Online](https://mastra.ai/integrations/documents/sharepoint-online)
|
|
34
|
+
|
|
18
35
|
## Frameworks
|
|
19
36
|
|
|
20
37
|
- [Angular](https://mastra.ai/integrations/frameworks/angular)
|
|
@@ -144,6 +161,7 @@
|
|
|
144
161
|
- [Clerk](https://mastra.ai/integrations/auth/clerk)
|
|
145
162
|
- [Firebase](https://mastra.ai/integrations/auth/firebase)
|
|
146
163
|
- [Google](https://mastra.ai/integrations/auth/google)
|
|
164
|
+
- [Neon](https://mastra.ai/integrations/auth/neon)
|
|
147
165
|
- [Okta](https://mastra.ai/integrations/auth/okta)
|
|
148
166
|
- [Supabase](https://mastra.ai/integrations/auth/supabase)
|
|
149
167
|
- [WorkOS](https://mastra.ai/integrations/auth/workos)
|
|
@@ -188,4 +206,25 @@
|
|
|
188
206
|
- [Qdrant](https://mastra.ai/integrations/vectors/qdrant)
|
|
189
207
|
- [Turbopuffer](https://mastra.ai/integrations/vectors/turbopuffer)
|
|
190
208
|
- [Upstash](https://mastra.ai/integrations/vectors/upstash)
|
|
191
|
-
- [Weaviate](https://mastra.ai/integrations/vectors/weaviate)
|
|
209
|
+
- [Weaviate](https://mastra.ai/integrations/vectors/weaviate)
|
|
210
|
+
|
|
211
|
+
## Project management
|
|
212
|
+
|
|
213
|
+
- [Jira](https://mastra.ai/integrations/project-management/jira)
|
|
214
|
+
- [Linear](https://mastra.ai/integrations/project-management/linear)
|
|
215
|
+
|
|
216
|
+
## CRM
|
|
217
|
+
|
|
218
|
+
- [Attio](https://mastra.ai/integrations/crm/attio)
|
|
219
|
+
- [Clay](https://mastra.ai/integrations/crm/clay)
|
|
220
|
+
- [HubSpot](https://mastra.ai/integrations/crm/hubspot)
|
|
221
|
+
|
|
222
|
+
## Other providers
|
|
223
|
+
|
|
224
|
+
- [Canva](https://mastra.ai/integrations/other/canva)
|
|
225
|
+
- [Fireflies.ai](https://mastra.ai/integrations/other/fireflies)
|
|
226
|
+
- [incident.io](https://mastra.ai/integrations/other/incident-io)
|
|
227
|
+
- [Resend](https://mastra.ai/integrations/other/resend)
|
|
228
|
+
- [Robinhood](https://mastra.ai/integrations/other/robinhood)
|
|
229
|
+
- [Sanity](https://mastra.ai/integrations/other/sanity)
|
|
230
|
+
- [Snowflake](https://mastra.ai/integrations/other/snowflake)
|
|
@@ -330,6 +330,8 @@ This is useful when:
|
|
|
330
330
|
- You need to find a gateway by its ID across different instances
|
|
331
331
|
- Supporting gateway versioning (e.g., `'gateway-v1'`, `'gateway-v2'`)
|
|
332
332
|
|
|
333
|
+
`getGatewayById()` throws a `MastraError` if no registered gateway has the given ID. It doesn't return `undefined`.
|
|
334
|
+
|
|
333
335
|
### listGateways()
|
|
334
336
|
|
|
335
337
|
Get all registered gateways:
|
|
@@ -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 285 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
|
|
|
@@ -122,6 +122,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
122
122
|
| `openai/gpt-image-2.5-flare-2026-09-08` |
|
|
123
123
|
| `openai/gpt-image-2.5-sunburst` |
|
|
124
124
|
| `openai/gpt-image-2.5-sunburst-2026-09-08` |
|
|
125
|
+
| `openai/gpt-image-2.6-flare` |
|
|
126
|
+
| `openai/gpt-image-2.6-sunburst` |
|
|
125
127
|
| `openai/o3` |
|
|
126
128
|
| `openrouter/~deepseek/deepseek-flash-latest` |
|
|
127
129
|
| `openrouter/~deepseek/deepseek-pro-latest` |
|
|
@@ -167,6 +169,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
167
169
|
| `openrouter/inception/mercury-3` |
|
|
168
170
|
| `openrouter/inclusionai/ling-3.0-flash` |
|
|
169
171
|
| `openrouter/inclusionai/ling-3.0-flash-vl` |
|
|
172
|
+
| `openrouter/inclusionai/ling-3.0-tiny` |
|
|
170
173
|
| `openrouter/inclusionai/ling-3.1-flash` |
|
|
171
174
|
| `openrouter/inference-net/schematron-v2-small` |
|
|
172
175
|
| `openrouter/inference-net/schematron-v2-turbo` |
|
|
@@ -183,12 +186,11 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
183
186
|
| `openrouter/meta/muse-spark-open` |
|
|
184
187
|
| `openrouter/microsoft/phi-4` |
|
|
185
188
|
| `openrouter/minimax/minimax-m1` |
|
|
186
|
-
| `openrouter/minimax/minimax-m2` |
|
|
187
|
-
| `openrouter/minimax/minimax-m2.1` |
|
|
188
189
|
| `openrouter/minimax/minimax-m2.5` |
|
|
189
190
|
| `openrouter/minimax/minimax-m2.7` |
|
|
190
191
|
| `openrouter/minimax/minimax-m3` |
|
|
191
192
|
| `openrouter/minimax/minimax-m3.1-flash` |
|
|
193
|
+
| `openrouter/mistralai/codestral-2508` |
|
|
192
194
|
| `openrouter/mistralai/devstral-2512` |
|
|
193
195
|
| `openrouter/mistralai/ministral-14b-2512` |
|
|
194
196
|
| `openrouter/mistralai/ministral-3b-2512` |
|
|
@@ -232,6 +234,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
232
234
|
| `openrouter/openai/gpt-oss-safeguard-20b` |
|
|
233
235
|
| `openrouter/openrouter/auto` |
|
|
234
236
|
| `openrouter/openrouter/auto-beta` |
|
|
237
|
+
| `openrouter/openrouter/auto-code` |
|
|
235
238
|
| `openrouter/openrouter/free` |
|
|
236
239
|
| `openrouter/openrouter/pareto-code` |
|
|
237
240
|
| `openrouter/particle-ai/particle-1` |
|
|
@@ -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 375 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -137,6 +137,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
137
137
|
| `google/gemini-3.8-flash` |
|
|
138
138
|
| `google/gemini-4-argon` |
|
|
139
139
|
| `google/gemini-nano-banana-2.1` |
|
|
140
|
+
| `google/gemini-omni-1.1-flash` |
|
|
141
|
+
| `google/gemini-omni-1.2-flash` |
|
|
140
142
|
| `google/gemma-2-27b-it` |
|
|
141
143
|
| `google/gemma-3-12b-it` |
|
|
142
144
|
| `google/gemma-3-27b-it` |
|
|
@@ -154,6 +156,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
154
156
|
| `inception/mercury-3` |
|
|
155
157
|
| `inclusionai/ling-3.0-flash` |
|
|
156
158
|
| `inclusionai/ling-3.0-flash-vl` |
|
|
159
|
+
| `inclusionai/ling-3.0-tiny` |
|
|
157
160
|
| `inclusionai/ling-3.1-flash` |
|
|
158
161
|
| `inference-net/schematron-v2-small` |
|
|
159
162
|
| `inference-net/schematron-v2-turbo` |
|
|
@@ -179,11 +182,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
179
182
|
| `meta/muse-spark-open` |
|
|
180
183
|
| `meta/muse-wonder` |
|
|
181
184
|
| `microsoft/phi-4` |
|
|
182
|
-
| `minimax/minimax-01` |
|
|
183
185
|
| `minimax/minimax-m1` |
|
|
184
|
-
| `minimax/minimax-m2` |
|
|
185
|
-
| `minimax/minimax-m2-her` |
|
|
186
|
-
| `minimax/minimax-m2.1` |
|
|
187
186
|
| `minimax/minimax-m2.5` |
|
|
188
187
|
| `minimax/minimax-m2.7` |
|
|
189
188
|
| `minimax/minimax-m3` |
|
|
@@ -229,7 +228,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
229
228
|
| `nvidia/nemotron-3-ultra-550b-a55b` |
|
|
230
229
|
| `nvidia/nemotron-3-ultra-550b-a55b:free` |
|
|
231
230
|
| `nvidia/nemotron-3.5-content-safety` |
|
|
232
|
-
| `nvidia/nemotron-3.5-content-safety:free` |
|
|
233
231
|
| `nvidia/nemotron-3.5-lightning` |
|
|
234
232
|
| `nvidia/nemotron-3.5-lightning:free` |
|
|
235
233
|
| `nvidia/nemotron-3.5-super-vl` |
|
|
@@ -353,6 +351,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
353
351
|
| `rekaai/reka-flash-3` |
|
|
354
352
|
| `relace/relace-apply-3` |
|
|
355
353
|
| `relace/relace-search` |
|
|
354
|
+
| `ricursiveai/ripple-65b-preview` |
|
|
356
355
|
| `sakana/fugu-max` |
|
|
357
356
|
| `sakana/fugu-ultra` |
|
|
358
357
|
| `sakana/fugu-ultra-v2` |
|
|
@@ -361,6 +360,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
361
360
|
| `sao10k/l3.1-euryale-70b` |
|
|
362
361
|
| `scaledown/extract` |
|
|
363
362
|
| `scaledown/summarize` |
|
|
363
|
+
| `stealth/crouton-alpha` |
|
|
364
364
|
| `stepfun/step-3.5-flash` |
|
|
365
365
|
| `stepfun/step-3.7-flash` |
|
|
366
366
|
| `stepfun/step-5-preview` |
|
|
@@ -370,14 +370,13 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
370
370
|
| `tencent/hy-mt2-7b` |
|
|
371
371
|
| `tencent/hy3` |
|
|
372
372
|
| `tencent/hy3-preview` |
|
|
373
|
+
| `tencent/hy4` |
|
|
373
374
|
| `tencent/hy4-preview` |
|
|
374
375
|
| `thedrummer/cydonia-24b-v4.1` |
|
|
375
376
|
| `thedrummer/skyfall-36b-v2` |
|
|
376
377
|
| `thedrummer/unslopnemo-12b` |
|
|
377
378
|
| `thinkingmachines/inkling` |
|
|
378
379
|
| `thinkingmachines/inkling-small` |
|
|
379
|
-
| `thinkingmachines/inkling-small:free` |
|
|
380
|
-
| `thinkingmachines/inkling:free` |
|
|
381
380
|
| `unbiased/pareto-26.10` |
|
|
382
381
|
| `unbiased/pareto-26.9` |
|
|
383
382
|
| `undi95/remm-slerp-l2-13b` |
|