@mastra/mcp-docs-server 1.3.2-alpha.8 → 1.3.2

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.
Files changed (111) hide show
  1. package/.docs/docs/agents/code-mode.md +1 -1
  2. package/.docs/docs/agents/human-in-the-loop.md +4 -2
  3. package/.docs/docs/agents/processors.md +3 -3
  4. package/.docs/docs/agents/tools.md +3 -1
  5. package/.docs/docs/connections/acp.md +3 -3
  6. package/.docs/docs/connections/mcp.md +1 -1
  7. package/.docs/docs/deployment/workers.md +7 -2
  8. package/.docs/docs/develop.md +4 -4
  9. package/.docs/docs/evals/datasets.md +1 -1
  10. package/.docs/docs/evals/evals-with-memory.md +7 -6
  11. package/.docs/docs/evals/experiments.md +4 -4
  12. package/.docs/docs/evals/multi-turn.md +2 -2
  13. package/.docs/docs/evals/vitest-integration.md +1 -1
  14. package/.docs/docs/harness/agent-controller.md +6 -4
  15. package/.docs/docs/harness/background-tasks.md +2 -2
  16. package/.docs/docs/harness/goals.md +27 -4
  17. package/.docs/docs/harness/schedules.md +28 -1
  18. package/.docs/docs/harness/signals.md +2 -2
  19. package/.docs/docs/mastra-platform/deploy.md +1 -1
  20. package/.docs/docs/mastra-platform/environments.md +1 -1
  21. package/.docs/docs/mastra-platform/observability.md +1 -1
  22. package/.docs/docs/mastra-platform/workspaces.md +1 -1
  23. package/.docs/docs/memory/observational-memory.md +3 -3
  24. package/.docs/docs/memory/overview.md +1 -1
  25. package/.docs/docs/sandbox/skills.md +1 -1
  26. package/.docs/docs/server/pubsub.md +1 -1
  27. package/.docs/docs/server/server-adapters.md +1 -1
  28. package/.docs/docs/studio/auth.md +1 -1
  29. package/.docs/docs/workflows/control-flow.md +4 -1
  30. package/.docs/docs/workflows/dynamic-workflows.md +1 -1
  31. package/.docs/docs/workflows/overview.md +1 -1
  32. package/.docs/docs/workflows/scheduled-workflows.md +11 -7
  33. package/.docs/integrations/frameworks/nestjs.md +34 -1
  34. package/.docs/models/environment-variables.md +2 -0
  35. package/.docs/models/gateways/merge-gateway.md +2 -1
  36. package/.docs/models/gateways/netlify.md +3 -6
  37. package/.docs/models/gateways/openrouter.md +5 -3
  38. package/.docs/models/gateways/vercel.md +7 -4
  39. package/.docs/models/index.md +212 -2
  40. package/.docs/models/providers/302ai.md +5 -1
  41. package/.docs/models/providers/alibaba-cn.md +2 -1
  42. package/.docs/models/providers/alibaba-coding-plan-cn.md +1 -3
  43. package/.docs/models/providers/alibaba-coding-plan.md +1 -3
  44. package/.docs/models/providers/alibaba.md +5 -2
  45. package/.docs/models/providers/ambient.md +3 -1
  46. package/.docs/models/providers/anthropic.md +3 -2
  47. package/.docs/models/providers/bailing.md +1 -1
  48. package/.docs/models/providers/bee.md +82 -0
  49. package/.docs/models/providers/cloudflare-workers-ai.md +3 -3
  50. package/.docs/models/providers/coralbricks.md +2 -3
  51. package/.docs/models/providers/cortecs.md +1 -1
  52. package/.docs/models/providers/crossmodel.md +2 -1
  53. package/.docs/models/providers/deepinfra.md +2 -1
  54. package/.docs/models/providers/digitalocean.md +2 -1
  55. package/.docs/models/providers/edenai.md +288 -290
  56. package/.docs/models/providers/kilo.md +25 -24
  57. package/.docs/models/providers/llmgateway-providers.md +24 -13
  58. package/.docs/models/providers/llmgateway.md +16 -8
  59. package/.docs/models/providers/minimax-cn-coding-plan.md +12 -11
  60. package/.docs/models/providers/minimax-coding-plan.md +12 -11
  61. package/.docs/models/providers/mistral.md +1 -2
  62. package/.docs/models/providers/nan.md +3 -2
  63. package/.docs/models/providers/nano-gpt.md +5 -5
  64. package/.docs/models/providers/nebius.md +2 -1
  65. package/.docs/models/providers/nvidia.md +1 -47
  66. package/.docs/models/providers/ofox.md +3 -1
  67. package/.docs/models/providers/openai.md +44 -41
  68. package/.docs/models/providers/opencode-go.md +1 -5
  69. package/.docs/models/providers/opencode.md +3 -2
  70. package/.docs/models/providers/pareto.md +77 -0
  71. package/.docs/models/providers/pioneer.md +4 -2
  72. package/.docs/models/providers/privatemode-ai.md +2 -2
  73. package/.docs/models/providers/requesty.md +5 -1
  74. package/.docs/models/providers/scaleway.md +2 -1
  75. package/.docs/models/providers/tempr.md +26 -2
  76. package/.docs/models/providers/togetherai.md +1 -3
  77. package/.docs/models/providers/umans-ai-coding-plan.md +1 -1
  78. package/.docs/models/providers/umans-ai.md +1 -1
  79. package/.docs/models/providers.md +2 -0
  80. package/.docs/reference/agent-controller/session.md +5 -5
  81. package/.docs/reference/agents/channels.md +3 -1
  82. package/.docs/reference/agents/durable-agent.md +1 -1
  83. package/.docs/reference/channels/teams-provider.md +189 -0
  84. package/.docs/reference/classifier/classifier.md +47 -5
  85. package/.docs/reference/client-js/agent-controller.md +1 -1
  86. package/.docs/reference/code-sdk/acp-server.md +101 -0
  87. package/.docs/reference/configuration.md +4 -1
  88. package/.docs/reference/datasets/finalizeExperiment.md +1 -1
  89. package/.docs/reference/evals/create-classifier-scorer.md +4 -1
  90. package/.docs/reference/file-based-agents/logger.md +1 -1
  91. package/.docs/reference/file-based-agents/schedules.md +3 -3
  92. package/.docs/reference/file-based-agents/workspace.md +1 -1
  93. package/.docs/reference/index.md +2 -0
  94. package/.docs/reference/migrations/mcp-v2.md +1 -1
  95. package/.docs/reference/observability/tracing/interfaces.md +1 -1
  96. package/.docs/reference/observability/tracing/trace-query.md +37 -16
  97. package/.docs/reference/processors/classifier-processor.md +14 -4
  98. package/.docs/reference/processors/model-selection-processor.md +15 -6
  99. package/.docs/reference/processors/tool-search-processor.md +1 -1
  100. package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
  101. package/.docs/reference/pubsub/redis-streams.md +3 -3
  102. package/.docs/reference/rag/graph-rag.md +1 -1
  103. package/.docs/reference/storage/retention.md +1 -1
  104. package/.docs/reference/workers/overview.md +3 -1
  105. package/.docs/reference/workflows/step.md +4 -1
  106. package/.docs/reference/workflows/workflow.md +1 -1
  107. package/.docs/reference/workspace/local-sandbox.md +2 -0
  108. package/.docs/reference/workspace/platform-sandbox.md +1 -1
  109. package/.docs/reference/workspace/sandbox.md +1 -1
  110. package/.docs/reference/workspace/workspace-class.md +1 -1
  111. package/package.json +6 -6
