@mastra/mcp-docs-server 0.13.9-alpha.1 → 0.13.9-alpha.3
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%2Ftypes-builder.md +1 -0
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fauth.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +22 -22
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +22 -22
- package/.docs/organized/changelogs/%40mastra%2Fcloud.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +22 -22
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +24 -24
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Flance.md +13 -0
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +23 -23
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +22 -22
- package/.docs/organized/changelogs/%40mastra%2Fmem0.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +18 -18
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +14 -0
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +18 -18
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Frag.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +17 -17
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +15 -15
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +13 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +14 -14
- package/.docs/organized/changelogs/create-mastra.md +3 -3
- package/.docs/organized/changelogs/mastra.md +18 -18
- package/.docs/organized/code-examples/agui.md +4 -4
- package/.docs/organized/code-examples/ai-sdk-useChat.md +4 -4
- package/.docs/organized/code-examples/ai-sdk-v5.md +4 -4
- package/.docs/organized/code-examples/assistant-ui.md +4 -4
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +2 -2
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +4 -4
- package/.docs/organized/code-examples/client-side-tools.md +4 -4
- package/.docs/organized/code-examples/crypto-chatbot.md +4 -4
- package/.docs/organized/code-examples/openapi-spec-writer.md +4 -4
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +83 -40
- package/.docs/raw/agents/overview.mdx +1 -0
- package/.docs/raw/course/02-agent-tools-mcp/14-getting-github-mcp-url.md +27 -8
- package/.docs/raw/course/02-agent-tools-mcp/15-updating-mcp-config-github.md +1 -1
- package/.docs/raw/memory/memory-processors.mdx +4 -3
- package/.docs/raw/workflows/using-with-agents-and-tools.mdx +25 -0
- package/package.json +5 -5
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/voice-playai
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
8
|
+
- Updated dependencies [cb36de0]
|
|
9
|
+
- Updated dependencies [a82b851]
|
|
10
|
+
- Updated dependencies [41a0a0e]
|
|
11
|
+
- Updated dependencies [2871020]
|
|
12
|
+
- Updated dependencies [4a406ec]
|
|
13
|
+
- Updated dependencies [5d377e5]
|
|
14
|
+
- @mastra/core@0.13.0-alpha.2
|
|
15
|
+
|
|
3
16
|
## 0.10.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -286,17 +299,4 @@
|
|
|
286
299
|
|
|
287
300
|
### Patch Changes
|
|
288
301
|
|
|
289
|
-
|
|
290
|
-
- Updated dependencies [973e5ac]
|
|
291
|
-
- Updated dependencies [9e1eff5]
|
|
292
|
-
- @mastra/core@0.9.4-alpha.2
|
|
293
|
-
|
|
294
|
-
## 0.1.18-alpha.1
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- Updated dependencies [ab80e7e]
|
|
299
|
-
- Updated dependencies [6fa1ad1]
|
|
300
|
-
- Updated dependencies [c28d7a0]
|
|
301
|
-
|
|
302
|
-
... 1026 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1039 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/voice-sarvam
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
8
|
+
- Updated dependencies [cb36de0]
|
|
9
|
+
- Updated dependencies [a82b851]
|
|
10
|
+
- Updated dependencies [41a0a0e]
|
|
11
|
+
- Updated dependencies [2871020]
|
|
12
|
+
- Updated dependencies [4a406ec]
|
|
13
|
+
- Updated dependencies [5d377e5]
|
|
14
|
+
- @mastra/core@0.13.0-alpha.2
|
|
15
|
+
|
|
3
16
|
## 0.10.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -286,17 +299,4 @@
|
|
|
286
299
|
|
|
287
300
|
### Patch Changes
|
|
288
301
|
|
|
289
|
-
|
|
290
|
-
- Updated dependencies [973e5ac]
|
|
291
|
-
- Updated dependencies [9e1eff5]
|
|
292
|
-
- @mastra/core@0.9.4-alpha.2
|
|
293
|
-
|
|
294
|
-
## 0.1.13-alpha.1
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- Updated dependencies [ab80e7e]
|
|
299
|
-
- Updated dependencies [6fa1ad1]
|
|
300
|
-
- Updated dependencies [c28d7a0]
|
|
301
|
-
|
|
302
|
-
... 676 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 689 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/voice-speechify
|
|
2
2
|
|
|
3
|
+
## 0.10.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
8
|
+
- Updated dependencies [cb36de0]
|
|
9
|
+
- Updated dependencies [a82b851]
|
|
10
|
+
- Updated dependencies [41a0a0e]
|
|
11
|
+
- Updated dependencies [2871020]
|
|
12
|
+
- Updated dependencies [4a406ec]
|
|
13
|
+
- Updated dependencies [5d377e5]
|
|
14
|
+
- @mastra/core@0.13.0-alpha.2
|
|
15
|
+
|
|
3
16
|
## 0.10.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -286,17 +299,4 @@
|
|
|
286
299
|
|
|
287
300
|
### Patch Changes
|
|
288
301
|
|
|
289
|
-
|
|
290
|
-
- @mastra/core@0.9.4-alpha.4
|
|
291
|
-
|
|
292
|
-
## 0.1.18-alpha.3
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- Updated dependencies [396be50]
|
|
297
|
-
- Updated dependencies [c3bd795]
|
|
298
|
-
- Updated dependencies [da082f8]
|
|
299
|
-
- Updated dependencies [a5810ce]
|
|
300
|
-
- @mastra/core@0.9.4-alpha.3
|
|
301
|
-
|
|
302
|
-
... 1030 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1043 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.19-alpha.2
|
|
4
|
+
|
|
3
5
|
## 0.10.19-alpha.1
|
|
4
6
|
|
|
5
7
|
## 0.10.19-alpha.0
|
|
@@ -297,6 +299,4 @@
|
|
|
297
299
|
|
|
298
300
|
### Patch Changes
|
|
299
301
|
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
... 1155 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1157 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.19-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
8
|
+
- Updated dependencies [cb36de0]
|
|
9
|
+
- Updated dependencies [cb36de0]
|
|
10
|
+
- Updated dependencies [a82b851]
|
|
11
|
+
- Updated dependencies [41a0a0e]
|
|
12
|
+
- Updated dependencies [2871020]
|
|
13
|
+
- Updated dependencies [4a406ec]
|
|
14
|
+
- Updated dependencies [5d377e5]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.2
|
|
16
|
+
- @mastra/deployer@0.13.0-alpha.2
|
|
17
|
+
- @mastra/loggers@0.10.6-alpha.0
|
|
18
|
+
- @mastra/mcp@0.10.10-alpha.0
|
|
19
|
+
|
|
3
20
|
## 0.10.19-alpha.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -281,22 +298,5 @@
|
|
|
281
298
|
- af1f902: share thread list between agent, network and cloud
|
|
282
299
|
- 2affc57: Fix output type of network loop
|
|
283
300
|
- 51192f8: Spread the loaded env into the main process
|
|
284
|
-
- f6c4d75: fix date picker on change
|
|
285
|
-
- 698518b: Allow external templates from github
|
|
286
|
-
- 09464dd: Share AgentMetadata component with cloud
|
|
287
|
-
- 80c2b06: Fix agent chat stop button to cancel stream/generate reqs in the playground
|
|
288
|
-
- Updated dependencies [f248d53]
|
|
289
|
-
- Updated dependencies [82c6860]
|
|
290
|
-
- Updated dependencies [2affc57]
|
|
291
|
-
- Updated dependencies [66e13e3]
|
|
292
|
-
- Updated dependencies [edd9482]
|
|
293
|
-
- Updated dependencies [18344d7]
|
|
294
|
-
- Updated dependencies [7ba91fa]
|
|
295
|
-
- Updated dependencies [a512ede]
|
|
296
|
-
- Updated dependencies [35b1155]
|
|
297
|
-
- Updated dependencies [9d372c2]
|
|
298
|
-
- Updated dependencies [45469c5]
|
|
299
|
-
- Updated dependencies [40c2525]
|
|
300
|
-
- Updated dependencies [e473f27]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 4759 more lines hidden. See full changelog in package directory.
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"@mastra/loggers": "latest",
|
|
14
14
|
"@mastra/memory": "latest",
|
|
15
15
|
"mastra": "latest",
|
|
16
|
-
"react": "^19.1.
|
|
17
|
-
"react-dom": "^19.1.
|
|
16
|
+
"react": "^19.1.1",
|
|
17
|
+
"react-dom": "^19.1.1",
|
|
18
18
|
"zod": "^3.25.67"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@eslint/js": "^9.25.0",
|
|
22
|
-
"@types/react": "^19.1.
|
|
23
|
-
"@types/react-dom": "^19.1.
|
|
22
|
+
"@types/react": "^19.1.9",
|
|
23
|
+
"@types/react-dom": "^19.1.7",
|
|
24
24
|
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
25
25
|
"@typescript-eslint/parser": "^8.38.0",
|
|
26
26
|
"@vitejs/plugin-react": "^4.4.1",
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
"@ai-sdk/react": "^1.2.12",
|
|
8
8
|
"@mastra/core": "latest",
|
|
9
9
|
"next": "^15.3.1",
|
|
10
|
-
"react": "^19.1.
|
|
11
|
-
"react-dom": "^19.1.
|
|
10
|
+
"react": "^19.1.1",
|
|
11
|
+
"react-dom": "^19.1.1",
|
|
12
12
|
"zod": "^3.25.67"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@eslint/eslintrc": "^3.3.0",
|
|
16
16
|
"@types/node": "^20.17.57",
|
|
17
|
-
"@types/react": "^19.1.
|
|
18
|
-
"@types/react-dom": "^19.1.
|
|
17
|
+
"@types/react": "^19.1.9",
|
|
18
|
+
"@types/react-dom": "^19.1.7",
|
|
19
19
|
"eslint": "^9.30.1",
|
|
20
20
|
"eslint-config-next": "15.3.5",
|
|
21
21
|
"postcss": "^8.5.3",
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"@mastra/rag": "0.0.0-ai-v5-20250625173645",
|
|
14
14
|
"@mastra/server": "0.0.0-ai-v5-20250625173645",
|
|
15
15
|
"next": "15.2.4",
|
|
16
|
-
"react": "^19.1.
|
|
17
|
-
"react-dom": "^19.1.
|
|
16
|
+
"react": "^19.1.1",
|
|
17
|
+
"react-dom": "^19.1.1",
|
|
18
18
|
"swr": "^2.3.3",
|
|
19
19
|
"zod": "^3.25.67"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@eslint/eslintrc": "^3",
|
|
23
23
|
"@types/node": "^20",
|
|
24
|
-
"@types/react": "^19.1.
|
|
25
|
-
"@types/react-dom": "^19.1.
|
|
24
|
+
"@types/react": "^19.1.9",
|
|
25
|
+
"@types/react-dom": "^19.1.7",
|
|
26
26
|
"eslint": "^9",
|
|
27
27
|
"eslint-config-next": "15.1.7",
|
|
28
28
|
"mastra": "0.0.0-ai-v5-20250625173645",
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"@assistant-ui/react-ui": "^0.1.8",
|
|
10
10
|
"@mastra/client-js": "latest",
|
|
11
11
|
"next": "^15.3.1",
|
|
12
|
-
"react": "^19.1.
|
|
13
|
-
"react-dom": "^19.1.
|
|
12
|
+
"react": "^19.1.1",
|
|
13
|
+
"react-dom": "^19.1.1",
|
|
14
14
|
"tailwindcss-animate": "^1.0.7",
|
|
15
15
|
"zod": "^3.25.67"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/node": "^20.17.57",
|
|
19
|
-
"@types/react": "^19.1.
|
|
20
|
-
"@types/react-dom": "^19.1.
|
|
19
|
+
"@types/react": "^19.1.9",
|
|
20
|
+
"@types/react-dom": "^19.1.7",
|
|
21
21
|
"eslint": "^9.30.1",
|
|
22
22
|
"eslint-config-next": "15.3.5",
|
|
23
23
|
"postcss": "^8.5.3",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"next": "^15.3.1",
|
|
13
13
|
"next-themes": "^0.4.5",
|
|
14
14
|
"nuqs": "^2.4.1",
|
|
15
|
-
"react": "19.1.
|
|
16
|
-
"react-dom": "19.1.
|
|
15
|
+
"react": "19.1.1",
|
|
16
|
+
"react-dom": "19.1.1",
|
|
17
17
|
"sonner": "^1.7.4",
|
|
18
18
|
"tailwind-merge": "^2.6.0",
|
|
19
19
|
"tailwindcss-animate": "^1.0.7",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"next": "^15.3.1",
|
|
12
12
|
"next-themes": "^0.4.5",
|
|
13
13
|
"nuqs": "^2.4.1",
|
|
14
|
-
"react": "19.1.
|
|
15
|
-
"react-dom": "19.1.
|
|
14
|
+
"react": "19.1.1",
|
|
15
|
+
"react-dom": "19.1.1",
|
|
16
16
|
"sonner": "^1.7.4",
|
|
17
17
|
"tailwind-merge": "^2.6.0",
|
|
18
18
|
"tailwindcss-animate": "^1.0.7",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@libsql/client": "^0.15.4",
|
|
23
23
|
"@types/node": "^20.17.57",
|
|
24
|
-
"@types/react": "^19.1.
|
|
25
|
-
"@types/react-dom": "^19.1.
|
|
24
|
+
"@types/react": "^19.1.9",
|
|
25
|
+
"@types/react-dom": "^19.1.7",
|
|
26
26
|
"eslint": "^9.30.1",
|
|
27
27
|
"eslint-config-next": "15.3.5",
|
|
28
28
|
"postcss": "^8.5.3",
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"@ai-sdk/openai": "^1.3.22",
|
|
7
7
|
"@mastra/client-js": "latest",
|
|
8
8
|
"@mastra/core": "latest",
|
|
9
|
-
"react": "^19.1.
|
|
10
|
-
"react-dom": "^19.1.
|
|
9
|
+
"react": "^19.1.1",
|
|
10
|
+
"react-dom": "^19.1.1",
|
|
11
11
|
"zod": "^3.25.67"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"@eslint/js": "^9.21.0",
|
|
15
|
-
"@types/react": "^19.1.
|
|
16
|
-
"@types/react-dom": "^19.1.
|
|
15
|
+
"@types/react": "^19.1.9",
|
|
16
|
+
"@types/react-dom": "^19.1.7",
|
|
17
17
|
"@vitejs/plugin-react": "^4.3.4",
|
|
18
18
|
"eslint": "^9.30.1",
|
|
19
19
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"prosemirror-schema-list": "^1.5.1",
|
|
51
51
|
"prosemirror-state": "^1.4.3",
|
|
52
52
|
"prosemirror-view": "^1.39.1",
|
|
53
|
-
"react": "19.1.
|
|
54
|
-
"react-dom": "19.1.
|
|
53
|
+
"react": "19.1.1",
|
|
54
|
+
"react-dom": "19.1.1",
|
|
55
55
|
"react-markdown": "^9.1.0",
|
|
56
56
|
"remark-gfm": "^4.0.1",
|
|
57
57
|
"server-only": "^0.0.1",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"@types/d3-scale": "^4.0.9",
|
|
69
69
|
"@types/node": "^22.15.29",
|
|
70
70
|
"@types/pdf-parse": "^1.1.4",
|
|
71
|
-
"@types/react": "^19.1.
|
|
72
|
-
"@types/react-dom": "^19.1.
|
|
71
|
+
"@types/react": "^19.1.9",
|
|
72
|
+
"@types/react-dom": "^19.1.7",
|
|
73
73
|
"drizzle-kit": "^0.31.0",
|
|
74
74
|
"eslint": "^9.30.1",
|
|
75
75
|
"eslint-config-next": "15.3.5",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"clsx": "^2.1.1",
|
|
18
18
|
"lucide-react": "^0.454.0",
|
|
19
19
|
"next": "15.2.4",
|
|
20
|
-
"react": "^19.1.
|
|
21
|
-
"react-dom": "^19.1.
|
|
20
|
+
"react": "^19.1.1",
|
|
21
|
+
"react-dom": "^19.1.1",
|
|
22
22
|
"react-syntax-highlighter": "^15.6.1",
|
|
23
23
|
"sharp": "^0.33.5",
|
|
24
24
|
"tailwind-merge": "^2.6.0",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"@libsql/client": "^0.15.4",
|
|
31
31
|
"@types/js-yaml": "^4.0.9",
|
|
32
32
|
"@types/node": "^20.17.57",
|
|
33
|
-
"@types/react": "^19.1.
|
|
34
|
-
"@types/react-dom": "^19.1.
|
|
33
|
+
"@types/react": "^19.1.9",
|
|
34
|
+
"@types/react-dom": "^19.1.7",
|
|
35
35
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
36
36
|
"eslint": "^9.30.1",
|
|
37
37
|
"eslint-config-next": "15.3.5",
|
|
@@ -20,15 +20,21 @@
|
|
|
20
20
|
import { mastra } from './mastra';
|
|
21
21
|
|
|
22
22
|
async function main() {
|
|
23
|
-
const
|
|
24
|
-
const { start } = myWorkflow.createRun();
|
|
23
|
+
const run = await mastra.getWorkflow('myWorkflow').createRunAsync();
|
|
25
24
|
try {
|
|
26
|
-
const res = await start({
|
|
27
|
-
|
|
28
|
-
inputValue:
|
|
25
|
+
const res = await run.start({
|
|
26
|
+
inputData: {
|
|
27
|
+
inputValue: 12,
|
|
29
28
|
},
|
|
30
29
|
});
|
|
31
|
-
|
|
30
|
+
|
|
31
|
+
if (res.status === 'success') {
|
|
32
|
+
console.log(res.result);
|
|
33
|
+
} else if (res.status === 'failed') {
|
|
34
|
+
console.log('Workflow failed:', res.error);
|
|
35
|
+
} else {
|
|
36
|
+
console.log('Workflow suspended:', res.suspended);
|
|
37
|
+
}
|
|
32
38
|
} catch (e) {
|
|
33
39
|
console.log(e);
|
|
34
40
|
}
|
|
@@ -54,64 +60,101 @@ export const mastra = new Mastra({
|
|
|
54
60
|
|
|
55
61
|
### mastra/workflows/index.ts
|
|
56
62
|
```typescript
|
|
57
|
-
import {
|
|
63
|
+
import { createStep, createWorkflow } from '@mastra/core/workflows';
|
|
58
64
|
import { z } from 'zod';
|
|
59
65
|
|
|
60
|
-
const stepOne =
|
|
66
|
+
const stepOne = createStep({
|
|
61
67
|
id: 'stepOne',
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
68
|
+
inputSchema: z.object({
|
|
69
|
+
inputValue: z.number(),
|
|
70
|
+
}),
|
|
71
|
+
outputSchema: z.object({
|
|
72
|
+
doubledValue: z.number(),
|
|
73
|
+
isOriginalOdd: z.boolean(), // Track original parity
|
|
74
|
+
}),
|
|
75
|
+
execute: async ({ inputData }) => {
|
|
76
|
+
const doubledValue = inputData.inputValue * 2;
|
|
77
|
+
const isOriginalOdd = inputData.inputValue % 2 === 1;
|
|
78
|
+
return { doubledValue, isOriginalOdd };
|
|
66
79
|
},
|
|
67
80
|
});
|
|
68
81
|
|
|
69
|
-
const stepTwo =
|
|
82
|
+
const stepTwo = createStep({
|
|
70
83
|
id: 'stepTwo',
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
inputSchema: z.object({
|
|
85
|
+
doubledValue: z.number(),
|
|
86
|
+
isOriginalOdd: z.boolean(),
|
|
87
|
+
}),
|
|
88
|
+
outputSchema: z.object({
|
|
89
|
+
incrementedValue: z.number(),
|
|
90
|
+
}),
|
|
91
|
+
execute: async ({ inputData }) => {
|
|
92
|
+
// Increment only if original input was odd
|
|
93
|
+
const incrementedValue = inputData.doubledValue + (inputData.isOriginalOdd ? 1 : 0);
|
|
77
94
|
return { incrementedValue };
|
|
78
95
|
},
|
|
79
96
|
});
|
|
80
97
|
|
|
81
|
-
const stepThree =
|
|
98
|
+
const stepThree = createStep({
|
|
82
99
|
id: 'stepThree',
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
100
|
+
inputSchema: z.object({
|
|
101
|
+
incrementedValue: z.number(),
|
|
102
|
+
}),
|
|
103
|
+
outputSchema: z.object({
|
|
104
|
+
tripledValue: z.number(),
|
|
105
|
+
}),
|
|
106
|
+
execute: async ({ inputData, getStepResult }) => {
|
|
107
|
+
try {
|
|
108
|
+
const stepTwoResult = getStepResult(stepTwo);
|
|
109
|
+
if (!stepTwoResult || typeof stepTwoResult.incrementedValue !== 'number') {
|
|
110
|
+
throw new Error('stepTwo failed or returned invalid data');
|
|
111
|
+
}
|
|
112
|
+
} catch (error) {
|
|
113
|
+
throw new Error(`stepTwo failed: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const tripledValue = inputData.incrementedValue * 3;
|
|
86
117
|
return { tripledValue };
|
|
87
118
|
},
|
|
88
119
|
});
|
|
89
120
|
|
|
90
|
-
const stepFour =
|
|
121
|
+
const stepFour = createStep({
|
|
91
122
|
id: 'stepFour',
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
123
|
+
inputSchema: z.object({
|
|
124
|
+
tripledValue: z.number(),
|
|
125
|
+
}),
|
|
126
|
+
outputSchema: z.object({
|
|
127
|
+
isEven: z.boolean(),
|
|
128
|
+
}),
|
|
129
|
+
execute: async ({ inputData, getStepResult }) => {
|
|
130
|
+
try {
|
|
131
|
+
const stepThreeResult = getStepResult(stepThree);
|
|
132
|
+
if (!stepThreeResult || typeof stepThreeResult.tripledValue !== 'number') {
|
|
133
|
+
throw new Error('stepThree failed or returned invalid data');
|
|
134
|
+
}
|
|
135
|
+
} catch (error) {
|
|
136
|
+
throw new Error(`stepThree failed: ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
95
137
|
}
|
|
96
|
-
|
|
97
|
-
const isEven =
|
|
138
|
+
|
|
139
|
+
const isEven = inputData.tripledValue % 2 === 0;
|
|
98
140
|
return { isEven };
|
|
99
141
|
},
|
|
100
142
|
});
|
|
101
143
|
|
|
102
|
-
export const myWorkflow =
|
|
103
|
-
|
|
104
|
-
|
|
144
|
+
export const myWorkflow = createWorkflow({
|
|
145
|
+
id: 'my-workflow',
|
|
146
|
+
inputSchema: z.object({
|
|
105
147
|
inputValue: z.number(),
|
|
106
148
|
}),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
149
|
+
outputSchema: z.object({
|
|
150
|
+
isEven: z.boolean(),
|
|
151
|
+
}),
|
|
152
|
+
})
|
|
153
|
+
.then(stepOne)
|
|
154
|
+
.then(stepTwo)
|
|
155
|
+
.then(stepThree)
|
|
156
|
+
.then(stepFour);
|
|
114
157
|
|
|
115
|
-
|
|
158
|
+
myWorkflow.commit();
|
|
116
159
|
|
|
117
160
|
```
|
|
@@ -1,16 +1,35 @@
|
|
|
1
|
-
# Getting a
|
|
1
|
+
# Getting a Smithery GitHub MCP URL
|
|
2
2
|
|
|
3
|
-
First, you'll need to get a
|
|
3
|
+
First, you'll need to get a Smithery GitHub MCP URL. This typically requires:
|
|
4
4
|
|
|
5
|
-
1. Setting up
|
|
6
|
-
2.
|
|
7
|
-
3. Getting your unique MCP URL
|
|
5
|
+
1. Setting up a Smithery account
|
|
6
|
+
2. Creating a personal access token with your GitHub account
|
|
7
|
+
3. Getting your unique MCP URL via the Smithery packages
|
|
8
8
|
|
|
9
|
-
For this example, we'll use an environment variable to store the
|
|
9
|
+
For this example, we'll use an environment variable to store the Smithery API key and profile name which can be found in the Smithery interface.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
# Add this to your .env file
|
|
13
|
-
|
|
13
|
+
SMITHERY_API_KEY=your_smithery_api_key
|
|
14
|
+
SMITHERY_PROFILE=your_smithery_profile_name
|
|
14
15
|
```
|
|
15
16
|
|
|
16
|
-
Using an environment variable keeps your configuration secure and flexible.
|
|
17
|
+
Using an environment variable keeps your configuration secure and flexible. It also prevents sensitive information from being committed to your repository.
|
|
18
|
+
|
|
19
|
+
We will use the Smithery packages to authenticate and create a streamable HTTP URL for the MCP server configuration
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm install @smithery/sdk
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```ts
|
|
26
|
+
import { createSmitheryUrl } from "@smithery/sdk";
|
|
27
|
+
|
|
28
|
+
const smitheryGithubMCPServerUrl = createSmitheryUrl(
|
|
29
|
+
"https://server.smithery.ai/@smithery-ai/github",
|
|
30
|
+
{
|
|
31
|
+
apiKey: process.env.SMITHERY_API_KEY,
|
|
32
|
+
profile: process.env.SMITHERY_PROFILE,
|
|
33
|
+
},
|
|
34
|
+
);
|
|
35
|
+
```
|
|
@@ -97,9 +97,10 @@ const memoryWithMultipleProcessors = new Memory({
|
|
|
97
97
|
|
|
98
98
|
You can create custom logic by extending the base `MemoryProcessor` class.
|
|
99
99
|
|
|
100
|
-
```typescript copy showLineNumbers {
|
|
101
|
-
import { Memory
|
|
102
|
-
import {
|
|
100
|
+
```typescript copy showLineNumbers {5-20,24-27}
|
|
101
|
+
import { Memory } from "@mastra/memory";
|
|
102
|
+
import { CoreMessage, MemoryProcessorOpts } from "@mastra/core";
|
|
103
|
+
import { MemoryProcessor } from "@mastra/core/memory";
|
|
103
104
|
|
|
104
105
|
class ConversationOnlyFilter extends MemoryProcessor {
|
|
105
106
|
constructor() {
|
|
@@ -258,6 +258,31 @@ export const cityCoordinatesTool = createTool({
|
|
|
258
258
|
});
|
|
259
259
|
```
|
|
260
260
|
|
|
261
|
+
## Using workflows in agents
|
|
262
|
+
|
|
263
|
+
You can also use Workflows in Agents. This agent is able to choose between using the test tool or the test workflow.
|
|
264
|
+
|
|
265
|
+
```typescript
|
|
266
|
+
import { openai } from "@ai-sdk/openai";
|
|
267
|
+
import { Agent } from "@mastra/core/agent";
|
|
268
|
+
import { testTool } from "../tools/test-tool";
|
|
269
|
+
import { testWorkflow } from "../workflows/test-workflow";
|
|
270
|
+
|
|
271
|
+
export const testAgent = new Agent({
|
|
272
|
+
name: "test-agent",
|
|
273
|
+
description: "Create facts for a country based on the city",
|
|
274
|
+
instructions: `Return an interesting fact about the country based on the city provided`,
|
|
275
|
+
model: openai("gpt-4o"),
|
|
276
|
+
workflows: {
|
|
277
|
+
test_workflow: testWorkflow
|
|
278
|
+
},
|
|
279
|
+
tools: {
|
|
280
|
+
test_tool: testTool
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
|
|
261
286
|
## Exposing workflows with `MCPServer`
|
|
262
287
|
|
|
263
288
|
You can convert your workflows into tools by passing them into an instance of a Mastra `MCPServer`. This allows any MCP-compatible client to access your workflow.
|