@mastra/mcp-docs-server 1.2.7-alpha.4 → 1.2.7-alpha.8

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.
Files changed (78) hide show
  1. package/.docs/docs/agent-builder/overview.md +4 -3
  2. package/.docs/docs/agent-controller/overview.md +2 -1
  3. package/.docs/docs/agents/a2a.md +2 -1
  4. package/.docs/docs/agents/guardrails.md +2 -1
  5. package/.docs/docs/agents/overview.md +2 -2
  6. package/.docs/docs/agents/skills.md +1 -1
  7. package/.docs/docs/agents/supervisor-agents.md +2 -1
  8. package/.docs/docs/browser/overview.md +2 -1
  9. package/.docs/docs/capabilities/channels/discord.md +98 -0
  10. package/.docs/docs/capabilities/channels/other-adapters.md +68 -0
  11. package/.docs/docs/capabilities/channels/overview.md +257 -0
  12. package/.docs/docs/capabilities/channels/slack.md +225 -0
  13. package/.docs/docs/capabilities/channels/teams.md +100 -0
  14. package/.docs/docs/capabilities/channels/telegram.md +98 -0
  15. package/.docs/docs/capabilities/channels/whatsapp.md +99 -0
  16. package/.docs/docs/evals/datasets/overview.md +2 -1
  17. package/.docs/docs/evals/datasets/running-experiments.md +2 -0
  18. package/.docs/docs/evals/overview.md +4 -1
  19. package/.docs/docs/getting-started/file-based-agents.md +114 -0
  20. package/.docs/docs/long-running-agents/signals.md +4 -1
  21. package/.docs/docs/mastra-platform/observability.md +5 -1
  22. package/.docs/docs/memory/observational-memory.md +2 -1
  23. package/.docs/docs/memory/overview.md +2 -0
  24. package/.docs/docs/memory/semantic-recall.md +1 -1
  25. package/.docs/docs/memory/working-memory.md +3 -3
  26. package/.docs/docs/studio/overview.md +1 -1
  27. package/.docs/docs/workflows/control-flow.md +0 -2
  28. package/.docs/docs/workflows/overview.md +2 -3
  29. package/.docs/docs/workspace/overview.md +2 -1
  30. package/.docs/docs/workspace/sandbox.md +2 -0
  31. package/.docs/guides/getting-started/quickstart.md +3 -1
  32. package/.docs/guides/guide/chef-michel.md +0 -2
  33. package/.docs/guides/guide/slack-assistant.md +2 -2
  34. package/.docs/guides/guide/stock-agent.md +0 -2
  35. package/.docs/models/environment-variables.md +2 -0
  36. package/.docs/models/gateways/netlify.md +4 -1
  37. package/.docs/models/gateways/openrouter.md +7 -6
  38. package/.docs/models/gateways/vercel.md +5 -1
  39. package/.docs/models/index.md +1 -1
  40. package/.docs/models/providers/crossmodel.md +109 -0
  41. package/.docs/models/providers/llmgateway.md +185 -181
  42. package/.docs/models/providers/meta.md +101 -0
  43. package/.docs/models/providers/nano-gpt.md +2 -2
  44. package/.docs/models/providers/neon.md +40 -29
  45. package/.docs/models/providers/openai.md +5 -1
  46. package/.docs/models/providers/poolside.md +6 -5
  47. package/.docs/models/providers/routing-run.md +20 -34
  48. package/.docs/models/providers/the-grid-ai.md +3 -3
  49. package/.docs/models/providers.md +2 -0
  50. package/.docs/reference/agents/channels.md +2 -2
  51. package/.docs/reference/channels/channel-provider.md +1 -1
  52. package/.docs/reference/channels/slack-provider.md +2 -2
  53. package/.docs/reference/cli/mastra.md +1 -0
  54. package/.docs/reference/file-based-agents/config.md +97 -0
  55. package/.docs/reference/file-based-agents/instructions.md +54 -0
  56. package/.docs/reference/file-based-agents/memory.md +58 -0
  57. package/.docs/reference/file-based-agents/observability.md +32 -0
  58. package/.docs/reference/file-based-agents/processors.md +56 -0
  59. package/.docs/reference/file-based-agents/server.md +37 -0
  60. package/.docs/reference/file-based-agents/skills.md +56 -0
  61. package/.docs/reference/file-based-agents/storage.md +30 -0
  62. package/.docs/reference/file-based-agents/studio.md +56 -0
  63. package/.docs/reference/file-based-agents/subagents.md +123 -0
  64. package/.docs/reference/file-based-agents/tools.md +63 -0
  65. package/.docs/reference/file-based-agents/workflows.md +52 -0
  66. package/.docs/reference/file-based-agents/workspace.md +74 -0
  67. package/.docs/reference/index.md +13 -0
  68. package/.docs/reference/memory/memory-class.md +1 -1
  69. package/.docs/reference/memory/serialized-memory-config.md +1 -1
  70. package/.docs/reference/project-structure.md +1 -1
  71. package/.docs/reference/pubsub/lease-provider.md +1 -1
  72. package/.docs/reference/storage/clickhouse.md +32 -0
  73. package/.docs/reference/storage/composite.md +27 -1
  74. package/.docs/reference/storage/retention.md +11 -0
  75. package/CHANGELOG.md +14 -0
  76. package/package.json +4 -4
  77. package/.docs/docs/agents/channels.md +0 -225
  78. package/.docs/docs/agents/file-based-agents.md +0 -297