@@ -283,21 +283,21 @@ Hono and Fastify enforce the request-body limit before JSON parsing. Express and
283
283
 
284
284
  ## Fields and operators
285
285
 
286
- | Predicate context | Fields | Operators |
287
- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
288
- | Trace | `traceId`, `threadId`, `resourceId`, `entityName`, `entityType`, `environment`, `status` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
289
- | Trace metadata | `metadata.<key>` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
290
- | Trace | `startedAt`, `endedAt`, `durationMs` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
291
- | Trace | `tags` | `includes`, `notIncludes`, `exists`, `notExists` |
292
- | Span | `name`, `spanType`, `model`, `provider`, `status`, `entityType`, `entityId`, `entityName`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
293
- | Span | `startedAt`, `endedAt`, `durationMs` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
294
- | Span | `error` | `exists`, `notExists` |
295
- | Score | `scorerId`, `scorerVersion`, `scoreSource`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
296
- | Score | `score`, `timestamp` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
297
- | Score | `spanId` | `exists`, `notExists` |
298
- | Feedback | `feedbackType`, `feedbackSource`, `feedbackUserId`, `sourceId`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
299
- | Feedback | `value`, `timestamp` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
300
- | Feedback | `comment` | `exists`, `notExists` |
286
+ | Predicate context | Fields | Operators |
287
+ | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
288
+ | Trace | `traceId`, `threadId`, `resourceId`, `runId`, `sessionId`, `userId`, `organizationId`, `entityName`, `entityType`, `environment`, `status` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
289
+ | Trace metadata | `metadata.<key>` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
290
+ | Trace | `startedAt`, `endedAt`, `durationMs` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
291
+ | Trace | `tags` | `includes`, `notIncludes`, `exists`, `notExists` |
292
+ | Span | `name`, `spanType`, `model`, `provider`, `status`, `entityType`, `entityId`, `entityName`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId`, `runId`, `sessionId`, `userId`, `organizationId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
293
+ | Span | `startedAt`, `endedAt`, `durationMs` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
294
+ | Span | `error` | `exists`, `notExists` |
295
+ | Score | `scorerId`, `scorerVersion`, `scoreSource`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
296
+ | Score | `score`, `timestamp` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
297
+ | Score | `spanId` | `exists`, `notExists` |
298
+ | Feedback | `feedbackType`, `feedbackSource`, `feedbackUserId`, `sourceId`, `entityVersionId`, `parentEntityVersionId`, `rootEntityVersionId` | `eq`, `ne`, `in`, `notIn`, `exists`, `notExists` |
299
+ | Feedback | `value`, `timestamp` | `eq`, `ne`, `in`, `notIn`, `lt`, `lte`, `gt`, `gte`, `exists`, `notExists` |
300
+ | Feedback | `comment` | `exists`, `notExists` |
301
301
 
