@mastra/mcp-docs-server 0.13.17-alpha.2 → 0.13.17-alpha.4
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 +27 -0
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +10 -0
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +24 -24
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +49 -49
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +16 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +32 -32
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +22 -22
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +31 -31
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +7 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +23 -23
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +10 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +11 -11
- package/.docs/organized/changelogs/create-mastra.md +13 -13
- package/.docs/organized/changelogs/mastra.md +31 -31
- package/.docs/organized/code-examples/a2a.md +1 -1
- package/.docs/organized/code-examples/agent-network.md +1 -1
- package/.docs/organized/code-examples/agent.md +22 -1
- package/.docs/organized/code-examples/agui.md +1 -1
- package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -1
- package/.docs/organized/code-examples/ai-sdk-v5.md +2 -2
- package/.docs/organized/code-examples/assistant-ui.md +3 -3
- package/.docs/organized/code-examples/bird-checker-with-express.md +1 -1
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +1 -1
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +1 -1
- package/.docs/organized/code-examples/client-side-tools.md +1 -1
- package/.docs/organized/code-examples/crypto-chatbot.md +1 -1
- package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -1
- package/.docs/organized/code-examples/fireworks-r1.md +1 -1
- package/.docs/organized/code-examples/mcp-configuration.md +2 -2
- package/.docs/organized/code-examples/mcp-registry-registry.md +1 -1
- package/.docs/organized/code-examples/memory-with-mem0.md +1 -1
- package/.docs/organized/code-examples/memory-with-processors.md +1 -1
- package/.docs/organized/code-examples/openapi-spec-writer.md +2 -2
- package/.docs/organized/code-examples/quick-start.md +1 -1
- package/.docs/organized/code-examples/stock-price-tool.md +1 -1
- package/.docs/organized/code-examples/weather-agent.md +1 -1
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -1
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -1
- package/.docs/organized/code-examples/workflow-with-memory.md +1 -1
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -1
- package/.docs/organized/code-examples/workflow-with-suspend-resume.md +1 -1
- package/.docs/raw/agents/overview.mdx +35 -4
- package/.docs/raw/deployment/monorepo.mdx +1 -1
- package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +44 -14
- package/.docs/raw/getting-started/installation.mdx +52 -4
- package/.docs/raw/getting-started/templates.mdx +2 -22
- package/.docs/raw/reference/agents/generate.mdx +2 -2
- package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +2 -1
- package/.docs/raw/reference/agents/getDefaultVNextStreamOptions.mdx +1 -1
- package/.docs/raw/reference/agents/stream.mdx +2 -2
- package/.docs/raw/reference/agents/streamVNext.mdx +2 -4
- package/.docs/raw/reference/cli/build.mdx +0 -6
- package/.docs/raw/reference/cli/start.mdx +8 -1
- package/.docs/raw/reference/scorers/noise-sensitivity.mdx +237 -0
- package/.docs/raw/reference/scorers/prompt-alignment.mdx +369 -0
- package/.docs/raw/reference/workflows/run-methods/streamVNext.mdx +3 -5
- package/.docs/raw/scorers/off-the-shelf-scorers.mdx +2 -2
- package/.docs/raw/streaming/events.mdx +115 -0
- package/.docs/raw/streaming/overview.mdx +137 -0
- package/.docs/raw/streaming/tool-streaming.mdx +113 -0
- package/.docs/raw/streaming/workflow-streaming.mdx +97 -0
- package/.docs/raw/tools-mcp/overview.mdx +44 -0
- package/.docs/raw/workflows/overview.mdx +19 -17
- package/dist/stdio.js +5 -1
- package/dist/tools/docs.d.ts.map +1 -1
- package/package.json +7 -7
- package/.docs/raw/agents/streaming.mdx +0 -154
- package/.docs/raw/workflows/streaming.mdx +0 -115
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@mastra/memory": "latest",
|
|
10
10
|
"@modelcontextprotocol/sdk": "^1.13.0",
|
|
11
11
|
"chalk": "^5.4.1",
|
|
12
|
-
"zod": "^3.25.
|
|
13
|
-
"zod-to-json-schema": "^3.24.
|
|
12
|
+
"zod": "^3.25.76",
|
|
13
|
+
"zod-to-json-schema": "^3.24.6"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@jest/globals": "^29.7.0",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"class-variance-authority": "^0.7.1",
|
|
17
17
|
"clsx": "^2.1.1",
|
|
18
18
|
"lucide-react": "^0.454.0",
|
|
19
|
-
"next": "15.
|
|
19
|
+
"next": "15.4.7",
|
|
20
20
|
"react": "^19.1.1",
|
|
21
21
|
"react-dom": "^19.1.1",
|
|
22
22
|
"react-syntax-highlighter": "^15.6.1",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"tailwind-merge": "^2.6.0",
|
|
25
25
|
"tailwindcss-animate": "^1.0.7",
|
|
26
26
|
"vaul": "^1.1.2",
|
|
27
|
-
"zod": "^3.25.
|
|
27
|
+
"zod": "^3.25.76"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@libsql/client": "^0.15.4",
|
|
@@ -3,6 +3,8 @@ title: "Agent Overview | Agent Documentation | Mastra"
|
|
|
3
3
|
description: Overview of agents in Mastra, detailing their capabilities and how they interact with tools, workflows, and external systems.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
+
import { Steps } from "nextra/components";
|
|
7
|
+
|
|
6
8
|
# Using Agents
|
|
7
9
|
|
|
8
10
|
Agents let you build intelligent assistants powered by language models that can make decisions and perform actions. Each agent has required instructions and an LLM, with optional tools and memory.
|
|
@@ -261,14 +263,43 @@ const response = await testAgent.generate("Help me organize my day", {
|
|
|
261
263
|
```
|
|
262
264
|
|
|
263
265
|
## Testing agents locally
|
|
266
|
+
There are two ways to run and test agents.
|
|
267
|
+
|
|
268
|
+
<Steps>
|
|
269
|
+
|
|
270
|
+
### Mastra Playground
|
|
264
271
|
|
|
265
|
-
|
|
266
|
-
By default, it loads exported agents from the `src/mastra/agents` directory and creates endpoints for testing (for example, `http://localhost:4111/api/agents/myAgent/generate`).
|
|
267
|
-
It also launches a visual playground where you can chat with your agent and view execution traces.
|
|
272
|
+
With the Mastra Dev Server running you can test an agent from the Mastra Playground by visiting [http://localhost:4111/agents](http://localhost:4111/agents) in your browser.
|
|
268
273
|
|
|
269
274
|
> For more information, see the [Local Dev Playground](/docs/server-db/local-dev-playground) documentation.
|
|
270
275
|
|
|
271
|
-
|
|
276
|
+
### Command line
|
|
277
|
+
|
|
278
|
+
Create an agent response using `.generate()` or `.stream()`.
|
|
279
|
+
|
|
280
|
+
```typescript {7} filename="src/test-agent.ts" showLineNumbers copy
|
|
281
|
+
import "dotenv/config";
|
|
282
|
+
|
|
283
|
+
import { mastra } from "./mastra";
|
|
284
|
+
|
|
285
|
+
const agent = mastra.getAgent("testAgent");
|
|
286
|
+
|
|
287
|
+
const response = await agent.generate("Help me organize my day");
|
|
288
|
+
|
|
289
|
+
console.log(response.text);
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
> See [.generate()](../../reference/agents/generate.mdx) or [.stream()](../../reference/agents/stream.mdx) for more information.
|
|
293
|
+
|
|
294
|
+
To test this agent, run the following:
|
|
295
|
+
|
|
296
|
+
```bash copy
|
|
297
|
+
npx tsx src/test-agent.ts
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
</Steps>
|
|
301
|
+
|
|
302
|
+
## Related
|
|
272
303
|
|
|
273
304
|
- [Agent Memory](./agent-memory.mdx)
|
|
274
305
|
- [Dynamic Agents](./dynamic-agents.mdx)
|
|
@@ -102,6 +102,6 @@ Mastra works with:
|
|
|
102
102
|
Known limitations:
|
|
103
103
|
|
|
104
104
|
- Bun workspaces — partial support; known issues
|
|
105
|
-
- Nx —
|
|
105
|
+
- Nx — You can use Nx's [supported dependency strategies](https://nx.dev/concepts/decisions/dependency-management) but you need to have `package.json` files inside your workspace packages
|
|
106
106
|
|
|
107
107
|
> If you are experiencing issues with monorepos see our: [Monorepos Support mega issue](https://github.com/mastra-ai/mastra/issues/6852).
|
|
@@ -76,7 +76,7 @@ import { useChat } from "@ai-sdk/react";
|
|
|
76
76
|
|
|
77
77
|
export function Chat() {
|
|
78
78
|
const { messages, input, handleInputChange, handleSubmit } = useChat({
|
|
79
|
-
api: "api/chat"
|
|
79
|
+
api: "/api/chat"
|
|
80
80
|
});
|
|
81
81
|
return (
|
|
82
82
|
<div>
|
|
@@ -432,22 +432,52 @@ This utility is helpful when you want to fetch messages directly from your stora
|
|
|
432
432
|
|
|
433
433
|
### Enabling stream compatibility
|
|
434
434
|
|
|
435
|
-
To enable AI SDK v5 compatibility, use the
|
|
435
|
+
To enable AI SDK v5 compatibility, use the `@mastra/ai-sdk` package:
|
|
436
436
|
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
<Tabs items={["npm", "yarn", "pnpm", "bun"]}>
|
|
438
|
+
<Tabs.Tab>
|
|
439
|
+
```bash copy
|
|
440
|
+
npm install @mastra/ai-sdk
|
|
441
|
+
```
|
|
442
|
+
</Tabs.Tab>
|
|
443
|
+
<Tabs.Tab>
|
|
444
|
+
```bash copy
|
|
445
|
+
yarn add @mastra/ai-sdk
|
|
446
|
+
```
|
|
447
|
+
</Tabs.Tab>
|
|
448
|
+
<Tabs.Tab>
|
|
449
|
+
```bash copy
|
|
450
|
+
pnpm add @mastra/ai-sdk
|
|
451
|
+
```
|
|
452
|
+
</Tabs.Tab>
|
|
453
|
+
<Tabs.Tab>
|
|
454
|
+
```bash copy
|
|
455
|
+
bun add @mastra/ai-sdk
|
|
456
|
+
```
|
|
457
|
+
</Tabs.Tab>
|
|
458
|
+
</Tabs>
|
|
439
459
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
460
|
+
```typescript filename="src/mastra/index.ts" showLineNumbers copy
|
|
461
|
+
export const mastra = new Mastra({
|
|
462
|
+
server: {
|
|
463
|
+
apiRoutes: [
|
|
464
|
+
chatRoute({
|
|
465
|
+
path: '/chat',
|
|
466
|
+
agent: 'weatherAgent',
|
|
467
|
+
}),
|
|
468
|
+
],
|
|
469
|
+
},
|
|
470
|
+
});
|
|
471
|
+
```
|
|
448
472
|
|
|
449
|
-
|
|
450
|
-
|
|
473
|
+
In your application call the `useChat()` hook.
|
|
474
|
+
```typescript
|
|
475
|
+
const { error, status, sendMessage, messages, regenerate, stop } =
|
|
476
|
+
useChat({
|
|
477
|
+
transport: new DefaultChatTransport({
|
|
478
|
+
api: 'http://localhost:4111/api/chat',
|
|
479
|
+
}),
|
|
480
|
+
});
|
|
451
481
|
```
|
|
452
482
|
|
|
453
483
|
<Callout type="info">
|
|
@@ -22,6 +22,10 @@ Mastra also supports other LLM providers. For a full list of supported models an
|
|
|
22
22
|
|
|
23
23
|
Our CLI is the fastest way to get started with Mastra. You can run `create mastra` anywhere on your machine.
|
|
24
24
|
|
|
25
|
+
<Callout type="warning">
|
|
26
|
+
The CLI currently generates projects that are only compatible with `ai-sdk v4`. Please refer to [ai-sdk v5 compatibility](#ai-sdk-v5-compatibility) if you wish to use `ai-sdk v5`.
|
|
27
|
+
</Callout>
|
|
28
|
+
|
|
25
29
|
<Steps>
|
|
26
30
|
|
|
27
31
|
## Start the CLI wizard
|
|
@@ -171,7 +175,7 @@ This helps users manually set up a Mastra project with their preferred package m
|
|
|
171
175
|
|
|
172
176
|
npm install typescript tsx @types/node mastra@latest --save-dev
|
|
173
177
|
|
|
174
|
-
npm install @mastra/core@latest zod@^3 @ai-sdk/openai
|
|
178
|
+
npm install @mastra/core@latest zod@^3 @ai-sdk/openai@^1
|
|
175
179
|
```
|
|
176
180
|
|
|
177
181
|
</Tab>
|
|
@@ -181,7 +185,7 @@ This helps users manually set up a Mastra project with their preferred package m
|
|
|
181
185
|
|
|
182
186
|
pnpm add typescript tsx @types/node mastra@latest --save-dev
|
|
183
187
|
|
|
184
|
-
pnpm add @mastra/core@latest zod@^3 @ai-sdk/openai
|
|
188
|
+
pnpm add @mastra/core@latest zod@^3 @ai-sdk/openai@^1
|
|
185
189
|
```
|
|
186
190
|
|
|
187
191
|
</Tab>
|
|
@@ -191,7 +195,7 @@ This helps users manually set up a Mastra project with their preferred package m
|
|
|
191
195
|
|
|
192
196
|
yarn add typescript tsx @types/node mastra@latest --dev
|
|
193
197
|
|
|
194
|
-
yarn add @mastra/core@latest zod@^3 @ai-sdk/openai
|
|
198
|
+
yarn add @mastra/core@latest zod@^3 @ai-sdk/openai@^1
|
|
195
199
|
```
|
|
196
200
|
|
|
197
201
|
</Tab>
|
|
@@ -201,7 +205,7 @@ This helps users manually set up a Mastra project with their preferred package m
|
|
|
201
205
|
|
|
202
206
|
bun add typescript tsx @types/node mastra@latest --dev
|
|
203
207
|
|
|
204
|
-
bun add @mastra/core@latest zod@^3 @ai-sdk/openai
|
|
208
|
+
bun add @mastra/core@latest zod@^3 @ai-sdk/openai@^1
|
|
205
209
|
```
|
|
206
210
|
|
|
207
211
|
</Tab>
|
|
@@ -372,6 +376,50 @@ To install Mastra in an existing project, use the `mastra init` command.
|
|
|
372
376
|
|
|
373
377
|
> See [mastra init](/reference/cli/init) for more information.
|
|
374
378
|
|
|
379
|
+
## ai-sdk v5 compatibility
|
|
380
|
+
|
|
381
|
+
By default, Mastra projects are only compatible with `ai-sdk v4`, if you wish to use `ai-sdk v5`, please make the following changes to the generated project.
|
|
382
|
+
|
|
383
|
+
Install the latest version to the `@ai-sdk/openai` package:
|
|
384
|
+
<Tabs items={["npm", "pnpm", "yarn", "bun"]}>
|
|
385
|
+
|
|
386
|
+
<Tab>
|
|
387
|
+
```bash copy
|
|
388
|
+
npm install @ai-sdk/openai@latest
|
|
389
|
+
```
|
|
390
|
+
|
|
391
|
+
</Tab>
|
|
392
|
+
<Tab>
|
|
393
|
+
```bash copy
|
|
394
|
+
pnpm add @ai-sdk/openai@latest
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
</Tab>
|
|
398
|
+
<Tab>
|
|
399
|
+
```bash copy
|
|
400
|
+
yarn add @ai-sdk/openai@latest
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
</Tab>
|
|
404
|
+
<Tab>
|
|
405
|
+
```bash copy
|
|
406
|
+
bun add @ai-sdk/openai@latest
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
</Tab>
|
|
410
|
+
</Tabs>
|
|
411
|
+
|
|
412
|
+
Update the `planActivities` step in `src/mastra/workflows/weather-workflow.ts` as follow:
|
|
413
|
+
```ts filename="src/mastra/workflows/weather-workflow.ts" showLineNumbers{150} copy
|
|
414
|
+
const response = await agent.stream([ // [!code --]
|
|
415
|
+
const response = await agent.streamVNext([ // [!code ++]
|
|
416
|
+
{
|
|
417
|
+
role: 'user',
|
|
418
|
+
content: prompt,
|
|
419
|
+
},
|
|
420
|
+
]);
|
|
421
|
+
```
|
|
422
|
+
|
|
375
423
|
## Next steps
|
|
376
424
|
|
|
377
425
|
- [Local Development](/docs/server-db/local-dev-playground)
|
|
@@ -8,16 +8,7 @@ import { Tabs, Tab } from "@/components/tabs";
|
|
|
8
8
|
|
|
9
9
|
# Templates
|
|
10
10
|
|
|
11
|
-
Templates are pre-built Mastra projects that demonstrate specific use cases and patterns.
|
|
12
|
-
|
|
13
|
-
## What Templates Offer
|
|
14
|
-
|
|
15
|
-
Templates include:
|
|
16
|
-
|
|
17
|
-
- **Complete working examples** - Functional code demonstrating specific patterns
|
|
18
|
-
- **Best practices** - Proper project structure and Mastra conventions
|
|
19
|
-
- **Educational value** - Learn different Mastra features through examples
|
|
20
|
-
- **Quick start** - Bootstrap projects faster than starting from scratch
|
|
11
|
+
Templates are pre-built Mastra projects that demonstrate specific use cases and patterns. Browse available templates in the [templates directory](https://mastra.ai/templates).
|
|
21
12
|
|
|
22
13
|
## Using Templates
|
|
23
14
|
|
|
@@ -81,15 +72,4 @@ After installation:
|
|
|
81
72
|
Each template includes a comprehensive README with specific setup instructions and usage examples.
|
|
82
73
|
</Callout>
|
|
83
74
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Browse available templates in the [templates directory](https://mastra.ai/templates).
|
|
87
|
-
|
|
88
|
-
## Next Steps
|
|
89
|
-
|
|
90
|
-
- **Explore code** - Understand how templates implement functionality
|
|
91
|
-
- **Customize** - Modify agents, tools, and workflows for your use case
|
|
92
|
-
- **Learn patterns** - Study templates to understand Mastra best practices
|
|
93
|
-
- **Contribute** - Create your own templates for the community
|
|
94
|
-
|
|
95
|
-
For detailed information on creating templates, see the [Templates Reference](/reference/templates).
|
|
75
|
+
For detailed information on creating templates, see the [Templates Reference](/reference/templates).
|
|
@@ -490,5 +490,5 @@ await agent.generate(
|
|
|
490
490
|
|
|
491
491
|
## Related
|
|
492
492
|
|
|
493
|
-
- [
|
|
494
|
-
- [Streaming responses](../../docs/agents/
|
|
493
|
+
- [Generating responses](../../docs/agents/overview.mdx#generating-responses)
|
|
494
|
+
- [Streaming responses](../../docs/agents/overview.mdx#streaming-responses)
|
|
@@ -63,5 +63,6 @@ await agent.getDefaultStreamOptions({
|
|
|
63
63
|
|
|
64
64
|
## Related
|
|
65
65
|
|
|
66
|
-
- [
|
|
66
|
+
- [Generating responses](../../docs/agents/overview.mdx#generating-responses)
|
|
67
|
+
- [Streaming responses](../../docs/agents/overview.mdx#streaming-responses)
|
|
67
68
|
- [Runtime variables](../../docs/agents/runtime-variables.mdx)
|
|
@@ -63,5 +63,5 @@ await agent.getDefaultVNextStreamOptions({
|
|
|
63
63
|
|
|
64
64
|
## Related
|
|
65
65
|
|
|
66
|
-
- [
|
|
66
|
+
- [Streaming with agents](../../docs/streaming/overview.mdx#streaming-with-agents)
|
|
67
67
|
- [Runtime variables](../../docs/agents/runtime-variables.mdx)
|
|
@@ -475,5 +475,5 @@ await agent.stream("message for agent", {
|
|
|
475
475
|
|
|
476
476
|
## Related
|
|
477
477
|
|
|
478
|
-
- [
|
|
479
|
-
- [
|
|
478
|
+
- [Generating responses](../../docs/agents/overview.mdx#generating-responses)
|
|
479
|
+
- [Streaming responses](../../docs/agents/overview.mdx#streaming-responses)
|
|
@@ -3,13 +3,11 @@ title: "Reference: Agent.streamVNext() (Experimental) | Agents | Mastra Docs"
|
|
|
3
3
|
description: "Documentation for the `Agent.streamVNext()` method in Mastra agents, which enables real-time streaming of responses with enhanced capabilities."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { StreamVNextCallout } from "@/components/streamVNext-callout.tsx"
|
|
7
7
|
|
|
8
8
|
# Agent.streamVNext() (Experimental)
|
|
9
9
|
|
|
10
|
-
<
|
|
11
|
-
**Experimental Feature**: This is a new streaming implementation with support for multiple output formats, including AI SDK v5 compatibility. It will replace the existing `stream()` method once battle-tested. The API may change as we refine the feature based on feedback.
|
|
12
|
-
</Callout>
|
|
10
|
+
<StreamVNextCallout />
|
|
13
11
|
|
|
14
12
|
The `.streamVNext()` method enables real-time streaming of responses from an agent with enhanced capabilities and format flexibility. This method accepts messages and optional streaming options, providing a next-generation streaming experience with support for both Mastra's native format and AI SDK v5 compatibility.
|
|
15
13
|
|
|
@@ -35,12 +35,6 @@ mastra build [options]
|
|
|
35
35
|
description: "Comma-separated list of paths to tool files to include",
|
|
36
36
|
isOptional: true,
|
|
37
37
|
},
|
|
38
|
-
{
|
|
39
|
-
name: "--env",
|
|
40
|
-
type: "string",
|
|
41
|
-
description: "Path to custom environment file",
|
|
42
|
-
isOptional: true,
|
|
43
|
-
},
|
|
44
38
|
{
|
|
45
39
|
name: "--help",
|
|
46
40
|
type: "boolean",
|
|
@@ -20,7 +20,8 @@ mastra start [options]
|
|
|
20
20
|
| Option | Description |
|
|
21
21
|
|--------|-------------|
|
|
22
22
|
| `-d, --dir <path>` | Path to your built Mastra output directory (default: .mastra/output) |
|
|
23
|
-
| `-
|
|
23
|
+
| `-e, --env <env>` | Custom env file to include in the start (default: .env.production, .env) |
|
|
24
|
+
| `-nt, --no-telemetry` | Disable telemetry on start |
|
|
24
25
|
|
|
25
26
|
## Examples
|
|
26
27
|
|
|
@@ -36,6 +37,12 @@ Start from a custom output directory:
|
|
|
36
37
|
mastra start --dir ./my-output
|
|
37
38
|
```
|
|
38
39
|
|
|
40
|
+
Start with a custom environment file:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
mastra start --env .env.staging
|
|
44
|
+
```
|
|
45
|
+
|
|
39
46
|
Start with telemetry disabled:
|
|
40
47
|
|
|
41
48
|
```bash
|