@mastra/mcp-docs-server 0.13.22 → 0.13.23

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 (63) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +9 -9
  2. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +2 -0
  3. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +14 -0
  4. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +9 -0
  5. package/.docs/organized/changelogs/%40mastra%2Fastra.md +10 -10
  6. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +13 -13
  7. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +14 -14
  8. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +37 -37
  9. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +15 -15
  10. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +15 -15
  11. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +14 -14
  12. package/.docs/organized/changelogs/%40mastra%2Fcore.md +133 -133
  13. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +12 -12
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +33 -33
  15. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +36 -36
  16. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +30 -30
  17. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +30 -30
  18. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +103 -103
  19. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +17 -17
  20. package/.docs/organized/changelogs/%40mastra%2Fevals.md +10 -10
  21. package/.docs/organized/changelogs/%40mastra%2Flance.md +14 -14
  22. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +15 -15
  23. package/.docs/organized/changelogs/%40mastra%2Floggers.md +12 -12
  24. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +21 -21
  25. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +12 -12
  26. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +16 -16
  27. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +16 -16
  28. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +12 -12
  29. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +12 -12
  30. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +12 -12
  31. package/.docs/organized/changelogs/%40mastra%2Fpg.md +20 -20
  32. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +11 -11
  33. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +65 -65
  34. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +19 -19
  35. package/.docs/organized/changelogs/%40mastra%2Frag.md +18 -18
  36. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +11 -0
  37. package/.docs/organized/changelogs/%40mastra%2Fserver.md +31 -31
  38. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +11 -11
  39. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +13 -13
  40. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +10 -10
  41. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +11 -11
  42. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +10 -10
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +11 -11
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +11 -11
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +9 -0
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +11 -0
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +12 -12
  48. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +10 -10
  49. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +12 -12
  50. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +10 -10
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +11 -11
  52. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +11 -11
  53. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +13 -13
  54. package/.docs/organized/changelogs/create-mastra.md +17 -17
  55. package/.docs/organized/changelogs/mastra.md +75 -75
  56. package/.docs/organized/code-examples/agent.md +102 -1
  57. package/.docs/raw/reference/agents/generateVNext.mdx +7 -2
  58. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +1 -1
  59. package/.docs/raw/reference/streaming/agents/streamVNext.mdx +17 -14
  60. package/.docs/raw/reference/streaming/workflows/resumeStreamVNext.mdx +100 -0
  61. package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +7 -0
  62. package/CHANGELOG.md +14 -0
  63. package/package.json +4 -4
