@mastra/mcp-docs-server 0.13.18 → 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.
- package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +17 -17
- package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +2 -0
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +29 -0
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +16 -0
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +19 -19
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +42 -42
- package/.docs/organized/changelogs/%40mastra%2Fcloud.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +64 -64
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +39 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +28 -28
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +53 -53
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +31 -31
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +19 -19
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Flance.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +39 -39
- package/.docs/organized/changelogs/%40mastra%2Fmem0.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +34 -34
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +47 -47
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Frag.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +10 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +37 -37
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +16 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +16 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +18 -18
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +18 -18
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +17 -17
- package/.docs/organized/changelogs/create-mastra.md +27 -27
- package/.docs/organized/changelogs/mastra.md +57 -57
- package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -1
- package/.docs/organized/code-examples/ai-sdk-v5.md +8 -8
- package/.docs/organized/code-examples/heads-up-game.md +5 -5
- package/.docs/organized/code-examples/workflow-with-suspend-resume.md +1 -0
- package/.docs/raw/auth/jwt.mdx +2 -2
- package/.docs/raw/auth/supabase.mdx +128 -0
- package/.docs/raw/deployment/overview.mdx +7 -7
- package/.docs/raw/getting-started/mcp-docs-server.mdx +52 -48
- package/.docs/raw/memory/overview.mdx +2 -2
- package/.docs/raw/rag/retrieval.mdx +19 -2
- package/.docs/raw/rag/vector-databases.mdx +39 -3
- package/.docs/raw/reference/auth/jwt.mdx +2 -3
- package/.docs/raw/reference/auth/supabase.mdx +62 -0
- package/.docs/raw/reference/{agents → core}/getAgent.mdx +1 -2
- package/.docs/raw/reference/core/getAgentById.mdx +43 -0
- package/.docs/raw/reference/core/getAgents.mdx +35 -0
- package/.docs/raw/reference/core/getDeployer.mdx +35 -0
- package/.docs/raw/reference/core/getLogger.mdx +35 -0
- package/.docs/raw/reference/core/getLogs.mdx +92 -0
- package/.docs/raw/reference/core/getLogsByRunId.mdx +84 -0
- package/.docs/raw/reference/core/getMCPServer.mdx +49 -0
- package/.docs/raw/reference/core/getMCPServers.mdx +35 -0
- package/.docs/raw/reference/core/getMemory.mdx +35 -0
- package/.docs/raw/reference/core/getServer.mdx +35 -0
- package/.docs/raw/reference/core/getStorage.mdx +35 -0
- package/.docs/raw/reference/core/getTelemetry.mdx +35 -0
- package/.docs/raw/reference/core/getVector.mdx +43 -0
- package/.docs/raw/reference/core/getVectors.mdx +35 -0
- package/.docs/raw/reference/core/getWorkflow.mdx +49 -0
- package/.docs/raw/reference/core/getWorkflows.mdx +44 -0
- package/.docs/raw/reference/core/mastra-class.mdx +14 -178
- package/.docs/raw/reference/core/setLogger.mdx +47 -0
- package/.docs/raw/reference/core/setStorage.mdx +39 -0
- package/.docs/raw/reference/core/setTelemetry.mdx +35 -0
- package/.docs/raw/reference/observability/providers/arize-ax.mdx +81 -0
- package/.docs/raw/reference/observability/providers/arize-phoenix.mdx +120 -0
- package/.docs/raw/reference/observability/providers/index.mdx +3 -1
- package/.docs/raw/reference/rag/metadata-filters.mdx +15 -0
- package/.docs/raw/reference/rag/s3vectors.mdx +386 -0
- package/.docs/raw/reference/tools/mcp-server.mdx +27 -26
- package/.docs/raw/tools-mcp/mcp-overview.mdx +5 -6
- package/.docs/raw/workflows/control-flow.mdx +2 -2
- package/.docs/raw/workflows/overview.mdx +8 -8
- package/.docs/raw/workflows/suspend-and-resume.mdx +4 -4
- package/CHANGELOG.md +18 -0
- package/package.json +5 -5
- package/.docs/raw/reference/workflows/execute.mdx +0 -131
- /package/.docs/raw/reference/workflows/{branch.mdx → workflow-methods/branch.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{commit.mdx → workflow-methods/commit.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{create-run.mdx → workflow-methods/create-run.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{dountil.mdx → workflow-methods/dountil.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{dowhile.mdx → workflow-methods/dowhile.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{foreach.mdx → workflow-methods/foreach.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{map.mdx → workflow-methods/map.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{parallel.mdx → workflow-methods/parallel.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{sendEvent.mdx → workflow-methods/sendEvent.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{sleep.mdx → workflow-methods/sleep.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{sleepUntil.mdx → workflow-methods/sleepUntil.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{then.mdx → workflow-methods/then.mdx} +0 -0
- /package/.docs/raw/reference/workflows/{waitForEvent.mdx → workflow-methods/waitForEvent.mdx} +0 -0
|
@@ -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](
|
|
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](
|
|
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,23 @@
|
|
|
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
|
+
|
|
13
|
+
## 0.13.19-alpha.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`0662d02`](https://github.com/mastra-ai/mastra/commit/0662d02ef16916e67531890639fcd72c69cfb6e2), [`6189844`](https://github.com/mastra-ai/mastra/commit/61898448e65bda02bb814fb15801a89dc6476938), [`d7a8f59`](https://github.com/mastra-ai/mastra/commit/d7a8f59154b0621aec4f41a6b2ea2b3882f03cb7), [`4dda259`](https://github.com/mastra-ai/mastra/commit/4dda2593b6343f9258671de5fb237aeba3ef6bb7), [`defed1c`](https://github.com/mastra-ai/mastra/commit/defed1ca8040cc8d42e645c5a50a1bc52a4918d7), [`79b39c1`](https://github.com/mastra-ai/mastra/commit/79b39c1def3bbd5d6ee2d2cc1e89ea378a940477), [`6991ced`](https://github.com/mastra-ai/mastra/commit/6991cedcb5a44a49d9fe58ef67926e1f96ba55b1), [`9cb9c42`](https://github.com/mastra-ai/mastra/commit/9cb9c422854ee81074989dd2d8dccc0500ba8d3e), [`8334859`](https://github.com/mastra-ai/mastra/commit/83348594d4f37b311ba4a94d679c5f8721d796d4)]:
|
|
18
|
+
- @mastra/core@0.16.1-alpha.0
|
|
19
|
+
- @mastra/mcp@0.12.0-alpha.0
|
|
20
|
+
|
|
3
21
|
## 0.13.18
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "0.13.
|
|
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.
|
|
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.
|
|
37
|
-
"@mastra/mcp": "^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.
|
|
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)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/.docs/raw/reference/workflows/{waitForEvent.mdx → workflow-methods/waitForEvent.mdx}
RENAMED
|
File without changes
|