@mastra/mcp-docs-server 1.3.6-alpha.1 → 1.3.6-alpha.5

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 (105) hide show
  1. package/.docs/docs/agents/human-in-the-loop.md +5 -3
  2. package/.docs/docs/agents/processors.md +7 -3
  3. package/.docs/docs/agents/tools.md +24 -0
  4. package/.docs/docs/memory/memory-processors.md +2 -5
  5. package/.docs/docs/memory/semantic-recall.md +2 -2
  6. package/.docs/docs/memory/working-memory.md +16 -0
  7. package/.docs/docs/observability/tracing/overview.md +1 -1
  8. package/.docs/docs/subagents.md +10 -8
  9. package/.docs/docs/workflows/control-flow.md +1 -1
  10. package/.docs/docs/workflows/time-travel.md +5 -3
  11. package/.docs/integrations/agentic-ui/ai-sdk-ui.md +60 -0
  12. package/.docs/integrations/deploy/temporal.md +23 -0
  13. package/.docs/models/embeddings.md +1 -1
  14. package/.docs/models/gateways/merge-gateway.md +2 -1
  15. package/.docs/models/gateways/netlify.md +2 -1
  16. package/.docs/models/gateways/openrouter.md +2 -1
  17. package/.docs/models/gateways/vercel.md +3 -5
  18. package/.docs/models/index.md +1 -1
  19. package/.docs/models/providers/alibaba.md +1 -1
  20. package/.docs/models/providers/anthropic.md +4 -3
  21. package/.docs/models/providers/berget.md +1 -1
  22. package/.docs/models/providers/coralbricks.md +1 -2
  23. package/.docs/models/providers/cortecs.md +3 -1
  24. package/.docs/models/providers/crossmodel.md +2 -1
  25. package/.docs/models/providers/edenai.md +5 -3
  26. package/.docs/models/providers/kilo.md +12 -10
  27. package/.docs/models/providers/llmgateway-providers.md +4 -2
  28. package/.docs/models/providers/llmgateway.md +2 -1
  29. package/.docs/models/providers/mistral.md +9 -16
  30. package/.docs/models/providers/nano-gpt.md +29 -29
  31. package/.docs/models/providers/ollama-cloud.md +2 -1
  32. package/.docs/models/providers/opencode-go.md +5 -4
  33. package/.docs/models/providers/opencode.md +2 -1
  34. package/.docs/models/providers/ovhcloud.md +1 -2
  35. package/.docs/models/providers/requesty.md +6 -4
  36. package/.docs/models/providers/vivgrid.md +2 -1
  37. package/.docs/reference/agents/generate.md +1 -1
  38. package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +3 -3
  39. package/.docs/reference/classifier/classifier.md +35 -35
  40. package/.docs/reference/client-js/memory.md +13 -1
  41. package/.docs/reference/configuration.md +2 -2
  42. package/.docs/reference/connect/providers.md +118 -112
  43. package/.docs/reference/core/getClassifier.md +1 -1
  44. package/.docs/reference/datasets/updateItem.md +10 -0
  45. package/.docs/reference/deployer/vercel.md +1 -1
  46. package/.docs/reference/deployer.md +7 -14
  47. package/.docs/reference/editor/blob-store-provider.md +2 -1
  48. package/.docs/reference/editor/browser-provider.md +3 -2
  49. package/.docs/reference/editor/filesystem-provider.md +2 -1
  50. package/.docs/reference/editor/processor-provider.md +2 -2
  51. package/.docs/reference/editor/sandbox-provider.md +2 -1
  52. package/.docs/reference/editor/storage-workspace-ref.md +27 -2
  53. package/.docs/reference/evals/answer-relevancy.md +4 -2
  54. package/.docs/reference/evals/answer-similarity.md +1 -1
  55. package/.docs/reference/evals/bias.md +3 -1
  56. package/.docs/reference/evals/content-similarity.md +1 -1
  57. package/.docs/reference/evals/context-recall.md +1 -1
  58. package/.docs/reference/evals/context-relevance.md +6 -6
  59. package/.docs/reference/evals/create-classifier-scorer.md +5 -5
  60. package/.docs/reference/evals/hallucination.md +7 -8
  61. package/.docs/reference/evals/keyword-coverage.md +4 -4
  62. package/.docs/reference/evals/noise-sensitivity.md +6 -6
  63. package/.docs/reference/evals/prompt-alignment.md +1 -1
  64. package/.docs/reference/evals/run-evals.md +1 -1
  65. package/.docs/reference/evals/scorer-utils.md +8 -8
  66. package/.docs/reference/evals/tone-consistency.md +23 -24
  67. package/.docs/reference/evals/tool-call-accuracy.md +19 -15
  68. package/.docs/reference/evals/toxicity.md +3 -1
  69. package/.docs/reference/logging/pino-logger.md +4 -4
  70. package/.docs/reference/memory/deleteMessages.md +1 -1
  71. package/.docs/reference/memory/memory-class.md +2 -2
  72. package/.docs/reference/memory/summarizeConversation.md +1 -1
  73. package/.docs/reference/migrations/ai-sdk-v4-to-v5.md +2 -2
  74. package/.docs/reference/migrations/upgrade-to-v1/mcp.md +2 -0
  75. package/.docs/reference/migrations/upgrade-to-v1/memory.md +1 -1
  76. package/.docs/reference/migrations/upgrade-to-v1/tools.md +1 -1
  77. package/.docs/reference/observability/tracing/configuration.md +10 -1
  78. package/.docs/reference/observability/tracing/instances.md +1 -1
  79. package/.docs/reference/observability/tracing/interfaces.md +1 -1
  80. package/.docs/reference/processors/batch-parts-processor.md +1 -1
  81. package/.docs/reference/processors/classifier-processor.md +6 -6
  82. package/.docs/reference/processors/message-history-processor.md +3 -2
  83. package/.docs/reference/processors/model-selection-processor.md +11 -11
  84. package/.docs/reference/processors/response-cache.md +1 -1
  85. package/.docs/reference/processors/semantic-recall-processor.md +2 -3
  86. package/.docs/reference/processors/unicode-normalizer.md +1 -1
  87. package/.docs/reference/processors/working-memory-processor.md +3 -2
  88. package/.docs/reference/project-structure.md +11 -13
  89. package/.docs/reference/pubsub/unix-socket-pubsub.md +6 -2
  90. package/.docs/reference/rag/chunk.md +2 -2
  91. package/.docs/reference/rag/chunking-and-embedding.md +1 -1
  92. package/.docs/reference/rag/database-config.md +14 -2
  93. package/.docs/reference/rag/document.md +7 -2
  94. package/.docs/reference/rag/extract-params.md +5 -5
  95. package/.docs/reference/rag/graph-rag-guide.md +1 -1
  96. package/.docs/reference/rag/metadata-filters.md +1 -1
  97. package/.docs/reference/rag/rerank.md +5 -4
  98. package/.docs/reference/rag/rerankWithScorer.md +2 -2
  99. package/.docs/reference/rag/retrieval.md +7 -5
  100. package/.docs/reference/rag/vector-databases.md +1 -1
  101. package/.docs/reference/server/mastra-server.md +2 -2
  102. package/.docs/reference/streaming/agents/stream.md +1 -1
  103. package/.docs/reference/workflows/run-methods/restart.md +6 -0
  104. package/.docs/reference/workflows/step.md +1 -1
  105. package/package.json +6 -6