@@ -0,0 +1,100 @@
1
+ ---
2
+ title: "Reference: Run.resumeStreamVNext() | Workflows | Mastra Docs"
3
+ description: Documentation for the `Run.resumeStreamVNext()` method in workflows, which enables real-time resumption and streaming of suspended workflow runs.
4
+ ---
5
+
6
+ import { StreamVNextCallout } from "@/components/streamVNext-callout.tsx"
7
+
8
+ # Run.resumeStreamVNext() (Experimental)
9
+
10
+ <StreamVNextCallout />
11
+
12
+ The `.resumeStreamVNext()` method resumes a suspended workflow run with new data, allowing you to continue execution from a specific step and to observe the stream of events.
13
+
14
+ ## Usage example
15
+
16
+ ```typescript showLineNumbers copy
17
+ const run = await workflow.createRunAsync();
18
+
19
+ const stream = run.streamVNext({
20
+ inputData: {
21
+ value: "initial data",
22
+ },
23
+ });
24
+
25
+
26
+ const result = await stream.result;
27
+ if (result.status === "suspended") {
28
+ const resumedStream = await run.resumeStreamVNext({
29
+ resumeData: { value: "resume data" }
30
+ });
31
+ }
32
+ ```
33
+
34
+ ## Parameters
35
+
36
+ <PropertiesTable
37
+ content={[
38
+ {
39
+ name: "resumeData",
40
+ type: "z.infer<TInput>",
41
+ description: "Input data that matches the workflow's input schema",
42
+ isOptional: true,
43
+ },
44
+ {
45
+ name: "runtimeContext",
46
+ type: "RuntimeContext",
47
+ description: "Runtime context data to use during workflow execution",
48
+ isOptional: true,
49
+ },
50
+ {
51
+ name: "step",
52
+ type: "Step<string, any, any, any, any, TEngineType>",
53
+ description: "The step to resume execution from",
54
+ isOptional: true,
55
+ },
56
+ ]}
57
+ />
58
+
59
+ ## Returns
60
+
61
+ <PropertiesTable
62
+ content={[
63
+ {
64
+ name: "stream",
65
+ type: "MastraWorkflowStream<ChunkType>",
66
+ description: "A custom stream that extends ReadableStream<ChunkType> with additional workflow-specific properties",
67
+ },
68
+ {
69
+ name: "stream.status",
70
+ type: "Promise<RunStatus>",
71
+ description: "A promise that resolves to the current workflow run status",
72
+ },
73
+ {
74
+ name: "stream.result",
75
+ type: "Promise<WorkflowResult<TOutput, TSteps>>",
76
+ description: "A promise that resolves to the final workflow result",
77
+ },
78
+ {
79
+ name: "stream.usage",
80
+ type: "Promise<{ inputTokens: number; outputTokens: number; totalTokens: number, reasoningTokens?: number, cacheInputTokens?: number }>",
81
+ description: "A promise that resolves to token usage statistics",
82
+ },
83
+ ]}
84
+ />
85
+
86
+ ## Stream Events
87
+
88
+ The stream emits various event types during workflow execution. Each event has a `type` field and a `payload` containing relevant data:
89
+
90
+ - **`workflow-start`**: Workflow execution begins
91
+ - **`workflow-step-start`**: A step begins execution
92
+ - **`workflow-step-output`**: Custom output from a step
93
+ - **`workflow-step-result`**: A step completes with results
94
+ - **`workflow-finish`**: Workflow execution completes with usage statistics
95
+
96
+ ## Related
97
+
98
+ - [Workflows overview](../../../docs/workflows/overview.mdx#run-workflow)
99
+ - [Workflow.createRunAsync()](../create-run.mdx)
100
+ - [Run.streamVNext()](./streamVNext.mdx)
@@ -39,6 +39,12 @@ const stream = run.streamVNext({
39
39
  description: "Runtime context data to use during workflow execution",
40
40
  isOptional: true,
41
41
  },
42
+ {
43
+ name: "closeOnSuspend",
44
+ type: "boolean",
45
+ description: "Whether to close the stream when the workflow is suspended, or to keep the stream open until the workflow is finished (by success or error). Default value is true.",
46
+ isOptional: true,
47
+ },
42
48
  ]}
43
49
  />
44
50
 
@@ -97,3 +103,4 @@ The stream emits various event types during workflow execution. Each event has a
97
103
 
98
104
  - [Workflows overview](../../../docs/workflows/overview.mdx#run-workflow)
99
105
  - [Workflow.createRunAsync()](../create-run.mdx)
106
+ - [Run.resumeStreamVNext()](./resumeStreamVNext.mdx)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 0.13.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
8
+ - @mastra/core@0.17.1
9
+
10
+ ## 0.13.23-alpha.0
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
15
+ - @mastra/core@0.17.1-alpha.0
16
+
3
17
  ## 0.13.22
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "0.13.22",
3
+ "version": "0.13.23",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "uuid": "^11.1.0",
34
34
  "zod": "^3.25.76",
35
35
  "zod-to-json-schema": "^3.24.6",
36
- "@mastra/core": "0.17.0",
36
+ "@mastra/core": "0.17.1",
37
37
  "@mastra/mcp": "^0.13.0"
38
38
  },
39
39
  "devDependencies": {
@@ -49,8 +49,8 @@
49
49
  "tsx": "^4.19.4",
50
50
  "typescript": "^5.8.3",
51
51
  "vitest": "^3.2.4",
52
- "@internal/lint": "0.0.40",
53
- "@mastra/core": "0.17.0"
52
+ "@internal/lint": "0.0.41",
53
+ "@mastra/core": "0.17.1"
54
54
  },
55
55
  "homepage": "https://mastra.ai",
56
56
  "repository": {