302
302
  Compose predicates with `{ op: 'and', args: [...] }`, `{ op: 'or', args: [...] }`, and `{ op: 'not', arg: ... }`. Comparison predicates place a field reference on the left and a literal on the right. Membership predicates use a field reference in `value` and a homogeneous literal array in `set`. Tag predicates name the stored tag collection in `path`. `includes` and `notIncludes` also take one tag in `value`, while `exists` and `notExists` take only `op` and `path`. See [Filter by tags](#filter-by-tags).
303
303
 
@@ -319,6 +319,27 @@ This top-level predicate doesn't inspect child spans. In contrast, `spans.some`
319
319
 
320
320
  Trace queries exclude incomplete roots before evaluating predicates. As a result, `{ op: 'notExists', path: 'durationMs' }` doesn't find running traces or malformed roots without a usable `endedAt`.
321
321
 
322
+ ### Filter by context identifiers
323
+
324
+ `runId`, `sessionId`, `userId`, and `organizationId` are available at trace scope and inside `spans.some` / `spans.none`. Trace-scope predicates read the current root span. Span-scope predicates bind to one related current span, so a run recorded only on a child span is found through `spans.some`:
325
+
326
+ ```typescript
327
+ const sessionTracesWithRun = {
328
+ op: 'and',
329
+ args: [
330
+ { op: 'eq', left: { path: 'organizationId' }, right: { literal: 'org-123' } },
331
+ { op: 'eq', left: { path: 'sessionId' }, right: { literal: 'session-123' } },
332
+ {
333
+ spans: {
334
+ some: { op: 'eq', left: { path: 'runId' }, right: { literal: 'run-42' } },
335
+ },
336
+ },
337
+ ],
338
+ }
339
+ ```
340
+
341
+ These identifiers support `eq`, `ne`, `in`, `notIn`, `exists`, and `notExists`. Field discovery lists them, but value discovery doesn't return their recorded values. Stores advertise support through the `trace-query-context-ids` feature. A predicate on one of these fields against an older store returns `501` before storage runs, and field discovery omits them for that store.
342
+
322
343
  ### Filter by span properties
323
344
 
324
345
  Every condition inside one `spans.some` or `spans.none` clause applies to the same current span. For example, this predicate finds a failed tool span whose name is `medication_lookup`; a matching name on one span and an error on another don't satisfy it:
@@ -679,7 +700,7 @@ const plan = planTraceQuery(parseTraceQueryRequest(request), {
679
700
  })
680
701
  ```
681
702
 
682
- `resourceId` is optional and narrows within the organization. Keyset and delta cursors are bound to the scope, so a cursor minted under one scope and reused under another returns `409` before storage runs. A scoped request against an observability store or `@mastra/core` that predates tenant scope returns `501` instead of running unscoped. Stores advertise support through the `trace-query-tenant-scope` feature. Callers can't name `organizationId` or `projectId` in predicates. Without a scope the routes behave as before, so self-hosted installations keep their own tenant model.
703
+ `resourceId` is optional and narrows within the organization. Keyset and delta cursors are bound to the scope. A cursor created under one scope and reused under another returns `409` before storage runs. A scoped request against an observability store or `@mastra/core` that predates tenant scope returns `501` instead of running unscoped. Stores advertise support through the `trace-query-tenant-scope` feature. Callers can't name `projectId` in predicates. An `organizationId` predicate compares recorded data and is ANDed with the scope, so it can only narrow the tenant's own traces and never widens it. Without a scope the routes behave as before, so self-hosted installations keep their own tenant model.
683
704
 
684
705
  Cursor pagination is deterministic, but it isn't a database snapshot. Traces or replacement signals written between page requests can change later pages.
685
706
 
@@ -12,11 +12,14 @@ Abort reasons are always the string supplied by the caller. Provider-generated t
12
12
 
13
13
  ```typescript
14
14
  import { Classifier } from '@mastra/core/classifier'
15
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
15
16
  import { ClassifierProcessor } from '@mastra/core/processors'
16
17
 
17
18
  const safety = new Classifier({
18
19
  id: 'safety',
19
- model,
20
+ model: createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).evaluationModel(
21
+ 'jev-latest',
22
+ ),
20
23
  questions: {
21
24
  unsafe: {
22
25
  type: 'boolean',
@@ -92,11 +95,12 @@ Messages with no text content are passed through without calling the classifier.
92
95
  ```typescript
93
96
  import { Agent } from '@mastra/core/agent'
94
97
  import { Classifier } from '@mastra/core/classifier'
98
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
95
99
  import { ClassifierProcessor } from '@mastra/core/processors'
96
100
 
97
101
  const topic = new Classifier({
98
102
  id: 'topic',
99
- model,
103
+ model: createTypeSafeAi({/* ... */}).evaluationModel('jev-latest'),
100
104
  questions: {
101
105
  topic: {
102
106
  type: 'choice',
@@ -133,11 +137,12 @@ export const agent = new Agent({
133
137
  ```typescript
134
138
  import { Agent } from '@mastra/core/agent'
135
139
  import { Classifier } from '@mastra/core/classifier'
140
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
136
141
  import { ClassifierProcessor } from '@mastra/core/processors'
137
142
 
138
143
  const quality = new Classifier({
139
144
  id: 'quality',
140
- model,
145
+ model: createTypeSafeAi({/* ... */}).evaluationModel('jev-latest'),
141
146
  questions: {
142
147
  quality: {
143
148
  type: 'score',
@@ -170,10 +175,15 @@ Register the classifier on the `Mastra` instance and reference it by key or ID.
170
175
  ```typescript
171
176
  import { Mastra } from '@mastra/core'
172
177
  import { Classifier } from '@mastra/core/classifier'
178
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
173
179
 
174
180
  export const mastra = new Mastra({
175
181
  classifiers: {
176
- safety: new Classifier({ id: 'safety', model, questions: {/* ... */} }),
182
+ safety: new Classifier({
183
+ id: 'safety',
184
+ model: createTypeSafeAi({/* ... */}).evaluationModel('jev-latest'),
185
+ questions: {/* ... */},
186
+ }),
177
187
  },
178
188
  })
179
189
  ```
@@ -8,11 +8,12 @@
8
8
 
9
9
  > **Warning:** Routing can cost more than it saves. Provider prompt caches aren't shared between models. Each switch pays full price for the conversation again, and a cheaper model can take more steps to finish a task. Measure cost and quality on your own traffic before enabling it. See [Cost tradeoffs](#cost-tradeoffs).
10
10
 
11
- Describe each model alongside the kind of request it should handle. The processor builds the [Classifier](https://mastra.ai/reference/classifier/classifier) for you. The examples on this page assume `model` is an `EvaluationModelV4 | MastraEvaluationModel`, the same evaluation model type `Classifier` accepts. A `'provider/model'` string isn't supported for this option:
11
+ Describe each model alongside the kind of request it should handle. The processor builds the [Classifier](https://mastra.ai/reference/classifier/classifier) for you. The processor's own `model` option takes an evaluation model (`EvaluationModelV4 | MastraEvaluationModel`), the same type `Classifier` accepts. A `'provider/model'` string isn't supported for this option. See [Evaluation models](https://mastra.ai/reference/classifier/classifier) for provider setup:
12
12
 
13
13
  ```typescript
14
14
  import { Agent } from '@mastra/core/agent'
15
15
  import { ModelSelectionProcessor } from '@mastra/core/processors'
16
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
16
17
 
17
18
  export const agent = new Agent({
18
19
  name: 'support-agent',
@@ -20,7 +21,9 @@ export const agent = new Agent({
20
21
  model: 'openai/gpt-5.6-sol',
21
22
  inputProcessors: [
22
23
  new ModelSelectionProcessor({
23
- model,
24
+ model: createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).evaluationModel(
25
+ 'jev-latest',
26
+ ),
24
27
  choices: [
25
28
  {
26
29
  model: 'openai/gpt-5-mini',
@@ -78,12 +81,13 @@ By default the decision applies to every step of the run. Set `scope: 'first-ste
78
81
 
79
82
  ```typescript
80
83
  import { ModelSelectionProcessor } from '@mastra/core/processors'
84
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
81
85
  import { PinoLogger } from '@mastra/loggers'
82
86
 
83
87
  const logger = new PinoLogger({ name: 'model-selection' })
84
88
 
85
89
  new ModelSelectionProcessor({
86
- model,
90
+ model: createTypeSafeAi({/* ... */}).evaluationModel('jev-latest'),
87
91
  choices: [
88
92
  { model: 'openai/gpt-5-mini', criteria: 'Simple lookups' },
89
93
  { model: 'openai/gpt-5.6-sol', criteria: 'Multi-step reasoning' },
@@ -110,10 +114,11 @@ Pass `classifier` instead of `choices` to route on a [Classifier](https://mastra
110
114
 
111
115
  ```typescript
112
116
  import { Classifier } from '@mastra/core/classifier'
117
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
113
118
 
114
119
  const triage = new Classifier({
115
120
  id: 'triage',
116
- model,
121
+ model: createTypeSafeAi({/* ... */}).evaluationModel('jev-latest'),
117
122
  questions: {
118
123
  complexity: {
119
124
  type: 'choice',
@@ -149,9 +154,13 @@ Single-step runs are unaffected, because the two scopes are identical when there
149
154
  Choice criteria are mutually exclusive, which is the wrong shape when routing depends on independent dimensions. Ask several questions and combine the answers in `select`. It receives the fully typed answers, and the routing policy is your code:
150
155
 
151
156
  ```typescript
157
+ import { Classifier } from '@mastra/core/classifier'
158
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
159
+ import { ModelSelectionProcessor } from '@mastra/core/processors'
160
+
152
161
  const triage = new Classifier({
153
162
  id: 'triage',
154
- model,
163
+ model: createTypeSafeAi({/* ... */}).evaluationModel('jev-latest'),
155
164
  questions: {
156
165
  complexity: {
157
166
  type: 'choice',
@@ -214,7 +223,7 @@ Before enabling routing, run a sample of your traffic with and without the proce
214
223
 
215
224
  - The classifier runs **once per request**, in `processInput`, not once per step. The decision is stashed in per-request state and read on each step.
216
225
  - Only the **latest user message** is classified. The system prompt, retrieved context, and earlier turns aren't sent to the classifier, which keeps the routing call flat as context grows. A terse follow-up such as `"now apply that to the rest"` is therefore routed on that sentence alone. If your follow-ups often re-open hard reasoning rather than applying an earlier result, keep them on the capable model by leaving it as the default.
217
- - Only downgrade. Keep the capable model as the agent's configured default and use the processor to move down, so an incorrect decision costs quality on that request. With the default `scope: 'run'`, a bad downgrade applies to every step of the run, so a run that turns out harder than its first message stays on the cheaper model.
226
+ - Only downgrade. Keep the capable model as the agent's configured default and use the processor to move down. An incorrect decision then costs quality on that request. With the default `scope: 'run'`, a bad downgrade applies to every step of the run. A run that turns out harder than its first message stays on the cheaper model.
218
227
  - The processor adds a classifier round-trip to the critical path of every request, including those it ends up abstaining on.
219
228
  - With `choices`, each criterion is named after its model, so `onDecision` reports the chosen model as the `choice`.
220
229
 
@@ -37,7 +37,7 @@ const toolSearch = new ToolSearchProcessor({
37
37
 
38
38
  **options.search.topK** (`number`): Maximum number of tools to return in search results.
39
39
 
40
- **options.search.minScore** (`number`): Minimum relevance score (0-1) for including a tool in search results.
40
+ **options.search.minScore** (`number`): Minimum relevance score for including a tool in search results. Scores are raw BM25 relevance plus name-match boosts (+5 when a query term equals the tool ID, +2 when it appears in the ID). They are not normalized and often exceed 1. Scores depend on the tools in the catalog and their descriptions, so a threshold tuned for one tool set may not carry over to another. Tools scoring less than or equal to this value are excluded. Use small values such as 0 to 0.5 to require some term overlap.
41
41
 
42
42
  **options.search.autoLoad** (`boolean`): When true, tools returned by search\_tools are activated immediately as part of the search. The load\_tool meta-tool is not exposed, collapsing the two-step search then load flow into a single search step. Discovered tools become available on the next turn. Keep topK conservative since every match is activated.
43
43
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  Use it for distributed deployments on Google Cloud. For single-process delivery, use [`EventEmitterPubSub`](https://mastra.ai/reference/pubsub/event-emitter). For Redis, use [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams).
10
10
 
11
- Each topic maps to a Google Cloud topic. Subscriptions with a group share a subscription, so members compete for events. Subscriptions without a group create a per-instance subscription, so every instance receives every event.
11
+ Each topic maps to a Google Cloud topic. Subscriptions with a group share a subscription. Members compete for events. Subscriptions without a group create a per-instance subscription. Every instance receives every event.
12
12
 
13
13
  ## Installation
14
14
 
@@ -4,11 +4,11 @@
4
4
 
5
5
  # RedisStreamsPubSub
6
6
 
7
- `RedisStreamsPubSub` is a [`PubSub`](https://mastra.ai/reference/pubsub/base) implementation backed by [Redis Streams](https://redis.io/docs/latest/develop/data-types/streams/). It delivers events across processes and hosts, with persistence, consumer groups, and redelivery on failure. It also implements [`LeaseProvider`](https://mastra.ai/reference/pubsub/lease-provider), so the signals layer can elect a single owner per resource across instances, which is what lets signals coordinate runs in distributed and serverless deployments.
7
+ `RedisStreamsPubSub` is a [`PubSub`](https://mastra.ai/reference/pubsub/base) implementation backed by [Redis Streams](https://redis.io/docs/latest/develop/data-types/streams/). It delivers events across processes and hosts, with persistence, consumer groups, and redelivery on failure. It also implements [`LeaseProvider`](https://mastra.ai/reference/pubsub/lease-provider). The signals layer can elect a single owner per resource across instances, which is what lets signals coordinate runs in distributed and serverless deployments.
8
8
 
9
9
  Use it for distributed deployments where several services share an event stream. For single-process delivery, use [`EventEmitterPubSub`](https://mastra.ai/reference/pubsub/event-emitter). For Google Cloud, use [`GoogleCloudPubSub`](https://mastra.ai/reference/pubsub/google-cloud-pubsub).
10
10
 
11
- Each topic maps to a Redis stream key. Subscriptions with a group use a Redis consumer group, so members share work round-robin. Subscriptions without a group create a private consumer group, so every subscriber receives every event.
11
+ Each topic maps to a Redis stream key. Subscriptions with a group use a Redis consumer group. Members share work round-robin. Subscriptions without a group create a private consumer group. Every subscriber receives every event.
12
12
 
13
13
  `RedisStreamsPubSub` is a pull transport: consumers read events with `XREADGROUP`, so Mastra runs an orchestration worker to read on its behalf.
14
14
 
@@ -74,7 +74,7 @@ export const mastra = new Mastra({
74
74
 
75
75
  ### Bring your own client
76
76
 
77
- To control client construction yourself (TLS, credential providers, and so on), pass an unconnected `redis` client as `client`. The pubsub uses it as its writer and calls `client.duplicate()` for each subscription's blocking reader, so every connection stays distinct. The pubsub owns the client's lifecycle (it connects on first use and quits it on `close()`), so don't share it with the rest of your app.
77
+ To control client construction yourself (TLS, credential providers, and so on), pass an unconnected `redis` client as `client`. The pubsub uses it as its writer and calls `client.duplicate()` for each subscription's blocking reader. Every connection stays distinct. The pubsub owns the client's lifecycle (it connects on first use and quits it on `close()`), so don't share it with the rest of your app.
78
78
 
79
79
  ```typescript
80
80
  import { RedisStreamsPubSub } from '@mastra/redis-streams'
@@ -127,7 +127,7 @@ Throws if the snapshot version is unsupported, if a node embedding doesn't match
127
127
 
128
128
  ## Persisting a graph
129
129
 
130
- Building a graph is O(n²) in the number of chunks, so rebuilding it on every process start is wasteful. Serialize the graph once and store the snapshot wherever you already keep state. A snapshot is plain JSON, so any store works (a file, a blob column, a key-value cache), and `GraphRAG` doesn't depend on a storage backend.
130
+ Building a graph is O(n²) in the number of chunks, so rebuilding it on every process start is wasteful. Serialize the graph once and store the snapshot wherever you already keep state. A snapshot is plain JSON. Any store works (a file, a blob column, a key-value cache), and `GraphRAG` doesn't depend on a storage backend.
131
131
 
132
132
  ```typescript
133
133
  import { readFile, writeFile } from 'node:fs/promises'
@@ -202,7 +202,7 @@ async function retentionTick() {
202
202
  }
203
203
  ```
204
204
 
205
- You can also cancel a long-running prune with an `AbortSignal`: the loop stops between batches and returns partial results with `done: false`, so the next run resumes cleanly.
205
+ You can also cancel a long-running prune with an `AbortSignal`: the loop stops between batches and returns partial results with `done: false`. The next run resumes cleanly.
206
206
 
207
207
  ## ClickHouse native TTL
208
208
 
@@ -25,6 +25,8 @@ Controls which workers start in the current process.
25
25
 
26
26
  Use this to run different worker types in separate containers from the same build artifact.
27
27
 
28
+ Setting `MASTRA_WORKERS` to any value, including `"false"`, also makes `createWorkflow` build workflows that declare `schedule` on the evented engine. Set it on every process in a split deployment. See [Scheduled workflows](https://mastra.ai/docs/workflows/scheduled-workflows).
29
+
28
30
  ### `MASTRA_STEP_EXECUTION_URL`
29
31
 
30
32
  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.
@@ -61,7 +63,7 @@ Processes workflow events from the PubSub `workflows` topic. Requires a pull-cap
61
63
 
62
64
  ### SchedulerWorker
63
65
 
64
- Polls storage for due cron schedules and publishes `workflow.start` events.
66
+ Polls storage for due cron schedules and publishes a `workflow.start` event to the `workflows` topic for each fire. The orchestration worker runs default-engine workflows in-process and evented workflows step by step.
65
67
 
66
68
  - **Name**: `scheduler`
67
69
  - **Single instance only**: Run exactly one instance to avoid duplicate fires
@@ -155,11 +155,14 @@ Pass a [`Classifier`](https://mastra.ai/reference/classifier/classifier) with co
155
155
 
156
156
  ```typescript
157
157
  import { Classifier } from '@mastra/core/classifier'
158
+ import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
158
159
  import { createStep } from '@mastra/core/workflows'
159
160
 
160
161
  const router = new Classifier({
161
162
  id: 'ticket-router',
162
- model,
163
+ model: createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).evaluationModel(
164
+ 'jev-latest',
165
+ ),
163
166
  questions: {
164
167
  route: {
165
168
  type: 'choice',
@@ -103,7 +103,7 @@ export const testWorkflow = createWorkflow({
103
103
 
104
104
  **requestContextSchema** (`StandardJSONSchemaV1`): Standard JSON Schema for validating request context values. When provided, the context is validated at the start of run.start(), throwing an error if validation fails.
105
105
 
106
- **schedule** (`WorkflowScheduleConfig | WorkflowScheduleConfig[]`): Optional cron schedule for the workflow. Accepts a single config or an array of configs to fire on multiple cadences. Setting this auto-promotes the workflow to the evented execution engine. See the scheduled workflows guide for usage.
106
+ **schedule** (`WorkflowScheduleConfig | WorkflowScheduleConfig[]`): Optional cron schedule for the workflow. Accepts a single config or an array of configs to fire on multiple cadences. Declaring a schedule keeps the execution engine unchanged unless the MASTRA\_WORKERS environment variable is set, in which case the workflow runs on the evented engine. See the scheduled workflows guide for usage.
107
107
 
108
108
  **schedule.id** (`string`): Stable identifier for the schedule. Required when passing an array of schedules. Defaults to the workflow id when passing a single schedule object.
109
109
 
@@ -48,6 +48,8 @@ const response = await agent.generate('Run npm install')
48
48
 
49
49
  **env** (`NodeJS.ProcessEnv`): Environment variables to set. PATH is included by default unless overridden.
50
50
 
51
+ **outputEncoding** (`string`): Encoding used to decode command stdout and stderr. Accepts any WHATWG encoding label, such as 'gbk' for native Windows commands on a Chinese (code page 936) system. (Default: `'utf-8'`)
52
+
51
53
  **timeout** (`number`): Default timeout for operations in milliseconds (Default: `30000`)
52
54
 
53
55
  **isolation** (`'none' | 'seatbelt' | 'bwrap'`): Native OS sandboxing backend. 'seatbelt' for macOS, 'bwrap' for Linux. (Default: `'none'`)
@@ -227,7 +227,7 @@ await sandbox.snapshot()
227
227
 
228
228
  Each `id` maps to one independent filesystem. Reusing the same `id` across unrelated sandboxes causes the platform to boot them from each other's checkpoint.
229
229
 
230
- Set `seedCheckpointName` to provide a boot-only fallback when the checkpoint for `id` doesn't exist yet. The platform restores the checkpoint for `id` first when both exist. Later snapshots continue writing to the checkpoint for `id`, so the seed remains unchanged.
230
+ Set `seedCheckpointName` to provide a boot-only fallback when the checkpoint for `id` doesn't exist yet. The platform restores the checkpoint for `id` first when both exist. Later snapshots continue writing to the checkpoint for `id`. The seed remains unchanged.
231
231
 
232
232
  ```typescript
233
233
  const sandbox = new PlatformSandbox({
@@ -67,7 +67,7 @@ new E2BSandbox({
67
67
 
68
68
  Semantics:
69
69
 
70
- - A thrown error is fatal: `start()` rejects with the hook's error and the sandbox is marked `error`, so a caller never observes a running sandbox whose setup hook failed. Nothing is latched, and the next `start()` (including the one triggered by the next lazy command) retries the hook. `onStop` and `onDestroy` remain non-fatal observers, because teardown proceeds best-effort.
70
+ - A thrown error is fatal: `start()` rejects with the hook's error and the sandbox is marked `error`. A caller never observes a running sandbox whose setup hook failed. Nothing is latched, and the next `start()` (including the one triggered by the next lazy command) retries the hook. `onStop` and `onDestroy` remain non-fatal observers, because teardown proceeds best-effort.
71
71
  - `outcome` distinguishes the branches: `'created'` means this start provisioned a fresh VM (run setup), `'connected'` means it reconnected or resumed (setup normally already ran, so probe when the hook must self-heal a crash between create and setup-complete). `undefined` means the provider doesn't report.
72
72
  - Keep setup work idempotent. A hook re-runs whenever a probe decides it should, and a checkpoint-recovered fresh VM reports `outcome: 'created'`.
73
73
  - The sandbox status flips to `running` before the hook executes (the hook runs commands through the sandbox's own command path), so commands issued concurrently through `ensureRunning()` can interleave with it. Callers awaiting the original `start()` always observe a sandbox whose hook finished.
@@ -253,7 +253,7 @@ await workspace.stop()
253
253
 
254
254
  `stop()` shuts down language servers and the browser before stopping the sandbox provider. Remote providers suspend or pause the sandbox for later resumption, while `LocalSandbox` kills background processes and unmounts filesystems. Stopping isn't a teardown. The filesystem and search index remain available along with skills, and the next sandbox operation starts the sandbox again.
255
255
 
256
- `mastra.shutdown()` calls `stop()` for registered workspaces, so a process restart suspends remote sandboxes instead of deleting them. To fully tear a workspace down, call `destroy()` or `mastra.removeWorkspace(id, { destroy: true })` explicitly.
256
+ `mastra.shutdown()` calls `stop()` for registered workspaces. A process restart suspends remote sandboxes instead of deleting them. To fully tear a workspace down, call `destroy()` or `mastra.removeWorkspace(id, { destroy: true })` explicitly.
257
257
 
258
258
  #### `destroy()`
259
259
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.3.2-alpha.8",
3
+ "version": "1.3.2",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,8 +26,8 @@
26
26
  "@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
27
27
  "local-pkg": "^1.1.2",
28
28
  "zod": "^4.6.4",
29
- "@mastra/mcp": "^2.1.0",
30
- "@mastra/core": "1.72.0-alpha.4"
29
+ "@mastra/core": "1.72.0",
30
+ "@mastra/mcp": "^2.1.1"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@hono/node-server": "^2.0.0",
@@ -43,9 +43,9 @@
43
43
  "tsx": "^4.23.1",
44
44
  "typescript": "^7.0.2",
45
45
  "vitest": "4.1.11",
46
- "@internal/lint": "0.0.137",
47
- "@mastra/core": "1.72.0-alpha.4",
48
- "@internal/types-builder": "0.0.112"
46
+ "@internal/lint": "0.0.138",
47
+ "@mastra/core": "1.72.0",
48
+ "@internal/types-builder": "0.0.113"
49
49
  },
50
50
  "homepage": "https://mastra.ai",
51
51
  "repository": {