@@ -128,4 +128,8 @@ yarn dlx mastra api trace list
128
128
  bun x mastra api trace list
129
129
  ```
130
130
 
131
- For observability commands, the CLI targets the hosted observability API and can infer credentials from your project environment. See the [`mastra api` CLI reference](https://mastra.ai/reference/cli/mastra) for available observability commands, filtering, pagination, credential resolution, and direct `curl` examples.
131
+ For observability commands, the CLI targets the hosted observability API and can infer credentials from your project environment. See the [`mastra api` CLI reference](https://mastra.ai/reference/cli/mastra) for available observability commands, filtering, pagination, credential resolution, and direct `curl` examples.
132
+
133
+ ## Related
134
+
135
+ - 📹 [Mastra observability and Studio workshop](https://www.youtube.com/watch?v=dKO_a3RPra0)
@@ -714,4 +714,5 @@ In practical terms, OM replaces both working memory and message history, and has
714
714
  - [Memory Overview](https://mastra.ai/docs/memory/overview)
715
715
  - [Message History](https://mastra.ai/docs/memory/message-history)
716
716
  - [Memory Processors](https://mastra.ai/docs/memory/memory-processors)
717
- - [Mastra Code](https://code.mastra.ai/): A coding agent using Observational Memory
717
+ - [Mastra Code](https://code.mastra.ai/): A coding agent using Observational Memory
718
+ - 📹 [Mastra processors and Observational Memory workshop](https://www.youtube.com/watch?v=4Vpp7xQYvl0)
@@ -15,6 +15,8 @@ If the combined memory exceeds the model's context limit, [memory processors](ht
15
15
 
16
16
  Memory results will be stored in one or more of your configured [storage providers](https://mastra.ai/docs/storage/overview).
17
17
 
18
+ > **📹 Watch:** Watch [Mastra memory concepts](https://www.youtube.com/watch?v=18iIHQtIPmc) for a conceptual overview of the memory layers agents can use.
19
+
18
20
  ## When to use memory
19
21
 
20
22
  Use memory when your agent needs to maintain multi-turn conversations that reference prior exchanges, recall user preferences or facts from earlier in a session, or build context over time within a conversation thread. Skip memory for single-turn requests where each interaction is independent.
@@ -4,7 +4,7 @@
4
4
 
5
5
  If you ask your friend what they did last weekend, they will search in their memory for events associated with "last weekend" and then tell you what they did. That's sort of like how semantic recall works in Mastra.
6
6
 
7
- > **Watch 📹:** What semantic recall is, how it works, and how to configure it in Mastra [YouTube (5 minutes)](https://youtu.be/UVZtK8cK8xQ)
7
+ > **📹 Watch:** Watch [Mastra semantic recall](https://www.youtube.com/watch?v=UVZtK8cK8xQ\&pp=ygUVbWFzdHJhIHdvcmtpbmcgbWVtb3J5) to see how agents retrieve relevant messages from past conversations.
8
8
 
9
9
  ## How semantic recall works
10
10
 
@@ -10,6 +10,8 @@ This is useful for maintaining ongoing state that's always relevant and should a
10
10
 
11
11
  If you use [Observational Memory](https://mastra.ai/docs/memory/observational-memory), `observationalMemory.observation.manageWorkingMemory` lets OM update working memory for the agent.
12
12
 
13
+ > **📹 Watch:** Watch [Mastra working memory](https://www.youtube.com/watch?v=UMy_JHLf1n8\&pp=ygUVbWFzdHJhIHdvcmtpbmcgbWVtb3J5) to see how agents keep persistent user context available across interactions.
14
+
13
15
  Working memory can persist at two different scopes:
14
16
 
15
17
  - **Resource-scoped** (default): Memory persists across all conversation threads for the same user
@@ -43,9 +45,7 @@ const agent = new Agent({
43
45
 
44
46
  ## How it works
45
47
 
46
- Working memory is a block of Markdown text that the agent is able to update over time to store continuously relevant information:
47
-
48
- [YouTube video player](https://www.youtube-nocookie.com/embed/UMy_JHLf1n8)
48
+ Working memory is a block of Markdown text that the agent is able to update over time to store continuously relevant information.
49
49
 
50
50
  ## Memory persistence scopes
51
51
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Studio provides an interactive UI for building, testing, and managing your agents, workflows, and tools. Run it locally during development, add [authentication](https://mastra.ai/docs/studio/auth), or [deploy it](https://mastra.ai/docs/studio/deployment) to production so your team can manage agents, monitor performance, and gain insights through built-in observability.
6
6
 
7
- [YouTube video player](https://www.youtube-nocookie.com/embed/ojGu6Bi4wYk)
7
+ > **📹 Watch:** Watch [Mastra Studio overview](https://youtu.be/ojGu6Bi4wYk) for a short walkthrough of building, testing, and managing agents in Studio.
8
8
 
9
9
  ## Start Studio
10
10
 
@@ -101,8 +101,6 @@ export const testWorkflow = createWorkflow({
101
101
  .commit()
102
102
  ```
