@mastra/mcp-docs-server 1.3.3-alpha.3 → 1.3.3
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/mastra-platform/alerts.md +252 -11
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/digitalocean.md +2 -1
- package/.docs/models/providers/edenai.md +1 -1
- package/.docs/models/providers/gmicloud.md +3 -1
- package/.docs/models/providers/kilo.md +6 -6
- package/.docs/models/providers/llmgateway-providers.md +1 -3
- package/.docs/models/providers/ofox.md +2 -1
- package/package.json +6 -6
|
@@ -4,44 +4,54 @@
|
|
|
4
4
|
|
|
5
5
|
# Alerts
|
|
6
6
|
|
|
7
|
-
Alerts notify your team when a deploy fails
|
|
7
|
+
Alerts notify your team when a deploy fails, a running service stops or stops responding, or organization usage crosses a plan threshold. You configure alerts at the organization level, then choose which projects and environments each alert covers.
|
|
8
8
|
|
|
9
9
|
Organization admins can create and manage alerts. Other organization roles have read-only access to the alert settings.
|
|
10
10
|
|
|
11
11
|
Open the [Mastra platform dashboard](https://projects.mastra.ai), go to your organization settings, then select **Alerts**. The page has three tabs:
|
|
12
12
|
|
|
13
13
|
- **Alerts** lists each alert with its scope, destinations, status, and enable or pause switch.
|
|
14
|
-
- **Destinations** lists the Slack channels, email groups,
|
|
14
|
+
- **Destinations** lists the Slack channels, Discord channels, Microsoft Teams channels, email groups, webhook endpoints, PagerDuty services, and incident.io alert sources that can receive notifications.
|
|
15
15
|
- **Activity** shows incidents and the notification attempts associated with them.
|
|
16
16
|
|
|
17
17
|
## Add a destination
|
|
18
18
|
|
|
19
19
|
A destination defines where Mastra sends notifications. Add at least one destination before creating an alert.
|
|
20
20
|
|
|
21
|
-
| Destination
|
|
22
|
-
|
|
|
23
|
-
| **Slack**
|
|
24
|
-
| **
|
|
25
|
-
| **
|
|
21
|
+
| Destination | Configuration |
|
|
22
|
+
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| **Slack** | Connect a Slack workspace and select one or more channels. Mastra creates a separate destination for each selected channel. |
|
|
24
|
+
| **Discord** | Enter a Discord channel webhook URL. See [Send alerts to Discord](#send-alerts-to-discord). |
|
|
25
|
+
| **Microsoft Teams** | Enter the URL of a Teams workflow that posts to a channel. See [Send alerts to Microsoft Teams](#send-alerts-to-microsoft-teams). |
|
|
26
|
+
| **Email** | Select organization roles, individual members, or up to 10 email addresses. Role-based recipient groups update when organization membership changes. |
|
|
27
|
+
| **Webhook** | Enter an HTTPS endpoint. Mastra signs each request and shows the signing secret once after the destination is created. |
|
|
28
|
+
| **PagerDuty** | Enter the integration key of a PagerDuty Events API v2 integration. See [Send alerts to PagerDuty](#send-alerts-to-pagerduty). |
|
|
29
|
+
| **Incident.io** | Enter the alert source config ID and token of an incident.io HTTP alert source. See [Send alerts to incident.io](#send-alerts-to-incidentio). |
|
|
26
30
|
|
|
27
31
|
1. On the **Destinations** tab, select **Add destination**.
|
|
28
32
|
|
|
29
|
-
2. Select **Slack**, **Email**, or **
|
|
33
|
+
2. Select **Slack**, **Discord**, **Microsoft Teams**, **Email**, **Webhook**, **PagerDuty**, or **Incident.io**, then enter a name for the destination.
|
|
30
34
|
|
|
31
35
|
3. Configure the selected destination:
|
|
32
36
|
|
|
33
37
|
- For Slack, connect or select a workspace and choose the channels that should receive alerts. The Mastra Alerts app joins public channels automatically. Invite `@Mastra Alerts` before selecting a private channel.
|
|
38
|
+
- For Discord, enter the channel's webhook URL.
|
|
39
|
+
- For Microsoft Teams, enter the workflow's webhook URL.
|
|
34
40
|
- For email, choose **All organization members**, one or more roles, individual members, or external email addresses.
|
|
35
41
|
- For a webhook, enter an endpoint that starts with `https://`.
|
|
42
|
+
- For PagerDuty, enter the **Integration key**.
|
|
43
|
+
- For incident.io, enter the **Alert source config ID** and **Token**.
|
|
36
44
|
|
|
37
45
|
4. Select **Create destination**. For a webhook destination, copy the signing secret before closing the page. The secret can't be shown again.
|
|
38
46
|
|
|
39
|
-
The destination form changes based on the selected type. Slack destinations require a workspace and at least one channel. Email destinations require at least one recipient, which can be an organization role, a member, or an external address. Webhook destinations require an HTTPS endpoint. Every destination also requires a name that identifies it in alert configuration and activity history.
|
|
47
|
+
The destination form changes based on the selected type. Slack destinations require a workspace and at least one channel. Discord and Microsoft Teams destinations require a webhook URL. Email destinations require at least one recipient, which can be an organization role, a member, or an external address. Webhook destinations require an HTTPS endpoint. PagerDuty and incident.io destinations require the credentials from their integration. Every destination also requires a name that identifies it in alert configuration and activity history.
|
|
40
48
|
|
|
41
49
|
Use the destination's actions menu to send a test notification. You can also edit, pause, or delete a destination. Pausing a destination stops notifications without removing it from existing alerts.
|
|
42
50
|
|
|
43
51
|
For webhook destinations, **Rotate secret** replaces the current signing secret immediately. Update the receiving endpoint with the new secret before sending another alert.
|
|
44
52
|
|
|
53
|
+
Discord and Microsoft Teams webhook URLs contain their own credentials, so Mastra stores them encrypted and shows only the last four characters after the destination is created. To rotate the URL, edit the destination and paste a new one. Leaving the URL field blank keeps the stored URL.
|
|
54
|
+
|
|
45
55
|
## Create an alert
|
|
46
56
|
|
|
47
57
|
An alert combines triggers, scope, destinations, and repeat-alert pacing.
|
|
@@ -55,6 +65,8 @@ An alert combines triggers, scope, destinations, and repeat-alert pacing.
|
|
|
55
65
|
- **Deploy failed**: A build or deploy doesn't reach a running state.
|
|
56
66
|
- **Service crashed**: A running service exhausts its restart policy and stops.
|
|
57
67
|
- **Service out of memory**: A service is stopped after running out of memory.
|
|
68
|
+
- **Service unreachable**: A deployed service fails 3 health checks in a row.
|
|
69
|
+
- **Usage threshold crossed**: Organization usage crosses a plan threshold or reaches its limit. This trigger is organization-wide, so it requires the **All projects** scope.
|
|
58
70
|
|
|
59
71
|
4. Set the alert scope to **All projects** or **Specific projects**. When you select specific projects, you can narrow the scope to individual environments. Leaving the environment selection empty includes every environment in that project.
|
|
60
72
|
|
|
@@ -78,6 +90,235 @@ Open an alert's actions menu to:
|
|
|
78
90
|
|
|
79
91
|
## Review alert activity
|
|
80
92
|
|
|
81
|
-
The **Activity** tab groups each incident with its delivery attempts. An incident stays **Open** while the condition is active and changes to **Resolved** after the service or deploy recovers.
|
|
93
|
+
The **Activity** tab groups each incident with its delivery attempts. An incident stays **Open** while the condition is active and changes to **Resolved** after the service or deploy recovers, except for usage threshold incidents, which don't resolve automatically.
|
|
94
|
+
|
|
95
|
+
Expand an incident to inspect the notification sent to each destination. Each incident row shows when the event occurred, the event type, its project or environment scope, and its current status. Nested delivery rows show the trigger, destination, and delivery status for each notification attempt. Delivery attempts can be **Scheduled**, **Sent**, **Suppressed**, **Retrying**, **Exhausted**, or **Config error**. Use the activity filter to show all activity, incidents only, or delivery attempts only.
|
|
96
|
+
|
|
97
|
+
## Send alerts to Discord
|
|
98
|
+
|
|
99
|
+
A Discord destination posts an embed to a channel through a Discord webhook. A triggered incident posts a red embed, and a recovery posts a separate green **Resolved** embed. Discord webhooks can't update earlier messages, so the resolved notice is a new message rather than an edit.
|
|
100
|
+
|
|
101
|
+
1. In Discord, open the channel that should receive alerts, then select **Edit Channel**, **Integrations**, **Webhooks**, and **New Webhook**. Copy the webhook URL. See [Intro to Webhooks](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks) in the Discord documentation.
|
|
102
|
+
|
|
103
|
+
2. In Mastra, add a destination, select **Discord**, and paste the URL into **Webhook URL**. The URL must have the form `https://discord.com/api/webhooks/<id>/<token>`.
|
|
104
|
+
|
|
105
|
+
3. Send a test notification from the destination's actions menu.
|
|
106
|
+
|
|
107
|
+
The embed shows the event and project in its title, which links to the deployment logs, followed by the error excerpt and the environment, branch, and error code when the event includes them. If Discord rejects the webhook URL, the delivery shows **Config error**.
|
|
108
|
+
|
|
109
|
+
## Send alerts to Microsoft Teams
|
|
110
|
+
|
|
111
|
+
A Microsoft Teams destination posts an Adaptive Card to a channel through a Teams workflow. A triggered incident posts a red card, and a recovery posts a separate green **Resolved** card.
|
|
112
|
+
|
|
113
|
+
1. In Teams, open the channel that should receive alerts, select **More options** and then **Workflows**, and choose the template **Send webhook alerts to a channel**. Select the team and channel, create the workflow, then copy the workflow URL. See [Create incoming webhooks with Workflows](https://support.microsoft.com/en-us/office/create-incoming-webhooks-with-workflows-for-microsoft-teams-8ae491c7-0394-4861-ba59-055e33f75498) in the Microsoft documentation.
|
|
114
|
+
|
|
115
|
+
2. In Mastra, add a destination, select **Microsoft Teams**, and paste the URL into **Webhook URL**.
|
|
116
|
+
|
|
117
|
+
3. Send a test notification from the destination's actions menu.
|
|
118
|
+
|
|
119
|
+
Microsoft retired classic Office 365 connectors, so use a Teams workflow rather than the older **Incoming Webhook** connector. Mastra still accepts legacy `webhook.office.com` URLs for tenants that haven't migrated.
|
|
120
|
+
|
|
121
|
+
The card shows the event and project in its title, followed by the environment, branch, and error code when the event includes them, the error excerpt, and a button that opens the deployment logs. If Teams rejects the workflow URL, the delivery shows **Config error**.
|
|
122
|
+
|
|
123
|
+
## Send alerts to PagerDuty
|
|
124
|
+
|
|
125
|
+
A PagerDuty destination sends events to the PagerDuty Events API v2. Each Mastra incident opens one PagerDuty incident, and PagerDuty resolves it when the Mastra incident resolves.
|
|
126
|
+
|
|
127
|
+
1. In PagerDuty, open the service that should receive alerts. On its **Integrations** tab, add an **Events API V2** integration and copy its **Integration Key**. See [Services and integrations](https://support.pagerduty.com/main/docs/services-and-integrations) in the PagerDuty documentation.
|
|
128
|
+
|
|
129
|
+
2. In Mastra, add a destination, select **PagerDuty**, and paste the key into **Integration key**.
|
|
130
|
+
|
|
131
|
+
3. Send a test notification from the destination's actions menu. The test opens an incident with `info` severity in PagerDuty. Resolve it in PagerDuty.
|
|
132
|
+
|
|
133
|
+
Mastra maps its notifications to PagerDuty events as follows:
|
|
134
|
+
|
|
135
|
+
| PagerDuty field | Value |
|
|
136
|
+
| ------------------------ | -------------------------------------------------------------------------------------------------- |
|
|
137
|
+
| `event_action` | `trigger` for a new or repeated notification, `resolve` for a recovery |
|
|
138
|
+
| `dedup_key` | The Mastra incident ID. Repeated notifications for the same incident update one PagerDuty incident |
|
|
139
|
+
| `payload.summary` | A one-line description, for example `Deploy failed on support-agent (production): Build failed` |
|
|
140
|
+
| `payload.severity` | The Mastra severity: `critical`, `error`, `warning`, or `info` |
|
|
141
|
+
| `payload.source` | `mastra:<project>/<environment>` |
|
|
142
|
+
| `payload.custom_details` | The event data described in [Webhook payload](#webhook-payload) |
|
|
143
|
+
|
|
144
|
+
Changes made in PagerDuty, such as acknowledging or resolving an incident, don't update the Mastra incident. If PagerDuty rejects the integration key, the delivery shows **Config error**.
|
|
145
|
+
|
|
146
|
+
## Send alerts to incident.io
|
|
147
|
+
|
|
148
|
+
An incident.io destination sends alert events to an incident.io HTTP alert source. Each Mastra incident creates one alert in incident.io, and the alert resolves when the Mastra incident resolves.
|
|
149
|
+
|
|
150
|
+
1. In incident.io, create an HTTP alert source with the **Default** source type. Mastra sends events in the incident.io alert event format, so a custom transform isn't needed. See [Create an alert event](https://docs.incident.io/api-reference/alert-events-v2/create) in the incident.io documentation.
|
|
151
|
+
|
|
152
|
+
2. Copy the alert source config ID and the bearer token from the source's authorization header. The ID is the last segment of the alert events URL, `https://api.incident.io/v2/alert_events/http/<alert-source-config-id>`.
|
|
153
|
+
|
|
154
|
+
3. In Mastra, add a destination and select **Incident.io**. Paste the ID, or the full alert events URL, into **Alert source config ID**, and the token into **Token**.
|
|
155
|
+
|
|
156
|
+
4. Send a test notification from the destination's actions menu. The test creates a firing alert in incident.io.
|
|
157
|
+
|
|
158
|
+
Mastra sends these fields to incident.io:
|
|
159
|
+
|
|
160
|
+
| incident.io field | Value |
|
|
161
|
+
| ------------------- | --------------------------------------------------------------------------------------- |
|
|
162
|
+
| `status` | `firing` for a new or repeated notification, `resolved` for a recovery |
|
|
163
|
+
| `deduplication_key` | The Mastra incident ID |
|
|
164
|
+
| `title` | A one-line description of the event |
|
|
165
|
+
| `description` | The error message, when the event has one |
|
|
166
|
+
| `metadata` | The event data plus `source`, `event_type`, `severity`, `project_id`, and `environment` |
|
|
167
|
+
|
|
168
|
+
Use the `metadata` fields in alert attributes and routing rules. Changes made in incident.io don't update the Mastra incident, and if incident.io rejects the token or alert source ID, the delivery shows **Config error**.
|
|
169
|
+
|
|
170
|
+
## Receive webhook notifications
|
|
171
|
+
|
|
172
|
+
A webhook destination receives an HTTP `POST` request with a JSON body for each notification. Use a webhook to connect a tool that Mastra doesn't integrate with directly.
|
|
173
|
+
|
|
174
|
+
### Webhook payload
|
|
175
|
+
|
|
176
|
+
The following example shows a failed deploy:
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
{
|
|
180
|
+
"id": "deploy.failed:dep_8c2f1a:triggered",
|
|
181
|
+
"version": "2026-09-01",
|
|
182
|
+
"type": "deploy.failed",
|
|
183
|
+
"createdAt": "2026-09-24T14:03:11.000Z",
|
|
184
|
+
"fingerprint": "deploy.failed|prj_41d9e2|server|production",
|
|
185
|
+
"severity": "error",
|
|
186
|
+
"status": "triggered",
|
|
187
|
+
"summary": "Deploy failed on support-agent (production): Build failed",
|
|
188
|
+
"source": "mastra",
|
|
189
|
+
"data": {
|
|
190
|
+
"deployId": "dep_8c2f1a",
|
|
191
|
+
"projectName": "support-agent",
|
|
192
|
+
"gitBranch": "main",
|
|
193
|
+
"error": "Build failed",
|
|
194
|
+
"errorCode": "BUILD_FAILED",
|
|
195
|
+
"errorCategory": "build",
|
|
196
|
+
"deployUrl": "https://projects.mastra.ai/..."
|
|
197
|
+
},
|
|
198
|
+
"links": []
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
| Field | Description |
|
|
203
|
+
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
204
|
+
| `id` | Notification ID. Stays the same when Mastra retries the same notification |
|
|
205
|
+
| `version` | Payload version. The current version is `2026-09-01` |
|
|
206
|
+
| `type` | Event type. See the table below |
|
|
207
|
+
| `createdAt` | ISO 8601 time when the event occurred |
|
|
208
|
+
| `fingerprint` | Identifies the incident the notification belongs to. Notifications for the same failing deploy target or service share a fingerprint |
|
|
209
|
+
| `severity` | `critical`, `error`, `warning`, or `info`. These values match PagerDuty severities |
|
|
210
|
+
| `status` | `triggered` for a new or repeated notification, `resolved` when the incident recovers |
|
|
211
|
+
| `summary` | One-line description of the event |
|
|
212
|
+
| `source` | Always `mastra` |
|
|
213
|
+
| `data` | Event-specific details. Fields vary by event type |
|
|
214
|
+
| `links` | Related links, each with `href` and `text`. Can be empty |
|
|
215
|
+
|
|
216
|
+
The `type` field has one of these values:
|
|
217
|
+
|
|
218
|
+
| Type | Trigger | Common `data` fields |
|
|
219
|
+
| ------------------------- | --------------------------- | ------------------------------------------------------------------------------------------ |
|
|
220
|
+
| `deploy.failed` | **Deploy failed** | `deployId`, `projectName`, `gitBranch`, `error`, `errorCode`, `errorCategory`, `deployUrl` |
|
|
221
|
+
| `service.crashed` | **Service crashed** | Same as `deploy.failed` |
|
|
222
|
+
| `service.oom` | **Service out of memory** | Same as `deploy.failed` |
|
|
223
|
+
| `service.unreachable` | **Service unreachable** | `projectName`, `probeUrl`, `error`, `consecutiveFailures` |
|
|
224
|
+
| `billing.usage_threshold` | **Usage threshold crossed** | `featureId`, `featureLabel`, `thresholdDisplay`, `error` |
|
|
225
|
+
|
|
226
|
+
Crash, out-of-memory, and unreachable events for the same service share a fingerprint, so one outage produces one incident. Usage threshold incidents don't send a `resolved` notification.
|
|
227
|
+
|
|
228
|
+
Test notifications use `type: "deploy.failed"`, `severity: "info"`, and include `"test": true` in `data`.
|
|
229
|
+
|
|
230
|
+
### Request headers
|
|
231
|
+
|
|
232
|
+
| Header | Value |
|
|
233
|
+
| -------------------------- | ------------------------------------------------------------------------------------------ |
|
|
234
|
+
| `content-type` | `application/json` |
|
|
235
|
+
| `user-agent` | `Mastra-Alerts/1.0` |
|
|
236
|
+
| `x-mastra-signature` | Signature of the request body. See [Verify webhook signatures](#verify-webhook-signatures) |
|
|
237
|
+
| `x-mastra-idempotency-key` | Same value as the payload `id` |
|
|
238
|
+
|
|
239
|
+
### Verify webhook signatures
|
|
240
|
+
|
|
241
|
+
Verify the signature before you trust a request. The `x-mastra-signature` header has this format:
|
|
242
|
+
|
|
243
|
+
```text
|
|
244
|
+
t=1790258591,v1=5f0c9d3e...
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
`t` is the Unix time in seconds when Mastra signed the request. `v1` is a hex-encoded HMAC-SHA256 of the string `<t>.<raw request body>`, using the destination's signing secret as the key.
|
|
248
|
+
|
|
249
|
+
To verify a request:
|
|
250
|
+
|
|
251
|
+
1. Read the raw request body before parsing it as JSON. Parsing and serializing the body again can change it.
|
|
252
|
+
2. Compute the HMAC of `<t>.<raw body>` and compare it with `v1` using a constant-time comparison.
|
|
253
|
+
3. Reject requests where `t` is more than a few minutes old to prevent replayed requests.
|
|
254
|
+
|
|
255
|
+
**Node.js**:
|
|
256
|
+
|
|
257
|
+
```typescript
|
|
258
|
+
import { createHmac, timingSafeEqual } from 'node:crypto'
|
|
259
|
+
|
|
260
|
+
const TOLERANCE_SECONDS = 300
|
|
261
|
+
|
|
262
|
+
export function verifyMastraSignature(
|
|
263
|
+
rawBody: string,
|
|
264
|
+
signatureHeader: string,
|
|
265
|
+
signingSecret: string,
|
|
266
|
+
): boolean {
|
|
267
|
+
const parts = new Map(signatureHeader.split(',').map(part => part.split('=') as [string, string]))
|
|
268
|
+
const timestamp = Number(parts.get('t'))
|
|
269
|
+
const signature = parts.get('v1')
|
|
270
|
+
if (!Number.isInteger(timestamp) || !signature || !/^[0-9a-f]{64}$/.test(signature)) return false
|
|
271
|
+
if (Math.abs(Date.now() / 1000 - timestamp) > TOLERANCE_SECONDS) return false
|
|
272
|
+
|
|
273
|
+
const expected = createHmac('sha256', signingSecret)
|
|
274
|
+
.update(`${timestamp}.${rawBody}`)
|
|
275
|
+
.digest('hex')
|
|
276
|
+
const expectedBytes = Buffer.from(expected, 'hex')
|
|
277
|
+
const signatureBytes = Buffer.from(signature, 'hex')
|
|
278
|
+
return (
|
|
279
|
+
expectedBytes.length === signatureBytes.length && timingSafeEqual(expectedBytes, signatureBytes)
|
|
280
|
+
)
|
|
281
|
+
}
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**Python**:
|
|
285
|
+
|
|
286
|
+
```python
|
|
287
|
+
import hashlib
|
|
288
|
+
import hmac
|
|
289
|
+
import time
|
|
290
|
+
|
|
291
|
+
TOLERANCE_SECONDS = 300
|
|
292
|
+
|
|
293
|
+
def verify_mastra_signature(raw_body: bytes, signature_header: str, signing_secret: str) -> bool:
|
|
294
|
+
parts = dict(part.partition("=")[::2] for part in signature_header.split(","))
|
|
295
|
+
try:
|
|
296
|
+
timestamp = int(parts["t"])
|
|
297
|
+
signature = parts["v1"]
|
|
298
|
+
except (KeyError, ValueError):
|
|
299
|
+
return False
|
|
300
|
+
if abs(time.time() - timestamp) > TOLERANCE_SECONDS:
|
|
301
|
+
return False
|
|
302
|
+
|
|
303
|
+
expected = hmac.new(
|
|
304
|
+
signing_secret.encode(),
|
|
305
|
+
f"{timestamp}.".encode() + raw_body,
|
|
306
|
+
hashlib.sha256,
|
|
307
|
+
).hexdigest()
|
|
308
|
+
return hmac.compare_digest(expected, signature)
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
Return a `401` status for a request that fails verification. After you rotate a destination's secret, requests are signed with the new secret immediately.
|
|
312
|
+
|
|
313
|
+
### Retries and duplicate notifications
|
|
314
|
+
|
|
315
|
+
Mastra treats any `2xx` response as delivered and doesn't retry it. Persist or durably enqueue the notification before responding, and return a `5xx` response if that step fails so Mastra retries the delivery. Respond within 10 seconds and process the notification after responding if the work takes longer. Mastra doesn't follow redirects.
|
|
316
|
+
|
|
317
|
+
When a request fails, Mastra retries based on the response:
|
|
318
|
+
|
|
319
|
+
- **`4xx` response:** Mastra stops and marks the delivery **Config error**. Fix the endpoint, then use **Test** on the destination to confirm it works.
|
|
320
|
+
- **`5xx` response, timeout, or network error:** Mastra retries twice within a few seconds. If those requests also fail, the delivery shows **Retrying** and Mastra tries again after about 30 seconds, doubling the wait each time up to 15 minutes. After 6 failed attempts, the delivery shows **Exhausted**.
|
|
321
|
+
|
|
322
|
+
Discord, Microsoft Teams, PagerDuty, and incident.io destinations follow the same schedule. For those destinations, Mastra also retries `408` and `429` responses.
|
|
82
323
|
|
|
83
|
-
|
|
324
|
+
Retries can deliver the same notification more than once. Store the `x-mastra-idempotency-key` value of each processed request and skip requests with a key you've already seen. Use `fingerprint` to group notifications that belong to the same incident.
|
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 7725 models from 212 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# DigitalOcean
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 102 DigitalOcean models through Mastra's model router. Authentication is handled automatically using the `DIGITALOCEAN_ACCESS_TOKEN` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [DigitalOcean documentation](https://docs.digitalocean.com/products/gradient-ai-platform/details/models/).
|
|
10
10
|
|
|
@@ -115,6 +115,7 @@ for await (const chunk of stream) {
|
|
|
115
115
|
| `digitalocean/openai-gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
116
116
|
| `digitalocean/openai-gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
117
117
|
| `digitalocean/openai-gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
118
|
+
| `digitalocean/openai-gpt-6-1-sol` | 1.1M | | | | | | $2 | $10 |
|
|
118
119
|
| `digitalocean/openai-gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
119
120
|
| `digitalocean/openai-gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
120
121
|
| `digitalocean/openai-gpt-6-sol` | 1.1M | | | | | | $2 | $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` | 66K | | | | | | $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 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# GMI Cloud
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 17 GMI Cloud models through Mastra's model router. Authentication is handled automatically using the `GMICLOUD_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [GMI Cloud documentation](https://docs.gmicloud.ai).
|
|
10
10
|
|
|
@@ -50,6 +50,8 @@ for await (const chunk of stream) {
|
|
|
50
50
|
| `gmicloud/moonshotai/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
51
51
|
| `gmicloud/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
52
52
|
| `gmicloud/Qwen/Qwen3.7-Max` | 1.0M | | | | | | $3 | $8 |
|
|
53
|
+
| `gmicloud/Qwen/Qwen3.8-Flash` | 1.0M | | | | | | $0.16 | $0.47 |
|
|
54
|
+
| `gmicloud/Qwen/Qwen3.8-Max` | 262K | | | | | | $2 | $6 |
|
|
53
55
|
| `gmicloud/zai-org/GLM-5-FP8` | 203K | | | | | | $0.60 | $2 |
|
|
54
56
|
| `gmicloud/zai-org/GLM-5.1-FP8` | 203K | | | | | | $0.98 | $3 |
|
|
55
57
|
| `gmicloud/zai-org/GLM-5.2-FP8` | 1.0M | | | | | | $0.98 | $3 |
|
|
@@ -43,11 +43,11 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
44
44
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
45
45
|
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.02 | $0.40 |
|
|
46
|
-
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.
|
|
47
|
-
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.
|
|
46
|
+
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.29 | $4 |
|
|
47
|
+
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.00 | $0.13 |
|
|
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.58 | $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 |
|
|
@@ -212,7 +212,7 @@ for await (const chunk of stream) {
|
|
|
212
212
|
| `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
213
213
|
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.65 | $3 |
|
|
214
214
|
| `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
|
|
215
|
-
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $0.
|
|
215
|
+
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $0.58 | $10 |
|
|
216
216
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
217
217
|
| `kilo/morph/morph-v3-large` | 262K | | | | | | $0.90 | $2 |
|
|
218
218
|
| `kilo/nex-agi/nex-n2.5-mini` | 262K | | | | | | $0.03 | $0.10 |
|
|
@@ -389,9 +389,9 @@ for await (const chunk of stream) {
|
|
|
389
389
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
390
390
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
391
391
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
392
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
392
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.13 | $0.53 |
|
|
393
393
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
394
|
-
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.
|
|
394
|
+
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
395
395
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
396
396
|
| `kilo/thedrummer/skyfall-36b-v2` | 33K | | | | | | $0.55 | $0.80 |
|
|
397
397
|
| `kilo/thedrummer/unslopnemo-12b` | 1.0M | | | | | | $0.40 | $0.40 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 429 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
|
|
|
@@ -186,7 +186,6 @@ for await (const chunk of stream) {
|
|
|
186
186
|
| `llmgateway-providers/deepinfra/deepseek-v4.1-flash` | 1.0M | | | | | | $0.20 | $0.60 |
|
|
187
187
|
| `llmgateway-providers/deepinfra/gemma-4-26b-a4b-it` | 262K | | | | | | $0.07 | $0.34 |
|
|
188
188
|
| `llmgateway-providers/deepinfra/gemma-4-31b-it` | 262K | | | | | | $0.15 | $0.40 |
|
|
189
|
-
| `llmgateway-providers/deepinfra/glm-5.1` | 198K | | | | | | $1 | $4 |
|
|
190
189
|
| `llmgateway-providers/deepinfra/granite-4.2-8b` | 131K | | | | | | $0.06 | $0.25 |
|
|
191
190
|
| `llmgateway-providers/deepinfra/hy3` | 262K | | | | | | $0.14 | $0.58 |
|
|
192
191
|
| `llmgateway-providers/deepinfra/inkling` | 524K | | | | | | $0.95 | $4 |
|
|
@@ -200,7 +199,6 @@ for await (const chunk of stream) {
|
|
|
200
199
|
| `llmgateway-providers/deepinfra/qwen3-vl-30b-a3b-instruct` | 262K | | | | | | $0.15 | $0.60 |
|
|
201
200
|
| `llmgateway-providers/deepinfra/qwen3.5-9b` | 262K | | | | | | $0.10 | $0.15 |
|
|
202
201
|
| `llmgateway-providers/deepinfra/qwen3.8-2.4t-a95b` | 262K | | | | | | $2 | $6 |
|
|
203
|
-
| `llmgateway-providers/deepinfra/step-3.7-flash` | 262K | | | | | | $0.20 | $1 |
|
|
204
202
|
| `llmgateway-providers/deepseek/deepseek-v4-pro` | 1.1M | | | | | | $0.43 | $0.87 |
|
|
205
203
|
| `llmgateway-providers/deepseek/deepseek-v4.1-flash` | 1.1M | | | | | | $0.15 | $0.60 |
|
|
206
204
|
| `llmgateway-providers/embercloud/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Ofox
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 151 Ofox models through Mastra's model router. Authentication is handled automatically using the `OFOX_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Ofox documentation](https://ofox.ai/docs).
|
|
10
10
|
|
|
@@ -134,6 +134,7 @@ for await (const chunk of stream) {
|
|
|
134
134
|
| `ofox/openai/gpt-6-astra` | 1.1M | | | | | | $8 | $40 |
|
|
135
135
|
| `ofox/openai/gpt-6-luna` | 1.1M | | | | | | $0.08 | $0.40 |
|
|
136
136
|
| `ofox/openai/gpt-6-sol` | 1.1M | | | | | | $2 | $8 |
|
|
137
|
+
| `ofox/openai/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
|
|
137
138
|
| `ofox/qwen/qwen-flash` | 1.0M | | | | | | $0.02 | $0.22 |
|
|
138
139
|
| `ofox/qwen/qwen-max` | 32K | | | | | | $0.35 | $1 |
|
|
139
140
|
| `ofox/qwen/qwen-plus` | 1.0M | | | | | | $0.12 | $0.29 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.3
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
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.73.0
|
|
30
|
-
"@mastra/mcp": "^2.1.2
|
|
29
|
+
"@mastra/core": "1.73.0",
|
|
30
|
+
"@mastra/mcp": "^2.1.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.0.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"tsx": "^4.23.1",
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
|
-
"@internal/
|
|
47
|
-
"@internal/
|
|
48
|
-
"@mastra/core": "1.73.0
|
|
46
|
+
"@internal/types-builder": "0.0.114",
|
|
47
|
+
"@internal/lint": "0.0.139",
|
|
48
|
+
"@mastra/core": "1.73.0"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://mastra.ai",
|
|
51
51
|
"repository": {
|