@mastra/mcp-docs-server 0.13.19-alpha.0 → 0.13.19-alpha.1

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 (61) hide show
  1. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +14 -14
  2. package/.docs/organized/changelogs/%40mastra%2Fcore.md +19 -19
  3. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +8 -0
  4. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +11 -11
  5. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +11 -11
  6. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +12 -12
  7. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +10 -10
  8. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +10 -10
  9. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +13 -13
  10. package/.docs/organized/changelogs/%40mastra%2Fserver.md +8 -8
  11. package/.docs/organized/changelogs/create-mastra.md +7 -7
  12. package/.docs/organized/changelogs/mastra.md +14 -14
  13. package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -1
  14. package/.docs/organized/code-examples/workflow-with-suspend-resume.md +1 -0
  15. package/.docs/raw/auth/jwt.mdx +2 -2
  16. package/.docs/raw/auth/supabase.mdx +128 -0
  17. package/.docs/raw/deployment/overview.mdx +7 -7
  18. package/.docs/raw/getting-started/mcp-docs-server.mdx +52 -48
  19. package/.docs/raw/memory/overview.mdx +2 -2
  20. package/.docs/raw/reference/auth/jwt.mdx +2 -3
  21. package/.docs/raw/reference/auth/supabase.mdx +62 -0
  22. package/.docs/raw/reference/{agents → core}/getAgent.mdx +1 -2
  23. package/.docs/raw/reference/core/getAgentById.mdx +43 -0
  24. package/.docs/raw/reference/core/getAgents.mdx +35 -0
  25. package/.docs/raw/reference/core/getDeployer.mdx +35 -0
  26. package/.docs/raw/reference/core/getLogger.mdx +35 -0
  27. package/.docs/raw/reference/core/getLogs.mdx +92 -0
  28. package/.docs/raw/reference/core/getLogsByRunId.mdx +84 -0
  29. package/.docs/raw/reference/core/getMCPServer.mdx +49 -0
  30. package/.docs/raw/reference/core/getMCPServers.mdx +35 -0
  31. package/.docs/raw/reference/core/getMemory.mdx +35 -0
  32. package/.docs/raw/reference/core/getServer.mdx +35 -0
  33. package/.docs/raw/reference/core/getStorage.mdx +35 -0
  34. package/.docs/raw/reference/core/getTelemetry.mdx +35 -0
  35. package/.docs/raw/reference/core/getVector.mdx +43 -0
  36. package/.docs/raw/reference/core/getVectors.mdx +35 -0
  37. package/.docs/raw/reference/core/getWorkflow.mdx +49 -0
  38. package/.docs/raw/reference/core/getWorkflows.mdx +44 -0
  39. package/.docs/raw/reference/core/mastra-class.mdx +14 -178
  40. package/.docs/raw/reference/core/setLogger.mdx +47 -0
  41. package/.docs/raw/reference/core/setStorage.mdx +39 -0
  42. package/.docs/raw/reference/core/setTelemetry.mdx +35 -0
  43. package/.docs/raw/workflows/control-flow.mdx +2 -2
  44. package/.docs/raw/workflows/overview.mdx +8 -8
  45. package/.docs/raw/workflows/suspend-and-resume.mdx +4 -4
  46. package/CHANGELOG.md +10 -0
  47. package/package.json +5 -5
  48. package/.docs/raw/reference/workflows/execute.mdx +0 -131
  49. /package/.docs/raw/reference/workflows/{branch.mdx → workflow-methods/branch.mdx} +0 -0
  50. /package/.docs/raw/reference/workflows/{commit.mdx → workflow-methods/commit.mdx} +0 -0
  51. /package/.docs/raw/reference/workflows/{create-run.mdx → workflow-methods/create-run.mdx} +0 -0
  52. /package/.docs/raw/reference/workflows/{dountil.mdx → workflow-methods/dountil.mdx} +0 -0
  53. /package/.docs/raw/reference/workflows/{dowhile.mdx → workflow-methods/dowhile.mdx} +0 -0
  54. /package/.docs/raw/reference/workflows/{foreach.mdx → workflow-methods/foreach.mdx} +0 -0
  55. /package/.docs/raw/reference/workflows/{map.mdx → workflow-methods/map.mdx} +0 -0
  56. /package/.docs/raw/reference/workflows/{parallel.mdx → workflow-methods/parallel.mdx} +0 -0
  57. /package/.docs/raw/reference/workflows/{sendEvent.mdx → workflow-methods/sendEvent.mdx} +0 -0
  58. /package/.docs/raw/reference/workflows/{sleep.mdx → workflow-methods/sleep.mdx} +0 -0
  59. /package/.docs/raw/reference/workflows/{sleepUntil.mdx → workflow-methods/sleepUntil.mdx} +0 -0
  60. /package/.docs/raw/reference/workflows/{then.mdx → workflow-methods/then.mdx} +0 -0
  61. /package/.docs/raw/reference/workflows/{waitForEvent.mdx → workflow-methods/waitForEvent.mdx} +0 -0
