@mastra/mcp-docs-server 1.3.10-alpha.7 → 1.3.10-alpha.9

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 (76) hide show
  1. package/.docs/docs/channels.md +15 -0
  2. package/.docs/docs/harness/durable-agents.md +1 -1
  3. package/.docs/docs/harness/schedules.md +2 -0
  4. package/.docs/docs/mastra-platform/server.md +10 -6
  5. package/.docs/docs/mastra-platform/studio.md +1 -1
  6. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +2 -1
  7. package/.docs/docs/signals/thread-streams.md +34 -3
  8. package/.docs/docs/workflows/agents-and-tools.md +6 -1
  9. package/.docs/docs/workflows/scheduled-workflows.md +6 -2
  10. package/.docs/integrations/observability/opentelemetry.md +27 -4
  11. package/.docs/integrations/voice/speechify.md +23 -10
  12. package/.docs/models/gateways/merge-gateway.md +2 -1
  13. package/.docs/models/gateways/neon.md +2 -1
  14. package/.docs/models/gateways/netlify.md +1 -2
  15. package/.docs/models/gateways/openrouter.md +2 -2
  16. package/.docs/models/gateways/vercel.md +3 -1
  17. package/.docs/models/index.md +1 -1
  18. package/.docs/models/providers/aimlapi.md +2 -1
  19. package/.docs/models/providers/commandcode.md +2 -1
  20. package/.docs/models/providers/edenai.md +3 -1
  21. package/.docs/models/providers/empiriolabs.md +4 -4
  22. package/.docs/models/providers/huggingface.md +2 -1
  23. package/.docs/models/providers/inceptron.md +2 -2
  24. package/.docs/models/providers/kilo.md +11 -11
  25. package/.docs/models/providers/llmgateway-providers.md +4 -5
  26. package/.docs/models/providers/llmgateway.md +2 -2
  27. package/.docs/models/providers/lowrouter.md +2 -1
  28. package/.docs/models/providers/nano-gpt.md +15 -12
  29. package/.docs/models/providers/nearai.md +2 -1
  30. package/.docs/models/providers/openai.md +2 -1
  31. package/.docs/models/providers/requesty.md +3 -1
  32. package/.docs/models/providers/wandb.md +2 -2
  33. package/.docs/reference/agents/agent.md +3 -1
  34. package/.docs/reference/agents/channels.md +3 -1
  35. package/.docs/reference/agents/durable-agent.md +17 -9
  36. package/.docs/reference/channels/slack-provider.md +2 -0
  37. package/.docs/reference/client-js/agents.md +2 -0
  38. package/.docs/reference/client-js/observability.md +13 -14
  39. package/.docs/reference/code-sdk/mount-agent-controller.md +1 -1
  40. package/.docs/reference/core/mastra-model-gateway.md +5 -0
  41. package/.docs/reference/observability/metrics/automatic-metrics.md +10 -8
  42. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +4 -0
  43. package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +4 -0
  44. package/.docs/reference/observability/tracing/interfaces.md +21 -1
  45. package/.docs/reference/processors/classifier-processor.md +1 -1
  46. package/.docs/reference/processors/processor-interface.md +1 -1
  47. package/.docs/reference/processors/provider-history-compat.md +13 -13
  48. package/.docs/reference/processors/stream-error-retry-processor.md +9 -5
  49. package/.docs/reference/schedules/overview.md +16 -0
  50. package/.docs/reference/storage/overview.md +26 -9
  51. package/.docs/reference/streaming/ChunkType.md +18 -0
  52. package/.docs/reference/streaming/agents/streamLegacy.md +1 -1
  53. package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
  54. package/.docs/reference/tools/document-chunker-tool.md +1 -1
  55. package/.docs/reference/vectors/astra.md +2 -0
  56. package/.docs/reference/vectors/azure-ai-search.md +1 -1
  57. package/.docs/reference/vectors/convex.md +1 -1
  58. package/.docs/reference/vectors/couchbase.md +12 -5
  59. package/.docs/reference/vectors/duckdb.md +5 -5
  60. package/.docs/reference/vectors/mongodb.md +5 -5
  61. package/.docs/reference/vectors/pinecone.md +1 -1
  62. package/.docs/reference/vectors/qdrant.md +1 -1
  63. package/.docs/reference/vectors/s3vectors.md +3 -0
  64. package/.docs/reference/vectors/upstash.md +8 -4
  65. package/.docs/reference/vectors/vectorize.md +4 -2
  66. package/.docs/reference/vectors/weaviate.md +1 -1
  67. package/.docs/reference/voice/voice.send.md +1 -1
  68. package/.docs/reference/workflows/run-methods/restart.md +1 -1
  69. package/.docs/reference/workflows/run-methods/resume.md +1 -1
  70. package/.docs/reference/workflows/run-methods/start.md +1 -1
  71. package/.docs/reference/workflows/run.md +2 -2
  72. package/.docs/reference/workflows/workflow-methods/dountil.md +1 -1
  73. package/.docs/reference/workspace/local-sandbox.md +3 -3
  74. package/.docs/reference/workspace/platform-sandbox.md +4 -2
  75. package/.docs/reference/workspace/workspace-class.md +11 -11
  76. package/package.json +5 -5
