@mastra/mcp-docs-server 1.0.0-beta.11 → 1.0.0-beta.13
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/organized/changelogs/%40mastra%2Fagent-builder.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +24 -24
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +83 -83
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +38 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +174 -174
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +75 -75
- package/.docs/organized/changelogs/%40mastra%2Freact.md +40 -0
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +39 -39
- package/.docs/organized/changelogs/create-mastra.md +29 -29
- package/.docs/organized/changelogs/mastra.md +35 -35
- package/.docs/organized/code-examples/quick-start.md +0 -4
- package/.docs/organized/code-examples/stock-price-tool.md +21 -2
- package/.docs/raw/agents/agent-approval.mdx +136 -2
- package/.docs/raw/agents/agent-memory.mdx +4 -4
- package/.docs/raw/agents/guardrails.mdx +1 -1
- package/.docs/raw/agents/networks.mdx +1 -1
- package/.docs/raw/agents/overview.mdx +2 -2
- package/.docs/raw/agents/using-tools.mdx +1 -1
- package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +1 -2
- package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +1 -1
- package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +1 -2
- package/.docs/raw/course/02-agent-tools-mcp/05-updating-your-agent.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +2 -2
- package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +1 -2
- package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +1 -2
- package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +3 -4
- package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +2 -3
- package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +2 -3
- package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +1 -2
- package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +2 -3
- package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +2 -3
- package/.docs/raw/deployment/cloud-providers.mdx +20 -0
- package/.docs/raw/deployment/{building-mastra.mdx → mastra-server.mdx} +2 -2
- package/.docs/raw/deployment/monorepo.mdx +23 -44
- package/.docs/raw/deployment/overview.mdx +28 -53
- package/.docs/raw/deployment/web-framework.mdx +12 -14
- package/.docs/raw/getting-started/start.mdx +10 -1
- package/.docs/raw/getting-started/studio.mdx +1 -1
- package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +1021 -67
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/aws-lambda.mdx +3 -6
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/azure-app-services.mdx +4 -6
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/cloudflare-deployer.mdx +4 -0
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/digital-ocean.mdx +3 -6
- package/.docs/raw/guides/deployment/index.mdx +32 -0
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/netlify-deployer.mdx +4 -0
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/vercel-deployer.mdx +4 -0
- package/.docs/raw/guides/getting-started/express.mdx +71 -152
- package/.docs/raw/guides/getting-started/hono.mdx +227 -0
- package/.docs/raw/guides/getting-started/next-js.mdx +173 -63
- package/.docs/raw/guides/getting-started/vite-react.mdx +307 -137
- package/.docs/raw/guides/guide/research-assistant.mdx +4 -4
- package/.docs/raw/guides/migrations/upgrade-to-v1/client.mdx +17 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/overview.mdx +6 -0
- package/.docs/raw/index.mdx +1 -1
- package/.docs/raw/{deployment/mastra-cloud → mastra-cloud}/dashboard.mdx +2 -6
- package/.docs/raw/{deployment/mastra-cloud → mastra-cloud}/observability.mdx +1 -5
- package/.docs/raw/{deployment/mastra-cloud → mastra-cloud}/overview.mdx +2 -6
- package/.docs/raw/{deployment/mastra-cloud → mastra-cloud}/setting-up.mdx +3 -6
- package/.docs/raw/memory/overview.mdx +1 -1
- package/.docs/raw/memory/storage/memory-with-libsql.mdx +1 -1
- package/.docs/raw/memory/storage/memory-with-mongodb.mdx +1 -1
- package/.docs/raw/memory/storage/memory-with-pg.mdx +1 -1
- package/.docs/raw/memory/storage/memory-with-upstash.mdx +1 -1
- package/.docs/raw/{server-db/storage.mdx → memory/storage/overview.mdx} +2 -2
- package/.docs/raw/observability/logging.mdx +1 -1
- package/.docs/raw/observability/tracing/exporters/cloud.mdx +1 -1
- package/.docs/raw/observability/tracing/exporters/default.mdx +1 -1
- package/.docs/raw/rag/chunking-and-embedding.mdx +12 -25
- package/.docs/raw/rag/graph-rag.mdx +220 -0
- package/.docs/raw/rag/overview.mdx +1 -2
- package/.docs/raw/rag/retrieval.mdx +13 -29
- package/.docs/raw/rag/vector-databases.mdx +7 -3
- package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +1 -1
- package/.docs/raw/reference/agents/getDefaultOptions.mdx +1 -1
- package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +1 -1
- package/.docs/raw/reference/agents/getInstructions.mdx +1 -1
- package/.docs/raw/reference/agents/getLLM.mdx +1 -1
- package/.docs/raw/reference/agents/getMemory.mdx +1 -1
- package/.docs/raw/reference/agents/getModel.mdx +1 -1
- package/.docs/raw/reference/agents/listScorers.mdx +1 -1
- package/.docs/raw/reference/ai-sdk/chat-route.mdx +1 -1
- package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +1 -1
- package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +1 -1
- package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +1 -1
- package/.docs/raw/reference/ai-sdk/network-route.mdx +1 -1
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-v4-messages.mdx +127 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-v5-messages.mdx +107 -0
- package/.docs/raw/reference/ai-sdk/workflow-route.mdx +1 -1
- package/.docs/raw/reference/auth/auth0.mdx +1 -1
- package/.docs/raw/reference/auth/clerk.mdx +1 -1
- package/.docs/raw/reference/auth/firebase.mdx +1 -1
- package/.docs/raw/reference/auth/jwt.mdx +1 -1
- package/.docs/raw/reference/auth/supabase.mdx +1 -1
- package/.docs/raw/reference/auth/workos.mdx +1 -1
- package/.docs/raw/reference/cli/mastra.mdx +1 -1
- package/.docs/raw/reference/client-js/mastra-client.mdx +1 -1
- package/.docs/raw/reference/client-js/workflows.mdx +20 -0
- package/.docs/raw/reference/core/getServer.mdx +2 -2
- package/.docs/raw/reference/core/getStorage.mdx +1 -1
- package/.docs/raw/reference/core/getStoredAgentById.mdx +1 -1
- package/.docs/raw/reference/core/listStoredAgents.mdx +1 -1
- package/.docs/raw/reference/core/setStorage.mdx +1 -1
- package/.docs/raw/reference/logging/pino-logger.mdx +1 -1
- package/.docs/raw/reference/rag/database-config.mdx +1 -1
- package/.docs/raw/reference/server/create-route.mdx +1 -1
- package/.docs/raw/reference/server/express-adapter.mdx +4 -4
- package/.docs/raw/reference/server/hono-adapter.mdx +4 -4
- package/.docs/raw/reference/server/mastra-server.mdx +2 -2
- package/.docs/raw/reference/server/routes.mdx +28 -1
- package/.docs/raw/reference/streaming/agents/stream.mdx +22 -0
- package/.docs/raw/reference/streaming/workflows/stream.mdx +33 -20
- package/.docs/raw/reference/tools/create-tool.mdx +23 -1
- package/.docs/raw/reference/tools/graph-rag-tool.mdx +3 -3
- package/.docs/raw/reference/tools/vector-query-tool.mdx +3 -3
- package/.docs/raw/reference/workflows/run-methods/startAsync.mdx +143 -0
- package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +35 -0
- package/.docs/raw/reference/workflows/workflow.mdx +14 -0
- package/.docs/raw/{auth → server/auth}/auth0.mdx +1 -1
- package/.docs/raw/{auth → server/auth}/clerk.mdx +1 -1
- package/.docs/raw/{auth → server/auth}/firebase.mdx +1 -1
- package/.docs/raw/{auth → server/auth}/index.mdx +6 -6
- package/.docs/raw/{auth → server/auth}/jwt.mdx +1 -1
- package/.docs/raw/{auth → server/auth}/supabase.mdx +1 -1
- package/.docs/raw/{auth → server/auth}/workos.mdx +1 -1
- package/.docs/raw/{server-db → server}/custom-adapters.mdx +3 -3
- package/.docs/raw/{server-db → server}/custom-api-routes.mdx +1 -1
- package/.docs/raw/{server-db → server}/mastra-client.mdx +2 -2
- package/.docs/raw/{server-db → server}/mastra-server.mdx +5 -5
- package/.docs/raw/{server-db → server}/middleware.mdx +2 -2
- package/.docs/raw/{server-db → server}/request-context.mdx +3 -3
- package/.docs/raw/{server-db → server}/server-adapters.mdx +6 -6
- package/.docs/raw/tools-mcp/overview.mdx +2 -2
- package/.docs/raw/workflows/error-handling.mdx +162 -1
- package/.docs/raw/workflows/overview.mdx +2 -2
- package/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/.docs/organized/changelogs/%40internal%2Fai-sdk-v4.md +0 -1
- package/.docs/raw/deployment/cloud-providers/index.mdx +0 -55
- /package/.docs/raw/{deployment/cloud-providers → guides/deployment}/amazon-ec2.mdx +0 -0
|
@@ -5,7 +5,168 @@ description: "Learn how to handle errors in Mastra workflows using step retries,
|
|
|
5
5
|
|
|
6
6
|
# Error Handling
|
|
7
7
|
|
|
8
|
-
Mastra
|
|
8
|
+
Mastra workflows support error handling through result status checks after execution, retry policies for transient failures, and lifecycle callbacks for centralized error logging or alerting.
|
|
9
|
+
|
|
10
|
+
## Handling workflow results
|
|
11
|
+
|
|
12
|
+
When you run a workflow, the result object contains the status and any errors that occurred.
|
|
13
|
+
|
|
14
|
+
### Checking the result status
|
|
15
|
+
|
|
16
|
+
```typescript title="src/run-workflow.ts" showLineNumbers copy
|
|
17
|
+
import { mastra } from "./mastra";
|
|
18
|
+
|
|
19
|
+
const workflow = mastra.getWorkflow("myWorkflow");
|
|
20
|
+
const run = await workflow.createRun();
|
|
21
|
+
const result = await run.start({ inputData: { value: "test" } });
|
|
22
|
+
|
|
23
|
+
switch (result.status) {
|
|
24
|
+
case 'success':
|
|
25
|
+
console.log('Workflow completed:', result.result);
|
|
26
|
+
break;
|
|
27
|
+
case 'failed':
|
|
28
|
+
console.error('Workflow failed:', result.error);
|
|
29
|
+
break;
|
|
30
|
+
case 'suspended':
|
|
31
|
+
console.log('Workflow suspended, waiting for resume');
|
|
32
|
+
break;
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Result object structure
|
|
37
|
+
|
|
38
|
+
The result object contains:
|
|
39
|
+
|
|
40
|
+
- `status` - The workflow status: `'success'`, `'failed'`, `'suspended'`, or `'tripwire'`
|
|
41
|
+
- `result` - The workflow output (when status is `'success'`)
|
|
42
|
+
- `error` - Error details (when status is `'failed'`)
|
|
43
|
+
- `steps` - Individual step results with their status and output
|
|
44
|
+
|
|
45
|
+
### Accessing step results
|
|
46
|
+
|
|
47
|
+
You can inspect individual step results to understand where a failure occurred:
|
|
48
|
+
|
|
49
|
+
```typescript title="src/run-workflow.ts" showLineNumbers copy
|
|
50
|
+
const result = await run.start({ inputData: { value: "test" } });
|
|
51
|
+
|
|
52
|
+
if (result.status === 'failed') {
|
|
53
|
+
// Find which step failed
|
|
54
|
+
for (const [stepId, stepResult] of Object.entries(result.steps)) {
|
|
55
|
+
if (stepResult.status === 'failed') {
|
|
56
|
+
console.error(`Step ${stepId} failed:`, stepResult.error);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Lifecycle callbacks
|
|
63
|
+
|
|
64
|
+
For scenarios where you need to handle workflow completion without awaiting the result—such as background jobs, fire-and-forget workflows, or centralized logging—you can use lifecycle callbacks.
|
|
65
|
+
|
|
66
|
+
### onFinish
|
|
67
|
+
|
|
68
|
+
Called when a workflow completes with any status (success, failed, suspended, or tripwire):
|
|
69
|
+
|
|
70
|
+
```typescript {8-15} title="src/mastra/workflows/order-workflow.ts" showLineNumbers copy
|
|
71
|
+
import { createWorkflow } from "@mastra/core/workflows";
|
|
72
|
+
import { z } from "zod";
|
|
73
|
+
|
|
74
|
+
const orderWorkflow = createWorkflow({
|
|
75
|
+
id: 'order-processing',
|
|
76
|
+
inputSchema: z.object({ orderId: z.string() }),
|
|
77
|
+
outputSchema: z.object({ orderId: z.string(), status: z.string() }),
|
|
78
|
+
options: {
|
|
79
|
+
onFinish: async (result) => {
|
|
80
|
+
await db.updateOrderStatus(result.result?.orderId, result.status);
|
|
81
|
+
await analytics.track('workflow_completed', {
|
|
82
|
+
workflowId: 'order-processing',
|
|
83
|
+
status: result.status,
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The `onFinish` callback receives:
|
|
91
|
+
|
|
92
|
+
- `status` - The workflow status
|
|
93
|
+
- `result` - The workflow output (on success)
|
|
94
|
+
- `error` - Error details (on failure)
|
|
95
|
+
- `steps` - Individual step results
|
|
96
|
+
- `tripwire` - Tripwire info (if status is `'tripwire'`)
|
|
97
|
+
|
|
98
|
+
### onError
|
|
99
|
+
|
|
100
|
+
Called only when a workflow fails (status is `'failed'` or `'tripwire'`):
|
|
101
|
+
|
|
102
|
+
```typescript {8-14} title="src/mastra/workflows/payment-workflow.ts" showLineNumbers copy
|
|
103
|
+
import { createWorkflow } from "@mastra/core/workflows";
|
|
104
|
+
import { z } from "zod";
|
|
105
|
+
|
|
106
|
+
const paymentWorkflow = createWorkflow({
|
|
107
|
+
id: 'payment-processing',
|
|
108
|
+
inputSchema: z.object({ amount: z.number() }),
|
|
109
|
+
outputSchema: z.object({ transactionId: z.string() }),
|
|
110
|
+
options: {
|
|
111
|
+
onError: async (errorInfo) => {
|
|
112
|
+
await alertService.notify({
|
|
113
|
+
channel: 'payments-alerts',
|
|
114
|
+
message: `Payment workflow failed: ${errorInfo.error?.message}`,
|
|
115
|
+
});
|
|
116
|
+
await errorTracker.capture(errorInfo.error);
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
The `onError` callback receives:
|
|
123
|
+
|
|
124
|
+
- `status` - Either `'failed'` or `'tripwire'`
|
|
125
|
+
- `error` - Error details
|
|
126
|
+
- `steps` - Individual step results
|
|
127
|
+
- `tripwire` - Tripwire info (if status is `'tripwire'`)
|
|
128
|
+
|
|
129
|
+
### Using both callbacks
|
|
130
|
+
|
|
131
|
+
You can use both callbacks together:
|
|
132
|
+
|
|
133
|
+
```typescript {8-16} title="src/mastra/workflows/pipeline-workflow.ts" showLineNumbers copy
|
|
134
|
+
import { createWorkflow } from "@mastra/core/workflows";
|
|
135
|
+
import { z } from "zod";
|
|
136
|
+
|
|
137
|
+
const pipelineWorkflow = createWorkflow({
|
|
138
|
+
id: 'data-pipeline',
|
|
139
|
+
inputSchema: z.object({ source: z.string() }),
|
|
140
|
+
outputSchema: z.object({ recordsProcessed: z.number() }),
|
|
141
|
+
options: {
|
|
142
|
+
onFinish: async (result) => {
|
|
143
|
+
// Always log completion
|
|
144
|
+
await logger.info('Pipeline completed', { status: result.status });
|
|
145
|
+
},
|
|
146
|
+
onError: async (errorInfo) => {
|
|
147
|
+
// Alert on failures
|
|
148
|
+
await pagerDuty.alert('Data pipeline failed', errorInfo.error);
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Error handling in callbacks
|
|
155
|
+
|
|
156
|
+
Errors thrown inside callbacks are caught and logged—they will not affect the workflow result or cause it to fail. This ensures that callback issues don't break your workflows in production.
|
|
157
|
+
|
|
158
|
+
```typescript
|
|
159
|
+
options: {
|
|
160
|
+
onFinish: async (result) => {
|
|
161
|
+
// If this throws, it's logged but the workflow result is unchanged
|
|
162
|
+
await externalService.notify(result);
|
|
163
|
+
},
|
|
164
|
+
}
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## Retries
|
|
168
|
+
|
|
169
|
+
Mastra has a retry mechanism for workflows or steps that fail due to transient errors, for example when steps interact with external services or resources that may be temporarily unavailable.
|
|
9
170
|
|
|
10
171
|
## Workflow-level using `retryConfig`
|
|
11
172
|
|
|
@@ -315,7 +315,7 @@ When running the local mastra server, all active workflow runs will be restarted
|
|
|
315
315
|
|
|
316
316
|
## Using `RequestContext`
|
|
317
317
|
|
|
318
|
-
Use [RequestContext](/docs/v1/server
|
|
318
|
+
Use [RequestContext](/docs/v1/server/request-context) to access request-specific values. This lets you conditionally adjust behavior based on the context of the request.
|
|
319
319
|
|
|
320
320
|
```typescript title="src/mastra/workflows/test-workflow.ts" showLineNumbers
|
|
321
321
|
export type UserTier = {
|
|
@@ -336,7 +336,7 @@ const step1 = createStep({
|
|
|
336
336
|
});
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
> See [Request Context](/docs/v1/server
|
|
339
|
+
> See [Request Context](/docs/v1/server/request-context) for more information.
|
|
340
340
|
|
|
341
341
|
## Testing with Studio
|
|
342
342
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`919a22b`](https://github.com/mastra-ai/mastra/commit/919a22b25876f9ed5891efe5facbe682c30ff497)]:
|
|
8
|
+
- @mastra/core@1.0.0-beta.13
|
|
9
|
+
|
|
10
|
+
## 1.0.0-beta.12
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`d5ed981`](https://github.com/mastra-ai/mastra/commit/d5ed981c8701c1b8a27a5f35a9a2f7d9244e695f), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`932d63d`](https://github.com/mastra-ai/mastra/commit/932d63dd51be9c8bf1e00e3671fe65606c6fb9cd), [`b760b73`](https://github.com/mastra-ai/mastra/commit/b760b731aca7c8a3f041f61d57a7f125ae9cb215), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`2b459f4`](https://github.com/mastra-ai/mastra/commit/2b459f466fd91688eeb2a44801dc23f7f8a887ab), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`24b76d8`](https://github.com/mastra-ai/mastra/commit/24b76d8e17656269c8ed09a0c038adb9cc2ae95a), [`243a823`](https://github.com/mastra-ai/mastra/commit/243a8239c5906f5c94e4f78b54676793f7510ae3), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`c61fac3`](https://github.com/mastra-ai/mastra/commit/c61fac3add96f0dcce0208c07415279e2537eb62), [`6f14f70`](https://github.com/mastra-ai/mastra/commit/6f14f706ccaaf81b69544b6c1b75ab66a41e5317), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`4524734`](https://github.com/mastra-ai/mastra/commit/45247343e384717a7c8404296275c56201d6470f), [`2a53598`](https://github.com/mastra-ai/mastra/commit/2a53598c6d8cfeb904a7fc74e57e526d751c8fa6), [`c7cd3c7`](https://github.com/mastra-ai/mastra/commit/c7cd3c7a187d7aaf79e2ca139de328bf609a14b4), [`847c212`](https://github.com/mastra-ai/mastra/commit/847c212caba7df0d6f2fc756b494ac3c75c3720d), [`6f941c4`](https://github.com/mastra-ai/mastra/commit/6f941c438ca5f578619788acc7608fc2e23bd176)]:
|
|
15
|
+
- @mastra/core@1.0.0-beta.12
|
|
16
|
+
|
|
3
17
|
## 1.0.0-beta.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.17.5",
|
|
29
29
|
"jsdom": "^26.1.0",
|
|
30
30
|
"zod": "^3.25.76",
|
|
31
|
-
"@mastra/core": "1.0.0-beta.
|
|
31
|
+
"@mastra/core": "1.0.0-beta.13",
|
|
32
32
|
"@mastra/mcp": "^1.0.0-beta.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"typescript": "^5.8.3",
|
|
47
47
|
"vitest": "4.0.12",
|
|
48
48
|
"@internal/lint": "0.0.53",
|
|
49
|
-
"@mastra/core": "1.0.0-beta.
|
|
49
|
+
"@mastra/core": "1.0.0-beta.13"
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://mastra.ai",
|
|
52
52
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
No changelog available.
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Cloud Providers | Deployment"
|
|
3
|
-
description: "Deploy your Mastra applications to popular cloud providers."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Cloud Providers
|
|
7
|
-
|
|
8
|
-
Standalone Mastra applications can be deployed to popular cloud providers, see one of the following guides for more information:
|
|
9
|
-
|
|
10
|
-
- [Amazon EC2](/docs/v1/deployment/cloud-providers/amazon-ec2)
|
|
11
|
-
- [AWS Lambda](/docs/v1/deployment/cloud-providers/aws-lambda)
|
|
12
|
-
- [Azure App Services](/docs/v1/deployment/cloud-providers/azure-app-services)
|
|
13
|
-
- [Cloudflare](/docs/v1/deployment/cloud-providers/cloudflare-deployer)
|
|
14
|
-
- [Digital Ocean](/docs/v1/deployment/cloud-providers/digital-ocean)
|
|
15
|
-
- [Netlify](/docs/v1/deployment/cloud-providers/netlify-deployer)
|
|
16
|
-
- [Vercel](/docs/v1/deployment/cloud-providers/vercel-deployer)
|
|
17
|
-
|
|
18
|
-
For self-hosted Node.js server deployment, see the [Creating A Mastra Server](/docs/v1/deployment/building-mastra) guide.
|
|
19
|
-
|
|
20
|
-
## Prerequisites
|
|
21
|
-
|
|
22
|
-
Before deploying to a cloud provider, ensure you have:
|
|
23
|
-
|
|
24
|
-
- A [Mastra application](/guides/v1/getting-started/quickstart)
|
|
25
|
-
- Node.js `v22.13.0` or later
|
|
26
|
-
- A GitHub repository for your application (required for most CI/CD setups)
|
|
27
|
-
- Domain name management access (for SSL and HTTPS)
|
|
28
|
-
- Basic familiarity with server setup (e.g. Nginx, environment variables)
|
|
29
|
-
|
|
30
|
-
## LibSQLStore
|
|
31
|
-
|
|
32
|
-
`LibSQLStore` writes to the local filesystem, which is not supported in cloud environments that use ephemeral file systems. If you're deploying to platforms like AWS Lambda, Netlify, Azure App Services, or Digital Ocean App Platform, you must remove all usage of `LibSQLStore`.
|
|
33
|
-
|
|
34
|
-
Specifically, ensure you've removed it from all Mastra files, including configuration on the main Mastra instance and any agents using it, e.g. for memory storage.
|
|
35
|
-
|
|
36
|
-
```diff title="src/mastra/index.ts"
|
|
37
|
-
export const mastra = new Mastra({
|
|
38
|
-
- storage: new LibSQLStore({
|
|
39
|
-
- id: 'mastra-storage',
|
|
40
|
-
- url: ":memory:",
|
|
41
|
-
- }),
|
|
42
|
-
});
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
```diff
|
|
46
|
-
export const weatherAgent = new Agent({
|
|
47
|
-
id: "weather-agent",
|
|
48
|
-
memory: new Memory({
|
|
49
|
-
- storage: new LibSQLStore({
|
|
50
|
-
- id: 'mastra-storage',
|
|
51
|
-
- url: "file:../mastra.db",
|
|
52
|
-
- }),
|
|
53
|
-
}),
|
|
54
|
-
});
|
|
55
|
-
```
|
|
File without changes
|