@mastra/mcp-docs-server 1.2.12-alpha.0 → 1.2.12-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agent-builder/access-control.md +3 -3
- package/.docs/docs/agent-builder/browser.md +1 -1
- package/.docs/docs/agent-builder/channels.md +1 -1
- package/.docs/docs/agent-builder/configuration.md +3 -3
- package/.docs/docs/agent-builder/deploying.md +2 -2
- package/.docs/docs/agent-builder/integrations.md +8 -8
- package/.docs/docs/agent-builder/memory.md +2 -2
- package/.docs/docs/agent-builder/overview.md +1 -1
- package/.docs/docs/agent-controller/channels.md +8 -6
- package/.docs/docs/agent-controller/modes.md +6 -6
- package/.docs/docs/agent-controller/overview.md +13 -9
- package/.docs/docs/agent-controller/session.md +27 -9
- package/.docs/docs/agent-controller/subagents.md +9 -6
- package/.docs/docs/agent-controller/threads-and-state.md +12 -8
- package/.docs/docs/agent-controller/tool-approvals.md +7 -3
- package/.docs/docs/agents/a2a.md +4 -2
- package/.docs/docs/agents/acp.md +5 -5
- package/.docs/docs/agents/agent-approval.md +13 -11
- package/.docs/docs/agents/code-mode.md +29 -6
- package/.docs/docs/agents/guardrails.md +8 -8
- package/.docs/docs/agents/networks.md +2 -2
- package/.docs/docs/agents/overview.md +9 -7
- package/.docs/docs/agents/processors.md +15 -15
- package/.docs/docs/agents/skills.md +6 -6
- package/.docs/docs/agents/structured-output.md +6 -6
- package/.docs/docs/agents/supervisor-agents.md +19 -13
- package/.docs/docs/agents/using-tools.md +25 -23
- package/.docs/docs/browser/agent-browser.md +4 -4
- package/.docs/docs/browser/browser-viewer.md +2 -2
- package/.docs/docs/browser/firecrawl.md +1 -1
- package/.docs/docs/browser/overview.md +2 -2
- package/.docs/docs/browser/recording.md +1 -1
- package/.docs/docs/browser/stagehand.md +7 -7
- package/.docs/docs/capabilities/channels/discord.md +1 -1
- package/.docs/docs/capabilities/channels/other-adapters.md +1 -1
- package/.docs/docs/capabilities/channels/overview.md +9 -5
- package/.docs/docs/capabilities/channels/slack.md +2 -2
- package/.docs/docs/capabilities/channels/teams.md +1 -1
- package/.docs/docs/capabilities/channels/telegram.md +1 -1
- package/.docs/docs/capabilities/channels/whatsapp.md +1 -1
- package/.docs/docs/deployment/mastra-server.md +1 -1
- package/.docs/docs/deployment/overview.md +6 -2
- package/.docs/docs/deployment/sandbox.md +3 -1
- package/.docs/docs/deployment/workers.md +137 -0
- package/.docs/docs/editor/overview.md +37 -31
- package/.docs/docs/editor/prompts.md +8 -4
- package/.docs/docs/editor/tools.md +3 -3
- package/.docs/docs/evals/built-in-scorers.md +4 -4
- package/.docs/docs/evals/custom-scorers.md +5 -5
- package/.docs/docs/evals/datasets/running-experiments.md +7 -7
- package/.docs/docs/evals/evals-with-memory.md +4 -4
- package/.docs/docs/evals/gates-and-verdicts.md +4 -4
- package/.docs/docs/evals/multi-turn.md +12 -12
- package/.docs/docs/evals/overview.md +6 -4
- package/.docs/docs/evals/quick-checks.md +2 -2
- package/.docs/docs/getting-started/build-with-ai.md +6 -4
- package/.docs/docs/getting-started/file-based-agents.md +6 -4
- package/.docs/docs/getting-started/manual-install.md +1 -1
- package/.docs/docs/index.md +9 -90
- package/.docs/docs/long-running-agents/background-tasks.md +10 -10
- package/.docs/docs/long-running-agents/durable-agents.md +46 -5
- package/.docs/docs/long-running-agents/goals.md +15 -11
- package/.docs/docs/long-running-agents/schedules.md +3 -3
- package/.docs/docs/long-running-agents/signal-providers.md +8 -6
- package/.docs/docs/long-running-agents/signals.md +9 -5
- package/.docs/docs/mastra-platform/configuration.md +3 -3
- package/.docs/docs/mastra-platform/database.md +8 -8
- package/.docs/docs/mastra-platform/deploy.md +8 -4
- package/.docs/docs/mastra-platform/environments.md +8 -4
- package/.docs/docs/mastra-platform/github.md +3 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/mastra-platform/studio.md +2 -2
- package/.docs/docs/mastra-platform/workspace.md +6 -6
- package/.docs/docs/mcp/mcp-apps.md +1 -1
- package/.docs/docs/mcp/overview.md +9 -9
- package/.docs/docs/memory/memory-processors.md +10 -10
- package/.docs/docs/memory/message-history.md +11 -5
- package/.docs/docs/memory/multi-user-threads.md +6 -6
- package/.docs/docs/memory/observational-memory.md +27 -25
- package/.docs/docs/memory/overview.md +10 -10
- package/.docs/docs/memory/semantic-recall.md +3 -3
- package/.docs/docs/memory/working-memory.md +8 -8
- package/.docs/docs/observability/integrations/bridges/datadog.md +6 -6
- package/.docs/docs/observability/integrations/bridges/otel.md +5 -5
- package/.docs/docs/observability/integrations/exporters/datadog.md +1 -1
- package/.docs/docs/observability/integrations/exporters/laminar.md +1 -1
- package/.docs/docs/observability/integrations/exporters/langfuse.md +3 -3
- package/.docs/docs/observability/integrations/exporters/langsmith.md +4 -4
- package/.docs/docs/observability/integrations/exporters/mastra-platform.md +1 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/observability/integrations/exporters/otel.md +26 -4
- package/.docs/docs/observability/integrations/exporters/sentry.md +1 -1
- package/.docs/docs/observability/integrations/overview.md +1 -1
- package/.docs/docs/observability/integrations/processors/sensitive-data-filter.md +1 -1
- package/.docs/docs/observability/logging.md +1 -1
- package/.docs/docs/observability/metrics/overview.md +1 -1
- package/.docs/docs/observability/metrics/querying.md +8 -8
- package/.docs/docs/observability/overview.md +4 -4
- package/.docs/docs/observability/tracing/overview.md +18 -12
- package/.docs/docs/rag/chunking-and-embedding.md +1 -1
- package/.docs/docs/rag/graph-rag.md +7 -7
- package/.docs/docs/rag/overview.md +2 -2
- package/.docs/docs/rag/retrieval.md +18 -18
- package/.docs/docs/rag/vector-databases.md +2 -2
- package/.docs/docs/server/auth/composite-auth.md +2 -2
- package/.docs/docs/server/auth/fga.md +6 -6
- package/.docs/docs/server/auth/firebase.md +2 -2
- package/.docs/docs/server/auth/simple-auth.md +1 -1
- package/.docs/docs/server/auth/workers.md +133 -0
- package/.docs/docs/server/custom-adapters.md +4 -4
- package/.docs/docs/server/mastra-client.md +3 -3
- package/.docs/docs/server/mastra-server.md +2 -2
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/pubsub.md +7 -4
- package/.docs/docs/server/request-context.md +11 -11
- package/.docs/docs/server/server-adapters.md +2 -2
- package/.docs/docs/storage/overview.md +2 -2
- package/.docs/docs/studio/auth.md +5 -5
- package/.docs/docs/studio/deployment.md +1 -1
- package/.docs/docs/studio/observability.md +2 -2
- package/.docs/docs/studio/overview.md +11 -9
- package/.docs/docs/voice/overview.md +26 -26
- package/.docs/docs/voice/realtime-voice.md +8 -8
- package/.docs/docs/voice/speech-to-speech.md +9 -9
- package/.docs/docs/voice/speech-to-text.md +3 -3
- package/.docs/docs/voice/text-to-speech.md +6 -6
- package/.docs/docs/what-is-mastra.md +161 -0
- package/.docs/docs/workflows/agents-and-tools.md +3 -3
- package/.docs/docs/workflows/control-flow.md +10 -8
- package/.docs/docs/workflows/error-handling.md +2 -2
- package/.docs/docs/workflows/overview.md +7 -6
- package/.docs/docs/workflows/scheduled-workflows.md +12 -12
- package/.docs/docs/workflows/snapshots.md +3 -3
- package/.docs/docs/workflows/suspend-and-resume.md +1 -1
- package/.docs/docs/workflows/time-travel.md +3 -1
- package/.docs/docs/workflows/workflow-state.md +1 -1
- package/.docs/docs/workspace/filesystem.md +10 -10
- package/.docs/docs/workspace/lsp.md +1 -1
- package/.docs/docs/workspace/overview.md +12 -12
- package/.docs/docs/workspace/sandbox.md +9 -7
- package/.docs/docs/workspace/search.md +3 -3
- package/.docs/docs/workspace/skills.md +7 -7
- package/.docs/guides/build-your-ui/ai-sdk-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/generative-ui.md +1 -1
- package/.docs/guides/build-your-ui/openui.md +1 -1
- package/.docs/guides/concepts/streaming.md +1 -1
- package/.docs/guides/deployment/kubernetes.md +1 -1
- package/.docs/guides/deployment/mastra-workers.md +232 -0
- package/.docs/guides/guide/ai-recruiter.md +1 -1
- package/.docs/guides/guide/chef-michel.md +1 -1
- package/.docs/guides/guide/code-review-bot.md +1 -1
- package/.docs/guides/guide/coding-agent.md +1 -1
- package/.docs/guides/guide/dev-assistant.md +1 -1
- package/.docs/guides/guide/docs-manager.md +1 -1
- package/.docs/guides/guide/firecrawl.md +1 -1
- package/.docs/guides/guide/github-actions-pr-description.md +1 -1
- package/.docs/guides/guide/research-assistant.md +1 -1
- package/.docs/guides/guide/research-coordinator.md +2 -2
- package/.docs/guides/guide/signal-provider.md +1 -1
- package/.docs/guides/guide/stock-agent.md +2 -2
- package/.docs/guides/guide/web-search.md +4 -4
- package/.docs/guides/guide/whatsapp-chat-bot.md +2 -2
- package/.docs/guides/migrations/agentnetwork.md +4 -4
- package/.docs/guides/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/guides/migrations/vnext-to-standard-apis.md +2 -2
- package/.docs/models/gateways/custom-gateways.md +3 -3
- package/.docs/models/gateways/openrouter.md +1 -3
- package/.docs/models/gateways/vercel.md +2 -1
- package/.docs/models/index.md +6 -6
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/chutes.md +2 -1
- package/.docs/models/providers/crossmodel.md +2 -2
- package/.docs/models/providers/deepinfra.md +1 -1
- package/.docs/models/providers/hyper.md +3 -3
- package/.docs/models/providers/llmgateway.md +4 -3
- package/.docs/models/providers/wandb.md +2 -1
- package/.docs/reference/acp/acp-agent.md +1 -1
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agents/agent.md +7 -7
- package/.docs/reference/agents/channels.md +26 -10
- package/.docs/reference/agents/durable-agent.md +51 -2
- package/.docs/reference/agents/generateLegacy.md +1 -1
- package/.docs/reference/agents/getLLM.md +2 -2
- package/.docs/reference/agents/getMetadata.md +2 -2
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/browser/agent-browser.md +1 -1
- package/.docs/reference/browser/browser-viewer.md +1 -1
- 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 +4 -4
- package/.docs/reference/cli/mastra.md +132 -1
- package/.docs/reference/client-js/agents.md +17 -0
- package/.docs/reference/configuration.md +1 -1
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/mastra-class.md +48 -1
- package/.docs/reference/core/mastra-model-gateway.md +1 -1
- package/.docs/reference/evals/answer-relevancy.md +1 -1
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +1 -1
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-recall.md +3 -3
- package/.docs/reference/evals/context-relevance.md +11 -11
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +5 -5
- package/.docs/reference/evals/noise-sensitivity.md +10 -10
- package/.docs/reference/evals/prompt-alignment.md +15 -15
- package/.docs/reference/evals/rubric.md +1 -1
- package/.docs/reference/evals/tool-call-accuracy.md +3 -3
- package/.docs/reference/evals/toxicity.md +1 -1
- package/.docs/reference/file-based-agents/config.md +3 -3
- package/.docs/reference/file-based-agents/instructions.md +1 -1
- package/.docs/reference/file-based-agents/subagents.md +3 -3
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/memory/memory-class.md +3 -3
- package/.docs/reference/memory/observational-memory.md +4 -4
- package/.docs/reference/observability/tracing/exporters/langfuse.md +1 -1
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/language-detector.md +1 -1
- package/.docs/reference/processors/message-history-processor.md +1 -1
- package/.docs/reference/processors/moderation-processor.md +2 -2
- package/.docs/reference/processors/pii-detector.md +2 -2
- package/.docs/reference/processors/processor-interface.md +1 -1
- package/.docs/reference/processors/prompt-injection-detector.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +1 -1
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +3 -3
- package/.docs/reference/processors/tool-call-filter.md +2 -2
- package/.docs/reference/processors/tool-search-processor.md +2 -2
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/working-memory-processor.md +1 -1
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/server/routes.md +7 -7
- package/.docs/reference/signals/create-notification-inbox-tool.md +1 -1
- package/.docs/reference/storage/dsql.md +1 -1
- package/.docs/reference/storage/mongodb.md +1 -1
- package/.docs/reference/storage/postgresql.md +1 -1
- package/.docs/reference/storage/redis.md +1 -1
- package/.docs/reference/storage/upstash.md +1 -1
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/.docs/reference/tools/create-code-mode.md +3 -3
- package/.docs/reference/tools/isolated-vm-transport.md +74 -0
- package/.docs/reference/tools/mcp-client.md +2 -2
- package/.docs/reference/tools/mcp-server.md +1 -1
- package/.docs/reference/tools/vector-query-tool.md +1 -1
- package/.docs/reference/vectors/libsql.md +1 -1
- package/.docs/reference/vectors/mongodb.md +2 -2
- package/.docs/reference/vectors/pg.md +1 -1
- package/.docs/reference/vectors/upstash.md +1 -1
- package/.docs/reference/voice/voice.addInstructions.md +1 -1
- package/.docs/reference/workers/overview.md +85 -0
- package/.docs/reference/workspace/agentfs-filesystem.md +1 -1
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/CHANGELOG.md +14 -0
- package/package.json +5 -5
|
@@ -45,7 +45,7 @@ export const shopAgent = new Agent({
|
|
|
45
45
|
id: 'shop-assistant',
|
|
46
46
|
name: 'shop-assistant',
|
|
47
47
|
instructions: ['You are a helpful shopping assistant.', instructions],
|
|
48
|
-
model: 'openai/gpt-5.
|
|
48
|
+
model: 'openai/gpt-5.6-sol',
|
|
49
49
|
tools: { execute_typescript: tool },
|
|
50
50
|
})
|
|
51
51
|
```
|
|
@@ -56,13 +56,13 @@ export const shopAgent = new Agent({
|
|
|
56
56
|
|
|
57
57
|
**config.tools** (`ToolsInput`): Tools exposed to the generated code as external\_\<id> functions. Only these tools can be called.
|
|
58
58
|
|
|
59
|
-
**config.sandbox** (`WorkspaceSandbox`): Sandbox used to execute the generated code. Required unless the agent runs in a workspace that provides a sandbox. Pass new LocalSandbox() to run on the host explicitly.
|
|
59
|
+
**config.sandbox** (`WorkspaceSandbox`): Sandbox used to execute the generated code. Required unless the agent runs in a workspace that provides a sandbox, or the transport provides its own execution boundary (such as IsolatedVmCodeModeTransport). Pass new LocalSandbox() to run on the host explicitly.
|
|
60
60
|
|
|
61
61
|
**config.timeout** (`number`): Execution timeout in milliseconds.
|
|
62
62
|
|
|
63
63
|
**config.id** (`string`): The generated tool id.
|
|
64
64
|
|
|
65
|
-
**transport** (`CodeModeTransport`): Optional transport implementation used to run the generated code in the sandbox. The default transport uses stdio JSON-RPC over the workspace sandbox process API.
|
|
65
|
+
**transport** (`CodeModeTransport`): Optional transport implementation used to run the generated code in the sandbox. The default transport uses stdio JSON-RPC over the workspace sandbox process API. Transports that declare requiresSandbox: false (such as IsolatedVmCodeModeTransport) run without a sandbox.
|
|
66
66
|
|
|
67
67
|
## Returns
|
|
68
68
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# IsolatedVmCodeModeTransport
|
|
4
|
+
|
|
5
|
+
> **Beta:** This feature is in beta. Breaking changes may occur without a major version bump until the API is stable.
|
|
6
|
+
|
|
7
|
+
The `IsolatedVmCodeModeTransport` class runs [Code mode](https://mastra.ai/docs/agents/code-mode) programs in an in-process V8 isolate, backed by [isolated-vm](https://github.com/laverdet/isolated-vm). The isolate is the execution boundary, so no workspace sandbox is required: the program has no filesystem, network, process, or module access. Its only capabilities are the `external_*` functions, which call back into the real tools on the host.
|
|
8
|
+
|
|
9
|
+
Compared to the default `StdioCodeModeTransport`, this transport spawns no processes and writes no temp files, which makes it a good fit for serverless and multi-tenant hosts where OS-level sandboxing isn't available.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
**npm**:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
npm install @mastra/isolated-vm
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
**pnpm**:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm add @mastra/isolated-vm
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
**Yarn**:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
yarn add @mastra/isolated-vm
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Bun**:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
bun add @mastra/isolated-vm
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
`isolated-vm` is a native addon. It ships prebuilt binaries for common platforms, so installation usually needs no extra setup. A C++ toolchain is only needed on platforms without a matching prebuild, where it falls back to compiling from source.
|
|
38
|
+
|
|
39
|
+
On Node.js 20 and later, the host process must be started with the `--no-node-snapshot` flag, otherwise creating an isolate crashes the process. The constructor throws an error when the flag is missing. Pass the flag when starting your server, or set it through `NODE_OPTIONS`:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
NODE_OPTIONS=--no-node-snapshot npm run dev
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Usage
|
|
46
|
+
|
|
47
|
+
Pass the transport as the second argument to `createCodeMode()`. No `sandbox` is needed:
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
import { createCodeMode } from '@mastra/core/tools'
|
|
51
|
+
import { IsolatedVmCodeModeTransport } from '@mastra/isolated-vm'
|
|
52
|
+
|
|
53
|
+
const { tool, instructions } = createCodeMode(
|
|
54
|
+
{ tools: { getTopProducts, getProductRatings } },
|
|
55
|
+
new IsolatedVmCodeModeTransport({ memoryLimitMb: 128 }),
|
|
56
|
+
)
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Constructor parameters
|
|
60
|
+
|
|
61
|
+
**options** (`IsolatedVmCodeModeTransportOptions`): Configuration for the isolate.
|
|
62
|
+
|
|
63
|
+
**options.memoryLimitMb** (`number`): V8 isolate heap limit in MiB. A program that exceeds the limit is terminated and the tool returns an error result.
|
|
64
|
+
|
|
65
|
+
## How it works
|
|
66
|
+
|
|
67
|
+
Each run creates a fresh isolate with its own heap. TypeScript is stripped on the host with esbuild, then the program is evaluated inside the isolate. Every `external_*` call crosses the isolate boundary as JSON strings in both directions, so no host object references leak into model-authored code. The allow-list, tool validation, request context, and tracing all run on the host, the same as with other transports.
|
|
68
|
+
|
|
69
|
+
The `timeout` configured on `createCodeMode()` applies to both asynchronous hangs and synchronous infinite loops, and the isolate is disposed after every run.
|
|
70
|
+
|
|
71
|
+
## Related
|
|
72
|
+
|
|
73
|
+
- [Code mode](https://mastra.ai/docs/agents/code-mode)
|
|
74
|
+
- [createCodeMode() reference](https://mastra.ai/reference/tools/create-code-mode)
|
|
@@ -1013,7 +1013,7 @@ const agent = new Agent({
|
|
|
1013
1013
|
id: 'multi-tool-agent',
|
|
1014
1014
|
name: 'Multi-tool Agent',
|
|
1015
1015
|
instructions: 'You have access to multiple tool servers.',
|
|
1016
|
-
model: 'openai/gpt-5.
|
|
1016
|
+
model: 'openai/gpt-5.6-sol',
|
|
1017
1017
|
tools: await mcp.listTools(),
|
|
1018
1018
|
})
|
|
1019
1019
|
|
|
@@ -1064,7 +1064,7 @@ const agent = new Agent({
|
|
|
1064
1064
|
id: 'multi-tool-agent',
|
|
1065
1065
|
name: 'Multi-tool Agent',
|
|
1066
1066
|
instructions: 'You help users check stocks and weather.',
|
|
1067
|
-
model: 'openai/gpt-5.
|
|
1067
|
+
model: 'openai/gpt-5.6-sol',
|
|
1068
1068
|
})
|
|
1069
1069
|
|
|
1070
1070
|
// Later, configure MCP with user-specific settings
|
|
@@ -24,7 +24,7 @@ const myAgent = new Agent({
|
|
|
24
24
|
name: 'MyExampleAgent',
|
|
25
25
|
description: 'A generalist to help with basic questions.',
|
|
26
26
|
instructions: 'You are a helpful assistant.',
|
|
27
|
-
model: 'openai/gpt-5.
|
|
27
|
+
model: 'openai/gpt-5.6-sol',
|
|
28
28
|
})
|
|
29
29
|
|
|
30
30
|
const weatherTool = createTool({
|
|
@@ -144,7 +144,7 @@ const queryTool = createVectorQueryTool({
|
|
|
144
144
|
indexName: 'documentation',
|
|
145
145
|
model: new ModelRouterEmbeddingModel('openai/text-embedding-3-small'),
|
|
146
146
|
reranker: {
|
|
147
|
-
model: 'openai/gpt-5.
|
|
147
|
+
model: 'openai/gpt-5.6-sol',
|
|
148
148
|
options: {
|
|
149
149
|
weights: {
|
|
150
150
|
semantic: 0.5, // Semantic relevance weight
|
|
@@ -279,7 +279,7 @@ export const libsqlAgent = new Agent({
|
|
|
279
279
|
name: 'libSQL Agent',
|
|
280
280
|
instructions:
|
|
281
281
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
282
|
-
model: 'openai/gpt-5.
|
|
282
|
+
model: 'openai/gpt-5.6-sol',
|
|
283
283
|
memory: new Memory({
|
|
284
284
|
storage: new LibSQLStore({
|
|
285
285
|
id: 'libsql-agent-storage',
|
|
@@ -470,7 +470,7 @@ export const mongodbAgent = new Agent({
|
|
|
470
470
|
name: 'mongodb-agent',
|
|
471
471
|
instructions:
|
|
472
472
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
473
|
-
model: 'openai/gpt-5.
|
|
473
|
+
model: 'openai/gpt-5.6-sol',
|
|
474
474
|
memory: new Memory({
|
|
475
475
|
storage: new MongoDBStore({
|
|
476
476
|
id: 'mongodb-storage',
|
|
@@ -535,7 +535,7 @@ export const mongodbVoyageAgent = new Agent({
|
|
|
535
535
|
id: 'mongodb-voyage-agent',
|
|
536
536
|
name: 'MongoDB VoyageAI Agent',
|
|
537
537
|
instructions: 'You are an AI agent with semantic recall powered by VoyageAI and MongoDB.',
|
|
538
|
-
model: 'openai/gpt-5.
|
|
538
|
+
model: 'openai/gpt-5.6-sol',
|
|
539
539
|
memory: new Memory({
|
|
540
540
|
storage: new MongoDBStore({
|
|
541
541
|
id: 'mongodb-storage',
|
|
@@ -403,7 +403,7 @@ export const pgAgent = new Agent({
|
|
|
403
403
|
name: 'PG Agent',
|
|
404
404
|
instructions:
|
|
405
405
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
406
|
-
model: 'openai/gpt-5.
|
|
406
|
+
model: 'openai/gpt-5.6-sol',
|
|
407
407
|
memory: new Memory({
|
|
408
408
|
storage: new PostgresStore({
|
|
409
409
|
id: 'pg-agent-storage',
|
|
@@ -267,7 +267,7 @@ export const upstashAgent = new Agent({
|
|
|
267
267
|
name: 'Upstash Agent',
|
|
268
268
|
instructions:
|
|
269
269
|
'You are an AI agent with the ability to automatically recall memories from previous interactions.',
|
|
270
|
-
model: 'openai/gpt-5.
|
|
270
|
+
model: 'openai/gpt-5.6-sol',
|
|
271
271
|
memory: new Memory({
|
|
272
272
|
storage: new UpstashStore({
|
|
273
273
|
id: 'upstash-agent-storage',
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Workers
|
|
4
|
+
|
|
5
|
+
For usage patterns and deployment topologies, see [Workers](https://mastra.ai/docs/deployment/workers).
|
|
6
|
+
|
|
7
|
+
## Environment variables
|
|
8
|
+
|
|
9
|
+
### `MASTRA_WORKERS`
|
|
10
|
+
|
|
11
|
+
Controls which workers start in the current process.
|
|
12
|
+
|
|
13
|
+
| Value | Behavior |
|
|
14
|
+
| --------------------------- | --------------------------------------------------------------------- |
|
|
15
|
+
| _(not set)_ | Default workers are auto-created based on configuration |
|
|
16
|
+
| `"false"` | Disables all event processing. The process only serves HTTP requests. |
|
|
17
|
+
| `"orchestration"` | Only the orchestration worker starts |
|
|
18
|
+
| `"scheduler"` | Only the scheduler worker starts |
|
|
19
|
+
| `"backgroundTasks"` | Only the background task worker starts |
|
|
20
|
+
| `"orchestration,scheduler"` | Multiple workers (comma-separated) |
|
|
21
|
+
|
|
22
|
+
Use this to run different worker types in separate containers from the same build artifact.
|
|
23
|
+
|
|
24
|
+
### `MASTRA_STEP_EXECUTION_URL`
|
|
25
|
+
|
|
26
|
+
The base URL of the API server, used by the orchestration worker to execute workflow steps remotely. Required when the orchestration worker runs in a separate process from the API.
|
|
27
|
+
|
|
28
|
+
```text
|
|
29
|
+
MASTRA_STEP_EXECUTION_URL=http://api:4111/api
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
The orchestration worker sends step execution requests to:
|
|
33
|
+
|
|
34
|
+
```text
|
|
35
|
+
${MASTRA_STEP_EXECUTION_URL}/workflows/:workflowId/runs/:runId/steps/execute
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### `MASTRA_WORKER_AUTH_TOKEN`
|
|
39
|
+
|
|
40
|
+
A bearer token sent by the orchestration worker when calling the API's step execution endpoint. The API's configured auth provider must recognize this token. See [Worker authentication](https://mastra.ai/docs/server/auth/workers).
|
|
41
|
+
|
|
42
|
+
```text
|
|
43
|
+
MASTRA_WORKER_AUTH_TOKEN=sk-worker-secret-token
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Worker types
|
|
47
|
+
|
|
48
|
+
### OrchestrationWorker
|
|
49
|
+
|
|
50
|
+
Processes workflow events from the PubSub `workflows` topic. Requires a pull-capable PubSub like `@mastra/redis-streams` or `@mastra/google-cloud-pubsub` configured with a pull subscription.
|
|
51
|
+
|
|
52
|
+
- **Name**: `orchestration`
|
|
53
|
+
- **PubSub topic**: `workflows`
|
|
54
|
+
- **Consumer group**: `mastra-orchestration`
|
|
55
|
+
|
|
56
|
+
### SchedulerWorker
|
|
57
|
+
|
|
58
|
+
Polls storage for due cron schedules and publishes `workflow.start` events.
|
|
59
|
+
|
|
60
|
+
- **Name**: `scheduler`
|
|
61
|
+
- **Single instance only**: Run exactly one instance to avoid duplicate fires
|
|
62
|
+
|
|
63
|
+
### BackgroundTaskWorker
|
|
64
|
+
|
|
65
|
+
Executes background tool calls dispatched by agents.
|
|
66
|
+
|
|
67
|
+
- **Name**: `backgroundTasks`
|
|
68
|
+
- **PubSub topic**: `background-tasks`
|
|
69
|
+
- **Consumer group**: `background-task-workers`
|
|
70
|
+
- **Supports multiple replicas**: Instances share the consumer group
|
|
71
|
+
|
|
72
|
+
## Supported storage backends
|
|
73
|
+
|
|
74
|
+
A deployment running all worker types requires a storage backend that implements the `workflows`, `backgroundTasks`, and `schedules` domains. The `schedules` domain is specifically required by the SchedulerWorker. If you don't use scheduled workflows, backends without it can still support orchestration and background tasks. The following backends support all three:
|
|
75
|
+
|
|
76
|
+
| Backend | Package |
|
|
77
|
+
| ---------- | ---------------------------------------------------------------- |
|
|
78
|
+
| PostgreSQL | [`@mastra/pg`](https://mastra.ai/reference/storage/postgresql) |
|
|
79
|
+
| LibSQL | [`@mastra/libsql`](https://mastra.ai/reference/storage/libsql) |
|
|
80
|
+
| MySQL | `@mastra/mysql` |
|
|
81
|
+
| MongoDB | [`@mastra/mongodb`](https://mastra.ai/reference/storage/mongodb) |
|
|
82
|
+
| Spanner | [`@mastra/spanner`](https://mastra.ai/reference/storage/spanner) |
|
|
83
|
+
| Convex | [`@mastra/convex`](https://mastra.ai/reference/storage/convex) |
|
|
84
|
+
|
|
85
|
+
Other storage backends (Upstash, DynamoDB, Cloudflare D1, ClickHouse, Redis) support workflows and some worker features, but are missing the `schedules` domain. They can still be used for orchestration and background task workers if you don't deploy the scheduler.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.2.12-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`55c9e24`](https://github.com/mastra-ai/mastra/commit/55c9e248c27c1d72b5bb7e94ea6b8a3999eee49f), [`07f5b4b`](https://github.com/mastra-ai/mastra/commit/07f5b4ba9d608d88865030732e580298296adf99)]:
|
|
8
|
+
- @mastra/core@1.55.0-alpha.2
|
|
9
|
+
|
|
10
|
+
## 1.2.12-alpha.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`ba369f2`](https://github.com/mastra-ai/mastra/commit/ba369f2a0aaf998da0d6aa033d26f64f96bef8ac), [`dcfed93`](https://github.com/mastra-ai/mastra/commit/dcfed93e1e256c6abfa792cbb7ca836f5d0e8638), [`2876e15`](https://github.com/mastra-ai/mastra/commit/2876e15b4d2f616a3bc1ed3af57d546c268384ce), [`598080f`](https://github.com/mastra-ai/mastra/commit/598080f224edb3f0f5b801035b067fac50a56a03)]:
|
|
15
|
+
- @mastra/core@1.55.0-alpha.1
|
|
16
|
+
|
|
3
17
|
## 1.2.12-alpha.0
|
|
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.2.12-alpha.
|
|
3
|
+
"version": "1.2.12-alpha.3",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"jsdom": "^26.1.0",
|
|
29
29
|
"local-pkg": "^1.1.2",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@mastra/
|
|
32
|
-
"@mastra/
|
|
31
|
+
"@mastra/core": "1.55.0-alpha.2",
|
|
32
|
+
"@mastra/mcp": "^1.15.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hono/node-server": "^1.19.14",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"vitest": "4.1.10",
|
|
48
48
|
"@internal/lint": "0.0.118",
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
49
|
+
"@internal/types-builder": "0.0.93",
|
|
50
|
+
"@mastra/core": "1.55.0-alpha.2"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|
|
53
53
|
"repository": {
|