@@ -8,6 +8,8 @@ The CloudflareVector class provides vector search using [Cloudflare Vectorize](h
8
8
 
9
9
  ## Constructor options
10
10
 
11
+ **id** (`string`): Unique identifier for this vector store instance.
12
+
11
13
  **accountId** (`string`): Cloudflare account ID
12
14
 
13
15
  **apiToken** (`string`): Cloudflare API token with Vectorize permissions
@@ -58,7 +60,7 @@ Returns:
58
60
  interface IndexStats {
59
61
  dimension: number
60
62
  count: number
61
- metric: 'cosine' | 'euclidean' | 'dotproduct'
63
+ metric?: 'cosine' | 'euclidean' | 'dotproduct'
62
64
  }
63
65
  ```
64
66
 
@@ -126,7 +128,7 @@ Query results are returned in this format:
126
128
  interface QueryResult {
127
129
  id: string
128
130
  score: number
129
- metadata: Record<string, any>
131
+ metadata?: Record<string, any>
130
132
  vector?: number[]
131
133
  }
132
134
  ```
@@ -50,7 +50,7 @@ The `WeaviateVector` class provides vector search using [Weaviate](https://weavi
50
50
 
51
51
  **indexName** (`string`): Name of the index to query.
52
52
 
53
- **queryVector** (`number[]`): Query vector to find similar vectors for. At least one of queryVector or filter must be provided.
53
+ **queryVector** (`number[]`): Query vector to find similar vectors for. When omitted, returns up to topK objects matching filter (or any objects if no filter is given).
54
54
 
55
55
  **topK** (`number`): Number of results to return. (Default: `10`)
56
56
 
@@ -61,7 +61,7 @@ Returns a `Promise<void>`. For providers that support real-time audio, it resolv
61
61
  ## Notes
62
62
 
63
63
  - This method is only implemented by real-time voice providers that support speech-to-speech capabilities
64
- - If called on a voice provider that doesn't support this functionality, it will log a debug message and resolve immediately
64
+ - If called on a voice provider that doesn't support this functionality, the default implementation logs a debug message and resolves immediately. `CompositeVoice` instead throws a `MastraError` (`VOICE_COMPOSITE_NO_REALTIME_PROVIDER_SEND`) when no `realtimeProvider` is configured
65
65
  - You must call `connect()` before using `send()` to establish the WebSocket connection
66
66
  - The audio format requirements depend on the specific voice provider
67
67
  - For continuous conversation, you typically call `send()` to transmit user audio, then `answer()` to trigger the AI response
@@ -48,7 +48,7 @@ const restartedResult = await run.restart()
48
48
 
49
49
  ## Returns
50
50
 
51
- **result** (`Promise<WorkflowResult<TState, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
51
+ **result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
52
52
 
53
53
  **traceId** (`string`): The trace ID associated with this execution when Tracing is enabled. Use this to correlate logs and debug execution flow.
54
54
 
@@ -58,7 +58,7 @@ if (result.status === 'suspended') {
58
58
 
59
59
  ## Returns
60
60
 
61
- **result** (`Promise<WorkflowResult<TState, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
61
+ **result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
62
62
 
63
63
  **traceId** (`string`): The trace ID associated with this execution when Tracing is enabled. Use this to correlate logs and debug execution flow.
64
64
 
@@ -52,7 +52,7 @@ const result = await run.start({
52
52
 
53
53
  ## Returns
54
54
 
55
- **result** (`Promise<WorkflowResult<TState, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
55
+ **result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
56
56
 
57
57
  **traceId** (`string`): The trace ID associated with this execution when Tracing is enabled. Use this to correlate logs and debug execution flow.
58
58
 
@@ -32,7 +32,7 @@ if (result.status === 'suspended') {
32
32
 
33
33
  **resumeStream** (`(options?: ResumeStreamOptions) => MastraWorkflowStream`): Resumes a suspended workflow with streaming support
34
34
 
35
- **cancel** (`() => Promise<{ message: string }>`): Cancels the workflow execution, stopping any running steps and preventing subsequent steps from executing
35
+ **cancel** (`() => Promise<void>`): Cancels the workflow execution and prevents subsequent steps from executing. It does not wait for running steps to finish: a running step only stops early if it checks its abortSignal.
36
36
 
37
37
  **restart** (`(options?: RestartOptions) => Promise<WorkflowResult>`): Restarts the workflow execution from last active step
38
38
 
@@ -60,7 +60,7 @@ A workflow run's `status` indicates its current execution state. The possible va
60
60
 
61
61
  **paused** (`string`): Workflow execution stopped after a single step because the run uses per-step execution
62
62
 
63
- **canceled** (`string`): Workflow execution was canceled via the cancel() method, stopping any running steps and preventing subsequent steps from executing
63
+ **canceled** (`string`): Workflow execution was canceled via the cancel() method. Subsequent steps do not run, and running steps stop only if they respond to their abortSignal
64
64
 
65
65
  **bailed** (`string`): A step called bail() to end the workflow early. The run itself completes with a success status and the bail payload as its result
66
66
 
@@ -16,7 +16,7 @@ workflow.dountil(step1, async ({ inputData }) => true)
16
16
 
17
17
  **step** (`Step`): The step instance to execute in the loop
18
18
 
19
- **condition** (`((params: ConditionFunctionParams & { iterationCount: number }) => Promise<boolean>) | { predicate: Predicate }`): A function that returns a boolean indicating whether to continue the loop. The function receives the execution parameters (excluding setState and suspend) and the iteration count. A declarative { predicate } object is also accepted.
19
+ **condition** (`((params: ConditionFunctionParams & { iterationCount: number }) => Promise<boolean>) | { predicate: Predicate }`): A function that returns a boolean indicating whether the loop is done. When it returns true the loop ends; when it returns false the step runs again. The function receives the execution parameters (excluding setState and suspend) and the iteration count. A declarative { predicate } object is also accepted.
20
20
 
21
21
  **options** (`StepFlowEntryOptions`): Optional identity and display metadata for this graph entry. Preserved through serialization and storage; has no effect on execution.
22
22
 
@@ -72,7 +72,7 @@ Configuration options for native OS sandboxing (used with `isolation: 'seatbelt'
72
72
 
73
73
  **seatbeltProfilePath** (`string`): Path to a custom seatbelt profile file (macOS only). If you wrote the file, it's used exactly as written: Mastra doesn't add mounted paths to it, so the profile must already allow every path you mount. If the file doesn't exist, a default profile is generated and written to this path, and that generated profile allows mounted paths. Mastra marks the profiles it generates, so a later run regenerates them instead of reading them back as your own. To edit a generated profile and keep your edits, delete its marker comment: the file then counts as yours, and mounted paths are no longer added to it.
74
74
 
75
- **bwrapArgs** (`string[]`): Additional arguments to pass to bwrap (Linux only).
75
+ **bwrapArgs** (`string[]`): Custom arguments to pass to bwrap (Linux only). When set, these replace the generated isolation arguments instead of extending them.
76
76
 
77
77
  **allowSystemBinaries** (`boolean`): Allow read access to standard system binary paths (/bin, /usr/bin, etc.). (Default: `true`)
78
78
 
@@ -203,8 +203,8 @@ const sandbox = new LocalSandbox({
203
203
 
204
204
  When isolation is enabled:
205
205
 
206
- - File writes are restricted to the workspace directory (and configured paths)
207
- - File reads are allowed everywhere (needed for system binaries)
206
+ - File writes are restricted to the workspace directory, `readWritePaths`, and temporary locations. On macOS (seatbelt), writes are also allowed under `/private/tmp`, `/var/folders`, and `/private/var/folders`. On Linux (bubblewrap), `/tmp` is a private in-sandbox tmpfs that isn't written to the host.
207
+ - File reads depend on the backend. On macOS (seatbelt), reads are allowed everywhere (needed for system binaries). On Linux (bubblewrap), the generated policy exposes only selected system paths (such as `/usr`, `/lib`, `/bin`, and essential `/etc` files), `readOnlyPaths`, `readWritePaths`, and the workspace. When `allowSystemBinaries` isn't `false`, the Node.js directory, `/opt`, and `/snap` are also visible. Other host paths aren't accessible. If you set `bwrapArgs`, it replaces the generated policy, so your arguments alone determine what's visible.
208
208
  - Network access is blocked by default
209
209
  - Process isolation prevents affecting the host system
210
210
 
@@ -164,10 +164,12 @@ const sandbox = new PlatformSandbox({
164
164
  await sandbox.start()
165
165
  ```
166
166
 
167
- `Template()` supports `cpuCount`, `memoryMB`, `runCmd`, `setWorkdir`, `setEnvs`, `aptInstall`, `pipInstall`, and `npmInstall`. Platform serializes the builder internally and computes the content hash. Call `await template.build(options)` to start or reuse that provider build without provisioning a sandbox. It returns `ready`, `pending`, or `failed`, with the template ID and an optional retry hint or error.
167
+ `Template()` supports `cpuCount`, `memoryMB`, `docker`, `runCmd`, `setWorkdir`, `setEnvs`, `aptInstall`, `pipInstall`, and `npmInstall`. Platform serializes the builder internally and computes the content hash. Call `await template.build(options)` to start or reuse that provider build without provisioning a sandbox. It returns `ready`, `pending`, or `failed`, with the template ID and an optional retry hint or error.
168
168
 
169
169
  For E2B, `cpuCount()` and `memoryMB()` set the template build resources inherited by sandboxes created from the exact template or a resource-matched stale template. Both methods accept a positive safe integer. They default to 2 CPUs and 1,024 MB. Resource setters use last-value-wins semantics, and their effective values are part of the content identity. Omitting both setters is equivalent to explicitly selecting the defaults. If a pending build falls back to the provider base, that sandbox may use the provider's default resources. Check `templatePending` to detect this case.
170
170
 
171
+ `docker()` installs Docker Engine and Compose in the E2B template. The daemon starts the first time something uses Docker, so sandboxes that never use it don't pay for it. Docker is part of the content identity only when it's on, so templates without it keep their IDs. Use at least 2,048 MB of memory with Docker.
172
+
171
173
  Railway converts the command, working directory, environment, and package operations to Railway template instructions. Railway currently ignores `cpuCount()` and `memoryMB()` because its sandbox template API doesn't expose matching resource settings.
172
174
 
173
175
  For public GitHub repositories, `createRepoTemplate()` can resolve and build the commit-pinned definition lazily when `start()` needs a fresh sandbox:
@@ -186,7 +188,7 @@ const sandbox = new PlatformSandbox({
186
188
  await sandbox.start()
187
189
  ```
188
190
 
189
- `createRepoTemplate()` accepts the same `cpuCount` and `memoryMB` sizing as the `Template()` builder methods, as plain options. They carry the identity and stale-fallback semantics described above. Omit them for the provider defaults.
191
+ `createRepoTemplate()` accepts the same `cpuCount`, `memoryMB`, and `docker` settings as the `Template()` builder methods, as plain options. They carry the identity and stale-fallback semantics described above. Omit them for the provider defaults.
190
192
 
191
193
  `setupCommand` also accepts an array. Each entry runs as its own cached build step. `workingDirectory` sets the cwd for the build and the sandbox, and the repository is cloned to `<workingDirectory>/<repo>`. `buildEnv` passes environment variables to the build steps only. They never enter the serialized definition.
192
194
 
@@ -471,17 +471,17 @@ A workspace provides tools to agents based on what's configured.
471
471
 
472
472
  Added when a filesystem is configured:
473
473
 
474
- | Tool | Description |
475
- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
476
- | `mastra_workspace_read_file` | Read file contents. Text files return as text (with optional line range). Images and PDFs return as native media parts the model can view directly. Other binaries return metadata only unless an explicit `encoding` is passed. |
477
- | `mastra_workspace_write_file` | Create or overwrite a file with new content. Creates parent directories automatically. |
478
- | `mastra_workspace_edit_file` | Edit an existing file by finding and replacing text. Useful for targeted changes without rewriting the entire file. |
479
- | `mastra_workspace_list_files` | List directory contents as a tree structure. Supports recursive listing with depth limits, glob patterns, and `.gitignore` filtering (enabled by default: every `.gitignore` applies relative to its own directory, and `node_modules` is skipped unless the listed path is inside it). |
480
- | `mastra_workspace_delete` | Delete a file or directory. Supports recursive deletion for directories. |
481
- | `mastra_workspace_file_stat` | Get metadata about a file or directory including size, type, and modification time. |
482
- | `mastra_workspace_mkdir` | Create a directory. Creates parent directories automatically if they don't exist. |
483
- | `mastra_workspace_grep` | Search file contents using regex patterns. Supports glob filtering, context lines, and case-insensitive search. Applies `.gitignore` files the same way as `list_files` and skips `node_modules` unless the search path is inside it. |
484
- | `mastra_workspace_apply_patch` | Create, update, move, and delete several files in one call using a patch. Opt-in: only added when `tools[WORKSPACE_TOOLS.FILESYSTEM.APPLY_PATCH].enabled` is set. The top-level `tools.enabled` doesn't enable it. The tool checks every hunk before writing and leaves all files unchanged if any hunk fails to match. |
474
+ | Tool | Description |
475
+ | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
476
+ | `mastra_workspace_read_file` | Read file contents. Text files return as text (with optional line range). Images and PDFs return as native media parts the model can view directly. Other binaries return metadata only unless an explicit `encoding` is passed. |
477
+ | `mastra_workspace_write_file` | Create or overwrite a file with new content. Creates parent directories automatically. |
478
+ | `mastra_workspace_edit_file` | Edit an existing file by finding and replacing text. Useful for targeted changes without rewriting the entire file. |
479
+ | `mastra_workspace_list_files` | List directory contents as a tree structure. Supports recursive listing with depth limits, glob patterns, and `.gitignore` filtering (enabled by default: every `.gitignore` applies relative to its own directory, and `node_modules` is skipped unless the listed path is inside it). |
480
+ | `mastra_workspace_delete` | Delete a file or directory. Supports recursive deletion for directories. |
481
+ | `mastra_workspace_file_stat` | Get metadata about a file or directory including size, type, and modification time. |
482
+ | `mastra_workspace_mkdir` | Create a directory. Creates parent directories automatically if they don't exist. |
483
+ | `mastra_workspace_grep` | Search file contents using regex patterns. Supports glob filtering, context lines, and case-insensitive search. Applies `.gitignore` files the same way as `list_files` and skips `node_modules` unless the search path is inside it. When a matched line exceeds 500 characters, only its first 500 characters are shown, followed by `...` (context lines are shown in full). If the match is past that point, read the full line with `read_file`, using the reported line number as `offset`. |
484
+ | `mastra_workspace_apply_patch` | Create, update, move, and delete several files in one call using a patch. Opt-in: only added when `tools[WORKSPACE_TOOLS.FILESYSTEM.APPLY_PATCH].enabled` is set. The top-level `tools.enabled` doesn't enable it. The tool checks every hunk before writing and leaves all files unchanged if any hunk fails to match. |
485
485
 
486
486
  With a static filesystem, write tools (`write_file`, `edit_file`, `delete`, `mkdir`, `apply_patch`) are excluded when the filesystem is in read-only mode. With a [runtime-defined filesystem](https://mastra.ai/docs/sandbox/filesystem), write tools are always included and read-only is enforced at runtime.
487
487
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.3.10-alpha.7",
3
+ "version": "1.3.10-alpha.9",
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.2.1",
28
28
  "zod": "^4.6.7",
29
- "@mastra/mcp": "^2.6.0-alpha.1",
30
- "@mastra/core": "1.80.0-alpha.4"
29
+ "@mastra/core": "1.80.0-alpha.6",
30
+ "@mastra/mcp": "^2.6.0-alpha.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@hono/node-server": "^2.1.3",
@@ -42,9 +42,9 @@
42
42
  "tsx": "^4.23.15",
43
43
  "typescript": "^7.0.2",
44
44
  "vitest": "4.1.12",
45
- "@internal/types-builder": "0.0.120",
46
45
  "@internal/lint": "0.0.145",
47
- "@mastra/core": "1.80.0-alpha.4"
46
+ "@internal/types-builder": "0.0.120",
47
+ "@mastra/core": "1.80.0-alpha.6"
48
48
  },
49
49
  "homepage": "https://mastra.ai",
50
50
  "repository": {