@@ -0,0 +1,39 @@
1
+ ---
2
+ title: "Reference: Mastra.setStorage() | Core | Mastra Docs"
3
+ description: "Documentation for the `Mastra.setStorage()` method in Mastra, which sets the storage instance for the Mastra instance."
4
+ ---
5
+
6
+ # Mastra.setStorage()
7
+
8
+ The `.setStorage()` method is used to set the storage instance for the Mastra instance. This method accepts a single `MastraStorage` parameter.
9
+
10
+ ## Usage example
11
+
12
+ ```typescript copy
13
+ mastra.setStorage(
14
+ new LibSQLStore({
15
+ url: ":memory:"
16
+ })
17
+ );
18
+ ```
19
+
20
+ ## Parameters
21
+
22
+ <PropertiesTable
23
+ content={[
24
+ {
25
+ name: "storage",
26
+ type: "MastraStorage",
27
+ description: "The storage instance to set for the Mastra instance.",
28
+ },
29
+ ]}
30
+ />
31
+
32
+ ## Returns
33
+
34
+ This method does not return a value.
35
+
36
+ ## Related
37
+
38
+ - [Storage overview](../../docs/server-db/storage.mdx)
39
+ - [Storage reference](../../reference/storage/libsql.mdx)
@@ -0,0 +1,35 @@
1
+ ---
2
+ title: "Reference: Mastra.setTelemetry() | Core | Mastra Docs"
3
+ description: "Documentation for the `Mastra.setTelemetry()` method in Mastra, which sets the telemetry configuration for all components."
4
+ ---
5
+
6
+ # Mastra.setTelemetry()
7
+
8
+ The `.setTelemetry()` method is used to set the telemetry configuration for all components in the Mastra instance. This method accepts a single telemetry configuration object.
9
+
10
+ ## Usage example
11
+
12
+ ```typescript copy
13
+ mastra.setTelemetry({ export: { type: "console" } });
14
+ ```
15
+
16
+ ## Parameters
17
+
18
+ <PropertiesTable
19
+ content={[
20
+ {
21
+ name: "telemetry",
22
+ type: "OtelConfig",
23
+ description: "The telemetry configuration object to set for all components.",
24
+ },
25
+ ]}
26
+ />
27
+
28
+ ## Returns
29
+
30
+ This method does not return a value.
31
+
32
+ ## Related
33
+
34
+ - [Telemetry overview](../../docs/observability/telemetry.mdx)
35
+ - [Telemetry reference](../../reference/observability/telemetry.mdx)
@@ -53,7 +53,7 @@ export const testWorkflow = createWorkflow({...})
53
53
 
54
54
  This executes `step1` and `step2` concurrently, then continues to `step3` after both complete.
55
55
 
56
- > See [Parallel Execution with Steps](/examples/workflows/parallel-steps) for more information.
56
+ > See [Parallel Execution with Steps](../../examples/workflows/parallel-steps.mdx) for more information.
57
57
 