@@ -4,15 +4,15 @@
4
4
 
5
5
  # Classifier
6
6
 
7
- `Classifier` asks an evaluation model one or more fixed-domain questions about shared state. Use it when your application needs a typed choice, numeric score, or boolean probability without parsing generated text.
7
+ `Classifier` asks a decision model one or more fixed-domain questions about shared state. Use it when your application needs a typed choice, numeric score, or boolean probability without parsing generated text.
8
8
 
9
9
  A classifier only returns evaluation results. Your application decides how to use them, for example by selecting a route or comparing a probability with a safety threshold.
10
10
 
11
- `Classifier` requires an evaluation model (`EvaluationModelV4`, optionally wrapped in `MastraEvaluationModel`). It doesn't accept a `'provider/model'` string, a bare model ID, or a language model.
11
+ `Classifier` requires a decision model (`DecisionModelV4`, or the deprecated `EvaluationModelV4`, optionally wrapped in `MastraDecisionModel`). It doesn't accept a `'provider/model'` string, a bare model ID, or a language model.
12
12
 
13
13
  ## Basic usage
14
14
 
15
- This example uses the [TypeSafe AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/typesafe-ai). Make sure to set the `TYPESAFE_AI_API_KEY` environment variable. To use another provider, see [Evaluation models](#evaluation-models).
15
+ This example uses the [TypeSafe AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/typesafe-ai). Make sure to set the `TYPESAFE_AI_API_KEY` environment variable. To use another provider, see [Decision models](#decision-models).
16
16
 
17
17
  Install the provider package:
18
18
 
@@ -48,7 +48,7 @@ import { typeSafeAi } from '@ai-sdk/typesafe-ai'
48
48
 
49
49
  const classifier = new Classifier({
50
50
  id: 'request-classifier',
51
- model: typeSafeAi.evaluationModel('jev-latest'),
51
+ model: typeSafeAi.decisionModel('jev-latest'),
52
52
  questions: {
53
53
  route: {
54
54
  type: 'choice',
@@ -65,7 +65,7 @@ const classifier = new Classifier({
65
65
  },
66
66
  })
67
67
 
68
- const result = await classifier.evaluate({
68
+ const result = await classifier.decide({
69
69
  state: {
70
70
  subject: 'Duplicate charge',
71
71
  message: 'I was charged twice for the same subscription.',
@@ -76,11 +76,11 @@ result.answers.route.choice // 'billing' | 'support'
76
76
  result.answers.urgent.probability // P(true), from 0 to 1
77
77
  ```
78
78
 
79
- The evaluation model receives every question with the same `state`. When a question omits `instructions`, its question name is used instead.
79
+ The decision model receives every question with the same `state`. When a question omits `instructions`, its question name is used instead.
80
80
 
81
- ## Evaluation models
81
+ ## Decision models
82
82
 
83
- The examples on this page follow the [TypeSafe AI provider setup](https://ai-sdk.dev/providers/ai-sdk-providers/typesafe-ai#setup) in the AI SDK documentation. Other AI SDK providers, including OpenAI, Anthropic, and Google, also expose an `evaluationModel()` factory. See [provider models](https://ai-sdk.dev/docs/ai-sdk-core/evaluation#provider-models) for the full list, supported model IDs, and how each provider answers questions.
83
+ The examples on this page follow the [TypeSafe AI provider setup](https://ai-sdk.dev/providers/ai-sdk-providers/typesafe-ai#setup) in the AI SDK documentation. Other AI SDK providers, including OpenAI, Anthropic, and Google, also expose a `decisionModel()` factory (previously `evaluationModel()`, still available as a deprecated alias). Mastra calls `doDecide()` and falls back to `doEvaluate()` for older providers. See [provider models](https://ai-sdk.dev/docs/ai-sdk-core/decisions#provider-models) for the full list, supported model IDs, and how each provider answers questions.
84
84
 
85
85
  Each provider exports a ready-made instance, which is what the examples on this page use. See [AI SDK providers](https://ai-sdk.dev/providers/ai-sdk-providers) for the others.
86
86
 
@@ -89,7 +89,7 @@ Pass a key explicitly by calling the factory instead:
89
89
  ```typescript
90
90
  import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
91
91
 
92
- const model = createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).evaluationModel(
92
+ const model = createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).decisionModel(
93
93
  'jev-latest',
94
94
  )
95
95
  ```
@@ -102,11 +102,11 @@ new Classifier(options)
102
102
 
103
103
  **id** (`string`): A non-empty identifier used in tracing and error context.
104
104
 
105
- **model** (`EvaluationModelV4 | MastraEvaluationModel`): An AI SDK evaluation model or a Mastra evaluation model wrapper. The model declares which question types it supports.
105
+ **model** (`DecisionModelV4 | EvaluationModelV4 | MastraDecisionModel`): An AI SDK decision model or a Mastra decision model wrapper. The model declares which question types it supports.
106
106
 
107
- **questions** (`ClassifierQuestions`): A non-empty record of named questions. Omit this field to supply the questions to each evaluate() call instead.
107
+ **questions** (`ClassifierQuestions`): A non-empty record of named questions. Omit this field to supply the questions to each decide() call instead.
108
108
 
109
- Constructor questions and per-call questions are mutually exclusive. If the constructor includes `questions`, `evaluate()` rejects a `questions` option at compile time. If the constructor omits them, every `evaluate()` call must provide them. A processor, workflow step, or scorer classifies through a configured classifier, which requires constructor questions.
109
+ Constructor questions and per-call questions are mutually exclusive. If the constructor includes `questions`, `decide()` rejects a `questions` option at compile time. If the constructor omits them, every `decide()` call must provide them. A processor, workflow step, or scorer classifies through a configured classifier, which requires constructor questions.
110
110
 
111
111
  ## Question types
112
112
 
@@ -210,9 +210,11 @@ These rules keep a question answerable from the state:
210
210
 
211
211
  To check a question, change one field of the state and confirm one answer moves.
212
212
 
213
- ## `evaluate(options)`
213
+ ## `decide(options)`
214
214
 
215
- Evaluates all questions against the supplied state.
215
+ Answers all questions against the supplied state.
216
+
217
+ `evaluate(options)` is a deprecated alias for `decide(options)` and will be removed in a future release.
216
218
 
217
219
  **state** (`ClassifierState`): The JSON-compatible state evaluated by every question.
218
220
 
@@ -220,7 +222,7 @@ Evaluates all questions against the supplied state.
220
222
 
221
223
  **abortSignal** (`AbortSignal`): Cancels the active provider request and any wait between retry attempts.
222
224
 
223
- **providerOptions** (`SharedV4ProviderOptions`): Provider-specific options forwarded unchanged to the evaluation model.
225
+ **providerOptions** (`SharedV4ProviderOptions`): Provider-specific options forwarded unchanged to the decision model.
224
226
 
225
227
  **maxRetries** (`number`): The number of retries allowed after retryable provider API errors. Must be a non-negative integer. (Default: `2`)
226
228
 
@@ -234,10 +236,10 @@ import { typeSafeAi } from '@ai-sdk/typesafe-ai'
234
236
 
235
237
  const classifier = new Classifier({
236
238
  id: 'dynamic-classifier',
237
- model: typeSafeAi.evaluationModel('jev-latest'),
239
+ model: typeSafeAi.decisionModel('jev-latest'),
238
240
  })
239
241
 
240
- const result = await classifier.evaluate({
242
+ const result = await classifier.decide({
241
243
  state: { response: 'Your refund has been processed.' },
242
244
  questions: {
243
245
  tone: {
@@ -255,17 +257,17 @@ result.answers.tone.choice // 'empathetic' | 'neutral'
255
257
 
256
258
  ## Return value
257
259
 
258
- `evaluate()` returns `Promise<ClassifierResult<QUESTIONS>>`.
260
+ `decide()` returns `Promise<ClassifierResult<QUESTIONS>>`.
259
261
 
260
262
  **answers** (`ClassifierAnswers<QUESTIONS>`): One typed answer for each configured question.
261
263
 
262
264
  **usage** (`ClassifierUsage`): Token usage reported by the provider. totalTokens is the sum of inputTokens and outputTokens, with missing values counted as zero.
263
265
 
264
- **warnings** (`SharedV4Warning[]`): Warnings returned by the evaluation model.
266
+ **warnings** (`SharedV4Warning[]`): Warnings returned by the decision model.
265
267
 
266
268
  **rounding** (`{ probabilityDecimals?: number; scoreDecimals?: number }`): The precision the provider used for probabilities and scores.
267
269
 
268
- **providerMetadata** (`SharedV4ProviderMetadata`): Provider-specific metadata returned by the evaluation model.
270
+ **providerMetadata** (`SharedV4ProviderMetadata`): Provider-specific metadata returned by the decision model.
269
271
 
270
272
  **response** (`ClassifierResult["response"]`): Provider response metadata. Mastra supplies the current time and configured model ID when the provider omits them.
271
273
 
@@ -295,33 +297,29 @@ Input validation includes:
295
297
  - `state`, instructions, and criteria must be JSON-compatible.
296
298
  - The question record and choice criteria must not be empty.
297
299
  - Score criteria must contain at least two defined levels.
298
- - Every question type must be supported by the evaluation model.
300
+ - Every question type must be supported by the decision model.
299
301
  - `maxRetries` must be a non-negative integer.
300
302
 
301
303
  Provider responses must contain exactly one matching answer for each question. The classifier also rejects invalid choices, out-of-range scores or probabilities, incomplete probability distributions, non-finite token counts, malformed warnings, and invalid response timestamps.
302
304
 
303
- Only retryable AI SDK `APICallError` failures are retried. Other errors reject immediately. When all retries fail, `evaluate()` rethrows the last provider error. Aborting the supplied signal rejects with the signal's abort reason, including when cancellation occurs during retry backoff.
305
+ Only retryable AI SDK `APICallError` failures are retried. Other errors reject immediately. When all retries fail, `decide()` rethrows the last provider error. Aborting the supplied signal rejects with the signal's abort reason, including when cancellation occurs during retry backoff.
304
306
 
305
307
  ## Observability
306
308
 
307
- When an active Mastra span exists, `evaluate()` creates a `CLASSIFIER_EVALUATION` child span. It records the classifier and model identifiers, provider, question count and types, attempts, duration, and token usage.
309
+ When an active Mastra span exists, `decide()` creates a `CLASSIFIER_EVALUATION` child span. It records the classifier and model identifiers, provider, question count and types, attempts, duration, and token usage.
308
310
 
309
311
  The span doesn't include the evaluated state, question instructions, criteria, answers, probabilities, provider response body, or generated text.
310
312
 
311
313
  ## Customize provider responses
312
314
 
313
- `Classifier` automatically wraps a raw AI SDK evaluation model in `MastraEvaluationModel`. Pass your own wrapper when provider output needs normalization before validation.
315
+ `Classifier` automatically wraps a raw AI SDK decision model in `MastraDecisionModel`. Pass your own wrapper when provider output needs normalization before validation.
314
316
 
315
317
  ```typescript
316
- import {
317
- Classifier,
318
- MastraEvaluationModel,
319
- type EvaluationModelResult,
320
- } from '@mastra/core/classifier'
318
+ import { Classifier, MastraDecisionModel, type DecisionModelResult } from '@mastra/core/classifier'
321
319
  import { typeSafeAi } from '@ai-sdk/typesafe-ai'
322
320
 
323
- class NormalizedEvaluationModel extends MastraEvaluationModel {
324
- protected override transformResult(result: EvaluationModelResult): EvaluationModelResult {
321
+ class NormalizedDecisionModel extends MastraDecisionModel {
322
+ protected override transformResult(result: DecisionModelResult): DecisionModelResult {
325
323
  return {
326
324
  ...result,
327
325
  answers: normalizeAnswers(result.answers),
@@ -331,14 +329,16 @@ class NormalizedEvaluationModel extends MastraEvaluationModel {
331
329
 
332
330
  const classifier = new Classifier({
333
331
  id: 'normalized-classifier',
334
- model: new NormalizedEvaluationModel(
335
- typeSafeAi.evaluationModel('jev-latest'),
332
+ model: new NormalizedDecisionModel(
333
+ typeSafeAi.decisionModel('jev-latest'),
336
334
  ),
337
335
  })
338
336
  ```
339
337
 
340
338
  `transformResult()` runs after the provider call and before `Classifier` validates the response.
341
339
 
340
+ `MastraEvaluationModel` and `EvaluationModelResult` are deprecated aliases for `MastraDecisionModel` and `DecisionModelResult` and will be removed in a future release.
341
+
342
342
  ## Registering classifiers
343
343
 
344
344
  Register classifiers on the `Mastra` instance to share them across your application and retrieve them by key or ID. When a registered classifier is evaluated without an active trace, it starts a root `CLASSIFIER_EVALUATION` span through the `Mastra` instance's configured observability provider.
@@ -350,7 +350,7 @@ import { typeSafeAi } from '@ai-sdk/typesafe-ai'
350
350
 
351
351
  export const safety = new Classifier({
352
352
  id: 'safety',
353
- model: typeSafeAi.evaluationModel('jev-latest'),
353
+ model: typeSafeAi.decisionModel('jev-latest'),
354
354
  questions: {
355
355
  unsafe: { type: 'boolean' },
356
356
  },
@@ -384,7 +384,7 @@ const workflow = createWorkflow({
384
384
 
385
385
  A string reference resolves through the `Mastra` instance at execution time. The ID doesn't carry the question types, so supply them with a type argument to keep the answers typed. In Studio, the workflow graph shows the step as a classifier node.
386
386
 
387
- The workflow adapter doesn't include warnings, raw provider responses, headers, or provider metadata in step output. Use direct `evaluate()` calls or classifier observability when you need that provider-level detail.
387
+ The workflow adapter doesn't include warnings, raw provider responses, headers, or provider metadata in step output. Use direct `decide()` calls or classifier observability when you need that provider-level detail.
388
388
 
389
389
  ## Related
390
390
 
@@ -204,7 +204,7 @@ const workingMemory = await mastraClient.getWorkingMemory({
204
204
 
205
205
  The response includes:
206
206
 
207
- - `workingMemory`: The current working memory content (string or null)
207
+ - `workingMemory`: The current working memory content (a string or `null`). When using a JSON or schema-based working memory template, the content is a JSON-encoded string
208
208
  - `source`: Whether the memory is from `"thread"` or `"resource"` scope
209
209
  - `workingMemoryTemplate`: The template used for working memory (if configured)
210
210
  - `threadExists`: Whether the thread exists
@@ -230,6 +230,18 @@ await mastraClient.updateWorkingMemory({
230
230
 
231
231
  For resource-scoped working memory, you must provide the `resourceId` parameter. It allows the memory to persist across all conversation threads for that user.
232
232
 
233
+ By default the call replaces the whole record. For schema-based, resource-scoped working memory, pass `mode: 'merge'` with a JSON object string to deep-merge only the provided fields atomically. The server returns `400` if the storage adapter doesn't support atomic merges (currently only `@mastra/pg` does).
234
+
235
+ ```typescript
236
+ await mastraClient.updateWorkingMemory({
237
+ agentId: 'agent-1',
238
+ threadId: 'thread-1',
239
+ resourceId: 'user-123',
240
+ workingMemory: JSON.stringify({ city: 'Berlin' }),
241
+ mode: 'merge',
242
+ })
243
+ ```
244
+
233
245
  ### Get Memory Status
234
246
 
235
247
  Check the status of the memory system:
@@ -366,7 +366,7 @@ export const mastra = new Mastra({
366
366
 
367
367
  **Type:** `Record<string, Classifier>`
368
368
 
369
- Classifiers ask evaluation models fixed-option questions about application state and return typed answers. Register reusable classifiers here to retrieve them with `getClassifier()` or `getClassifierById()`. When a registered classifier is evaluated without an active trace, it starts a root `CLASSIFIER_EVALUATION` span through the `Mastra` instance's configured observability provider.
369
+ Classifiers ask decision models fixed-option questions about application state and return typed answers. Register reusable classifiers here to retrieve them with `getClassifier()` or `getClassifierById()`. When a registered classifier is evaluated without an active trace, it starts a root `CLASSIFIER_EVALUATION` span through the `Mastra` instance's configured observability provider.
370
370
 
371
371
  Visit the [Classifier reference](https://mastra.ai/reference/classifier/classifier) to learn more.
372
372
 
@@ -377,7 +377,7 @@ import { typeSafeAi } from '@ai-sdk/typesafe-ai'
377
377
 
378
378
  const safety = new Classifier({
379
379
  id: 'safety',
380
- model: typeSafeAi.evaluationModel('jev-latest'),
380
+ model: typeSafeAi.decisionModel('jev-latest'),
381
381
  questions: {
382
382
  unsafe: {
383
383
  type: 'boolean',
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Provider toolsets
6
6
 
7
- This page documents generated toolsets for 21 providers (877 tools in this version of `@mastra/connect`). It isn't an exhaustive list of providers registered in the SDK or available in the platform catalog. [`tools()`](https://mastra.ai/reference/connect/tools) exposes a provider's toolset when the project has an active connection for its provider ID.
7
+ This page documents generated toolsets for 21 providers (883 tools in this version of `@mastra/connect`). It isn't an exhaustive list of providers registered in the SDK or available in the platform catalog. [`tools()`](https://mastra.ai/reference/connect/tools) exposes a provider's toolset when the project has an active connection for its provider ID.
8
8
 
9
9
  Tool keys are stable identifiers of the form `<provider>_<action>` and are the values accepted by `allowTools` and `disallowTools`. Toolsets are versioned with the package: the exact list depends on the installed `@mastra/connect` version, and this page reflects the version it was generated from.
10
10
 
@@ -13,15 +13,15 @@ MCP providers (Attio, Canva, Clay, Neon, Render, Robinhood, and Sanity) serve th
13
13
  | Provider | Provider ID | Tools |
14
14
  | --------------------------------------------------------------------------------------------------------- | ----------------- | ----- |
15
15
  | ![](https://cdn.simpleicons.org/clerk?viewbox=auto\&size=28) [Clerk](#clerk) | `clerk` | 42 |
16
- | ![](https://cdn.simpleicons.org/discord?viewbox=auto\&size=28) [Discord](#discord) | `discord` | 33 |
16
+ | ![](https://cdn.simpleicons.org/discord?viewbox=auto\&size=28) [Discord](#discord) | `discord` | 34 |
17
17
  | ![](https://app.nango.dev/images/template-logos/fireflies.svg) [Fireflies.ai](#firefliesai) | `fireflies` | 27 |
18
- | ![](https://cdn.simpleicons.org/github?viewbox=auto\&size=28) [GitHub](#github) | `github` | 46 |
18
+ | ![](https://cdn.simpleicons.org/github?viewbox=auto\&size=28) [GitHub](#github) | `github` | 49 |
19
19
  | ![](https://cdn.simpleicons.org/googlecalendar?viewbox=auto\&size=28) [Google Calendar](#google-calendar) | `google-calendar` | 43 |
20
20
  | ![](https://cdn.simpleicons.org/googledocs?viewbox=auto\&size=28) [Google Docs](#google-docs) | `google-docs` | 37 |
21
21
  | ![](https://cdn.simpleicons.org/googledrive?viewbox=auto\&size=28) [Google Drive](#google-drive) | `google-drive` | 30 |
22
22
  | ![](https://cdn.simpleicons.org/gmail?viewbox=auto\&size=28) [Gmail](#gmail) | `google-mail` | 52 |
23
23
  | ![](https://cdn.simpleicons.org/googlesheets?viewbox=auto\&size=28) [Google Sheets](#google-sheets) | `google-sheet` | 18 |
24
- | ![](https://cdn.simpleicons.org/hubspot?viewbox=auto\&size=28) [HubSpot](#hubspot) | `hubspot` | 49 |
24
+ | ![](https://cdn.simpleicons.org/hubspot?viewbox=auto\&size=28) [HubSpot](#hubspot) | `hubspot` | 50 |
25
25
  | ![](https://app.nango.dev/images/template-logos/incident-io.svg) [incident.io](#incidentio) | `incident-io` | 66 |
26
26
  | ![](https://cdn.simpleicons.org/jira?viewbox=auto\&size=28) [Jira](#jira) | `jira` | 38 |
27
27
  | ![](https://cdn.simpleicons.org/linear?viewbox=auto\&size=28) [Linear](#linear) | `linear` | 46 |
@@ -29,7 +29,7 @@ MCP providers (Attio, Canva, Clay, Neon, Render, Robinhood, and Sanity) serve th
29
29
  | ![](https://svgl.app/library/openai.svg) [OpenAI](#openai) | `openai` | 26 |
30
30
  | ![](https://cdn.simpleicons.org/posthog?viewbox=auto\&size=28) [PostHog](#posthog) | `posthog` | 67 |
31
31
  | ![](https://cdn.simpleicons.org/resend?viewbox=auto\&size=28) [Resend](#resend) | `resend` | 80 |
32
- | ![](https://svgl.app/library/slack.svg) [Slack](#slack) | `slack` | 51 |
32
+ | ![](https://svgl.app/library/slack.svg) [Slack](#slack) | `slack` | 52 |
33
33
  | ![](https://cdn.simpleicons.org/snowflake?viewbox=auto\&size=28) [Snowflake](#snowflake) | `snowflake` | 15 |
34
34
  | ![](https://cdn.simpleicons.org/supabase?viewbox=auto\&size=28) [Supabase](#supabase) | `supabase` | 27 |
35
35
  | ![](https://svgl.app/library/workos.svg) [WorkOS](#workos) | `workos` | 40 |
@@ -85,7 +85,7 @@ Provider ID: `clerk` · 42 tools
85
85
 
86
86
  ## Discord
87
87
 
88
- Provider ID: `discord` · 33 tools
88
+ Provider ID: `discord` · 34 tools
89
89
 
90
90
  | Tool | Description |
91
91
  | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
@@ -116,6 +116,7 @@ Provider ID: `discord` · 33 tools
116
116
  | `discord_list_roles` | List roles from Discord. |
117
117
  | `discord_list_webhooks` | List webhooks from a Discord channel |
118
118
  | `discord_remove_guild_member_role` | Remove a role from a guild member |
119
+ | `discord_search_members` | Search guild members whose username or nickname starts with the query, instead of paging the full member list. |
119
120
  | `discord_update_channel` | Update a Discord channel. |
120
121
  | `discord_update_guild` | Update a guild in Discord |
121
122
  | `discord_update_guild_member` | Update a guild member in Discord |
@@ -159,56 +160,59 @@ Provider ID: `fireflies` · 27 tools
159
160
 
160
161
  ## GitHub
161
162
 
162
- Provider ID: `github` · 46 tools
163
-
164
- | Tool | Description |
165
- | ----------------------------------- | ------------------------------------------------------------------------------------------------------- |
166
- | `github_add_issue_comment` | Create a new comment on an issue or pull request discussion thread |
167
- | `github_create_branch` | Create a branch ref from an existing commit SHA |
168
- | `github_create_issue` | Open a new GitHub issue in a repository. |
169
- | `github_create_label` | Create a repository label with name, color, and description |
170
- | `github_create_or_update_file` | Create a new file or update existing repository contents in a branch. |
171
- | `github_create_pull_request` | Open a pull request from one branch into another. |
172
- | `github_create_release` | Publish a Git tag release for a repository. |
173
- | `github_create_review_request` | Request reviewers or teams on an open pull request |
174
- | `github_create_tag_object` | Create an annotated Git tag object for a commit or object SHA. |
175
- | `github_delete_file` | Delete a file from a repository branch. |
176
- | `github_delete_label` | Delete a repository label by name |
177
- | `github_delete_release` | Delete a release by release ID. |
178
- | `github_get_branch` | Retrieve branch metadata and protection status. |
179
- | `github_get_commit` | Retrieve a commit with changed files and stats |
180
- | `github_get_file_contents` | Retrieve a file or directory entry from repository contents. |
181
- | `github_get_issue` | Fetch a single issue or pull request issue record by number. |
182
- | `github_get_label` | Retrieve a single repository label by name. |
183
- | `github_get_pull_request` | Fetch a single pull request by number. |
184
- | `github_get_release` | Retrieve a single release by release ID. |
185
- | `github_get_repository` | Retrieve repository metadata, visibility, default branch, and owner info. |
186
- | `github_get_review` | Retrieve a pull request review by review ID. |
187
- | `github_get_tag_ref` | Retrieve a tag ref or branch-style Git reference |
188
- | `github_get_tree` | Get a git tree for a repository, optionally recursively, listing the files and directories it contains. |
189
- | `github_get_workflow` | Retrieve metadata for a GitHub Actions workflow. |
190
- | `github_get_workflow_run` | Retrieve a workflow run with status and conclusion details. |
191
- | `github_list_branches` | List branches for a repository with optional pagination and protected filtering. |
192
- | `github_list_commits` | List commits for a repository or branch with common filters |
193
- | `github_list_issue_comments` | List comments attached to an issue or pull request thread |
194
- | `github_list_issues` | List repository issues with state, assignee, label, and pagination filters. |
195
- | `github_list_labels` | List repository labels with pagination |
196
- | `github_list_pull_request_files` | List files changed by a pull request |
197
- | `github_list_pull_request_reviews` | List reviews submitted on a pull request |
198
- | `github_list_pull_requests` | List pull requests for a repository with state and branch filters |
199
- | `github_list_release_assets` | List assets uploaded to a repository release. |
200
- | `github_list_releases` | List published and draft releases for a repository. |
201
- | `github_list_tags` | List tags for a repository with optional pagination. |
202
- | `github_list_workflow_jobs` | List jobs in a workflow run attempt |
203
- | `github_list_workflow_runs` | List workflow runs for a repository or a specific workflow |
204
- | `github_list_workflows` | List GitHub Actions workflows configured in a repository. |
205
- | `github_merge_pull_request` | Merge an open pull request using the selected merge method. |
206
- | `github_rerun_workflow_run` | Rerun a completed or failed workflow run. |
207
- | `github_submit_pull_request_review` | Create a pull request review with approval, comment, or change request. |
208
- | `github_update_issue` | Edit an issue's title, body, state, assignees, labels, or milestone. |
209
- | `github_update_label` | Update a repository label's name, color, or description. |
210
- | `github_update_pull_request` | Edit a pull request's title, body, base branch, or state. |
211
- | `github_update_release` | Edit release metadata such as name, notes, or draft state. |
163
+ Provider ID: `github` · 49 tools
164
+
165
+ | Tool | Description |
166
+ | ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
167
+ | `github_add_issue_comment` | Create a new comment on an issue or pull request discussion thread |
168
+ | `github_create_branch` | Create a branch ref from an existing commit SHA |
169
+ | `github_create_issue` | Open a new GitHub issue in a repository. |
170
+ | `github_create_label` | Create a repository label with name, color, and description |
171
+ | `github_create_or_update_file` | Create a new file or update existing repository contents in a branch. |
172
+ | `github_create_pull_request` | Open a pull request from one branch into another. |
173
+ | `github_create_release` | Publish a Git tag release for a repository. |
174
+ | `github_create_review_request` | Request reviewers or teams on an open pull request |
175
+ | `github_create_tag_object` | Create an annotated Git tag object for a commit or object SHA. |
176
+ | `github_delete_file` | Delete a file from a repository branch. |
177
+ | `github_delete_label` | Delete a repository label by name |
178
+ | `github_delete_release` | Delete a release by release ID. |
179
+ | `github_get_branch` | Retrieve branch metadata and protection status. |
180
+ | `github_get_commit` | Retrieve a commit with changed files and stats |
181
+ | `github_get_file_contents` | Retrieve a file or directory entry from repository contents. |
182
+ | `github_get_issue` | Fetch a single issue or pull request issue record by number. |
183
+ | `github_get_label` | Retrieve a single repository label by name. |
184
+ | `github_get_pull_request` | Fetch a single pull request by number. |
185
+ | `github_get_release` | Retrieve a single release by release ID. |
186
+ | `github_get_repository` | Retrieve repository metadata, visibility, default branch, and owner info. |
187
+ | `github_get_review` | Retrieve a pull request review by review ID. |
188
+ | `github_get_tag_ref` | Retrieve a tag ref or branch-style Git reference |
189
+ | `github_get_tree` | Get a git tree for a repository, optionally recursively, listing the files and directories it contains. |
190
+ | `github_get_workflow` | Retrieve metadata for a GitHub Actions workflow. |
191
+ | `github_get_workflow_run` | Retrieve a workflow run with status and conclusion details. |
192
+ | `github_list_branches` | List branches for a repository with optional pagination and protected filtering. |
193
+ | `github_list_commits` | List commits for a repository or branch with common filters |
194
+ | `github_list_issue_comments` | List comments attached to an issue or pull request thread |
195
+ | `github_list_issues` | List repository issues with state, assignee, label, and pagination filters. |
196
+ | `github_list_labels` | List repository labels with pagination |
197
+ | `github_list_pull_request_files` | List files changed by a pull request |
198
+ | `github_list_pull_request_reviews` | List reviews submitted on a pull request |
199
+ | `github_list_pull_requests` | List pull requests for a repository with state and branch filters |
200
+ | `github_list_release_assets` | List assets uploaded to a repository release. |
201
+ | `github_list_releases` | List published and draft releases for a repository. |
202
+ | `github_list_tags` | List tags for a repository with optional pagination. |
203
+ | `github_list_workflow_jobs` | List jobs in a workflow run attempt |
204
+ | `github_list_workflow_runs` | List workflow runs for a repository or a specific workflow |
205
+ | `github_list_workflows` | List GitHub Actions workflows configured in a repository. |
206
+ | `github_merge_pull_request` | Merge an open pull request using the selected merge method. |
207
+ | `github_rerun_workflow_run` | Rerun a completed or failed workflow run. |
208
+ | `github_search_code` | Search file contents across GitHub repositories. The query must be scoped with a repo:, org:, or user: qualifier. |
209
+ | `github_search_issues` | Search issues and pull requests across GitHub with the search API instead of paging repository listings. Supports the full GitHub search query syntax. |
210
+ | `github_search_repositories` | Search repositories across GitHub by name, organization, language, or topic instead of needing to know the exact owner/repo up front. |
211
+ | `github_submit_pull_request_review` | Create a pull request review with approval, comment, or change request. |
212
+ | `github_update_issue` | Edit an issue's title, body, state, assignees, labels, or milestone. |
213
+ | `github_update_label` | Update a repository label's name, color, or description. |
214
+ | `github_update_pull_request` | Edit a pull request's title, body, base branch, or state. |
215
+ | `github_update_release` | Edit release metadata such as name, notes, or draft state. |
212
216
 
213
217
  ## Google Calendar
214
218
 
@@ -427,7 +431,7 @@ Provider ID: `google-sheet` · 18 tools
427
431
 
428
432
  ## HubSpot
429
433
 
430
- Provider ID: `hubspot` · 49 tools
434
+ Provider ID: `hubspot` · 50 tools
431
435
 
432
436
  | Tool | Description |
433
437
  | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -470,6 +474,7 @@ Provider ID: `hubspot` · 49 tools
470
474
  | `hubspot_list_marketing_emails` | List marketing emails |
471
475
  | `hubspot_list_tickets` | List support tickets |
472
476
  | `hubspot_search_companies` | Search companies by criteria |
477
+ | `hubspot_search_contacts` | Search contacts by free-text query or property filters instead of paging the full contact list. |
473
478
  | `hubspot_search_deals` | Search deals by criteria |
474
479
  | `hubspot_search_tickets` | Search tickets by criteria |
475
480
  | `hubspot_submit_form` | Submit a HubSpot form on behalf of a visitor, using the authenticated form submission endpoint. |
@@ -899,61 +904,62 @@ Provider ID: `resend` · 80 tools
899
904
 
900
905
  ## Slack
901
906
 
902
- Provider ID: `slack` · 51 tools
903
-
904
- | Tool | Description |
905
- | -------------------------------- | ------------------------------------------------------------------------------------------------------ |
906
- | `slack_add_reaction` | Add an emoji reaction to a specific Slack message |
907
- | `slack_archive_channel` | Archive a Slack channel |
908
- | `slack_create_channel` | Create a new public or private Slack channel by name; does not create DMs or other conversation types. |
909
- | `slack_create_reminder` | Create a reminder for a user |
910
- | `slack_delete_message` | Delete a message from a channel |
911
- | `slack_delete_scheduled_message` | Cancel a scheduled message |
912
- | `slack_get_channel_info` | Retrieve conversation details including topic, purpose, and membership state |
913
- | `slack_get_channel_members` | List members in a Slack channel |
914
- | `slack_get_conversation_history` | Fetch paginated message history for a conversation within optional time bounds |
915
- | `slack_get_dnd_info` | Get a user's Do Not Disturb status and next scheduled DND window |
916
- | `slack_get_message_permalink` | Get a permanent URL for a message |
917
- | `slack_get_reactions` | Retrieve all reactions attached to a specific message |
918
- | `slack_get_team_info` | Retrieve workspace details such as name, domain, and icon |
919
- | `slack_get_thread_replies` | Fetch paginated thread replies and parent message for a conversation thread |
920
- | `slack_get_upload_url` | Generate an external upload URL and file ID for Slack uploads |
921
- | `slack_get_user_info` | Retrieve a user's account details, including profile and avatar fields |
922
- | `slack_get_user_presence` | Check if a user is online or away |
923
- | `slack_get_user_profile` | Retrieve a user's detailed profile, status, and custom fields |
924
- | `slack_invite_shared` | Invite external people to a channel via Slack Connect (shared channels), by email or Slack user ID. |
925
- | `slack_invite_to_channel` | Invite users to a Slack channel |
926
- | `slack_join_channel` | Join a public or private channel and return its conversation details |
927
- | `slack_leave_channel` | Leave a channel |
928
- | `slack_list_channels` | List Slack conversations with optional type filters and cursor pagination. |
929
- | `slack_list_custom_emoji` | List workspace custom emoji mappings, including alias-based emoji entries |
930
- | `slack_list_files` | List files shared in the workspace |
931
- | `slack_list_pins` | List all items pinned in a specific channel |
932
- | `slack_list_scheduled_messages` | List pending scheduled messages |
933
- | `slack_list_user_group_members` | List member user IDs for a specific Slack user group |
934
- | `slack_list_user_groups` | List workspace user groups with optional disabled and membership counts |
935
- | `slack_list_user_reactions` | List items the user reacted to with cursor-based pagination |
936
- | `slack_list_users` | List all users in the workspace |
937
- | `slack_lookup_user_by_email` | Look up a user by email address |
938
- | `slack_mark_as_read` | Move a conversation's read cursor to a specific message timestamp |
939
- | `slack_open_dm` | Open a direct or multi-person DM for specified users |
940
- | `slack_pin_message` | Pin a specific message in a channel |
941
- | `slack_post_message` | Post a message to a channel, DM, or thread |
942
- | `slack_remove_from_channel` | Remove a user from a channel |
943
- | `slack_remove_reaction` | Remove an emoji reaction from a specific message |
944
- | `slack_rename_channel` | Rename a Slack channel |
945
- | `slack_schedule_message` | Schedule a Slack message to a channel or thread, subject to Slack's 120-day scheduling limit. |
946
- | `slack_search_files` | Search workspace files with pagination |
947
- | `slack_search_messages` | Search for messages matching a query |
948
- | `slack_send_ephemeral_message` | Send a message visible only to one user in a channel |
949
- | `slack_send_message` | Send a message to a channel |
950
- | `slack_set_channel_purpose` | Update a channel's purpose text for a conversation |
951
- | `slack_set_channel_topic` | Set the topic of a channel |
952
- | `slack_set_status` | Set a user's status |
953
- | `slack_set_user_presence` | Set a user's presence to online or away |
954
- | `slack_unarchive_channel` | Restore an archived conversation so members can use it again |
955
- | `slack_unpin_message` | Remove a pinned message from a channel |
956
- | `slack_update_message` | Edit an existing message in a Slack channel |
907
+ Provider ID: `slack` · 52 tools
908
+
909
+ | Tool | Description |
910
+ | -------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
911
+ | `slack_add_reaction` | Add an emoji reaction to a specific Slack message |
912
+ | `slack_archive_channel` | Archive a Slack channel |
913
+ | `slack_create_channel` | Create a new public or private Slack channel by name; does not create DMs or other conversation types. |
914
+ | `slack_create_reminder` | Create a reminder for a user |
915
+ | `slack_delete_message` | Delete a message from a channel |
916
+ | `slack_delete_scheduled_message` | Cancel a scheduled message |
917
+ | `slack_get_channel_info` | Retrieve conversation details including topic, purpose, and membership state |
918
+ | `slack_get_channel_members` | List members in a Slack channel |
919
+ | `slack_get_conversation_history` | Fetch paginated message history for a conversation within optional time bounds |
920
+ | `slack_get_dnd_info` | Get a user's Do Not Disturb status and next scheduled DND window |
921
+ | `slack_get_message_permalink` | Get a permanent URL for a message |
922
+ | `slack_get_reactions` | Retrieve all reactions attached to a specific message |
923
+ | `slack_get_team_info` | Retrieve workspace details such as name, domain, and icon |
924
+ | `slack_get_thread_replies` | Fetch paginated thread replies and parent message for a conversation thread |
925
+ | `slack_get_upload_url` | Generate an external upload URL and file ID for Slack uploads |
926
+ | `slack_get_user_info` | Retrieve a user's account details, including profile and avatar fields |
927
+ | `slack_get_user_presence` | Check if a user is online or away |
928
+ | `slack_get_user_profile` | Retrieve a user's detailed profile, status, and custom fields |
929
+ | `slack_invite_shared` | Invite external people to a channel via Slack Connect (shared channels), by email or Slack user ID. |
930
+ | `slack_invite_to_channel` | Invite users to a Slack channel |
931
+ | `slack_join_channel` | Join a public or private channel and return its conversation details |
932
+ | `slack_leave_channel` | Leave a channel |
933
+ | `slack_list_channels` | List Slack conversations with optional type filters and cursor pagination. |
934
+ | `slack_list_custom_emoji` | List workspace custom emoji mappings, including alias-based emoji entries |
935
+ | `slack_list_files` | List files shared in the workspace |
936
+ | `slack_list_pins` | List all items pinned in a specific channel |
937
+ | `slack_list_scheduled_messages` | List pending scheduled messages |
938
+ | `slack_list_user_group_members` | List member user IDs for a specific Slack user group |
939
+ | `slack_list_user_groups` | List workspace user groups with optional disabled and membership counts |
940
+ | `slack_list_user_reactions` | List items the user reacted to with cursor-based pagination |
941
+ | `slack_list_users` | List all users in the workspace |
942
+ | `slack_lookup_user_by_email` | Look up a user by email address |
943
+ | `slack_mark_as_read` | Move a conversation's read cursor to a specific message timestamp |
944
+ | `slack_open_dm` | Open a direct or multi-person DM for specified users |
945
+ | `slack_pin_message` | Pin a specific message in a channel |
946
+ | `slack_post_message` | Post a message to a channel, DM, or thread |
947
+ | `slack_remove_from_channel` | Remove a user from a channel |
948
+ | `slack_remove_reaction` | Remove an emoji reaction from a specific message |
949
+ | `slack_rename_channel` | Rename a Slack channel |
950
+ | `slack_schedule_message` | Schedule a Slack message to a channel or thread, subject to Slack's 120-day scheduling limit. |
951
+ | `slack_search_channels` | Find Slack channels by name without paging manually. Scans conversations.list and returns channels whose name contains the query (case-insensitive). |
952
+ | `slack_search_files` | Search workspace files with pagination |
953
+ | `slack_search_messages` | Search for messages matching a query |
954
+ | `slack_send_ephemeral_message` | Send a message visible only to one user in a channel |
955
+ | `slack_send_message` | Send a message to a channel |
956
+ | `slack_set_channel_purpose` | Update a channel's purpose text for a conversation |
957
+ | `slack_set_channel_topic` | Set the topic of a channel |
958
+ | `slack_set_status` | Set a user's status |
959
+ | `slack_set_user_presence` | Set a user's presence to online or away |
960
+ | `slack_unarchive_channel` | Restore an archived conversation so members can use it again |
961
+ | `slack_unpin_message` | Remove a pinned message from a channel |
962
+ | `slack_update_message` | Edit an existing message in a Slack channel |
957
963
 
958
964
  ## Snowflake
959
965
 
@@ -13,7 +13,7 @@ import { mastra } from './mastra'
13
13
 
14
14
  const safety = mastra.getClassifier('safety')
15
15
 
16
- const result = await safety.evaluate({
16
+ const result = await safety.decide({
17
17
  state: { content: 'A message to evaluate' },
18
18
  })
19
19
  ```