@mastra/mcp-docs-server 1.2.17-alpha.13 → 1.2.17-alpha.14
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/course/02-agent-tools-mcp/32-conclusion.md +1 -1
- package/.docs/docs/agents/code-mode.md +3 -3
- package/.docs/docs/agents/guardrails.md +1 -1
- package/.docs/docs/agents/{agent-approval.md → human-in-the-loop.md} +5 -5
- package/.docs/docs/agents/networks.md +3 -3
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +2 -2
- package/.docs/docs/agents/{using-tools.md → tools.md} +7 -7
- package/.docs/docs/{server/auth → auth}/custom-auth-provider.md +1 -1
- package/.docs/docs/{server/auth → auth}/fga.md +1 -1
- package/.docs/docs/{server/auth.md → auth/overview.md} +4 -4
- package/.docs/docs/{server/auth → auth}/simple-auth.md +1 -1
- package/.docs/docs/{server/auth → auth}/workers.md +2 -2
- package/.docs/docs/{capabilities/channels.md → channels.md} +2 -2
- package/.docs/docs/{agents → connections}/a2a.md +2 -2
- package/.docs/docs/{agents → connections}/acp.md +1 -1
- package/.docs/docs/{mcp/overview.md → connections/mcp.md} +1 -1
- package/.docs/docs/connections/overview.md +5 -5
- package/.docs/docs/{agents → connections}/sdk-agents.md +1 -1
- package/.docs/docs/deployment/mastra-server.md +2 -2
- package/.docs/docs/deployment/overview.md +1 -1
- package/.docs/docs/deployment/sandbox.md +3 -3
- package/.docs/docs/deployment/workers.md +4 -4
- package/.docs/docs/guides/multi-agent-systems.md +7 -7
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +5 -3
- package/.docs/docs/{long-running-agents → harness}/background-tasks.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/durable-agents.md +2 -2
- package/.docs/docs/{long-running-agents → harness}/goals.md +6 -6
- package/.docs/docs/harness/overview.md +11 -10
- package/.docs/docs/{long-running-agents → harness}/schedules.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/signal-providers.md +4 -4
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/overview.md +1 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/memory/message-history.md +1 -1
- package/.docs/docs/memory/overview.md +4 -4
- package/.docs/docs/memory/working-memory.md +1 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/{workspace → sandbox}/filesystem.md +2 -2
- package/.docs/docs/{workspace → sandbox}/lsp.md +3 -3
- package/.docs/docs/{workspace/sandbox.md → sandbox/overview.md} +3 -3
- package/.docs/docs/{workspace → sandbox}/search.md +2 -2
- package/.docs/docs/{workspace → sandbox}/skills.md +5 -5
- package/.docs/docs/server/custom-api-routes.md +2 -2
- package/.docs/docs/server/mastra-client.md +2 -2
- package/.docs/docs/server/{mastra-server.md → overview.md} +3 -3
- package/.docs/docs/server/pubsub.md +2 -2
- package/.docs/docs/server/server-adapters.md +4 -4
- package/.docs/docs/{agents/skills.md → skills.md} +4 -4
- package/.docs/docs/{storage/overview.md → storage.md} +1 -1
- package/.docs/docs/studio/auth.md +4 -4
- package/.docs/docs/studio/overview.md +2 -2
- package/.docs/docs/{capabilities/subagents.md → subagents.md} +35 -5
- package/.docs/docs/workflows/agents-and-tools.md +1 -1
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +2 -2
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/auth/google.md +2 -2
- package/.docs/integrations/auth/workos.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +2 -2
- package/.docs/integrations/browsers/browser-viewer.md +6 -6
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +2 -2
- package/.docs/integrations/channels/discord.md +2 -2
- package/.docs/integrations/channels/github.md +1 -1
- package/.docs/integrations/channels/imessage.md +4 -4
- package/.docs/integrations/channels/slack.md +5 -5
- package/.docs/integrations/channels/teams.md +2 -2
- package/.docs/integrations/channels/telegram.md +2 -2
- package/.docs/integrations/channels/whatsapp.md +2 -2
- package/.docs/integrations/databases/postgresql.md +1 -0
- package/.docs/integrations/deploy/amazon-ec2.md +2 -2
- package/.docs/integrations/deploy/aws-lambda.md +3 -3
- package/.docs/integrations/deploy/azure-app-services.md +2 -2
- package/.docs/integrations/deploy/cloudflare.md +2 -2
- package/.docs/integrations/deploy/digital-ocean.md +3 -3
- package/.docs/integrations/deploy/kubernetes.md +11 -11
- package/.docs/integrations/deploy/netlify.md +3 -3
- package/.docs/integrations/deploy/vercel.md +2 -2
- package/.docs/integrations/file-storage/amazon-s3.md +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +2 -2
- package/.docs/integrations/file-storage/vercel-files.md +1 -1
- package/.docs/integrations/frameworks/astro.md +1 -1
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/frameworks/express.md +1 -1
- package/.docs/integrations/frameworks/hono.md +1 -1
- package/.docs/integrations/frameworks/nestjs.md +1 -1
- package/.docs/integrations/frameworks/next-js.md +1 -1
- package/.docs/integrations/frameworks/nuxt.md +1 -1
- package/.docs/integrations/frameworks/sveltekit.md +1 -1
- package/.docs/integrations/frameworks/vite-react.md +1 -1
- package/.docs/integrations/sandboxes/agentcore.md +1 -1
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +4 -3
- package/.docs/integrations/sandboxes/e2b.md +1 -1
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/models/environment-variables.md +2 -0
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/arcee.md +79 -0
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/cerebras.md +2 -3
- package/.docs/models/providers/cloudflare-workers-ai.md +1 -1
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/crof.md +1 -1
- package/.docs/models/providers/crossmodel.md +1 -1
- package/.docs/models/providers/deepinfra.md +2 -1
- package/.docs/models/providers/edenai.md +11 -5
- package/.docs/models/providers/huggingface.md +3 -1
- package/.docs/models/providers/hyper.md +5 -5
- package/.docs/models/providers/jalapeno.md +89 -0
- package/.docs/models/providers/kilo.md +8 -7
- package/.docs/models/providers/merge-gateway.md +3 -1
- package/.docs/models/providers/nano-gpt.md +3 -9
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/models/providers.md +2 -0
- package/.docs/reference/acp/acp-agent.md +2 -2
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
- package/.docs/reference/agents/agent.md +2 -2
- package/.docs/reference/agents/channels.md +2 -2
- package/.docs/reference/agents/createSkill.md +2 -2
- package/.docs/reference/agents/getSkill.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -1
- package/.docs/reference/agents/listSuspendedRuns.md +6 -6
- package/.docs/reference/agents/listTools.md +2 -2
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
- package/.docs/reference/ai-sdk/network-route.md +1 -1
- package/.docs/reference/auth/fga.md +5 -5
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/browser/agent-browser.md +2 -2
- package/.docs/reference/browser/browser-viewer.md +2 -2
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +2 -2
- package/.docs/reference/build-with-ai.md +2 -2
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/cli/mastra.md +2 -0
- package/.docs/reference/client-js/agents.md +4 -4
- package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
- package/.docs/reference/configuration.md +6 -6
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getMCPServer.md +1 -1
- package/.docs/reference/core/getMCPServerById.md +1 -1
- package/.docs/reference/core/getTool.md +1 -1
- package/.docs/reference/core/getToolById.md +1 -1
- package/.docs/reference/core/listMCPServers.md +1 -1
- package/.docs/reference/core/listTools.md +1 -1
- package/.docs/reference/core/removeWorkspace.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/editor/prompt-blocks.md +2 -2
- package/.docs/reference/editor/tool-provider.md +1 -1
- package/.docs/reference/editor/tools.md +1 -1
- package/.docs/reference/editor/versioning.md +3 -3
- package/.docs/reference/evals/prompt-alignment.md +18 -0
- package/.docs/reference/evals/rubric.md +1 -1
- package/.docs/reference/file-based-agents/memory.md +2 -2
- package/.docs/reference/file-based-agents/server.md +3 -3
- package/.docs/reference/file-based-agents/skills.md +1 -1
- package/.docs/reference/file-based-agents/storage.md +3 -3
- package/.docs/reference/file-based-agents/subagents.md +1 -1
- package/.docs/reference/file-based-agents/workspace.md +3 -3
- package/.docs/reference/manual-install.md +3 -3
- package/.docs/reference/migrations/network-to-supervisor.md +2 -2
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/tool-call-filter.md +7 -7
- package/.docs/reference/processors/tool-search-processor.md +1 -1
- package/.docs/reference/project-structure.md +1 -1
- package/.docs/reference/pubsub/lease-provider.md +3 -3
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/schedules/overview.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +3 -1
- package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
- package/.docs/reference/tools/ask-user-tool.md +1 -1
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +4 -4
- package/.docs/reference/tools/mcp-server.md +47 -2
- package/.docs/reference/tools/submit-plan-tool.md +1 -1
- package/.docs/reference/tools/task-tools.md +2 -2
- package/.docs/reference/vectors/vectorize.md +12 -2
- package/.docs/reference/workers/overview.md +2 -2
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +4 -3
- package/.docs/reference/workspace/process-manager.md +20 -4
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +5 -5
- package/CHANGELOG.md +8 -0
- package/package.json +5 -5
- /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
- /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
- /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
- /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
- /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
- /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Jalapeno Cloud
|
|
4
|
+
|
|
5
|
+
Access 17 Jalapeno Cloud models through Mastra's model router. Authentication is handled automatically using the `JALAPENO_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Jalapeno Cloud documentation](https://www.jalapeno-cloud.ai/docs/).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
JALAPENO_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "jalapeno/DeepSeek-V4-Flash"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Jalapeno Cloud documentation](https://www.jalapeno-cloud.ai/docs/) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `jalapeno/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
40
|
+
| `jalapeno/DeepSeek-V4-Pro` | 1.0M | | | | | | $2 | $3 |
|
|
41
|
+
| `jalapeno/GLM-5.1` | 203K | | | | | | $1 | $4 |
|
|
42
|
+
| `jalapeno/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
43
|
+
| `jalapeno/Hy3` | 203K | | | | | | $0.14 | $0.58 |
|
|
44
|
+
| `jalapeno/Kimi-K2.5` | 262K | | | | | | $0.60 | $3 |
|
|
45
|
+
| `jalapeno/Kimi-K2.7-Code` | 271K | | | | | | $0.95 | $4 |
|
|
46
|
+
| `jalapeno/Kimi-K3` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `jalapeno/MiniMax-M3` | 524K | | | | | | $0.30 | $1 |
|
|
48
|
+
| `jalapeno/Qwen3-Next-80B-A3B-Instruct` | 129K | | | | | | $0.15 | $2 |
|
|
49
|
+
| `jalapeno/Qwen3-Next-80B-A3B-Thinking` | 131K | | | | | | $0.15 | $2 |
|
|
50
|
+
| `jalapeno/Qwen3-VL-235B-A22B-Instruct` | 129K | | | | | | $0.30 | $2 |
|
|
51
|
+
| `jalapeno/Qwen3-VL-235B-A22B-Thinking` | 131K | | | | | | $0.98 | $4 |
|
|
52
|
+
| `jalapeno/Qwen3.5-122B-A10B` | 262K | | | | | | $0.40 | $3 |
|
|
53
|
+
| `jalapeno/Qwen3.5-27B` | 262K | | | | | | $0.30 | $2 |
|
|
54
|
+
| `jalapeno/Qwen3.5-35B-A3B` | 262K | | | | | | $0.25 | $2 |
|
|
55
|
+
| `jalapeno/Qwen3.5-397B-A17B` | 262K | | | | | | $0.60 | $4 |
|
|
56
|
+
|
|
57
|
+
## Advanced configuration
|
|
58
|
+
|
|
59
|
+
### Custom headers
|
|
60
|
+
|
|
61
|
+
```typescript
|
|
62
|
+
const agent = new Agent({
|
|
63
|
+
id: "custom-agent",
|
|
64
|
+
name: "custom-agent",
|
|
65
|
+
model: {
|
|
66
|
+
url: "https://api.jalapeno-cloud.ai/v1",
|
|
67
|
+
id: "jalapeno/DeepSeek-V4-Flash",
|
|
68
|
+
apiKey: process.env.JALAPENO_API_KEY,
|
|
69
|
+
headers: {
|
|
70
|
+
"X-Custom-Header": "value"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Dynamic model selection
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
const agent = new Agent({
|
|
80
|
+
id: "dynamic-agent",
|
|
81
|
+
name: "Dynamic Agent",
|
|
82
|
+
model: ({ requestContext }) => {
|
|
83
|
+
const useAdvanced = requestContext.task === "complex";
|
|
84
|
+
return useAdvanced
|
|
85
|
+
? "jalapeno/Qwen3.5-397B-A17B"
|
|
86
|
+
: "jalapeno/DeepSeek-V4-Flash";
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Kilo Gateway
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 360 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
8
8
|
|
|
@@ -40,11 +40,11 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `kilo/~anthropic/claude-haiku-latest` | 200K | | | | | | $1 | $5 |
|
|
41
41
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $5 | $25 |
|
|
42
42
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
43
|
-
| `kilo/~deepseek/deepseek-v4-flash-latest` | 262K | | | | | | $0.
|
|
43
|
+
| `kilo/~deepseek/deepseek-v4-flash-latest` | 262K | | | | | | $0.08 | $0.16 |
|
|
44
44
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.38 | $2 |
|
|
45
45
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
46
|
-
| `kilo/~moonshotai/kimi-latest` |
|
|
47
|
-
| `kilo/~openai/gpt-latest` | 1.1M | | | | | | $
|
|
46
|
+
| `kilo/~moonshotai/kimi-latest` | 975K | | | | | | $3 | $13 |
|
|
47
|
+
| `kilo/~openai/gpt-latest` | 1.1M | | | | | | $3 | $15 |
|
|
48
48
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
49
49
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
50
50
|
| `kilo/ai21/jamba-large-1.7` | 256K | | | | | | $2 | $8 |
|
|
@@ -332,7 +332,7 @@ for await (const chunk of stream) {
|
|
|
332
332
|
| `kilo/qwen/qwen3.5-flash-02-23` | 1.0M | | | | | | $0.07 | $0.26 |
|
|
333
333
|
| `kilo/qwen/qwen3.5-plus-02-15` | 1.0M | | | | | | $0.26 | $2 |
|
|
334
334
|
| `kilo/qwen/qwen3.5-plus-20260420` | 1.0M | | | | | | $0.30 | $2 |
|
|
335
|
-
| `kilo/qwen/qwen3.6-27b` |
|
|
335
|
+
| `kilo/qwen/qwen3.6-27b` | 131K | | | | | | $0.45 | $3 |
|
|
336
336
|
| `kilo/qwen/qwen3.6-35b-a3b` | 262K | | | | | | $0.14 | $1 |
|
|
337
337
|
| `kilo/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
338
338
|
| `kilo/qwen/qwen3.6-max-preview` | 262K | | | | | | $1 | $6 |
|
|
@@ -362,7 +362,7 @@ for await (const chunk of stream) {
|
|
|
362
362
|
| `kilo/stepfun/step-3.7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
363
363
|
| `kilo/stepfun/step-3.7-flash:free` | 262K | | | | | | — | — |
|
|
364
364
|
| `kilo/tencent/hunyuan-a13b-instruct` | 131K | | | | | | $0.14 | $0.57 |
|
|
365
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
365
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.14 | $0.58 |
|
|
366
366
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
367
367
|
| `kilo/tencent/hy3:free` | 262K | | | | | | — | — |
|
|
368
368
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
@@ -386,7 +386,7 @@ for await (const chunk of stream) {
|
|
|
386
386
|
| `kilo/z-ai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
387
387
|
| `kilo/z-ai/glm-4.5-air` | 131K | | | | | | $0.13 | $0.85 |
|
|
388
388
|
| `kilo/z-ai/glm-4.5v` | 66K | | | | | | $0.60 | $2 |
|
|
389
|
-
| `kilo/z-ai/glm-4.6` |
|
|
389
|
+
| `kilo/z-ai/glm-4.6` | 203K | | | | | | $0.50 | $2 |
|
|
390
390
|
| `kilo/z-ai/glm-4.6v` | 131K | | | | | | $0.30 | $0.90 |
|
|
391
391
|
| `kilo/z-ai/glm-4.7` | 203K | | | | | | $0.40 | $2 |
|
|
392
392
|
| `kilo/z-ai/glm-4.7-flash` | 203K | | | | | | $0.06 | $0.40 |
|
|
@@ -394,6 +394,7 @@ for await (const chunk of stream) {
|
|
|
394
394
|
| `kilo/z-ai/glm-5-turbo` | 203K | | | | | | $1 | $4 |
|
|
395
395
|
| `kilo/z-ai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
396
396
|
| `kilo/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
397
|
+
| `kilo/z-ai/glm-5.2:free` | 128K | | | | | | — | — |
|
|
397
398
|
| `kilo/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
|
|
398
399
|
|
|
399
400
|
## Advanced configuration
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Merge Gateway
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 171 Merge Gateway models through Mastra's model router. Authentication is handled automatically using the `MERGE_GATEWAY_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Merge Gateway documentation](https://docs.merge.dev/merge-gateway).
|
|
8
8
|
|
|
@@ -164,6 +164,8 @@ for await (const chunk of stream) {
|
|
|
164
164
|
| `merge-gateway/qwen/qwen3-max` | 262K | | | | | | $0.36 | $1 |
|
|
165
165
|
| `merge-gateway/qwen/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.14 | $0.57 |
|
|
166
166
|
| `merge-gateway/qwen/qwen3-next-80b-a3b-thinking` | 131K | | | | | | $0.15 | $1 |
|
|
167
|
+
| `merge-gateway/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.29 | $1 |
|
|
168
|
+
| `merge-gateway/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.29 | $3 |
|
|
167
169
|
| `merge-gateway/qwen/qwen3-vl-plus` | 262K | | | | | | $0.14 | $1 |
|
|
168
170
|
| `merge-gateway/qwen/qwen3.5-122b-a10b` | 256K | | | | | | $0.12 | $0.92 |
|
|
169
171
|
| `merge-gateway/qwen/qwen3.5-27b` | 256K | | | | | | $0.09 | $0.69 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# NanoGPT
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 595 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
|
|
8
8
|
|
|
@@ -165,7 +165,6 @@ for await (const chunk of stream) {
|
|
|
165
165
|
| `nano-gpt/doubao-1.5-vision-pro-32k` | 32K | | | | | | $0.46 | $1 |
|
|
166
166
|
| `nano-gpt/doubao-seed-1-6-250615` | 256K | | | | | | $0.20 | $0.51 |
|
|
167
167
|
| `nano-gpt/doubao-seed-1-6-flash-250615` | 256K | | | | | | $0.04 | $0.37 |
|
|
168
|
-
| `nano-gpt/doubao-seed-1-8-251215` | 128K | | | | | | $0.61 | $6 |
|
|
169
168
|
| `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
|
|
170
169
|
| `nano-gpt/doubao-seed-2-0-lite-260215` | 256K | | | | | | $0.15 | $0.87 |
|
|
171
170
|
| `nano-gpt/doubao-seed-2-0-mini-260215` | 256K | | | | | | $0.05 | $0.48 |
|
|
@@ -312,8 +311,6 @@ for await (const chunk of stream) {
|
|
|
312
311
|
| `nano-gpt/minimax/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
313
312
|
| `nano-gpt/minimax/minimax-m3:thinking` | 512K | | | | | | $0.30 | $1 |
|
|
314
313
|
| `nano-gpt/MiniMaxAI/MiniMax-M1-80k` | 1.0M | | | | | | $0.61 | $2 |
|
|
315
|
-
| `nano-gpt/mirothinker-1-7-deepresearch` | 262K | | | | | | $4 | $25 |
|
|
316
|
-
| `nano-gpt/mirothinker-1-7-deepresearch-mini` | 262K | | | | | | $1 | $10 |
|
|
317
314
|
| `nano-gpt/mistral-code-agent-latest` | 262K | | | | | | $0.40 | $2 |
|
|
318
315
|
| `nano-gpt/mistral-code-latest` | 256K | | | | | | $0.30 | $0.90 |
|
|
319
316
|
| `nano-gpt/mistral-small-31-24b-instruct` | 128K | | | | | | $0.10 | $0.30 |
|
|
@@ -492,8 +489,8 @@ for await (const chunk of stream) {
|
|
|
492
489
|
| `nano-gpt/qwen3.7-max:thinking` | 1.0M | | | | | | $3 | $8 |
|
|
493
490
|
| `nano-gpt/qwen3.7-plus` | 992K | | | | | | $0.40 | $2 |
|
|
494
491
|
| `nano-gpt/qwen3.7-plus:thinking` | 984K | | | | | | $0.40 | $2 |
|
|
495
|
-
| `nano-gpt/qwen3.8-27b` | 262K | | | | | | $0.
|
|
496
|
-
| `nano-gpt/qwen3.8-27b:thinking` | 262K | | | | | | $0.
|
|
492
|
+
| `nano-gpt/qwen3.8-27b` | 262K | | | | | | $0.20 | $1 |
|
|
493
|
+
| `nano-gpt/qwen3.8-27b:thinking` | 262K | | | | | | $0.20 | $1 |
|
|
497
494
|
| `nano-gpt/qwen3.8-max` | 991K | | | | | | $2 | $6 |
|
|
498
495
|
| `nano-gpt/qwen3.8-max:thinking` | 991K | | | | | | $2 | $6 |
|
|
499
496
|
| `nano-gpt/ReadyArt/MS3.2-The-Omega-Directive-24B-Unslop-v2.0` | 16K | | | | | | $0.50 | $0.50 |
|
|
@@ -520,9 +517,6 @@ for await (const chunk of stream) {
|
|
|
520
517
|
| `nano-gpt/Steelskull/L3.3-MS-Evayale-70B` | 16K | | | | | | $0.49 | $0.49 |
|
|
521
518
|
| `nano-gpt/Steelskull/L3.3-MS-Nevoria-70b` | 16K | | | | | | $0.49 | $0.49 |
|
|
522
519
|
| `nano-gpt/Steelskull/L3.3-Nevoria-R1-70b` | 16K | | | | | | $0.49 | $0.49 |
|
|
523
|
-
| `nano-gpt/step-2-16k-exp` | 16K | | | | | | $7 | $20 |
|
|
524
|
-
| `nano-gpt/step-2-mini` | 8K | | | | | | $0.20 | $0.41 |
|
|
525
|
-
| `nano-gpt/step-3` | 66K | | | | | | $0.25 | $0.65 |
|
|
526
520
|
| `nano-gpt/step-r1-v-mini` | 128K | | | | | | $3 | $11 |
|
|
527
521
|
| `nano-gpt/stepfun-ai/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
528
522
|
| `nano-gpt/stepfun-ai/step-3.5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vivgrid
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 20 Vivgrid models through Mastra's model router. Authentication is handled automatically using the `VIVGRID_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Vivgrid documentation](https://docs.vivgrid.com/models).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `vivgrid/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
43
43
|
| `vivgrid/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
44
44
|
| `vivgrid/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
|
+
| `vivgrid/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
45
46
|
| `vivgrid/gpt-5-mini` | 272K | | | | | | $0.25 | $2 |
|
|
46
47
|
| `vivgrid/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
47
48
|
| `vivgrid/gpt-5.1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
@@ -26,6 +26,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
26
26
|
- [Ambient](https://mastra.ai/models/providers/ambient)
|
|
27
27
|
- [AMD](https://mastra.ai/models/providers/amd)
|
|
28
28
|
- [AnyAPI](https://mastra.ai/models/providers/anyapi)
|
|
29
|
+
- [Arcee](https://mastra.ai/models/providers/arcee)
|
|
29
30
|
- [Atomic Chat](https://mastra.ai/models/providers/atomic-chat)
|
|
30
31
|
- [Auriko](https://mastra.ai/models/providers/auriko)
|
|
31
32
|
- [Bailing](https://mastra.ai/models/providers/bailing)
|
|
@@ -74,6 +75,7 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
74
75
|
- [InferX](https://mastra.ai/models/providers/inferx)
|
|
75
76
|
- [Infomaniak](https://mastra.ai/models/providers/infomaniak)
|
|
76
77
|
- [IO.NET](https://mastra.ai/models/providers/io-net)
|
|
78
|
+
- [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno)
|
|
77
79
|
- [Jiekou.AI](https://mastra.ai/models/providers/jiekou)
|
|
78
80
|
- [Kenari](https://mastra.ai/models/providers/kenari)
|
|
79
81
|
- [Kilo Gateway](https://mastra.ai/models/providers/kilo)
|
|
@@ -224,9 +224,9 @@ Use this callback to enforce local policy or inspect the permission title. It ca
|
|
|
224
224
|
|
|
225
225
|
## Related
|
|
226
226
|
|
|
227
|
-
- [Agent Client Protocol docs](https://mastra.ai/docs/
|
|
227
|
+
- [Agent Client Protocol docs](https://mastra.ai/docs/connections/acp)
|
|
228
228
|
- [createACPTool() reference](https://mastra.ai/reference/acp/create-acp-tool)
|
|
229
229
|
- [Agent reference](https://mastra.ai/reference/agents/agent)
|
|
230
|
-
- [Subagents](https://mastra.ai/docs/
|
|
230
|
+
- [Subagents](https://mastra.ai/docs/subagents)
|
|
231
231
|
- [Agent Client Protocol introduction](https://agentclientprotocol.com/overview/introduction)
|
|
232
232
|
- [Agent Client Protocol schema](https://agentclientprotocol.com/protocol/schema)
|
|
@@ -154,7 +154,7 @@ Return a fully custom `Client` implementation when you need to change the standa
|
|
|
154
154
|
|
|
155
155
|
## Related
|
|
156
156
|
|
|
157
|
-
- [Agent Client Protocol docs](https://mastra.ai/docs/
|
|
157
|
+
- [Agent Client Protocol docs](https://mastra.ai/docs/connections/acp)
|
|
158
158
|
- [AcpAgent class reference](https://mastra.ai/reference/acp/acp-agent)
|
|
159
159
|
- [Tool reference](https://mastra.ai/reference/tools/create-tool)
|
|
160
160
|
- [Agent Client Protocol introduction](https://agentclientprotocol.com/overview/introduction)
|
|
@@ -497,5 +497,5 @@ await controller.stopIntervals()
|
|
|
497
497
|
- [AgentController guide](https://mastra.ai/docs/harness/agent-controller)
|
|
498
498
|
- [Session reference](https://mastra.ai/reference/agent-controller/session)
|
|
499
499
|
- [Agents](https://mastra.ai/docs/agents/overview)
|
|
500
|
-
- [Sandbox](https://mastra.ai/docs/
|
|
501
|
-
- [Channels](https://mastra.ai/docs/
|
|
500
|
+
- [Sandbox](https://mastra.ai/docs/sandbox/overview)
|
|
501
|
+
- [Channels](https://mastra.ai/docs/channels)
|
|
@@ -387,7 +387,7 @@ const result = await agent.sendNotificationSignal(
|
|
|
387
387
|
|
|
388
388
|
Returns `{ record: NotificationRecord, decision: NotificationDeliveryDecision, runId?: string, signal?: CreatedAgentSignal, persisted?: Promise<void>, accepted?: Promise<SendAgentSignalAccepted> }`. `record` is the stored inbox record. `decision` is the delivery-policy result. `signal` and `runId` are present when ingress emits a signal immediately, including the immediate summary emitted for active high-priority notifications. `persisted` is present when the emitted signal is persisted without waking an idle thread. `accepted` is present when a signal is emitted and resolves at decision-time, once Mastra decides what to do with it: `{ action: 'wake', runId, output }` when this process runs the agent (it started or won the lease to start the run), `{ action: 'deliver', runId }` when the signal is forwarded onto an existing run, or `{ action: 'persist' }` / `{ action: 'discard' }` when nothing ran. `runId` on the accepted result is present only on `wake` and `deliver`. On the `wake` action, `output` is the agent stream for in-process consumption.
|
|
389
389
|
|
|
390
|
-
Default delivery is priority-aware. `urgent` notifications deliver immediately. `high` notifications deliver immediately when the thread is idle. When the thread is active, Mastra emits a summary immediately and keeps `deliverAt` for later full delivery when the thread is idle. `medium` notifications deliver immediately when idle and batch into summaries when active. `low` notifications batch into summaries in both active and idle threads. Idle low-priority summaries reach subscribers without waking the model loop. For the full flow, visit [Signals](https://mastra.ai/docs/
|
|
390
|
+
Default delivery is priority-aware. `urgent` notifications deliver immediately. `high` notifications deliver immediately when the thread is idle. When the thread is active, Mastra emits a summary immediately and keeps `deliverAt` for later full delivery when the thread is idle. `medium` notifications deliver immediately when idle and batch into summaries when active. `low` notifications batch into summaries in both active and idle threads. Idle low-priority summaries reach subscribers without waking the model loop. For the full flow, visit [Signals](https://mastra.ai/docs/harness/signals).
|
|
391
391
|
|
|
392
392
|
Configure `notifications.deliveryPolicy` on the agent when some notifications should wait for a different dispatch window or summary rollup:
|
|
393
393
|
|
|
@@ -564,7 +564,7 @@ When you register the [`MastraEditor`](https://mastra.ai/reference/editor/mastra
|
|
|
564
564
|
|
|
565
565
|
**editor** (`false | { instructions?: boolean; tools?: boolean | { description?: boolean } }`): Omit to allow editing instructions and tools. Set to false to lock the agent. Set instructions: true to allow instruction edits. Set tools: true to allow tool membership and description edits, or tools: { description: true } to allow only description edits.
|
|
566
566
|
|
|
567
|
-
The agent's `id`, `name`, and `model` always come from code and can't be overridden through Editor. See [Editor](https://mastra.ai/docs/editor
|
|
567
|
+
The agent's `id`, `name`, and `model` always come from code and can't be overridden through Editor. See [Editor](https://mastra.ai/docs/studio/editor) for usage.
|
|
568
568
|
|
|
569
569
|
## Returns
|
|
570
570
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
**Added in:** `@mastra/core@1.22.0`
|
|
6
6
|
|
|
7
|
-
Channels connect agents to messaging platforms. Configure them via the `channels` property on the `Agent` constructor. The object you pass is a `ChannelConfig`. See the [Channels overview](https://mastra.ai/docs/
|
|
7
|
+
Channels connect agents to messaging platforms. Configure them via the `channels` property on the `Agent` constructor. The object you pass is a `ChannelConfig`. See the [Channels overview](https://mastra.ai/docs/channels) for concepts and platform setup instructions.
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -382,6 +382,6 @@ type InlineLinkEntry =
|
|
|
382
382
|
|
|
383
383
|
## Related
|
|
384
384
|
|
|
385
|
-
- [Channels overview](https://mastra.ai/docs/
|
|
385
|
+
- [Channels overview](https://mastra.ai/docs/channels): Concepts, quickstart, and platform setup
|
|
386
386
|
- [Agent class](https://mastra.ai/reference/agents/agent): Constructor parameters and methods
|
|
387
387
|
- [Chat SDK adapters](https://chat-sdk.dev/adapters): Adapter configuration and platform setup
|
|
@@ -74,7 +74,7 @@ createSkill({ name: '', description: 'test', instructions: 'test' })
|
|
|
74
74
|
|
|
75
75
|
## Related
|
|
76
76
|
|
|
77
|
-
- [Agent skills](https://mastra.ai/docs/
|
|
78
|
-
- [Workspace skills](https://mastra.ai/docs/
|
|
77
|
+
- [Agent skills](https://mastra.ai/docs/skills)
|
|
78
|
+
- [Workspace skills](https://mastra.ai/docs/sandbox/skills)
|
|
79
79
|
- [`.getSkill()` reference](https://mastra.ai/reference/agents/getSkill)
|
|
80
80
|
- [`.listSkills()` reference](https://mastra.ai/reference/agents/listSkills)
|
|
@@ -55,6 +55,6 @@ When both agent-level skills and workspace skills are configured, `.getSkill()`
|
|
|
55
55
|
|
|
56
56
|
## Related
|
|
57
57
|
|
|
58
|
-
- [Agent skills](https://mastra.ai/docs/
|
|
58
|
+
- [Agent skills](https://mastra.ai/docs/skills)
|
|
59
59
|
- [`.listSkills()` reference](https://mastra.ai/reference/agents/listSkills)
|
|
60
60
|
- [`createSkill()` reference](https://mastra.ai/reference/agents/createSkill)
|
|
@@ -50,6 +50,6 @@ When both agent-level skills and workspace skills are configured, `.listSkills()
|
|
|
50
50
|
|
|
51
51
|
## Related
|
|
52
52
|
|
|
53
|
-
- [Agent skills](https://mastra.ai/docs/
|
|
53
|
+
- [Agent skills](https://mastra.ai/docs/skills)
|
|
54
54
|
- [`.getSkill()` reference](https://mastra.ai/reference/agents/getSkill)
|
|
55
55
|
- [`createSkill()` reference](https://mastra.ai/reference/agents/createSkill)
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
**Added in:** `@mastra/core@1.43.0`
|
|
6
6
|
|
|
7
|
-
The `.listSuspendedRuns()` method lists suspended agent runs from workflow snapshot storage: runs waiting on a tool call requiring [approval](https://mastra.ai/docs/agents/
|
|
7
|
+
The `.listSuspendedRuns()` method lists suspended agent runs from workflow snapshot storage: runs waiting on a tool call requiring [approval](https://mastra.ai/docs/agents/human-in-the-loop), or on a tool that called `suspend()`. Because discovery is backed by storage rather than in-memory state, it works after a server restart and across multiple server instances.
|
|
8
8
|
|
|
9
|
-
Pass the returned `runId` to [`resumeStream()`](https://mastra.ai/docs/agents/
|
|
9
|
+
Pass the returned `runId` to [`resumeStream()`](https://mastra.ai/docs/agents/human-in-the-loop), `approveToolCall()`, or `declineToolCall()` to continue the run.
|
|
10
10
|
|
|
11
11
|
The filter contract mirrors the workflow run listing APIs (`listWorkflowRuns`), plus the agent-level `threadId` filter.
|
|
12
12
|
|
|
@@ -83,11 +83,11 @@ interface AgentRunToolCall {
|
|
|
83
83
|
|
|
84
84
|
## Discovery scope
|
|
85
85
|
|
|
86
|
-
Results are scoped to runs started by the agent you call `listSuspendedRuns()` on: snapshots persist the owning agent's id, so runs started by other agents on the same Mastra instance aren't returned. In [supervisor setups](https://mastra.ai/docs/agents/
|
|
86
|
+
Results are scoped to runs started by the agent you call `listSuspendedRuns()` on: snapshots persist the owning agent's id, so runs started by other agents on the same Mastra instance aren't returned. In [supervisor setups](https://mastra.ai/docs/agents/human-in-the-loop) the supervisor sees its outer run (the one to resume), while a subagent's inner run is only visible from the subagent itself. Filter by `threadId` and `resourceId` to scope results to one conversation.
|
|
87
87
|
|
|
88
|
-
Run snapshots are only persisted while a run is waiting on input and are deleted when it finishes, so suspended runs are the only runs discoverable from storage. Suspended runs only survive restarts when the Mastra instance has a persistent [storage provider](https://mastra.ai/docs/storage
|
|
88
|
+
Run snapshots are only persisted while a run is waiting on input and are deleted when it finishes, so suspended runs are the only runs discoverable from storage. Suspended runs only survive restarts when the Mastra instance has a persistent [storage provider](https://mastra.ai/docs/storage) configured. With the default in-memory store, snapshots are lost on restart.
|
|
89
89
|
|
|
90
90
|
## Related
|
|
91
91
|
|
|
92
|
-
- [Agent approval](https://mastra.ai/docs/agents/
|
|
93
|
-
- [Storage](https://mastra.ai/docs/storage
|
|
92
|
+
- [Agent approval](https://mastra.ai/docs/agents/human-in-the-loop)
|
|
93
|
+
- [Storage](https://mastra.ai/docs/storage)
|
|
@@ -30,5 +30,5 @@ await agent.listTools({
|
|
|
30
30
|
|
|
31
31
|
## Related
|
|
32
32
|
|
|
33
|
-
- [Using tools with agents](https://mastra.ai/docs/agents/
|
|
34
|
-
- [Creating tools](https://mastra.ai/docs/mcp
|
|
33
|
+
- [Using tools with agents](https://mastra.ai/docs/agents/tools)
|
|
34
|
+
- [Creating tools](https://mastra.ai/docs/connections/mcp)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
The `.network()` method enables multi-agent collaboration and routing. This method accepts messages and optional execution options.
|
|
6
6
|
|
|
7
|
-
> **Deprecated:** The `.network()` primitive has been deprecated and will be removed in a future major release. Use [supervisor agents](https://mastra.ai/docs/
|
|
7
|
+
> **Deprecated:** The `.network()` primitive has been deprecated and will be removed in a future major release. Use [supervisor agents](https://mastra.ai/docs/subagents) with `agent.stream()` or `agent.generate()` instead. See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# handleNetworkStream()
|
|
4
4
|
|
|
5
|
-
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/
|
|
5
|
+
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/subagents) with `agent.stream()` or `agent.generate()` instead. See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
6
6
|
|
|
7
7
|
Framework-agnostic handler for streaming network execution in AI SDK-compatible format. Use this function directly when you need to handle network streaming outside Hono or Mastra's own [apiRoutes](https://mastra.ai/docs/server/custom-api-routes) feature.
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# networkRoute()
|
|
4
4
|
|
|
5
|
-
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/
|
|
5
|
+
> **Deprecated:** Agent networks are deprecated and will be removed in a future release. Use [supervisor agents](https://mastra.ai/docs/subagents) with `agent.stream()` or `agent.generate()` instead. See the [migration guide](https://mastra.ai/reference/migrations/network-to-supervisor) to upgrade.
|
|
6
6
|
|
|
7
7
|
Creates a network route handler for streaming network execution using the AI SDK format. This function registers an HTTP `POST` endpoint that accepts messages, executes an agent network, and streams the response back to the client in AI SDK-compatible format. Agent networks allow a routing agent to delegate tasks to other agents. You have to use it inside a [custom API route](https://mastra.ai/docs/server/custom-api-routes).
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
The `IFGAProvider` interface defines a fine-grained authorization (FGA) provider. Mastra calls it to decide whether a user or a system actor may perform a permission on a specific resource. Implement it to connect Mastra to an FGA backend, such as WorkOS Authorization.
|
|
6
6
|
|
|
7
|
-
For concepts, configuration, and the lifecycle points where Mastra enforces FGA, see [Fine-grained authorization](https://mastra.ai/docs/
|
|
7
|
+
For concepts, configuration, and the lifecycle points where Mastra enforces FGA, see [Fine-grained authorization](https://mastra.ai/docs/auth/fga).
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -47,7 +47,7 @@ Returns: `Promise<boolean>`
|
|
|
47
47
|
|
|
48
48
|
### `require(user, params)`
|
|
49
49
|
|
|
50
|
-
Throws `FGADeniedError` when `user` lacks the permission. Mastra calls this at its [enforcement points](https://mastra.ai/docs/
|
|
50
|
+
Throws `FGADeniedError` when `user` lacks the permission. Mastra calls this at its [enforcement points](https://mastra.ai/docs/auth/fga).
|
|
51
51
|
|
|
52
52
|
Returns: `Promise<void>`
|
|
53
53
|
|
|
@@ -63,7 +63,7 @@ Authorizes a non-user system actor, such as an autonomous or scheduled agent. Op
|
|
|
63
63
|
|
|
64
64
|
System actors skip the user-centric `require()` path, so implement `requireActor` to enforce per-agent least privilege for them. Throw `FGADeniedError` to deny. When a provider doesn't implement `requireActor`, Mastra preserves the trusted-actor bypass (allow after the tenant-scope check), so adding the method remains backward compatible.
|
|
65
65
|
|
|
66
|
-
Treat `actor.permissions` as an untrusted claim. Resolve the agent's authoritative grants from a trusted source keyed by `actor.agentId`, rather than trusting the inline values. See [System actors](https://mastra.ai/docs/
|
|
66
|
+
Treat `actor.permissions` as an untrusted claim. Resolve the agent's authoritative grants from a trusted source keyed by `actor.agentId`, rather than trusting the inline values. See [System actors](https://mastra.ai/docs/auth/fga).
|
|
67
67
|
|
|
68
68
|
```typescript
|
|
69
69
|
import { FGADeniedError } from '@mastra/core/auth/ee'
|
|
@@ -135,6 +135,6 @@ throw new FGADeniedError(user, { type: 'agent', id: 'reporter' }, 'agents:execut
|
|
|
135
135
|
|
|
136
136
|
## Related
|
|
137
137
|
|
|
138
|
-
- [Fine-grained authorization](https://mastra.ai/docs/
|
|
139
|
-
- [System actors](https://mastra.ai/docs/
|
|
138
|
+
- [Fine-grained authorization](https://mastra.ai/docs/auth/fga)
|
|
139
|
+
- [System actors](https://mastra.ai/docs/auth/fga)
|
|
140
140
|
- [WorkOS authentication](https://mastra.ai/reference/auth/workos)
|
|
@@ -54,7 +54,7 @@ then interact with elements using their refs (e.g., @e5).`,
|
|
|
54
54
|
|
|
55
55
|
`AgentBrowser` provides 16 deterministic tools for browser automation. All tools that interact with elements use refs from the accessibility tree snapshot.
|
|
56
56
|
|
|
57
|
-
When `recording` is configured, `AgentBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser
|
|
57
|
+
When `recording` is configured, `AgentBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser).
|
|
58
58
|
|
|
59
59
|
### Core tools
|
|
60
60
|
|
|
@@ -403,5 +403,5 @@ The `browser_snapshot` tool returns an accessibility tree with element refs like
|
|
|
403
403
|
|
|
404
404
|
- [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class reference
|
|
405
405
|
- [StagehandBrowser](https://mastra.ai/reference/browser/stagehand-browser): AI-powered alternative
|
|
406
|
-
- [Browser overview](https://mastra.ai/docs/browser
|
|
406
|
+
- [Browser overview](https://mastra.ai/docs/browser): Conceptual guide
|
|
407
407
|
- [agent-browser guide](https://mastra.ai/integrations/browsers/agent-browser): Usage guide
|
|
@@ -194,7 +194,7 @@ await viewer.injectKeyboardEvent({
|
|
|
194
194
|
|
|
195
195
|
## Supported CLIs
|
|
196
196
|
|
|
197
|
-
Each CLI must be installed separately. Each also publishes a [skill](https://mastra.ai/docs/
|
|
197
|
+
Each CLI must be installed separately. Each also publishes a [skill](https://mastra.ai/docs/sandbox/skills) that teaches the agent its commands and workflows. When a CLI command runs through `workspace_execute_command`, Mastra detects it and injects the CDP URL automatically using the correct flag.
|
|
198
198
|
|
|
199
199
|
Unlike SDK providers, `BrowserViewer` doesn't provide agent tools. The agent uses CLI commands through `workspace_execute_command` instead.
|
|
200
200
|
|
|
@@ -229,4 +229,4 @@ browse skills install
|
|
|
229
229
|
|
|
230
230
|
- [BrowserViewer guide](https://mastra.ai/integrations/browsers/browser-viewer): Setup and usage walkthrough
|
|
231
231
|
- [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class API reference
|
|
232
|
-
- [Sandbox](https://mastra.ai/docs/
|
|
232
|
+
- [Sandbox](https://mastra.ai/docs/sandbox/overview): Workspace configuration
|
|
@@ -68,4 +68,4 @@ In both cases, `FirecrawlBrowser` deletes the remote Firecrawl session when the
|
|
|
68
68
|
|
|
69
69
|
- [Firecrawl docs](https://mastra.ai/integrations/browsers/firecrawl)
|
|
70
70
|
- [`AgentBrowser` reference](https://mastra.ai/reference/browser/agent-browser)
|
|
71
|
-
- [Browser overview](https://mastra.ai/docs/browser
|
|
71
|
+
- [Browser overview](https://mastra.ai/docs/browser)
|
|
@@ -285,4 +285,4 @@ const browser = new AgentBrowser({
|
|
|
285
285
|
|
|
286
286
|
- [AgentBrowser](https://mastra.ai/reference/browser/agent-browser): Deterministic browser automation
|
|
287
287
|
- [StagehandBrowser](https://mastra.ai/reference/browser/stagehand-browser): AI-powered browser automation
|
|
288
|
-
- [Browser overview](https://mastra.ai/docs/browser
|
|
288
|
+
- [Browser overview](https://mastra.ai/docs/browser): Conceptual guide to browser automation
|
|
@@ -71,7 +71,7 @@ Use stagehand_extract to get data from pages.`,
|
|
|
71
71
|
|
|
72
72
|
`StagehandBrowser` provides 7 AI-powered tools for browser automation.
|
|
73
73
|
|
|
74
|
-
When `recording` is configured, `StagehandBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser
|
|
74
|
+
When `recording` is configured, `StagehandBrowser` also adds the Beta `browser_record` and `browser_record_caption` tools. See [Browser recording (Beta)](https://mastra.ai/docs/browser).
|
|
75
75
|
|
|
76
76
|
Core tools:
|
|
77
77
|
|
|
@@ -316,5 +316,5 @@ Choose `AgentBrowser` for precise, reproducible automation. Choose `StagehandBro
|
|
|
316
316
|
|
|
317
317
|
- [MastraBrowser](https://mastra.ai/reference/browser/mastra-browser): Base class reference
|
|
318
318
|
- [AgentBrowser](https://mastra.ai/reference/browser/agent-browser): Deterministic alternative
|
|
319
|
-
- [Browser overview](https://mastra.ai/docs/browser
|
|
319
|
+
- [Browser overview](https://mastra.ai/docs/browser): Conceptual guide
|
|
320
320
|
- [Stagehand guide](https://mastra.ai/integrations/browsers/stagehand): Usage guide
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Build with AI
|
|
4
4
|
|
|
5
|
-
For everyday AI-assisted development with Mastra skills and the CLI, see [Develop](https://mastra.ai/docs/
|
|
5
|
+
For everyday AI-assisted development with Mastra skills and the CLI, see [Develop](https://mastra.ai/docs/develop). This page covers other ways to give coding agents access to Mastra documentation.
|
|
6
6
|
|
|
7
7
|
## Embedded package docs
|
|
8
8
|
|
|
@@ -29,7 +29,7 @@ Examples for the [introduction page](https://mastra.ai/docs):
|
|
|
29
29
|
|
|
30
30
|
## MCP docs server
|
|
31
31
|
|
|
32
|
-
> **Warning:** The MCP docs server isn't recommended for everyday development. Use the [Mastra skill](https://mastra.ai/docs/
|
|
32
|
+
> **Warning:** The MCP docs server isn't recommended for everyday development. Use the [Mastra skill](https://mastra.ai/docs/develop) instead because it's more up to date and performs better.
|
|
33
33
|
|
|
34
34
|
The `@mastra/mcp-docs-server` package provides direct local access to Mastra’s full documentation via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro). It works with Cursor, Windsurf, Cline, Claude Code, VS Code, Codex or any tool that supports MCP.
|
|
35
35
|
|
|
@@ -226,5 +226,5 @@ const result = await slack.connect('support-agent')
|
|
|
226
226
|
## Related
|
|
227
227
|
|
|
228
228
|
- [ChannelProvider](https://mastra.ai/reference/channels/channel-provider): the interface `SlackProvider` implements
|
|
229
|
-
- [Channels](https://mastra.ai/docs/
|
|
229
|
+
- [Channels](https://mastra.ai/docs/channels): concepts, platform setup, and the `createSlackAdapter` path
|
|
230
230
|
- [Channels reference](https://mastra.ai/reference/agents/channels): the `channels` config on the `Agent` constructor
|
|
@@ -1771,6 +1771,8 @@ When a server started with `mastra dev` or `mastra start` has observability metr
|
|
|
1771
1771
|
|
|
1772
1772
|
At server startup, Mastra also sends an anonymous project-surface snapshot: counts of registered agents, agent controllers, workflows, tools, processors, vector stores, scorers, workspaces, MCP servers, gateways, and channels, plus booleans for memory, voice, editor, and observability usage and the coarse storage backend category. It doesn't send names or identifiers. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/core/src/telemetry/feature-telemetry.ts) to check what's collected.
|
|
1773
1773
|
|
|
1774
|
+
The Studio UI also collects anonymous browser-side usage analytics, such as page views and UI interactions. You can read the [source code](https://github.com/mastra-ai/mastra/blob/main/packages/playground/src/lib/analytics.tsx) to check what's collected. Setting `MASTRA_TELEMETRY_DISABLED` disables this too: the value is injected into the served page, so it applies to `mastra dev` and self-hosted builds alike.
|
|
1775
|
+
|
|
1774
1776
|
You can opt out of all CLI and usage analytics by setting an environment variable:
|
|
1775
1777
|
|
|
1776
1778
|
```bash
|