58
58
  > 📹 Watch: How to run steps in parallel and optimize your Mastra workflow → [YouTube (3 minutes)](https://youtu.be/pTSOSWbreE0)
59
59
 
@@ -80,7 +80,7 @@ export const testWorkflow = createWorkflow({...})
80
80
 
81
81
  Branch conditions are evaluated sequentially, but steps with matching conditions are executed in parallel.
82
82
 
83
- > See [Workflow with Conditional Branching](/examples/workflows/conditional-branching) for more information.
83
+ > See [Workflow with Conditional Branching](../../examples/workflows/conditional-branching.mdx) for more information.
84
84
 
85
85
  ## Looping steps
86
86
 
@@ -46,7 +46,7 @@ Steps are the building blocks of workflows. Create a step using `createStep`:
46
46
  const step1 = createStep({...});
47
47
  ```
48
48
 
49
- > See [createStep](/reference/workflows/step) for more information.
49
+ > See [createStep](../../reference/workflows/step.mdx) for more information.
50
50
 
51
51
  ### Create workflow
52
52
 
@@ -72,7 +72,7 @@ export const testWorkflow = createWorkflow({
72
72
  .commit();
73
73
  ```
74
74
 
75
- > See [workflow](/reference/workflows/workflow) for more information.
75
+ > See [workflow](../../reference/workflows/workflow.mdx) for more information.
76
76
 
77
77
  #### Composing steps
78
78
 
@@ -100,7 +100,7 @@ export const testWorkflow = createWorkflow({
100
100
  .commit();
101
101
  ```
102
102
 
103
- > Steps can be composed using a number of different methods. See [Control Flow](/docs/workflows/control-flow) for more information.
103
+ > Steps can be composed using a number of different methods. See [Control Flow](./control-flow.mdx) for more information.
104
104
 
105
105
  #### Cloning steps
106
106
 
@@ -163,7 +163,7 @@ There are two ways to run and test workflows.
163
163
 
164
164
  With the Mastra Dev Server running you can run the workflow from the Mastra Playground by visiting [http://localhost:4111/workflows](http://localhost:4111/workflows) in your browser.
165
165
 
166
- > For more information, see the [Local Dev Playground](/docs/server-db/local-dev-playground) documentation.
166
+ > For more information, see the [Local Dev Playground](../server-db/local-dev-playground.mdx) documentation.
167
167
 
168
168
  ### Command line
169
169
 
@@ -188,7 +188,7 @@ if (result.status === 'success') {
188
188
  console.log(result.result.output);
189
189
  }
190
190
  ```
191
- > see [createRunAsync](../../reference/workflows/create-run.mdx) and [start](../../reference/workflows/run-methods/start.mdx) for more information.
191
+ > see [createRunAsync](../../reference/workflows/run.mdx) and [start](../../reference/workflows/run-methods/start.mdx) for more information.
192
192
 
193
193
  To trigger this workflow, run the following:
194
194
 
@@ -286,7 +286,7 @@ for await (const chunk of result.stream) {
286
286
  }
287
287
  ```
288
288
 
289
- > See [stream](/reference/workflows/run-methods/stream) and [messages](/reference/workflows/run-methods/stream#messages) for more information.
289
+ > See [stream](../../reference/workflows/run-methods/stream.mdx) for more information.
290
290
 
291
291
  ## Watch Workflow
292
292
 
@@ -308,7 +308,7 @@ const result = await run.start({
308
308
  });
309
309
  ```
310
310
 
311
- > See [watch](/reference/workflows/run-methods/watch) for more information.
311
+ > See [watch](../../reference/workflows/run-methods/watch.mdx) for more information.
312
312
 
313
313
  ## Related
314
314
 
@@ -321,5 +321,5 @@ const result = await run.start({
321
321
 
322
322
  ## Workflows (Legacy)
323
323
 
324
- For legacy workflow documentation, see [Workflows (Legacy)](/docs/workflows-legacy/overview).
324
+ For legacy workflow documentation, see [Workflows (Legacy)](../workflows-legacy/overview.mdx).
325
325
 
@@ -60,7 +60,7 @@ export const testWorkflow = createWorkflow({
60
60
  .commit();
61
61
  ```
62
62
 
63
- > For more details, check out the [Suspend workflow example](/examples/workflows/human-in-the-loop#suspend-workflow).
63
+ > For more details, check out the [Suspend workflow example](../../examples/workflows/human-in-the-loop.mdx#suspend-workflow).
64
64
 
65
65
  ### Identifying suspended steps
66
66
 
@@ -89,8 +89,6 @@ if (result.status === "suspended") {
89
89
  }
90
90
  ```
91
91
 
92
- > See [Run Workflow Results](/docs/workflows/overview#run-workflow-results) for more details.
93
-
94
92
  In this case, the logic resumes the first step listed in the `suspended` array. A `step` can also be defined using it's `id`, for example: 'step-1'.
95
93
 
96
94
  ```json
@@ -111,6 +109,8 @@ In this case, the logic resumes the first step listed in the `suspended` array.
111
109
  }
112
110
  ```
113
111
 
112
+ > See [Run Workflow Results](./overview.mdx#run-workflow-results) for more details.
113
+
114
114
  ## Providing user feedback with suspend
115
115
 
116
116
  When a workflow is suspended, feedback can be surfaced to the user through the `suspendSchema`. Include a reason in the `suspend` payload to explain why the workflow paused.
@@ -168,7 +168,7 @@ In this case, the reason provided explains that the user must confirm to continu
168
168
  }
169
169
  ```
170
170
 
171
- > See [Run Workflow Results](/docs/workflows/overview#run-workflow-results) for more details.
171
+ > See [Run Workflow Results](./overview.mdx#run-workflow-results) for more details.
172
172
 
173
173
  ## Resuming a workflow with `resume()`
174
174
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 0.13.19-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dependencies updates: ([#7527](https://github.com/mastra-ai/mastra/pull/7527))
8
+ - Updated dependency [`@modelcontextprotocol/sdk@^1.17.5` ↗︎](https://www.npmjs.com/package/@modelcontextprotocol/sdk/v/1.17.5) (from `^1.17.3`, in `dependencies`)
9
+ - Updated dependencies [[`0f7b8c0`](https://github.com/mastra-ai/mastra/commit/0f7b8c0c22d2a677a0f71c35ad1bc2d60b063d39), [`47b6dc9`](https://github.com/mastra-ai/mastra/commit/47b6dc94f4976d4f3d3882e8f19eb365bbc5976c), [`565d65f`](https://github.com/mastra-ai/mastra/commit/565d65fc16314a99f081975ec92f2636dff0c86d), [`4da3d68`](https://github.com/mastra-ai/mastra/commit/4da3d68a778e5c4d5a17351ef223289fe2f45a45), [`0b0bbb2`](https://github.com/mastra-ai/mastra/commit/0b0bbb24f4198ead69792e92b68a350f52b45cf3), [`d951f41`](https://github.com/mastra-ai/mastra/commit/d951f41771e4e5da8da4b9f870949f9509e38756), [`8049e2e`](https://github.com/mastra-ai/mastra/commit/8049e2e8cce80a00353c64894c62b695ac34e35e)]:
10
+ - @mastra/mcp@0.12.0-alpha.1
11
+ - @mastra/core@0.16.1-alpha.1
12
+
3
13
  ## 0.13.19-alpha.0
4
14
 
5
15
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "0.13.19-alpha.0",
3
+ "version": "0.13.19-alpha.1",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "author": "",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@modelcontextprotocol/sdk": "^1.17.3",
28
+ "@modelcontextprotocol/sdk": "^1.17.5",
29
29
  "date-fns": "^4.1.0",
30
30
  "exit-hook": "^4.0.0",
31
31
  "jsdom": "^26.1.0",
@@ -33,8 +33,8 @@
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.16.1-alpha.0",
37
- "@mastra/mcp": "^0.12.0-alpha.0"
36
+ "@mastra/core": "0.16.1-alpha.1",
37
+ "@mastra/mcp": "^0.12.0-alpha.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hono/node-server": "^1.17.1",
@@ -50,7 +50,7 @@
50
50
  "typescript": "^5.8.3",
51
51
  "vitest": "^3.2.4",
52
52
  "@internal/lint": "0.0.36",
53
- "@mastra/core": "0.16.1-alpha.0"
53
+ "@mastra/core": "0.16.1-alpha.1"
54
54
  },
55
55
  "homepage": "https://mastra.ai",
56
56
  "repository": {
@@ -1,131 +0,0 @@
1
- ---
2
- title: "Reference: Workflow.execute() | Workflows | Mastra Docs"
3
- description: Documentation for the `Workflow.execute()` method in workflows, which executes a workflow directly and returns the output.
4
- ---
5
-
6
- # Workflow.execute()
7
-
8
- The `.execute()` method executes a workflow directly and returns the output, allowing you to run a workflow without creating a separate run instance.
9
-
10
- ## Usage example
11
-
12
- ```typescript showLineNumbers copy
13
- await workflow.execute({
14
- inputData: {
15
- value: "hello world"
16
- }
17
- });
18
- ```
19
-
20
- ## Parameters
21
-
22
- <PropertiesTable
23
- content={[
24
- {
25
- name: "inputData",
26
- type: "z.infer<TInput>",
27
- description: "Input data that matches the workflow's input schema",
28
- isOptional: false,
29
- },
30
- {
31
- name: "resumeData",
32
- type: "any",
33
- description: "Data for resuming a suspended workflow",
34
- isOptional: true,
35
- },
36
- {
37
- name: "suspend",
38
- type: "(suspendPayload: any) => Promise<any>",
39
- description: "Function to suspend workflow execution",
40
- isOptional: false,
41
- },
42
- {
43
- name: "resume",
44
- type: "object",
45
- description: "Configuration for resuming workflow execution",
46
- isOptional: true,
47
- properties: [
48
- {
49
- name: "steps",
50
- type: "string[]",
51
- description: "Steps to resume",
52
- isOptional: false,
53
- },
54
- {
55
- name: "resumePayload",
56
- type: "any",
57
- description: "Payload data for resuming",
58
- isOptional: false,
59
- },
60
- {
61
- name: "runId",
62
- type: "string",
63
- description: "ID of the run to resume",
64
- isOptional: true,
65
- },
66
- ],
67
- },
68
- {
69
- name: "emitter",
70
- type: "object",
71
- description: "Event emitter object for workflow events",
72
- isOptional: false,
73
- properties: [
74
- {
75
- name: "emit",
76
- type: "(event: string, data: any) => void",
77
- description: "Function to emit events",
78
- isOptional: false,
79
- },
80
- ],
81
- },
82
- {
83
- name: "mastra",
84
- type: "Mastra",
85
- description: "Mastra instance",
86
- isOptional: false,
87
- },
88
- {
89
- name: "runtimeContext",
90
- type: "RuntimeContext",
91
- description: "Runtime context data to use during workflow execution",
92
- isOptional: true,
93
- },
94
- {
95
- name: "abort",
96
- type: "() => any",
97
- description: "Function to abort workflow execution",
98
- isOptional: false,
99
- },
100
- {
101
- name: "abortSignal",
102
- type: "AbortSignal",
103
- description: "Abort signal for workflow execution",
104
- isOptional: false,
105
- },
106
- {
107
- name: "runCount",
108
- type: "number",
109
- description: "Number of times the workflow has been run",
110
- isOptional: true,
111
- },
112
- ]}
113
- />
114
-
115
- ## Returns
116
-
117
- <PropertiesTable
118
- content={[
119
- {
120
- name: "result",
121
- type: "Promise<z.infer<TOutput>>",
122
- description: "A promise that resolves to the output of the executed workflow",
123
- },
124
- ]}
125
- />
126
-
127
- ## Related
128
-
129
- - [Workflow.createRunAsync()](./create-run.mdx) - Alternative method for creating workflow runs
130
- - [WorkflowRun.start()](./run-methods/start.mdx) - Starting workflow execution
131
- - [Workflows overview](../../docs/workflows/overview.mdx#run-workflow)