103
103
 
104
- > **📹 Watch:** How to run steps in parallel and optimize your Mastra workflow → [YouTube (3 minutes)](https://youtu.be/GQJxve5Hki4)
105
-
106
104
  ### Output structure
107
105
 
108
106
  When steps run in parallel, the output is an object where each key is the step's `id` and the value is that step's output. This allows you to access each parallel step's result independently.
@@ -10,8 +10,6 @@ Workflows let you define complex sequences of tasks using clear, structured step
10
10
 
11
11
  Use workflows for tasks that are clearly defined upfront and involve multiple steps with a specific execution order. They give you fine-grained control over how data flows and transforms between steps, and which primitives are called at each stage.
12
12
 
13
- > **Tip:** Watch an introduction to workflows, and how they compare to agents on [YouTube (7 minutes)](https://youtu.be/0jg2g3sNvgw).
14
-
15
13
  ## Core principles
16
14
 
17
15
  Mastra workflows operate using these principles:
@@ -546,4 +544,5 @@ For a closer look at workflows, see our [Workflow Guide](https://mastra.ai/guide
546
544
  - [Workflow State](https://mastra.ai/docs/workflows/workflow-state)
547
545
  - [Control Flow](https://mastra.ai/docs/workflows/control-flow)
548
546
  - [Suspend and Resume](https://mastra.ai/docs/workflows/suspend-and-resume)
549
- - [Error Handling](https://mastra.ai/docs/workflows/error-handling)
547
+ - [Error Handling](https://mastra.ai/docs/workflows/error-handling)
548
+ - 📹 [Agentic workflows with Mastra workshop](https://www.youtube.com/watch?v=HGt8pVPpX9g)
@@ -411,4 +411,5 @@ External providers may perform additional setup like establishing connections or
411
411
  - [LSP inspection](https://mastra.ai/docs/workspace/lsp)
412
412
  - [Skills](https://mastra.ai/docs/workspace/skills)
413
413
  - [Search and indexing](https://mastra.ai/docs/workspace/search)
414
- - [Workspace class reference](https://mastra.ai/reference/workspace/workspace-class)
414
+ - [Workspace class reference](https://mastra.ai/reference/workspace/workspace-class)
415
+ - 📹 [Introduction to Mastra Workspaces workshop](https://www.youtube.com/watch?v=QcQLiYlJuNQ)
@@ -15,6 +15,8 @@ A sandbox provider executes commands in a controlled environment:
15
15
  - **Timeouts**: Prevent long-running commands from hanging
16
16
  - **Isolation**: Optional OS-level sandboxing for security
17
17
 
18
+ > **📹 Watch:** Watch [Mastra remote sandboxes overview](https://www.youtube.com/watch?v=Ix2X-sjVXjw) to see how remote sandboxes give agents an isolated computer to work in.
19
+
18
20
  ## Supported providers
19
21
 
20
22
  - [`LocalSandbox`](https://mastra.ai/reference/workspace/local-sandbox): Executes commands on the local machine
@@ -8,6 +8,8 @@ The `create mastra` CLI command is the quickest way to get started. It walks you
8
8
 
9
9
  If you need more control over the setup, see the [manual installation guide](https://mastra.ai/docs/getting-started/manual-install). You can also use [`mastra init`](https://mastra.ai/reference/cli/mastra) for existing projects.
10
10
 
11
+ > **📹 Watch:** Watch [Mastra AI agent course](https://www.youtube.com/watch?v=lCmf_qrGfGA) for a guided introduction to building agents with Mastra.
12
+
11
13
  ## Before you begin
12
14
 
13
15
  - You'll need an API key from a supported [model provider](https://mastra.ai/models). If you don't have a preference, use [OpenAI](https://mastra.ai/models/providers/openai).
@@ -58,7 +60,7 @@ Depending on your choices, you'll also end up with [Mastra Skills](https://mastr
58
60
 
59
61
  Once setup is complete, follow the instructions in your terminal to start the Mastra dev server, then open Studio at [localhost:4111](http://localhost:4111).
60
62
 
61
- Try asking about the weather. If your API key is set up correctly, you'll get a response:
63
+ Try asking about the weather. If your API key is set up correctly, you'll get a response in Studio.
62
64
 
63
65
  [Studio](https://mastra.ai/docs/studio/overview) lets you rapidly build and prototype agents without needing to build a UI. Once you're ready, you can integrate your Mastra agent into your app using the guides below.
64
66
 
@@ -6,8 +6,6 @@ In this guide, you'll create a "Chef Assistant" agent that helps users cook meal
6
6
 
7
7
  You'll learn how to create the agent and register it with Mastra. Next, you'll interact with the agent through your terminal and get to know different response formats. Lastly, you'll access the agent through Mastra's local API endpoints.
8
8
 
9
- [YouTube video player](https://www.youtube-nocookie.com/embed/_tZhOqHCrF0)
10
-
11
9
  ## Prerequisites
12
10
 
13
11
  - Node.js `v22.13.0` or later installed
@@ -182,12 +182,12 @@ You can extend this agent to:
182
182
 
183
183
  - [Deploy your application](https://mastra.ai/docs/deployment/overview) and update the Slack **Request URL** to your production endpoint
184
184
  - Add more adapters (Discord, Telegram) to the same agent so it responds on multiple platforms
185
- - Configure [multimodal content](https://mastra.ai/docs/agents/channels) to let your agent process images, video, and audio shared in chat
185
+ - Configure [multimodal content](https://mastra.ai/docs/capabilities/channels/overview) to let your agent process images, video, and audio shared in chat
186
186
  - Add [tools](https://mastra.ai/docs/agents/using-tools) to give the agent access to external APIs and data
187
187
 
188
188
  Learn more:
189
189
 
190
- - [Channels overview](https://mastra.ai/docs/agents/channels)
190
+ - [Channels overview](https://mastra.ai/docs/capabilities/channels/overview)
191
191
  - [Studio](https://mastra.ai/docs/studio/overview)
192
192
  - [Deployment overview](https://mastra.ai/docs/deployment/overview)
193
193
  - [Chat SDK adapter docs](https://chat-sdk.dev)
@@ -4,8 +4,6 @@
4
4
 
5
5
  In this guide, you're going to create an agent that fetches the last day's closing stock price for a given symbol. You'll learn how to create a tool, add it to an agent, and use the agent to fetch stock prices.
6
6
 
7
- [YouTube video player](https://www.youtube-nocookie.com/embed/rIaZ4l7y9wo)
8
-
9
7
  ## Prerequisites
10
8
 
11
9
  - Node.js `v22.13.0` or later installed
@@ -31,6 +31,7 @@ List of required environment variables for each model provider and gateway suppo
31
31
  | [Cloudflare Workers AI](https://mastra.ai/models/providers/cloudflare-workers-ai) | `cloudflare-workers-ai/*` | `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_API_KEY` |
32
32
  | [Cortecs](https://mastra.ai/models/providers/cortecs) | `cortecs/*` | `CORTECS_API_KEY` |
33
33
  | [CrofAI](https://mastra.ai/models/providers/crof) | `crof/*` | `CROF_API_KEY` |
34
+ | [CrossModel](https://mastra.ai/models/providers/crossmodel) | `crossmodel/*` | `CROSSMODEL_API_KEY` |
34
35
  | [D.Run (China)](https://mastra.ai/models/providers/drun) | `drun/*` | `DRUN_API_KEY` |
35
36
  | [Databricks](https://mastra.ai/models/providers/databricks) | `databricks/*` | `DATABRICKS_HOST`, `DATABRICKS_TOKEN` |
36
37
  | [Deep Infra](https://mastra.ai/models/providers/deepinfra) | `deepinfra/*` | `DEEPINFRA_API_KEY` |
@@ -68,6 +69,7 @@ List of required environment variables for each model provider and gateway suppo
68
69
  | [LongCat](https://mastra.ai/models/providers/longcat) | `longcat/*` | `LONGCAT_API_KEY` |
69
70
  | [LucidQuery](https://mastra.ai/models/providers/lucidquery) | `lucidquery/*` | `LUCIDQUERY_API_KEY` |
70
71
  | [Meganova](https://mastra.ai/models/providers/meganova) | `meganova/*` | `MEGANOVA_API_KEY` |
72
+ | [Meta](https://mastra.ai/models/providers/meta) | `meta/*` | `META_MODEL_API_KEY` |
71
73
  | [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax) | `minimax/*` | `MINIMAX_API_KEY` |
72
74
  | [MiniMax (minimaxi.com)](https://mastra.ai/models/providers/minimax-cn) | `minimax-cn/*` | `MINIMAX_API_KEY` |
73
75
  | [MiniMax Token Plan (minimax.io)](https://mastra.ai/models/providers/minimax-coding-plan) | `minimax-coding-plan/*` | `MINIMAX_API_KEY` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Netlify
4
4
 
5
- Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 67 models through Mastra's model router.
5
+ Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 70 models through Mastra's model router.
6
6
 
7
7
  Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
8
8
 
@@ -101,6 +101,9 @@ ANTHROPIC_API_KEY=ant-...
101
101
  | `openai/gpt-5.5-2026-04-23` |
102
102
  | `openai/gpt-5.5-pro` |
103
103
  | `openai/gpt-5.5-pro-2026-04-23` |
104
+ | `openai/gpt-5.6-luna` |
105
+ | `openai/gpt-5.6-sol` |
106
+ | `openai/gpt-5.6-terra` |
104
107
  | `openai/o3` |
105
108
  | `openai/o3-mini` |
106
109
  | `openai/o4-mini` |
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![OpenRouter logo](https://models.dev/logos/openrouter.svg)OpenRouter
4
4
 
5
- OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 344 models through Mastra's model router.
5
+ OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 345 models through Mastra's model router.
6
6
 
7
7
  Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
8
8
 
@@ -104,7 +104,6 @@ ANTHROPIC_API_KEY=ant-...
104
104
  | `google/gemini-2.5-flash` |
105
105
  | `google/gemini-2.5-flash-image` |
106
106
  | `google/gemini-2.5-flash-lite` |
107
- | `google/gemini-2.5-flash-lite-preview-09-2025` |
108
107
  | `google/gemini-2.5-pro` |
109
108
  | `google/gemini-2.5-pro-preview` |
110
109
  | `google/gemini-2.5-pro-preview-05-06` |
@@ -140,7 +139,6 @@ ANTHROPIC_API_KEY=ant-...
140
139
  | `inflection/inflection-3-pi` |
141
140
  | `inflection/inflection-3-productivity` |
142
141
  | `kwaipilot/kat-coder-pro-v2` |
143
- | `liquid/lfm-2-24b-a2b` |
144
142
  | `liquid/lfm-2.5-1.2b-instruct:free` |
145
143
  | `liquid/lfm-2.5-1.2b-thinking:free` |
146
144
  | `mancer/weaver` |
@@ -254,6 +252,12 @@ ANTHROPIC_API_KEY=ant-...
254
252
  | `openai/gpt-5.4-pro` |
255
253
  | `openai/gpt-5.5` |
256
254
  | `openai/gpt-5.5-pro` |
255
+ | `openai/gpt-5.6-luna` |
256
+ | `openai/gpt-5.6-luna-pro` |
257
+ | `openai/gpt-5.6-sol` |
258
+ | `openai/gpt-5.6-sol-pro` |
259
+ | `openai/gpt-5.6-terra` |
260
+ | `openai/gpt-5.6-terra-pro` |
257
261
  | `openai/gpt-audio` |
258
262
  | `openai/gpt-audio-mini` |
259
263
  | `openai/gpt-chat-latest` |
@@ -287,8 +291,6 @@ ANTHROPIC_API_KEY=ant-...
287
291
  | `poolside/laguna-m.1:free` |
288
292
  | `poolside/laguna-xs-2.1` |
289
293
  | `poolside/laguna-xs-2.1:free` |
290
- | `poolside/laguna-xs.2` |
291
- | `poolside/laguna-xs.2:free` |
292
294
  | `qwen/qwen-2.5-72b-instruct` |
293
295
  | `qwen/qwen-2.5-7b-instruct` |
294
296
  | `qwen/qwen-2.5-coder-32b-instruct` |
@@ -349,7 +351,6 @@ ANTHROPIC_API_KEY=ant-...
349
351
  | `sao10k/l3.3-euryale-70b` |
350
352
  | `stepfun/step-3.5-flash` |
351
353
  | `stepfun/step-3.7-flash` |
352
- | `switchpoint/router` |
353
354
  | `tencent/hunyuan-a13b-instruct` |
354
355
  | `tencent/hy3` |
355
356
  | `tencent/hy3-preview` |
@@ -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 301 models through Mastra's model router.
5
+ Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 305 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
 
@@ -177,6 +177,7 @@ ANTHROPIC_API_KEY=ant-...
177
177
  | `meta/llama-3.3-70b` |
178
178
  | `meta/llama-4-maverick` |
179
179
  | `meta/llama-4-scout` |
180
+ | `meta/muse-spark-1.1` |
180
181
  | `minimax/minimax-m2` |
181
182
  | `minimax/minimax-m2.1` |
182
183
  | `minimax/minimax-m2.1-lightning` |
@@ -250,6 +251,9 @@ ANTHROPIC_API_KEY=ant-...
250
251
  | `openai/gpt-5.4-pro` |
251
252
  | `openai/gpt-5.5` |
252
253
  | `openai/gpt-5.5-pro` |
254
+ | `openai/gpt-5.6-luna` |
255
+ | `openai/gpt-5.6-sol` |
256
+ | `openai/gpt-5.6-terra` |
253
257
  | `openai/gpt-image-1` |
254
258
  | `openai/gpt-image-1-mini` |
255
259
  | `openai/gpt-image-1.5` |
@@ -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 4582 models from 141 providers through a single API.
5
+ Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 4634 models from 143 providers through a single API.
6
6
 
7
7
  ## Features
8
8
 
@@ -0,0 +1,109 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # ![CrossModel logo](https://models.dev/logos/crossmodel.svg)CrossModel
4
+
5
+ Access 37 CrossModel models through Mastra's model router. Authentication is handled automatically using the `CROSSMODEL_API_KEY` environment variable.
6
+
7
+ Learn more in the [CrossModel documentation](https://www.crossmodel.ai/docs).
8
+
9
+ ```bash
10
+ CROSSMODEL_API_KEY=your-api-key
11
+ ```
12
+
13
+ ```typescript
14
+ import { Agent } from "@mastra/core/agent";
15
+
16
+ const agent = new Agent({
17
+ id: "my-agent",
18
+ name: "My Agent",
19
+ instructions: "You are a helpful assistant",
20
+ model: "crossmodel/anthropic/claude-fable-5"
21
+ });
22
+
23
+ // Generate a response
24
+ const response = await agent.generate("Hello!");
25
+
26
+ // Stream a response
27
+ const stream = await agent.stream("Tell me a story");
28
+ for await (const chunk of stream) {
29
+ console.log(chunk);
30
+ }
31
+ ```
32
+
33
+ > **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [CrossModel documentation](https://www.crossmodel.ai/docs) for details.
34
+
35
+ ## Models
36
+
37
+ | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
38
+ | ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
39
+ | `crossmodel/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
40
+ | `crossmodel/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
41
+ | `crossmodel/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
42
+ | `crossmodel/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
43
+ | `crossmodel/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
44
+ | `crossmodel/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
45
+ | `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.16 | $0.32 |
46
+ | `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.47 | $0.94 |
47
+ | `crossmodel/gemini/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
48
+ | `crossmodel/gemini/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
49
+ | `crossmodel/gemini/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
50
+ | `crossmodel/gemini/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
51
+ | `crossmodel/gemini/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
52
+ | `crossmodel/gemini/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
53
+ | `crossmodel/minimax/minimax-m2.7` | 205K | | | | | | $0.33 | $1 |
54
+ | `crossmodel/minimax/minimax-m3` | 1.0M | | | | | | $0.33 | $1 |
55
+ | `crossmodel/moonshot/kimi-k2.5` | 262K | | | | | | $0.62 | $3 |
56
+ | `crossmodel/moonshot/kimi-k2.6` | 262K | | | | | | $1 | $4 |
57
+ | `crossmodel/moonshot/kimi-k2.7-code` | 262K | | | | | | $1 | $4 |
58
+ | `crossmodel/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
59
+ | `crossmodel/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
60
+ | `crossmodel/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
61
+ | `crossmodel/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
62
+ | `crossmodel/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
63
+ | `crossmodel/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
64
+ | `crossmodel/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
65
+ | `crossmodel/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.32 | $2 |
66
+ | `crossmodel/qwen/qwen3.7-max` | 1.0M | | | | | | $2 | $6 |
67
+ | `crossmodel/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
68
+ | `crossmodel/tencent/hy3-preview` | 256K | | | | | | $0.19 | $0.63 |
69
+ | `crossmodel/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.16 | $0.32 |
70
+ | `crossmodel/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.47 | $0.94 |
71
+ | `crossmodel/z-ai/glm-4.7` | 200K | | | | | | $0.47 | $2 |
72
+ | `crossmodel/z-ai/glm-5` | 200K | | | | | | $0.60 | $3 |
73
+ | `crossmodel/z-ai/glm-5-turbo` | 200K | | | | | | $0.90 | $4 |
74
+ | `crossmodel/z-ai/glm-5.1` | 200K | | | | | | $1 | $4 |
75
+ | `crossmodel/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
76
+
77
+ ## Advanced configuration
78
+
79
+ ### Custom headers
80
+
81
+ ```typescript
82
+ const agent = new Agent({
83
+ id: "custom-agent",
84
+ name: "custom-agent",
85
+ model: {
86
+ url: "https://api.crossmodel.ai/v1",
87
+ id: "crossmodel/anthropic/claude-fable-5",
88
+ apiKey: process.env.CROSSMODEL_API_KEY,
89
+ headers: {
90
+ "X-Custom-Header": "value"
91
+ }
92
+ }
93
+ });
94
+ ```
95
+
96
+ ### Dynamic model selection
97
+
98
+ ```typescript
99
+ const agent = new Agent({
100
+ id: "dynamic-agent",
101
+ name: "Dynamic Agent",
102
+ model: ({ requestContext }) => {
103
+ const useAdvanced = requestContext.task === "complex";
104
+ return useAdvanced
105
+ ? "crossmodel/z-ai/glm-5.2"
106
+ : "crossmodel/anthropic/claude-fable-5";
107
+ }
108
+ });
109
+ ```