@mastra/mcp-docs-server 1.1.14 → 1.1.15-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/deployment/studio.md +2 -0
- package/.docs/docs/server/auth/auth0.md +42 -2
- package/.docs/docs/server/auth/better-auth.md +2 -2
- package/.docs/docs/server/auth/clerk.md +22 -2
- package/.docs/docs/server/auth/composite-auth.md +1 -1
- package/.docs/docs/server/auth/custom-auth-provider.md +1 -1
- package/.docs/docs/server/auth/firebase.md +22 -2
- package/.docs/docs/server/auth/jwt.md +18 -14
- package/.docs/docs/server/auth/simple-auth.md +2 -2
- package/.docs/docs/server/auth/supabase.md +22 -2
- package/.docs/docs/server/auth/workos.md +42 -2
- package/.docs/docs/server/auth.md +6 -4
- package/.docs/guides/build-your-ui/ai-sdk-ui.md +11 -0
- package/.docs/guides/guide/docs-manager.md +2 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/minimax-cn-coding-plan.md +4 -2
- package/.docs/models/providers/minimax-cn.md +4 -2
- package/.docs/models/providers/minimax-coding-plan.md +4 -2
- package/.docs/models/providers/minimax.md +4 -2
- package/.docs/models/providers/opencode.md +3 -1
- package/.docs/reference/ai-sdk/chat-route.md +4 -0
- package/.docs/reference/ai-sdk/handle-chat-stream.md +4 -0
- package/.docs/reference/ai-sdk/handle-network-stream.md +4 -0
- package/.docs/reference/ai-sdk/handle-workflow-stream.md +4 -0
- package/.docs/reference/ai-sdk/network-route.md +4 -0
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +34 -0
- package/.docs/reference/ai-sdk/workflow-route.md +4 -0
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/server/routes.md +28 -8
- package/CHANGELOG.md +8 -0
- package/package.json +5 -5
|
@@ -64,6 +64,8 @@ The command uses Node's built-in `http` module and [`serve-handler`](https://www
|
|
|
64
64
|
Running `mastra studio` as a long-running process is no different from running any other Node.js service. All the best practices, tools, and options for deployment apply here as well. You can use process managers like PM2, use Docker, or cloud services that support Node.js applications. You'll need to ensure CORS is configured correctly and errors are monitored, as with any web service.
|
|
65
65
|
|
|
66
66
|
> **Warning:** Once Studio is connected to your Mastra server, it has full access to your agents, workflows, and tools. Be sure to secure it properly in production (e.g. behind authentication, VPN, etc.) to prevent unauthorized access.
|
|
67
|
+
>
|
|
68
|
+
> Visit the [Authentication](https://mastra.ai/docs/server/auth) docs to learn more.
|
|
67
69
|
|
|
68
70
|
### Alongside your API
|
|
69
71
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Auth0
|
|
2
2
|
|
|
3
|
-
The `
|
|
3
|
+
The `@mastra/auth-auth0` package provides authentication for Mastra using Auth0. It verifies incoming requests using Auth0-issued JWT tokens and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -24,10 +24,30 @@ AUTH0_AUDIENCE=your-api-identifier
|
|
|
24
24
|
|
|
25
25
|
Before you can use the `MastraAuthAuth0` class you have to install the `@mastra/auth-auth0` package.
|
|
26
26
|
|
|
27
|
+
**npm**:
|
|
28
|
+
|
|
27
29
|
```bash
|
|
28
30
|
npm install @mastra/auth-auth0@latest
|
|
29
31
|
```
|
|
30
32
|
|
|
33
|
+
**pnpm**:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add @mastra/auth-auth0@latest
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Yarn**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
yarn add @mastra/auth-auth0@latest
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Bun**:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
bun add @mastra/auth-auth0@latest
|
|
49
|
+
```
|
|
50
|
+
|
|
31
51
|
## Usage examples
|
|
32
52
|
|
|
33
53
|
### Basic usage with environment variables
|
|
@@ -93,10 +113,30 @@ When using Auth0 auth, you'll need to set up the Auth0 React SDK, authenticate u
|
|
|
93
113
|
|
|
94
114
|
First, install and configure the Auth0 React SDK in your application:
|
|
95
115
|
|
|
116
|
+
**npm**:
|
|
117
|
+
|
|
96
118
|
```bash
|
|
97
119
|
npm install @auth0/auth0-react
|
|
98
120
|
```
|
|
99
121
|
|
|
122
|
+
**pnpm**:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
pnpm add @auth0/auth0-react
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**Yarn**:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
yarn add @auth0/auth0-react
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Bun**:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
bun add @auth0/auth0-react
|
|
138
|
+
```
|
|
139
|
+
|
|
100
140
|
```typescript
|
|
101
141
|
import React from 'react'
|
|
102
142
|
import { Auth0Provider } from '@auth0/auth0-react'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Better Auth
|
|
2
2
|
|
|
3
|
-
The `
|
|
3
|
+
The `@mastra/auth-better-auth` package provides authentication for Mastra using Better Auth. It verifies incoming requests using your Better Auth instance and integrates with the Mastra server via the `server.auth` option.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Clerk
|
|
2
2
|
|
|
3
|
-
The `
|
|
3
|
+
The `@mastra/auth-clerk` package provides authentication for Mastra using Clerk. It verifies incoming requests using Clerk's authentication system and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -18,10 +18,30 @@ CLERK_JWKS_URI=https://your-clerk-domain.clerk.accounts.dev/.well-known/jwks.jso
|
|
|
18
18
|
|
|
19
19
|
Before you can use the `MastraAuthClerk` class you have to install the `@mastra/auth-clerk` package.
|
|
20
20
|
|
|
21
|
+
**npm**:
|
|
22
|
+
|
|
21
23
|
```bash
|
|
22
24
|
npm install @mastra/auth-clerk@latest
|
|
23
25
|
```
|
|
24
26
|
|
|
27
|
+
**pnpm**:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm add @mastra/auth-clerk@latest
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
**Yarn**:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
yarn add @mastra/auth-clerk@latest
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Bun**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
bun add @mastra/auth-clerk@latest
|
|
43
|
+
```
|
|
44
|
+
|
|
25
45
|
## Usage example
|
|
26
46
|
|
|
27
47
|
```typescript
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Firebase
|
|
2
2
|
|
|
3
|
-
The `
|
|
3
|
+
The `@mastra/auth-firebase` package provides authentication for Mastra using Firebase Authentication. It verifies incoming requests using Firebase ID tokens and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -24,10 +24,30 @@ FIRESTORE_DATABASE_ID=(default)
|
|
|
24
24
|
|
|
25
25
|
Before you can use the `MastraAuthFirebase` class you have to install the `@mastra/auth-firebase` package.
|
|
26
26
|
|
|
27
|
+
**npm**:
|
|
28
|
+
|
|
27
29
|
```bash
|
|
28
30
|
npm install @mastra/auth-firebase@latest
|
|
29
31
|
```
|
|
30
32
|
|
|
33
|
+
**pnpm**:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add @mastra/auth-firebase@latest
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Yarn**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
yarn add @mastra/auth-firebase@latest
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Bun**:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
bun add @mastra/auth-firebase@latest
|
|
49
|
+
```
|
|
50
|
+
|
|
31
51
|
## Usage examples
|
|
32
52
|
|
|
33
53
|
### Basic usage with environment variables
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# JSON Web Token
|
|
2
2
|
|
|
3
3
|
The `MastraJwtAuth` class provides a lightweight authentication mechanism for Mastra using JSON Web Tokens (JWTs). It verifies incoming requests based on a shared secret and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
@@ -30,8 +30,22 @@ yarn add @mastra/auth@latest
|
|
|
30
30
|
bun add @mastra/auth@latest
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
## Creating a JWT
|
|
34
|
+
|
|
35
|
+
To authenticate requests to your Mastra server, you'll need a valid JSON Web Token (JWT) signed with your `MASTRA_JWT_SECRET`.
|
|
36
|
+
|
|
37
|
+
The easiest way to generate one is using [jwt.io](https://www.jwt.io/):
|
|
38
|
+
|
|
39
|
+
1. Select **JWT Encoder**.
|
|
40
|
+
2. Scroll down to the **Sign JWT: Secret** section.
|
|
41
|
+
3. Enter your secret (for example: `supersecretdevkeythatishs256safe!`).
|
|
42
|
+
4. Click **Generate example** to create a valid JWT.
|
|
43
|
+
5. Copy the generated token and set it as `MASTRA_JWT_TOKEN` in your `.env` file.
|
|
44
|
+
|
|
33
45
|
## Usage example
|
|
34
46
|
|
|
47
|
+
Take your generated JWT and use it to configure `MastraJwtAuth` in your Mastra server:
|
|
48
|
+
|
|
35
49
|
```typescript
|
|
36
50
|
import { Mastra } from '@mastra/core'
|
|
37
51
|
import { MastraJwtAuth } from '@mastra/auth'
|
|
@@ -47,6 +61,8 @@ export const mastra = new Mastra({
|
|
|
47
61
|
|
|
48
62
|
> **Info:** Visit [MastraJwtAuth](https://mastra.ai/reference/auth/jwt) for all available configuration options.
|
|
49
63
|
|
|
64
|
+
Inside [Studio](https://mastra.ai/docs/getting-started/studio), go to **Settings** and under **Headers** select the **"Add Header"** button. Enter `Authorization` as the header name and `Bearer <your-jwt>` as the value.
|
|
65
|
+
|
|
50
66
|
## Configuring `MastraClient`
|
|
51
67
|
|
|
52
68
|
When `auth` is enabled, all requests made with `MastraClient` must include a valid JWT in the `Authorization` header:
|
|
@@ -95,16 +111,4 @@ curl -X POST http://localhost:4111/api/agents/weatherAgent/generate \
|
|
|
95
111
|
-d '{
|
|
96
112
|
"messages": "Weather in London"
|
|
97
113
|
}'
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Creating a JWT
|
|
101
|
-
|
|
102
|
-
To authenticate requests to your Mastra server, you'll need a valid JSON Web Token (JWT) signed with your `MASTRA_JWT_SECRET`.
|
|
103
|
-
|
|
104
|
-
The easiest way to generate one is using [jwt.io](https://www.jwt.io/):
|
|
105
|
-
|
|
106
|
-
1. Select **JWT Encoder**.
|
|
107
|
-
2. Scroll down to the **Sign JWT: Secret** section.
|
|
108
|
-
3. Enter your secret (for example: `supersecretdevkeythatishs256safe!`).
|
|
109
|
-
4. Click **Generate example** to create a valid JWT.
|
|
110
|
-
5. Copy the generated token and set it as `MASTRA_JWT_TOKEN` in your `.env` file.
|
|
114
|
+
```
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Simple Auth
|
|
2
2
|
|
|
3
3
|
The `SimpleAuth` class provides token-based authentication using a basic token-to-user mapping. It's included in `@mastra/core/server` and is useful for development, testing, and basic API key authentication scenarios.
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ The `SimpleAuth` class provides token-based authentication using a basic token-t
|
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
|
-
SimpleAuth is included in `@mastra/core`, no additional packages required.
|
|
14
|
+
`SimpleAuth` is included in `@mastra/core`, no additional packages required.
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { SimpleAuth } from '@mastra/core/server'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Supabase
|
|
2
2
|
|
|
3
|
-
The `
|
|
3
|
+
The `@mastra/auth-supabase` package provides authentication for Mastra using Supabase Auth. It verifies incoming requests using Supabase's authentication system and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -17,10 +17,30 @@ SUPABASE_ANON_KEY=your-anon-key
|
|
|
17
17
|
|
|
18
18
|
Before you can use the `MastraAuthSupabase` class you have to install the `@mastra/auth-supabase` package.
|
|
19
19
|
|
|
20
|
+
**npm**:
|
|
21
|
+
|
|
20
22
|
```bash
|
|
21
23
|
npm install @mastra/auth-supabase@latest
|
|
22
24
|
```
|
|
23
25
|
|
|
26
|
+
**pnpm**:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pnpm add @mastra/auth-supabase@latest
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Yarn**:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
yarn add @mastra/auth-supabase@latest
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Bun**:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
bun add @mastra/auth-supabase@latest
|
|
42
|
+
```
|
|
43
|
+
|
|
24
44
|
## Usage example
|
|
25
45
|
|
|
26
46
|
```typescript
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# WorkOS
|
|
2
2
|
|
|
3
|
-
The `
|
|
3
|
+
The `@mastra/auth-workos` package provides authentication for Mastra using WorkOS. It verifies incoming requests using WorkOS access tokens and integrates with the Mastra server using the `auth` option.
|
|
4
4
|
|
|
5
5
|
## Prerequisites
|
|
6
6
|
|
|
@@ -24,10 +24,30 @@ WORKOS_CLIENT_ID=client_...
|
|
|
24
24
|
|
|
25
25
|
Before you can use the `MastraAuthWorkos` class you have to install the `@mastra/auth-workos` package.
|
|
26
26
|
|
|
27
|
+
**npm**:
|
|
28
|
+
|
|
27
29
|
```bash
|
|
28
30
|
npm install @mastra/auth-workos@latest
|
|
29
31
|
```
|
|
30
32
|
|
|
33
|
+
**pnpm**:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm add @mastra/auth-workos@latest
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Yarn**:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
yarn add @mastra/auth-workos@latest
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
**Bun**:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
bun add @mastra/auth-workos@latest
|
|
49
|
+
```
|
|
50
|
+
|
|
31
51
|
## Usage examples
|
|
32
52
|
|
|
33
53
|
### Basic usage with environment variables
|
|
@@ -94,10 +114,30 @@ When using WorkOS auth, you'll need to implement the WorkOS authentication flow
|
|
|
94
114
|
|
|
95
115
|
First, install the WorkOS SDK in your application:
|
|
96
116
|
|
|
117
|
+
**npm**:
|
|
118
|
+
|
|
97
119
|
```bash
|
|
98
120
|
npm install @workos-inc/node
|
|
99
121
|
```
|
|
100
122
|
|
|
123
|
+
**pnpm**:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pnpm add @workos-inc/node
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Yarn**:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
yarn add @workos-inc/node
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Bun**:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
bun add @workos-inc/node
|
|
139
|
+
```
|
|
140
|
+
|
|
101
141
|
### Exchanging code for access token
|
|
102
142
|
|
|
103
143
|
After users complete the WorkOS authentication flow and return with an authorization code, exchange it for an access token:
|
|
@@ -15,12 +15,14 @@ Authentication is optional. If no auth is configured, all routes and Studio are
|
|
|
15
15
|
|
|
16
16
|
See [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes) for controlling authentication on custom endpoints.
|
|
17
17
|
|
|
18
|
+
> **Note:** Authentication for Studio is currently supported by the following providers: Simple Auth, JWT, WorkOS, and Better Auth.
|
|
19
|
+
|
|
18
20
|
## Available providers
|
|
19
21
|
|
|
20
22
|
### Built-in
|
|
21
23
|
|
|
22
|
-
- [Simple Auth](https://mastra.ai/docs/server/auth/simple-auth)
|
|
23
|
-
- [JSON Web Token (JWT)](https://mastra.ai/docs/server/auth/jwt)
|
|
24
|
+
- [Simple Auth](https://mastra.ai/docs/server/auth/simple-auth): Token-to-user mapping for development and API keys
|
|
25
|
+
- [JSON Web Token (JWT)](https://mastra.ai/docs/server/auth/jwt): HMAC-signed JWT verification
|
|
24
26
|
|
|
25
27
|
### Third-party integrations
|
|
26
28
|
|
|
@@ -33,5 +35,5 @@ See [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes) for con
|
|
|
33
35
|
|
|
34
36
|
### Advanced
|
|
35
37
|
|
|
36
|
-
- [Composite Auth](https://mastra.ai/docs/server/auth/composite-auth)
|
|
37
|
-
- [Custom Auth Provider](https://mastra.ai/docs/server/auth/custom-auth-provider)
|
|
38
|
+
- [Composite Auth](https://mastra.ai/docs/server/auth/composite-auth): Combine multiple auth providers
|
|
39
|
+
- [Custom Auth Provider](https://mastra.ai/docs/server/auth/custom-auth-provider): Build your own provider
|
|
@@ -133,6 +133,8 @@ If you don't want to run Mastra's server and instead use frameworks like Next.js
|
|
|
133
133
|
|
|
134
134
|
They return a `ReadableStream` that you can wrap with [`createUIMessageStreamResponse()`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/create-ui-message-stream-response).
|
|
135
135
|
|
|
136
|
+
> **AI SDK v6 compatibility:** The framework-agnostic handlers keep the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`. For best TypeScript inference with `handleChatStream()` and `handleNetworkStream()`, pass `messages` as `UIMessage[]` from your installed `ai` version.
|
|
137
|
+
|
|
136
138
|
The examples below show you how to use them with Next.js App Router.
|
|
137
139
|
|
|
138
140
|
**handleChatStream()**:
|
|
@@ -874,6 +876,15 @@ For live examples of Custom UI patterns, visit [Mastra's UI Dojo](https://ui-doj
|
|
|
874
876
|
|
|
875
877
|
To manually transform Mastra's streams to AI SDK-compatible format, use the [`toAISdkStream()`](https://mastra.ai/reference/ai-sdk/to-ai-sdk-stream) utility. See the [examples](https://mastra.ai/reference/ai-sdk/to-ai-sdk-stream) for concrete usage patterns.
|
|
876
878
|
|
|
879
|
+
`toAISdkStream()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
880
|
+
|
|
881
|
+
```typescript
|
|
882
|
+
import { toAISdkStream } from '@mastra/ai-sdk'
|
|
883
|
+
|
|
884
|
+
const v5Stream = toAISdkStream(mastraStream, { from: 'agent' })
|
|
885
|
+
const v6Stream = toAISdkStream(mastraStream, { from: 'agent', version: 'v6' })
|
|
886
|
+
```
|
|
887
|
+
|
|
877
888
|
### Loading historical messages
|
|
878
889
|
|
|
879
890
|
When loading messages from Mastra's memory to display in a chat UI, use [`toAISdkV5Messages()`](https://mastra.ai/reference/ai-sdk/to-ai-sdk-v5-messages) or [`toAISdkV4Messages()`](https://mastra.ai/reference/ai-sdk/to-ai-sdk-v4-messages) to convert them to the appropriate AI SDK format for `useChat()`'s `initialMessages`.
|
|
@@ -61,7 +61,7 @@ Quick start guide for the project.
|
|
|
61
61
|
|
|
62
62
|
## Installation
|
|
63
63
|
|
|
64
|
-
```bash
|
|
64
|
+
```bash npm2yarn
|
|
65
65
|
npm install example-package
|
|
66
66
|
```
|
|
67
67
|
|
|
@@ -176,7 +176,7 @@ Learn how to add authentication to your application.
|
|
|
176
176
|
|
|
177
177
|
Install the auth package:
|
|
178
178
|
|
|
179
|
-
```bash
|
|
179
|
+
```bash npm2yarn
|
|
180
180
|
npm install @example/auth
|
|
181
181
|
```
|
|
182
182
|
|
package/.docs/models/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Model Providers
|
|
2
2
|
|
|
3
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
3
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 3381 models from 94 providers through a single API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MiniMax Coding Plan (minimaxi.com)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 6 MiniMax Coding Plan (minimaxi.com) models through Mastra's model router. Authentication is handled automatically using the `MINIMAX_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [MiniMax Coding Plan (minimaxi.com) documentation](https://platform.minimaxi.com/docs/coding-plan/intro).
|
|
6
6
|
|
|
@@ -38,6 +38,8 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `minimax-cn-coding-plan/MiniMax-M2.1` | 205K | | | | | | — | — |
|
|
39
39
|
| `minimax-cn-coding-plan/MiniMax-M2.5` | 205K | | | | | | — | — |
|
|
40
40
|
| `minimax-cn-coding-plan/MiniMax-M2.5-highspeed` | 205K | | | | | | — | — |
|
|
41
|
+
| `minimax-cn-coding-plan/MiniMax-M2.7` | 205K | | | | | | — | — |
|
|
42
|
+
| `minimax-cn-coding-plan/MiniMax-M2.7-highspeed` | 205K | | | | | | — | — |
|
|
41
43
|
|
|
42
44
|
## Advanced configuration
|
|
43
45
|
|
|
@@ -67,7 +69,7 @@ const agent = new Agent({
|
|
|
67
69
|
model: ({ requestContext }) => {
|
|
68
70
|
const useAdvanced = requestContext.task === "complex";
|
|
69
71
|
return useAdvanced
|
|
70
|
-
? "minimax-cn-coding-plan/MiniMax-M2.
|
|
72
|
+
? "minimax-cn-coding-plan/MiniMax-M2.7-highspeed"
|
|
71
73
|
: "minimax-cn-coding-plan/MiniMax-M2";
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MiniMax (minimaxi.com)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 6 MiniMax (minimaxi.com) models through Mastra's model router. Authentication is handled automatically using the `MINIMAX_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [MiniMax (minimaxi.com) documentation](https://platform.minimaxi.com/docs/guides/quickstart).
|
|
6
6
|
|
|
@@ -38,6 +38,8 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `minimax-cn/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
|
|
39
39
|
| `minimax-cn/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
40
40
|
| `minimax-cn/MiniMax-M2.5-highspeed` | 205K | | | | | | $0.60 | $2 |
|
|
41
|
+
| `minimax-cn/MiniMax-M2.7` | 205K | | | | | | $0.30 | $1 |
|
|
42
|
+
| `minimax-cn/MiniMax-M2.7-highspeed` | 205K | | | | | | $0.60 | $2 |
|
|
41
43
|
|
|
42
44
|
## Advanced configuration
|
|
43
45
|
|
|
@@ -67,7 +69,7 @@ const agent = new Agent({
|
|
|
67
69
|
model: ({ requestContext }) => {
|
|
68
70
|
const useAdvanced = requestContext.task === "complex";
|
|
69
71
|
return useAdvanced
|
|
70
|
-
? "minimax-cn/MiniMax-M2.
|
|
72
|
+
? "minimax-cn/MiniMax-M2.7-highspeed"
|
|
71
73
|
: "minimax-cn/MiniMax-M2";
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MiniMax Coding Plan (minimax.io)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 6 MiniMax Coding Plan (minimax.io) models through Mastra's model router. Authentication is handled automatically using the `MINIMAX_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [MiniMax Coding Plan (minimax.io) documentation](https://platform.minimax.io/docs/coding-plan/intro).
|
|
6
6
|
|
|
@@ -38,6 +38,8 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `minimax-coding-plan/MiniMax-M2.1` | 205K | | | | | | — | — |
|
|
39
39
|
| `minimax-coding-plan/MiniMax-M2.5` | 205K | | | | | | — | — |
|
|
40
40
|
| `minimax-coding-plan/MiniMax-M2.5-highspeed` | 205K | | | | | | — | — |
|
|
41
|
+
| `minimax-coding-plan/MiniMax-M2.7` | 205K | | | | | | — | — |
|
|
42
|
+
| `minimax-coding-plan/MiniMax-M2.7-highspeed` | 205K | | | | | | — | — |
|
|
41
43
|
|
|
42
44
|
## Advanced configuration
|
|
43
45
|
|
|
@@ -67,7 +69,7 @@ const agent = new Agent({
|
|
|
67
69
|
model: ({ requestContext }) => {
|
|
68
70
|
const useAdvanced = requestContext.task === "complex";
|
|
69
71
|
return useAdvanced
|
|
70
|
-
? "minimax-coding-plan/MiniMax-M2.
|
|
72
|
+
? "minimax-coding-plan/MiniMax-M2.7-highspeed"
|
|
71
73
|
: "minimax-coding-plan/MiniMax-M2";
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# MiniMax (minimax.io)
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 6 MiniMax (minimax.io) models through Mastra's model router. Authentication is handled automatically using the `MINIMAX_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [MiniMax (minimax.io) documentation](https://platform.minimax.io/docs/guides/quickstart).
|
|
6
6
|
|
|
@@ -38,6 +38,8 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| `minimax/MiniMax-M2.1` | 205K | | | | | | $0.30 | $1 |
|
|
39
39
|
| `minimax/MiniMax-M2.5` | 205K | | | | | | $0.30 | $1 |
|
|
40
40
|
| `minimax/MiniMax-M2.5-highspeed` | 205K | | | | | | $0.60 | $2 |
|
|
41
|
+
| `minimax/MiniMax-M2.7` | 205K | | | | | | $0.30 | $1 |
|
|
42
|
+
| `minimax/MiniMax-M2.7-highspeed` | 205K | | | | | | $0.60 | $2 |
|
|
41
43
|
|
|
42
44
|
## Advanced configuration
|
|
43
45
|
|
|
@@ -67,7 +69,7 @@ const agent = new Agent({
|
|
|
67
69
|
model: ({ requestContext }) => {
|
|
68
70
|
const useAdvanced = requestContext.task === "complex";
|
|
69
71
|
return useAdvanced
|
|
70
|
-
? "minimax/MiniMax-M2.
|
|
72
|
+
? "minimax/MiniMax-M2.7-highspeed"
|
|
71
73
|
: "minimax/MiniMax-M2";
|
|
72
74
|
}
|
|
73
75
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenCode Zen
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 32 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
|
|
6
6
|
|
|
@@ -58,6 +58,8 @@ for await (const chunk of stream) {
|
|
|
58
58
|
| `opencode/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
59
59
|
| `opencode/gpt-5.3-codex-spark` | 128K | | | | | | $2 | $14 |
|
|
60
60
|
| `opencode/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
61
|
+
| `opencode/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
62
|
+
| `opencode/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
61
63
|
| `opencode/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
62
64
|
| `opencode/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
63
65
|
| `opencode/mimo-v2-flash-free` | 262K | | | | | | — | — |
|
|
@@ -4,6 +4,8 @@ Creates a chat route handler for streaming agent conversations using the AI SDK
|
|
|
4
4
|
|
|
5
5
|
Use [`handleChatStream()`](https://mastra.ai/reference/ai-sdk/handle-chat-stream) if you need a framework-agnostic handler.
|
|
6
6
|
|
|
7
|
+
`chatRoute()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
8
|
+
|
|
7
9
|
> **Disconnect behavior:** `chatRoute()` forwards the incoming request's `AbortSignal` to `agent.stream()`. If the client disconnects, Mastra aborts the in-flight generation.
|
|
8
10
|
>
|
|
9
11
|
> If you want the server to continue generation and persist the final response after disconnect, build a [custom API route](https://mastra.ai/docs/server/custom-api-routes) around `agent.stream()` and call `consumeStream()` on the returned `MastraModelOutput`.
|
|
@@ -47,6 +49,8 @@ export const mastra = new Mastra({
|
|
|
47
49
|
|
|
48
50
|
## Parameters
|
|
49
51
|
|
|
52
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
53
|
+
|
|
50
54
|
**path** (`string`): The route path (e.g., \`/chat\` or \`/chat/:agentId\`). Include \`:agentId\` for dynamic agent routing. (Default: `'/chat/:agentId'`)
|
|
51
55
|
|
|
52
56
|
**agent** (`string`): The ID of the agent to use for this chat route. Required if the path doesn't include \`:agentId\`.
|
|
@@ -4,6 +4,8 @@ Framework-agnostic handler for streaming agent chat in AI SDK-compatible format.
|
|
|
4
4
|
|
|
5
5
|
`handleChatStream()` returns a `ReadableStream` that you can wrap with [`createUIMessageStreamResponse()`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/create-ui-message-stream-response).
|
|
6
6
|
|
|
7
|
+
`handleChatStream()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
8
|
+
|
|
7
9
|
Use [`chatRoute()`](https://mastra.ai/reference/ai-sdk/chat-route) if you want to create a chat route inside a Mastra server.
|
|
8
10
|
|
|
9
11
|
## Usage example
|
|
@@ -28,6 +30,8 @@ export async function POST(req: Request) {
|
|
|
28
30
|
|
|
29
31
|
## Parameters
|
|
30
32
|
|
|
33
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
34
|
+
|
|
31
35
|
**mastra** (`Mastra`): The Mastra instance containing registered agents.
|
|
32
36
|
|
|
33
37
|
**agentId** (`string`): The ID of the agent to use for chat.
|
|
@@ -6,6 +6,8 @@ Framework-agnostic handler for streaming network execution in AI SDK-compatible
|
|
|
6
6
|
|
|
7
7
|
`handleNetworkStream()` returns a `ReadableStream` that you can wrap with [`createUIMessageStreamResponse()`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/create-ui-message-stream-response).
|
|
8
8
|
|
|
9
|
+
`handleNetworkStream()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
10
|
+
|
|
9
11
|
Use [`networkRoute()`](https://mastra.ai/reference/ai-sdk/network-route) if you want to create a network route inside a Mastra server.
|
|
10
12
|
|
|
11
13
|
## Usage example
|
|
@@ -30,6 +32,8 @@ export async function POST(req: Request) {
|
|
|
30
32
|
|
|
31
33
|
## Parameters
|
|
32
34
|
|
|
35
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
36
|
+
|
|
33
37
|
**mastra** (`Mastra`): The Mastra instance to use for agent lookup and execution.
|
|
34
38
|
|
|
35
39
|
**agentId** (`string`): The ID of the routing agent to execute as a network.
|
|
@@ -4,6 +4,8 @@ Framework-agnostic handler for streaming workflow execution in AI SDK-compatible
|
|
|
4
4
|
|
|
5
5
|
`handleWorkflowStream()` returns a `ReadableStream` that you can wrap with [`createUIMessageStreamResponse()`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/create-ui-message-stream-response).
|
|
6
6
|
|
|
7
|
+
`handleWorkflowStream()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
8
|
+
|
|
7
9
|
Use [`workflowRoute()`](https://mastra.ai/reference/ai-sdk/workflow-route) if you want to create a workflow route inside a Mastra server.
|
|
8
10
|
|
|
9
11
|
> **Agent streaming in workflows:** When a workflow step pipes an agent's stream to the workflow writer (e.g., `await response.fullStream.pipeTo(writer)`), the agent's text chunks and tool calls are forwarded to the UI stream in real time, even when the agent runs inside workflow steps.
|
|
@@ -32,6 +34,8 @@ export async function POST(req: Request) {
|
|
|
32
34
|
|
|
33
35
|
## Parameters
|
|
34
36
|
|
|
37
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
38
|
+
|
|
35
39
|
**mastra** (`Mastra`): The Mastra instance containing registered workflows.
|
|
36
40
|
|
|
37
41
|
**workflowId** (`string`): The ID of the workflow to execute.
|
|
@@ -6,6 +6,8 @@ Creates a network route handler for streaming network execution using the AI SDK
|
|
|
6
6
|
|
|
7
7
|
Use [`handleNetworkStream()`](https://mastra.ai/reference/ai-sdk/handle-network-stream) if you need a framework-agnostic handler.
|
|
8
8
|
|
|
9
|
+
`networkRoute()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
10
|
+
|
|
9
11
|
## Usage example
|
|
10
12
|
|
|
11
13
|
This example shows how to set up a network route at the `/network` endpoint that uses an agent with the ID `weatherAgent`.
|
|
@@ -45,6 +47,8 @@ export const mastra = new Mastra({
|
|
|
45
47
|
|
|
46
48
|
## Parameters
|
|
47
49
|
|
|
50
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
51
|
+
|
|
48
52
|
**path** (`string`): The route path (e.g., \`/network\` or \`/network/:agentId\`). Include \`:agentId\` for dynamic agent routing. (Default: `'/network/:agentId'`)
|
|
49
53
|
|
|
50
54
|
**agent** (`string`): The ID of the routing agent to use for this network route. Required if the path doesn't include \`:agentId\`.
|
|
@@ -4,6 +4,8 @@ Converts Mastra streams (agent, network, or workflow) to AI SDK-compatible strea
|
|
|
4
4
|
|
|
5
5
|
This is useful when building custom streaming endpoints outside Mastra's provided route helpers such as [`chatRoute()`](https://mastra.ai/reference/ai-sdk/chat-route) or [`workflowRoute()`](https://mastra.ai/reference/ai-sdk/workflow-route).
|
|
6
6
|
|
|
7
|
+
`toAISdkStream()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'` in the options object.
|
|
8
|
+
|
|
7
9
|
## Usage example
|
|
8
10
|
|
|
9
11
|
Next.js App Router example:
|
|
@@ -45,6 +47,8 @@ The first parameter is the Mastra stream to convert. It can be one of:
|
|
|
45
47
|
|
|
46
48
|
The second parameter is an options object:
|
|
47
49
|
|
|
50
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
51
|
+
|
|
48
52
|
**from** (`'agent' | 'network' | 'workflow'`): The type of Mastra stream being converted. (Default: `'agent'`)
|
|
49
53
|
|
|
50
54
|
**lastMessageId** (`string`): (Agent only) The ID of the last message in the conversation.
|
|
@@ -152,6 +156,36 @@ export async function POST(req: Request) {
|
|
|
152
156
|
}
|
|
153
157
|
```
|
|
154
158
|
|
|
159
|
+
### Converting an agent stream for AI SDK v6
|
|
160
|
+
|
|
161
|
+
```typescript
|
|
162
|
+
import { mastra } from '../../mastra'
|
|
163
|
+
import { createUIMessageStream, createUIMessageStreamResponse } from 'ai'
|
|
164
|
+
import { toAISdkStream } from '@mastra/ai-sdk'
|
|
165
|
+
|
|
166
|
+
export async function POST(req: Request) {
|
|
167
|
+
const { messages } = await req.json()
|
|
168
|
+
const myAgent = mastra.getAgent('weatherAgent')
|
|
169
|
+
const stream = await myAgent.stream(messages)
|
|
170
|
+
|
|
171
|
+
const uiMessageStream = createUIMessageStream({
|
|
172
|
+
originalMessages: messages,
|
|
173
|
+
execute: async ({ writer }) => {
|
|
174
|
+
for await (const part of toAISdkStream(stream, {
|
|
175
|
+
from: 'agent',
|
|
176
|
+
version: 'v6',
|
|
177
|
+
})) {
|
|
178
|
+
await writer.write(part)
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
return createUIMessageStreamResponse({
|
|
184
|
+
stream: uiMessageStream,
|
|
185
|
+
})
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
155
189
|
### Using `messageMetadata`
|
|
156
190
|
|
|
157
191
|
```typescript
|
|
@@ -4,6 +4,8 @@ Creates a workflow route handler for streaming workflow execution using the AI S
|
|
|
4
4
|
|
|
5
5
|
Use [`handleWorkflowStream()`](https://mastra.ai/reference/ai-sdk/handle-workflow-stream) if you need a framework-agnostic handler.
|
|
6
6
|
|
|
7
|
+
`workflowRoute()` keeps the existing AI SDK v5/default behavior. If your app is typed against AI SDK v6, pass `version: 'v6'`.
|
|
8
|
+
|
|
7
9
|
> **Agent streaming in workflows:** When a workflow step pipes an agent's stream to the workflow writer (e.g., `await response.fullStream.pipeTo(writer)`), the agent's text chunks and tool calls are forwarded to the UI stream in real time, even when the agent runs inside workflow steps.
|
|
8
10
|
>
|
|
9
11
|
> See [Workflow Streaming](https://mastra.ai/docs/streaming/workflow-streaming) for more details.
|
|
@@ -47,6 +49,8 @@ export const mastra = new Mastra({
|
|
|
47
49
|
|
|
48
50
|
## Parameters
|
|
49
51
|
|
|
52
|
+
**version** (`'v5' | 'v6'`): Selects the AI SDK stream contract to emit. Omit it or pass \`'v5'\` for the existing default behavior. Pass \`'v6'\` when your app is typed against AI SDK v6 response helpers. (Default: `'v5'`)
|
|
53
|
+
|
|
50
54
|
**path** (`string`): The route path (e.g., \`/workflow\` or \`/workflow/:workflowId\`). Include \`:workflowId\` for dynamic workflow routing. (Default: `'/api/workflows/:workflowId/stream'`)
|
|
51
55
|
|
|
52
56
|
**workflow** (`string`): Fixed workflow ID when not using dynamic routing. (Default: `undefined`)
|
|
@@ -4,14 +4,34 @@ Server adapters register these routes when you call `server.init()`. All routes
|
|
|
4
4
|
|
|
5
5
|
## Agents
|
|
6
6
|
|
|
7
|
-
| Method | Path | Description
|
|
8
|
-
| ------ | -------------------------------------------- |
|
|
9
|
-
| `GET` | `/api/agents` | List all agents
|
|
10
|
-
| `GET` | `/api/agents/:agentId` | Get agent by ID
|
|
11
|
-
| `POST` | `/api/agents/:agentId/generate` | Generate agent response
|
|
12
|
-
| `POST` | `/api/agents/:agentId/stream` | Stream agent response
|
|
13
|
-
| `GET` | `/api/agents/:agentId/tools` | List agent tools
|
|
14
|
-
| `POST` | `/api/agents/:agentId/tools/:toolId/execute` | Execute agent tool
|
|
7
|
+
| Method | Path | Description |
|
|
8
|
+
| ------ | -------------------------------------------- | ----------------------------------------------- |
|
|
9
|
+
| `GET` | `/api/agents` | List all agents |
|
|
10
|
+
| `GET` | `/api/agents/:agentId` | Get agent by ID (supports version query params) |
|
|
11
|
+
| `POST` | `/api/agents/:agentId/generate` | Generate agent response |
|
|
12
|
+
| `POST` | `/api/agents/:agentId/stream` | Stream agent response |
|
|
13
|
+
| `GET` | `/api/agents/:agentId/tools` | List agent tools |
|
|
14
|
+
| `POST` | `/api/agents/:agentId/tools/:toolId/execute` | Execute agent tool |
|
|
15
|
+
|
|
16
|
+
### Get agent query parameters
|
|
17
|
+
|
|
18
|
+
`GET /api/agents/:agentId` accepts optional query parameters to control which stored config version is applied as overrides to code-defined agents:
|
|
19
|
+
|
|
20
|
+
| Parameter | Type | Default | Description |
|
|
21
|
+
| ----------- | ------------------------ | --------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| `status` | `'draft' \| 'published'` | `'draft'` | Which stored version to resolve. `draft` returns the latest version, `published` returns the active published version. |
|
|
23
|
+
| `versionId` | `string` | — | A specific version ID to resolve. Takes precedence over `status`. |
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Get agent with latest draft overrides (default)
|
|
27
|
+
GET /api/agents/my-agent
|
|
28
|
+
|
|
29
|
+
# Get agent with published overrides
|
|
30
|
+
GET /api/agents/my-agent?status=published
|
|
31
|
+
|
|
32
|
+
# Get agent with a specific version's overrides
|
|
33
|
+
GET /api/agents/my-agent?versionId=abc123
|
|
34
|
+
```
|
|
15
35
|
|
|
16
36
|
### Generate request body
|
|
17
37
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.1.15-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`cb611a1`](https://github.com/mastra-ai/mastra/commit/cb611a1e89a4f4cf74c97b57e0c27bb56f2eceb5), [`62d1d3c`](https://github.com/mastra-ai/mastra/commit/62d1d3cc08fe8182e7080237fd975de862ec8c91), [`56c9ad9`](https://github.com/mastra-ai/mastra/commit/56c9ad9c871d258af9da4d6e50065b01d339bf34), [`0773d08`](https://github.com/mastra-ai/mastra/commit/0773d089859210217702d3175ad4b2f3d63d267e), [`8681ecb`](https://github.com/mastra-ai/mastra/commit/8681ecb86184d5907267000e4576cc442a9a83fc), [`28d0249`](https://github.com/mastra-ai/mastra/commit/28d0249295782277040ad1e0d243e695b7ab1ce4), [`bb0f09d`](https://github.com/mastra-ai/mastra/commit/bb0f09dbac58401b36069f483acf5673202db5b5), [`6a8f1e6`](https://github.com/mastra-ai/mastra/commit/6a8f1e66272d2928351db334da091ee27e304c23), [`5f7e9d0`](https://github.com/mastra-ai/mastra/commit/5f7e9d0db664020e1f3d97d7d18c6b0b9d4843d0)]:
|
|
8
|
+
- @mastra/core@1.15.0-alpha.0
|
|
9
|
+
- @mastra/mcp@1.3.1-alpha.0
|
|
10
|
+
|
|
3
11
|
## 1.1.14
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.15-alpha.2",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"jsdom": "^26.1.0",
|
|
30
30
|
"local-pkg": "^1.1.2",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@mastra/core": "1.
|
|
33
|
-
"@mastra/mcp": "^1.3.0"
|
|
32
|
+
"@mastra/core": "1.15.0-alpha.0",
|
|
33
|
+
"@mastra/mcp": "^1.3.1-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@hono/node-server": "^1.19.11",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
48
|
"vitest": "4.0.18",
|
|
49
49
|
"@internal/lint": "0.0.72",
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
50
|
+
"@internal/types-builder": "0.0.47",
|
|
51
|
+
"@mastra/core": "1.15.0-alpha.0"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|