@mastra/mcp-docs-server 0.11.1-alpha.1 → 0.11.1-alpha.2
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/%40mastra%2Fclickhouse.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +23 -23
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +9 -0
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +20 -20
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +20 -20
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +10 -10
- package/.docs/organized/changelogs/create-mastra.md +7 -7
- package/.docs/organized/changelogs/mastra.md +23 -23
- package/.docs/raw/observability/logging.mdx +1 -1
- package/.docs/raw/reference/workflows/step.mdx +14 -0
- package/dist/_tsup-dts-rollup.d.ts +31 -27
- package/dist/stdio.js +38 -272
- package/package.json +2 -2
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/clickhouse
|
|
2
2
|
|
|
3
|
+
## 0.10.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.1-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- Updated dependencies [479f490]
|
|
290
299
|
- Updated dependencies [c23a81c]
|
|
291
300
|
- Updated dependencies [2d4001d]
|
|
292
|
-
- Updated dependencies [c71013a]
|
|
293
|
-
- Updated dependencies [1d3b1cd]
|
|
294
|
-
- @mastra/core@0.9.1
|
|
295
|
-
|
|
296
|
-
## 0.3.1-alpha.8
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [2d17c73]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 369 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.2-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
Add fromDate and toDate to telemetry parameters
|
|
290
299
|
- 254f5c3: Audit, cleanup MastraClient
|
|
291
300
|
- 0097d50: Add serializedStepGraph to vNext workflow
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
- 2429c74: Add get workflow runs api to client-js
|
|
295
|
-
- 2e4f8e9: Agui client integration
|
|
296
|
-
- Updated dependencies [6052aa6]
|
|
297
|
-
- Updated dependencies [967b41c]
|
|
298
|
-
- Updated dependencies [3d2fb5c]
|
|
299
|
-
- Updated dependencies [26738f4]
|
|
300
|
-
- Updated dependencies [4155f47]
|
|
301
|
-
|
|
302
|
-
... 1045 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 1054 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/cloudflare-d1
|
|
2
2
|
|
|
3
|
+
## 0.10.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.1-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- Updated dependencies [479f490]
|
|
290
299
|
- Updated dependencies [c23a81c]
|
|
291
300
|
- Updated dependencies [2d4001d]
|
|
292
|
-
- Updated dependencies [c71013a]
|
|
293
|
-
- Updated dependencies [1d3b1cd]
|
|
294
|
-
- @mastra/core@0.9.1
|
|
295
|
-
|
|
296
|
-
## 0.1.6-alpha.9
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [2d17c73]
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 135 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- 12b7002: Add serializedStepGraph to workflow run snapshot in storage
|
|
9
|
+
- Updated dependencies [c5bf1ce]
|
|
10
|
+
- Updated dependencies [12b7002]
|
|
11
|
+
- @mastra/core@0.10.2-alpha.4
|
|
12
|
+
|
|
3
13
|
## 0.10.2-alpha.2
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -289,14 +299,4 @@
|
|
|
289
299
|
- Updated dependencies [26738f4]
|
|
290
300
|
- @mastra/core@0.9.2-alpha.2
|
|
291
301
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- Updated dependencies [b804723]
|
|
297
|
-
- @mastra/core@0.9.2-alpha.1
|
|
298
|
-
|
|
299
|
-
## 0.1.2-alpha.0
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
... 355 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 365 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- 12b7002: Add serializedStepGraph to workflow run snapshot in storage
|
|
9
|
+
|
|
10
|
+
## 0.10.2-alpha.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- ab5adbe: Add support for runtimeContext to generateTitle
|
|
15
|
+
- 195c428: Add runId to step execute fn
|
|
16
|
+
- f73e11b: fix telemetry disabled not working on playground
|
|
17
|
+
|
|
3
18
|
## 0.10.2-alpha.2
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -284,19 +299,4 @@
|
|
|
284
299
|
|
|
285
300
|
- 26738f4: Switched from a custom MCP tools schema deserializer to json-schema-to-zod - fixes an issue where MCP tool schemas didn't deserialize properly in Mastra playground. Also added support for testing tools with no input arguments in playground
|
|
286
301
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- b804723: Fix #3831: keep conversations in tact by keeping empty assistant messages
|
|
292
|
-
|
|
293
|
-
## 0.9.2-alpha.0
|
|
294
|
-
|
|
295
|
-
### Patch Changes
|
|
296
|
-
|
|
297
|
-
- 0097d50: Add serializedStepGraph to vNext workflow
|
|
298
|
-
Return serializedStepGraph from vNext workflow
|
|
299
|
-
Use serializedStepGraph in vNext workflow graph
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
... 1654 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1669 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/deployer-cloudflare
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c5bf1ce]
|
|
8
|
+
- Updated dependencies [12b7002]
|
|
9
|
+
- @mastra/core@0.10.2-alpha.4
|
|
10
|
+
- @mastra/deployer@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 0.10.2-alpha.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [ab5adbe]
|
|
17
|
+
- Updated dependencies [195c428]
|
|
18
|
+
- Updated dependencies [f73e11b]
|
|
19
|
+
- Updated dependencies [f946acf]
|
|
20
|
+
- @mastra/core@0.10.2-alpha.3
|
|
21
|
+
- @mastra/deployer@0.10.2-alpha.3
|
|
22
|
+
|
|
3
23
|
## 0.10.2-alpha.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -278,25 +298,5 @@
|
|
|
278
298
|
- @mastra/core@0.9.3-alpha.0
|
|
279
299
|
- @mastra/deployer@0.3.3-alpha.0
|
|
280
300
|
|
|
281
|
-
## 0.1.21
|
|
282
|
-
|
|
283
|
-
### Patch Changes
|
|
284
301
|
|
|
285
|
-
|
|
286
|
-
- Updated dependency [`zod@^3.24.3` ↗︎](https://www.npmjs.com/package/zod/v/3.24.3) (from `^3.24.2`, in `dependencies`)
|
|
287
|
-
- 8607972: Introduce Mastra lint cli command
|
|
288
|
-
- Updated dependencies [2cf3b8f]
|
|
289
|
-
- Updated dependencies [6052aa6]
|
|
290
|
-
- Updated dependencies [967b41c]
|
|
291
|
-
- Updated dependencies [3d2fb5c]
|
|
292
|
-
- Updated dependencies [26738f4]
|
|
293
|
-
- Updated dependencies [4155f47]
|
|
294
|
-
- Updated dependencies [254f5c3]
|
|
295
|
-
- Updated dependencies [7eeb2bc]
|
|
296
|
-
- Updated dependencies [b804723]
|
|
297
|
-
- Updated dependencies [8607972]
|
|
298
|
-
- Updated dependencies [a798090]
|
|
299
|
-
- Updated dependencies [ccef9f9]
|
|
300
|
-
- Updated dependencies [0097d50]
|
|
301
|
-
|
|
302
|
-
... 2105 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2125 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/deployer-netlify
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c5bf1ce]
|
|
8
|
+
- Updated dependencies [12b7002]
|
|
9
|
+
- @mastra/core@0.10.2-alpha.4
|
|
10
|
+
- @mastra/deployer@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 0.10.2-alpha.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [ab5adbe]
|
|
17
|
+
- Updated dependencies [195c428]
|
|
18
|
+
- Updated dependencies [f73e11b]
|
|
19
|
+
- Updated dependencies [f946acf]
|
|
20
|
+
- @mastra/core@0.10.2-alpha.3
|
|
21
|
+
- @mastra/deployer@0.10.2-alpha.3
|
|
22
|
+
|
|
3
23
|
## 0.10.2-alpha.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -278,25 +298,5 @@
|
|
|
278
298
|
|
|
279
299
|
## 0.1.21
|
|
280
300
|
|
|
281
|
-
### Patch Changes
|
|
282
301
|
|
|
283
|
-
|
|
284
|
-
- Updated dependency [`zod@^3.24.3` ↗︎](https://www.npmjs.com/package/zod/v/3.24.3) (from `^3.24.2`, in `dependencies`)
|
|
285
|
-
- 8607972: Introduce Mastra lint cli command
|
|
286
|
-
- Updated dependencies [2cf3b8f]
|
|
287
|
-
- Updated dependencies [6052aa6]
|
|
288
|
-
- Updated dependencies [967b41c]
|
|
289
|
-
- Updated dependencies [3d2fb5c]
|
|
290
|
-
- Updated dependencies [26738f4]
|
|
291
|
-
- Updated dependencies [4155f47]
|
|
292
|
-
- Updated dependencies [254f5c3]
|
|
293
|
-
- Updated dependencies [7eeb2bc]
|
|
294
|
-
- Updated dependencies [b804723]
|
|
295
|
-
- Updated dependencies [8607972]
|
|
296
|
-
- Updated dependencies [a798090]
|
|
297
|
-
- Updated dependencies [ccef9f9]
|
|
298
|
-
- Updated dependencies [0097d50]
|
|
299
|
-
- Updated dependencies [7eeb2bc]
|
|
300
|
-
- Updated dependencies [17826a9]
|
|
301
|
-
|
|
302
|
-
... 2073 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2093 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @mastra/deployer-vercel
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c5bf1ce]
|
|
8
|
+
- Updated dependencies [12b7002]
|
|
9
|
+
- @mastra/core@0.10.2-alpha.4
|
|
10
|
+
- @mastra/deployer@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 0.10.2-alpha.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [ab5adbe]
|
|
17
|
+
- Updated dependencies [195c428]
|
|
18
|
+
- Updated dependencies [f73e11b]
|
|
19
|
+
- Updated dependencies [f946acf]
|
|
20
|
+
- @mastra/core@0.10.2-alpha.3
|
|
21
|
+
- @mastra/deployer@0.10.2-alpha.3
|
|
22
|
+
|
|
3
23
|
## 0.10.2-alpha.2
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -278,25 +298,5 @@
|
|
|
278
298
|
- Updated dependencies [b5d2de0]
|
|
279
299
|
- Updated dependencies [644f8ad]
|
|
280
300
|
- @mastra/core@0.9.3-alpha.0
|
|
281
|
-
- @mastra/deployer@0.3.3-alpha.0
|
|
282
|
-
|
|
283
|
-
## 0.1.21
|
|
284
|
-
|
|
285
|
-
### Patch Changes
|
|
286
301
|
|
|
287
|
-
|
|
288
|
-
- 0af36c5: Fix bug where we were not traversing dirs when creating vercel.json to add al files to the includedFiles array
|
|
289
|
-
- Updated dependencies [2cf3b8f]
|
|
290
|
-
- Updated dependencies [6052aa6]
|
|
291
|
-
- Updated dependencies [967b41c]
|
|
292
|
-
- Updated dependencies [3d2fb5c]
|
|
293
|
-
- Updated dependencies [26738f4]
|
|
294
|
-
- Updated dependencies [4155f47]
|
|
295
|
-
- Updated dependencies [254f5c3]
|
|
296
|
-
- Updated dependencies [7eeb2bc]
|
|
297
|
-
- Updated dependencies [b804723]
|
|
298
|
-
- Updated dependencies [8607972]
|
|
299
|
-
- Updated dependencies [a798090]
|
|
300
|
-
- Updated dependencies [ccef9f9]
|
|
301
|
-
|
|
302
|
-
... 2077 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2097 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c5bf1ce]
|
|
8
|
+
- Updated dependencies [12b7002]
|
|
9
|
+
- @mastra/server@0.10.2-alpha.4
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 0.10.2-alpha.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- f73e11b: fix telemetry disabled not working on playground
|
|
17
|
+
- f946acf: Filter out dynamic imports by node builtins
|
|
18
|
+
- Updated dependencies [ab5adbe]
|
|
19
|
+
- Updated dependencies [195c428]
|
|
20
|
+
- Updated dependencies [f73e11b]
|
|
21
|
+
- Updated dependencies [422ee9e]
|
|
22
|
+
- @mastra/core@0.10.2-alpha.3
|
|
23
|
+
- @mastra/server@0.10.2-alpha.3
|
|
24
|
+
|
|
3
25
|
## 0.10.2-alpha.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -276,27 +298,5 @@
|
|
|
276
298
|
- Updated dependencies [e450778]
|
|
277
299
|
- Updated dependencies [8902157]
|
|
278
300
|
- Updated dependencies [ca0dc88]
|
|
279
|
-
- Updated dependencies [526c570]
|
|
280
|
-
- Updated dependencies [d7a6a33]
|
|
281
|
-
- Updated dependencies [9cd1a46]
|
|
282
|
-
- Updated dependencies [b5d2de0]
|
|
283
|
-
- Updated dependencies [644f8ad]
|
|
284
|
-
- Updated dependencies [70dbf51]
|
|
285
|
-
- @mastra/core@0.9.3
|
|
286
|
-
- @mastra/server@2.0.3
|
|
287
|
-
|
|
288
|
-
## 0.3.3-alpha.1
|
|
289
|
-
|
|
290
|
-
### Patch Changes
|
|
291
|
-
|
|
292
|
-
- 8902157: added an optional `bodySizeLimit` to server config so that users can pass custom bodylimit size in mb. If not, it defaults to 4.5 mb
|
|
293
|
-
- 70dbf51: [MASTRA-2452] updated setBaggage for tracing
|
|
294
|
-
- Updated dependencies [e450778]
|
|
295
|
-
- Updated dependencies [8902157]
|
|
296
|
-
- Updated dependencies [ca0dc88]
|
|
297
|
-
- Updated dependencies [9cd1a46]
|
|
298
|
-
- Updated dependencies [70dbf51]
|
|
299
|
-
- @mastra/core@0.9.3-alpha.1
|
|
300
|
-
- @mastra/server@2.0.3-alpha.1
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2102 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/dynamodb
|
|
2
2
|
|
|
3
|
+
## 0.10.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.1-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/libsql
|
|
2
2
|
|
|
3
|
+
## 0.10.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.1-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- Updated dependencies [6262bd5]
|
|
290
299
|
- Updated dependencies [c1409ef]
|
|
291
300
|
- Updated dependencies [3e7b69d]
|
|
292
|
-
- Updated dependencies [e4943b8]
|
|
293
|
-
- Updated dependencies [11d4485]
|
|
294
|
-
- Updated dependencies [479f490]
|
|
295
|
-
- Updated dependencies [c23a81c]
|
|
296
|
-
- Updated dependencies [2d4001d]
|
|
297
|
-
- Updated dependencies [c71013a]
|
|
298
|
-
- Updated dependencies [1d3b1cd]
|
|
299
|
-
- @mastra/core@0.9.1
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 77 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.11.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- beb9dfa: Update mcp docs server to use MCPServer component
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.11.1-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -290,13 +299,4 @@
|
|
|
290
299
|
- @mastra/core@0.9.2
|
|
291
300
|
- @mastra/mcp@0.4.2
|
|
292
301
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
### Patch Changes
|
|
296
|
-
|
|
297
|
-
- Updated dependencies [6052aa6]
|
|
298
|
-
- Updated dependencies [7d8b7c7]
|
|
299
|
-
- Updated dependencies [3a5f1e1]
|
|
300
|
-
- Updated dependencies [8398d89]
|
|
301
|
-
|
|
302
|
-
... 647 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 656 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/memory
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.2-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -290,13 +299,4 @@
|
|
|
290
299
|
|
|
291
300
|
### Patch Changes
|
|
292
301
|
|
|
293
|
-
|
|
294
|
-
- @mastra/core@0.9.2-alpha.1
|
|
295
|
-
|
|
296
|
-
## 0.3.2-alpha.0
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [0097d50]
|
|
301
|
-
|
|
302
|
-
... 1961 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1970 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.2-alpha.0
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -290,13 +299,4 @@
|
|
|
290
299
|
|
|
291
300
|
## 0.0.3-alpha.0
|
|
292
301
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
- Updated dependencies [0097d50]
|
|
296
|
-
- @mastra/core@0.9.2-alpha.0
|
|
297
|
-
|
|
298
|
-
## 0.0.2
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
... 92 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 101 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/pg
|
|
2
2
|
|
|
3
|
+
## 0.10.1-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.1-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- 479f490: [MASTRA-3131] Add getWorkflowRunByID and add resourceId as filter for getWorkflowRuns
|
|
290
299
|
- 6a76949: add PgVector pgPoolOptions constructor parameter
|
|
291
300
|
- 5f826d9: Moved vector store specific prompts from @mastra/rag to be exported from the store that the prompt belongs to, ie @mastra/pg
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
- Updated dependencies [81fb7f6]
|
|
295
|
-
- Updated dependencies [20275d4]
|
|
296
|
-
- Updated dependencies [7d1892c]
|
|
297
|
-
- Updated dependencies [a90a082]
|
|
298
|
-
- Updated dependencies [2d17c73]
|
|
299
|
-
- Updated dependencies [61e92f5]
|
|
300
|
-
- Updated dependencies [35955b0]
|
|
301
|
-
|
|
302
|
-
... 1370 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 1379 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 5.1.2-alpha.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c5bf1ce]
|
|
8
|
+
- Updated dependencies [12b7002]
|
|
9
|
+
- @mastra/client-js@0.10.2-alpha.2
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 5.1.2-alpha.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 068b850: fix: able to pass headers to playground components which are using the mastra client
|
|
17
|
+
- Updated dependencies [ab5adbe]
|
|
18
|
+
- Updated dependencies [195c428]
|
|
19
|
+
- Updated dependencies [f73e11b]
|
|
20
|
+
- @mastra/core@0.10.2-alpha.3
|
|
21
|
+
|
|
3
22
|
## 5.1.2-alpha.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -280,23 +299,4 @@
|
|
|
280
299
|
|
|
281
300
|
## 5.0.4-alpha.0
|
|
282
301
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
286
|
-
- Updated dependencies [cb1f698]
|
|
287
|
-
- Updated dependencies [daf942f]
|
|
288
|
-
- Updated dependencies [0b8b868]
|
|
289
|
-
- @mastra/client-js@0.1.22-alpha.0
|
|
290
|
-
- @mastra/core@0.9.4-alpha.0
|
|
291
|
-
|
|
292
|
-
## 5.0.3
|
|
293
|
-
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- b5d2de0: In vNext workflow serializedStepGraph, return only serializedStepFlow for steps created from a workflow
|
|
297
|
-
allow viewing inner nested workflows in a multi-layered nested vnext workflow on the playground
|
|
298
|
-
- 62c9e7d: Fix disappearing tool calls in streaming
|
|
299
|
-
- d2dfc37: Fix autoform number form default value
|
|
300
|
-
- Updated dependencies [e450778]
|
|
301
|
-
|
|
302
|
-
... 1217 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 1236 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 0.10.2-alpha.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 422ee9e: Fix a2a getTask to be undefined
|
|
17
|
+
- Updated dependencies [ab5adbe]
|
|
18
|
+
- Updated dependencies [195c428]
|
|
19
|
+
- Updated dependencies [f73e11b]
|
|
20
|
+
- @mastra/core@0.10.2-alpha.3
|
|
21
|
+
|
|
3
22
|
## 0.10.2-alpha.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -279,24 +298,5 @@
|
|
|
279
298
|
- Updated dependencies [7eeb2bc]
|
|
280
299
|
- Updated dependencies [17826a9]
|
|
281
300
|
- Updated dependencies [7d8b7c7]
|
|
282
|
-
- Updated dependencies [fba031f]
|
|
283
|
-
- Updated dependencies [3a5f1e1]
|
|
284
|
-
- Updated dependencies [51e6923]
|
|
285
|
-
- Updated dependencies [8398d89]
|
|
286
|
-
- @mastra/core@0.9.2
|
|
287
|
-
|
|
288
|
-
## 2.0.2-alpha.6
|
|
289
|
-
|
|
290
|
-
### Patch Changes
|
|
291
|
-
|
|
292
|
-
- 6052aa6: Add getWorkflowRunById to vNext workflow core and server handler
|
|
293
|
-
- Updated dependencies [6052aa6]
|
|
294
|
-
- Updated dependencies [7d8b7c7]
|
|
295
|
-
- Updated dependencies [3a5f1e1]
|
|
296
|
-
- Updated dependencies [8398d89]
|
|
297
|
-
- @mastra/core@0.9.2-alpha.6
|
|
298
|
-
|
|
299
|
-
## 2.0.2-alpha.5
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1828 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/upstash
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
8
|
+
- Updated dependencies [c5bf1ce]
|
|
9
|
+
- Updated dependencies [12b7002]
|
|
10
|
+
- @mastra/core@0.10.2-alpha.4
|
|
11
|
+
|
|
3
12
|
## 0.10.2-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
|
|
290
299
|
## 0.3.2-alpha.0
|
|
291
300
|
|
|
292
|
-
### Patch Changes
|
|
293
|
-
|
|
294
|
-
- Updated dependencies [0097d50]
|
|
295
|
-
- @mastra/core@0.9.2-alpha.0
|
|
296
|
-
|
|
297
|
-
## 0.3.1
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1336 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f73e11b: fix telemetry disabled not working on playground
|
|
8
|
+
|
|
3
9
|
## 0.10.2-alpha.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -293,10 +299,4 @@
|
|
|
293
299
|
|
|
294
300
|
### Patch Changes
|
|
295
301
|
|
|
296
|
-
|
|
297
|
-
- b50b9b7: Add vNext workflow to client-js
|
|
298
|
-
- 11d4485: Show VNext workflows on the playground
|
|
299
|
-
Show running status for step in vNext workflowState
|
|
300
|
-
- 8863033: Fix tools api in local dev api
|
|
301
|
-
|
|
302
|
-
... 768 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 774 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.10.2-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [c5bf1ce]
|
|
8
|
+
- Updated dependencies [12b7002]
|
|
9
|
+
- @mastra/core@0.10.2-alpha.4
|
|
10
|
+
- @mastra/deployer@0.10.2-alpha.4
|
|
11
|
+
|
|
12
|
+
## 0.10.2-alpha.3
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- f73e11b: fix telemetry disabled not working on playground
|
|
17
|
+
- 068b850: fix: able to pass headers to playground components which are using the mastra client
|
|
18
|
+
- Updated dependencies [ab5adbe]
|
|
19
|
+
- Updated dependencies [195c428]
|
|
20
|
+
- Updated dependencies [f73e11b]
|
|
21
|
+
- Updated dependencies [f946acf]
|
|
22
|
+
- @mastra/core@0.10.2-alpha.3
|
|
23
|
+
- @mastra/deployer@0.10.2-alpha.3
|
|
24
|
+
|
|
3
25
|
## 0.10.2-alpha.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -277,26 +299,4 @@
|
|
|
277
299
|
|
|
278
300
|
## 0.6.3
|
|
279
301
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
- cebc50a: "mastra lint now supports comments in tsconfig.json"
|
|
283
|
-
- 15dc8e4: Use detected package manager in post-create instructions
|
|
284
|
-
- a3435f8: Add node engine to create-mastra project package.json
|
|
285
|
-
- cb1f698: Set runtimeContext from playground for agents, tools, workflows
|
|
286
|
-
- Updated dependencies [396be50]
|
|
287
|
-
- Updated dependencies [ab80e7e]
|
|
288
|
-
- Updated dependencies [5c70b8a]
|
|
289
|
-
- Updated dependencies [c3bd795]
|
|
290
|
-
- Updated dependencies [da082f8]
|
|
291
|
-
- Updated dependencies [a5810ce]
|
|
292
|
-
- Updated dependencies [3e9c131]
|
|
293
|
-
- Updated dependencies [3171b5b]
|
|
294
|
-
- Updated dependencies [03c40d1]
|
|
295
|
-
- Updated dependencies [cb1f698]
|
|
296
|
-
- Updated dependencies [973e5ac]
|
|
297
|
-
- Updated dependencies [daf942f]
|
|
298
|
-
- Updated dependencies [0b8b868]
|
|
299
|
-
- Updated dependencies [9e1eff5]
|
|
300
|
-
- Updated dependencies [6fa1ad1]
|
|
301
|
-
|
|
302
|
-
... 3432 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3454 more lines hidden. See full changelog in package directory.
|
|
@@ -33,6 +33,6 @@ In this configuration:
|
|
|
33
33
|
|
|
34
34
|
## Configuration
|
|
35
35
|
|
|
36
|
-
- For more details on the options you can pass to `PinoLogger()`, see the [PinoLogger reference documentation](/reference/observability/
|
|
36
|
+
- For more details on the options you can pass to `PinoLogger()`, see the [PinoLogger reference documentation](/reference/observability/logger).
|
|
37
37
|
- Once you have a `Logger` instance, you can call its methods (e.g., `.info()`, `.warn()`, `.error()`) in the [Logger instance reference documentation](/reference/observability/logger.mdx).
|
|
38
38
|
- If you want to send your logs to an external service for centralized collection, analysis, or storage, you can configure other logger types such as Upstash Redis. Consult the [Logger reference documentation](/reference/observability/create-logger.mdx) for details on parameters like `url`, `token`, and `key` when using the `UPSTASH` logger type.
|
|
@@ -34,6 +34,8 @@ const processOrder = createStep({
|
|
|
34
34
|
getStepResult,
|
|
35
35
|
getInitData,
|
|
36
36
|
suspend,
|
|
37
|
+
runtimeContext,
|
|
38
|
+
runId,
|
|
37
39
|
}) => {
|
|
38
40
|
return {
|
|
39
41
|
status: "processed",
|
|
@@ -128,6 +130,18 @@ const processOrder = createStep({
|
|
|
128
130
|
type: "() => Promise<void>",
|
|
129
131
|
description: "Function to pause workflow execution",
|
|
130
132
|
},
|
|
133
|
+
{
|
|
134
|
+
name: "runId",
|
|
135
|
+
type: "string",
|
|
136
|
+
description: "Current run id",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "runtimeContext",
|
|
140
|
+
type: "RuntimeContext",
|
|
141
|
+
isOptional: true,
|
|
142
|
+
description:
|
|
143
|
+
"Runtime context for dependency injection and contextual information.",
|
|
144
|
+
},
|
|
131
145
|
]}
|
|
132
146
|
/>
|
|
133
147
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MCPClient } from '@mastra/mcp';
|
|
2
|
-
import {
|
|
2
|
+
import { MCPServer } from '@mastra/mcp';
|
|
3
3
|
import { ServerType } from '@hono/node-server/.';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
@@ -16,13 +16,14 @@ export declare const blogInputSchema: z.ZodObject<{
|
|
|
16
16
|
export declare const blogTool: {
|
|
17
17
|
name: string;
|
|
18
18
|
description: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
parameters: z.ZodObject<{
|
|
20
|
+
url: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
url: string;
|
|
23
|
+
}, {
|
|
24
|
+
url: string;
|
|
25
25
|
}>;
|
|
26
|
+
execute: (args: BlogInput) => Promise<string>;
|
|
26
27
|
};
|
|
27
28
|
|
|
28
29
|
export declare function callTool(tool: any, args: any): Promise<string>;
|
|
@@ -40,13 +41,14 @@ export declare const changesInputSchema: z.ZodObject<{
|
|
|
40
41
|
export declare const changesTool: {
|
|
41
42
|
name: string;
|
|
42
43
|
description: string;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
parameters: z.ZodObject<{
|
|
45
|
+
package: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
package?: string | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
package?: string | undefined;
|
|
49
50
|
}>;
|
|
51
|
+
execute: (args: ChangesInput) => Promise<string>;
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
export declare const clearMastraCourseHistory: {
|
|
@@ -92,7 +94,7 @@ declare type CourseState = {
|
|
|
92
94
|
}>;
|
|
93
95
|
};
|
|
94
96
|
|
|
95
|
-
export declare function createLogger(server?:
|
|
97
|
+
export declare function createLogger(server?: MCPServer): Logger;
|
|
96
98
|
|
|
97
99
|
export declare type DocsInput = z.infer<typeof docsInputSchema>;
|
|
98
100
|
|
|
@@ -107,13 +109,14 @@ export declare const docsInputSchema: z.ZodObject<{
|
|
|
107
109
|
export declare const docsTool: {
|
|
108
110
|
name: string;
|
|
109
111
|
description: string;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
parameters: z.ZodObject<{
|
|
113
|
+
paths: z.ZodArray<z.ZodString, "many">;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
paths: string[];
|
|
116
|
+
}, {
|
|
117
|
+
paths: string[];
|
|
116
118
|
}>;
|
|
119
|
+
execute: (args: DocsInput) => Promise<string>;
|
|
117
120
|
};
|
|
118
121
|
|
|
119
122
|
export declare type ExamplesInput = z.infer<typeof examplesInputSchema>;
|
|
@@ -129,13 +132,14 @@ export declare const examplesInputSchema: z.ZodObject<{
|
|
|
129
132
|
export declare const examplesTool: {
|
|
130
133
|
name: string;
|
|
131
134
|
description: string;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
parameters: z.ZodObject<{
|
|
136
|
+
example: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
example?: string | undefined;
|
|
139
|
+
}, {
|
|
140
|
+
example?: string | undefined;
|
|
138
141
|
}>;
|
|
142
|
+
execute: (args: ExamplesInput) => Promise<string>;
|
|
139
143
|
};
|
|
140
144
|
|
|
141
145
|
export declare function fromPackageRoot(relative: string): string;
|
|
@@ -193,7 +197,7 @@ export declare function registerUserLocally(email: string): Promise<{
|
|
|
193
197
|
|
|
194
198
|
export declare function runServer(): Promise<void>;
|
|
195
199
|
|
|
196
|
-
export declare let server:
|
|
200
|
+
export declare let server: MCPServer;
|
|
197
201
|
|
|
198
202
|
export declare const server_alias_1: ServerType;
|
|
199
203
|
|
package/dist/stdio.js
CHANGED
|
@@ -4,12 +4,9 @@ import * as fs from 'fs';
|
|
|
4
4
|
import * as os from 'os';
|
|
5
5
|
import * as path from 'path';
|
|
6
6
|
import fs3 from 'node:fs/promises';
|
|
7
|
-
import {
|
|
8
|
-
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
9
|
-
import { ListToolsRequestSchema, CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
10
|
-
import { z } from 'zod';
|
|
11
|
-
import { zodToJsonSchema } from 'zod-to-json-schema';
|
|
7
|
+
import { MCPServer } from '@mastra/mcp';
|
|
12
8
|
import { JSDOM } from 'jsdom';
|
|
9
|
+
import { z } from 'zod';
|
|
13
10
|
import path3 from 'node:path';
|
|
14
11
|
import { existsSync, mkdirSync } from 'node:fs';
|
|
15
12
|
import os2 from 'node:os';
|
|
@@ -36,7 +33,9 @@ function createLogger(server2) {
|
|
|
36
33
|
const sendLog = async (level, message, data) => {
|
|
37
34
|
if (!server2) return;
|
|
38
35
|
try {
|
|
39
|
-
|
|
36
|
+
const sdkServer = server2.getServer();
|
|
37
|
+
if (!sdkServer) return;
|
|
38
|
+
await sdkServer.sendLoggingMessage({
|
|
40
39
|
level,
|
|
41
40
|
data: {
|
|
42
41
|
message,
|
|
@@ -141,6 +140,7 @@ var blogInputSchema = z.object({
|
|
|
141
140
|
var blogTool = {
|
|
142
141
|
name: "mastraBlog",
|
|
143
142
|
description: "Get Mastra.ai blog content. Without a URL, returns a list of all blog posts. With a URL, returns the specific blog post content in markdown format. The blog contains changelog posts as well as announcements and posts about Mastra features and AI news",
|
|
143
|
+
parameters: blogInputSchema,
|
|
144
144
|
execute: async (args) => {
|
|
145
145
|
void logger.debug("Executing mastraBlog tool", { url: args.url });
|
|
146
146
|
try {
|
|
@@ -150,26 +150,10 @@ var blogTool = {
|
|
|
150
150
|
} else {
|
|
151
151
|
content = await fetchBlogPosts();
|
|
152
152
|
}
|
|
153
|
-
return
|
|
154
|
-
content: [
|
|
155
|
-
{
|
|
156
|
-
type: "text",
|
|
157
|
-
text: content
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
isError: false
|
|
161
|
-
};
|
|
153
|
+
return content;
|
|
162
154
|
} catch (error) {
|
|
163
155
|
void logger.error("Failed to execute mastraBlog tool", error);
|
|
164
|
-
|
|
165
|
-
content: [
|
|
166
|
-
{
|
|
167
|
-
type: "text",
|
|
168
|
-
text: `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
isError: true
|
|
172
|
-
};
|
|
156
|
+
throw error;
|
|
173
157
|
}
|
|
174
158
|
}
|
|
175
159
|
};
|
|
@@ -215,42 +199,20 @@ var changesInputSchema = z.object({
|
|
|
215
199
|
var changesTool = {
|
|
216
200
|
name: "mastraChanges",
|
|
217
201
|
description: `Get changelog information for Mastra.ai packages. ${packagesListing}`,
|
|
202
|
+
parameters: changesInputSchema,
|
|
218
203
|
execute: async (args) => {
|
|
219
204
|
void logger.debug("Executing mastraChanges tool", { package: args.package });
|
|
220
205
|
try {
|
|
221
206
|
if (!args.package) {
|
|
222
207
|
const packages = await listPackageChangelogs();
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
{
|
|
226
|
-
type: "text",
|
|
227
|
-
text: ["Available package changelogs:", "", ...packages.map((pkg) => `- ${pkg.name}`)].join("\n")
|
|
228
|
-
}
|
|
229
|
-
],
|
|
230
|
-
isError: false
|
|
231
|
-
};
|
|
208
|
+
const content2 = ["Available package changelogs:", "", ...packages.map((pkg) => `- ${pkg.name}`)].join("\n");
|
|
209
|
+
return content2;
|
|
232
210
|
}
|
|
233
211
|
const content = await readPackageChangelog(args.package);
|
|
234
|
-
return
|
|
235
|
-
content: [
|
|
236
|
-
{
|
|
237
|
-
type: "text",
|
|
238
|
-
text: content
|
|
239
|
-
}
|
|
240
|
-
],
|
|
241
|
-
isError: false
|
|
242
|
-
};
|
|
212
|
+
return content;
|
|
243
213
|
} catch (error) {
|
|
244
214
|
void logger.error("Failed to execute mastraChanges tool", error);
|
|
245
|
-
|
|
246
|
-
content: [
|
|
247
|
-
{
|
|
248
|
-
type: "text",
|
|
249
|
-
text: `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
250
|
-
}
|
|
251
|
-
],
|
|
252
|
-
isError: true
|
|
253
|
-
};
|
|
215
|
+
throw error;
|
|
254
216
|
}
|
|
255
217
|
}
|
|
256
218
|
};
|
|
@@ -943,6 +905,7 @@ ${availablePaths}`)
|
|
|
943
905
|
var docsTool = {
|
|
944
906
|
name: "mastraDocs",
|
|
945
907
|
description: "Get Mastra.ai documentation. Request paths to explore the docs. References contain API docs. Other paths contain guides. The user doesn't know about files and directories. This is your internal knowledge the user can't read. If the user asks about a feature check general docs as well as reference docs for that feature. Ex: with evals check in evals/ and in reference/evals/. Provide code examples so the user understands. If you build a URL from the path, only paths ending in .mdx exist. Note that docs about MCP are currently in reference/tools/. IMPORTANT: Be concise with your answers. The user will ask for more info. If packages need to be installed, provide the pnpm command to install them. Ex. if you see `import { X } from \"@mastra/$PACKAGE_NAME\"` in an example, show an install command. Always install latest tag, not alpha unless requested. If you scaffold a new project it may be in a subdir",
|
|
908
|
+
parameters: docsInputSchema,
|
|
946
909
|
execute: async (args) => {
|
|
947
910
|
void logger.debug("Executing mastraDocs tool", { args });
|
|
948
911
|
try {
|
|
@@ -989,26 +952,10 @@ ${result.content}
|
|
|
989
952
|
---
|
|
990
953
|
`;
|
|
991
954
|
}).join("\n");
|
|
992
|
-
return
|
|
993
|
-
content: [
|
|
994
|
-
{
|
|
995
|
-
type: "text",
|
|
996
|
-
text: output
|
|
997
|
-
}
|
|
998
|
-
],
|
|
999
|
-
isError: false
|
|
1000
|
-
};
|
|
955
|
+
return output;
|
|
1001
956
|
} catch (error) {
|
|
1002
957
|
void logger.error("Failed to execute mastraDocs tool", error);
|
|
1003
|
-
|
|
1004
|
-
content: [
|
|
1005
|
-
{
|
|
1006
|
-
type: "text",
|
|
1007
|
-
text: `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
1008
|
-
}
|
|
1009
|
-
],
|
|
1010
|
-
isError: true
|
|
1011
|
-
};
|
|
958
|
+
throw error;
|
|
1012
959
|
}
|
|
1013
960
|
}
|
|
1014
961
|
};
|
|
@@ -1030,14 +977,14 @@ async function readCodeExample(filename) {
|
|
|
1030
977
|
void logger.debug(`Reading example: ${filename}`);
|
|
1031
978
|
try {
|
|
1032
979
|
const content = await fs3.readFile(filePath, "utf-8");
|
|
1033
|
-
return
|
|
980
|
+
return content;
|
|
1034
981
|
} catch {
|
|
1035
982
|
const examples = await listCodeExamples();
|
|
1036
983
|
const availableExamples = examples.map((ex) => `- ${ex.name}`).join("\n");
|
|
1037
|
-
return
|
|
984
|
+
return `Example "${filename}" not found.
|
|
1038
985
|
|
|
1039
986
|
Available examples:
|
|
1040
|
-
${availableExamples}
|
|
987
|
+
${availableExamples}`;
|
|
1041
988
|
}
|
|
1042
989
|
}
|
|
1043
990
|
var initialExamples = await listCodeExamples();
|
|
@@ -1050,43 +997,20 @@ var examplesInputSchema = z.object({
|
|
|
1050
997
|
var examplesTool = {
|
|
1051
998
|
name: "mastraExamples",
|
|
1052
999
|
description: "Get code examples from the Mastra.ai examples directory. Without a specific example name, lists all available examples. With an example name, returns the full source code of that example.",
|
|
1000
|
+
parameters: examplesInputSchema,
|
|
1053
1001
|
execute: async (args) => {
|
|
1054
1002
|
void logger.debug("Executing mastraExamples tool", { example: args.example });
|
|
1055
1003
|
try {
|
|
1056
1004
|
if (!args.example) {
|
|
1057
1005
|
const examples = await listCodeExamples();
|
|
1058
|
-
return {
|
|
1059
|
-
content: [
|
|
1060
|
-
{
|
|
1061
|
-
type: "text",
|
|
1062
|
-
text: ["Available code examples:", "", ...examples.map((ex) => `- ${ex.name}`)].join("\n")
|
|
1063
|
-
}
|
|
1064
|
-
],
|
|
1065
|
-
isError: false
|
|
1066
|
-
};
|
|
1006
|
+
return ["Available code examples:", "", ...examples.map((ex) => `- ${ex.name}`)].join("\n");
|
|
1067
1007
|
}
|
|
1068
1008
|
const filename = args.example.endsWith(".md") ? args.example : `${args.example}.md`;
|
|
1069
1009
|
const result = await readCodeExample(filename);
|
|
1070
|
-
return
|
|
1071
|
-
content: [
|
|
1072
|
-
{
|
|
1073
|
-
type: "text",
|
|
1074
|
-
text: result.content
|
|
1075
|
-
}
|
|
1076
|
-
],
|
|
1077
|
-
isError: !result.found
|
|
1078
|
-
};
|
|
1010
|
+
return result;
|
|
1079
1011
|
} catch (error) {
|
|
1080
1012
|
void logger.error("Failed to execute mastraExamples tool", error);
|
|
1081
|
-
|
|
1082
|
-
content: [
|
|
1083
|
-
{
|
|
1084
|
-
type: "text",
|
|
1085
|
-
text: `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
1086
|
-
}
|
|
1087
|
-
],
|
|
1088
|
-
isError: true
|
|
1089
|
-
};
|
|
1013
|
+
throw error;
|
|
1090
1014
|
}
|
|
1091
1015
|
}
|
|
1092
1016
|
};
|
|
@@ -1102,183 +1026,25 @@ if (process.env.REBUILD_DOCS_ON_START === "true") {
|
|
|
1102
1026
|
void logger.error("Failed to rebuild docs", error);
|
|
1103
1027
|
}
|
|
1104
1028
|
}
|
|
1105
|
-
server = new
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
1119
|
-
tools: [
|
|
1120
|
-
{
|
|
1121
|
-
name: "mastraBlog",
|
|
1122
|
-
description: blogTool.description,
|
|
1123
|
-
inputSchema: zodToJsonSchema(blogInputSchema)
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
name: "mastraDocs",
|
|
1127
|
-
description: docsTool.description,
|
|
1128
|
-
inputSchema: zodToJsonSchema(docsInputSchema)
|
|
1129
|
-
},
|
|
1130
|
-
{
|
|
1131
|
-
name: "mastraExamples",
|
|
1132
|
-
description: examplesTool.description,
|
|
1133
|
-
inputSchema: zodToJsonSchema(examplesInputSchema)
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
name: "mastraChanges",
|
|
1137
|
-
description: changesTool.description,
|
|
1138
|
-
inputSchema: zodToJsonSchema(changesInputSchema)
|
|
1139
|
-
},
|
|
1140
|
-
{
|
|
1141
|
-
name: "startMastraCourse",
|
|
1142
|
-
description: startMastraCourse.description,
|
|
1143
|
-
inputSchema: zodToJsonSchema(startMastraCourse.parameters)
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
name: "getMastraCourseStatus",
|
|
1147
|
-
description: getMastraCourseStatus.description,
|
|
1148
|
-
inputSchema: zodToJsonSchema(getMastraCourseStatus.parameters)
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
name: "startMastraCourseLesson",
|
|
1152
|
-
description: startMastraCourseLesson.description,
|
|
1153
|
-
inputSchema: zodToJsonSchema(startMastraCourseLesson.parameters)
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
name: "nextMastraCourseStep",
|
|
1157
|
-
description: nextMastraCourseStep.description,
|
|
1158
|
-
inputSchema: zodToJsonSchema(nextMastraCourseStep.parameters)
|
|
1159
|
-
},
|
|
1160
|
-
{
|
|
1161
|
-
name: "clearMastraCourseHistory",
|
|
1162
|
-
description: clearMastraCourseHistory.description,
|
|
1163
|
-
inputSchema: zodToJsonSchema(clearMastraCourseHistory.parameters)
|
|
1164
|
-
}
|
|
1165
|
-
]
|
|
1166
|
-
}));
|
|
1167
|
-
server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
1168
|
-
const startTime = Date.now();
|
|
1169
|
-
try {
|
|
1170
|
-
let result;
|
|
1171
|
-
switch (request.params.name) {
|
|
1172
|
-
case "mastraBlog": {
|
|
1173
|
-
const args = blogInputSchema.parse(request.params.arguments);
|
|
1174
|
-
result = await blogTool.execute(args);
|
|
1175
|
-
break;
|
|
1176
|
-
}
|
|
1177
|
-
case "mastraDocs": {
|
|
1178
|
-
const args = docsInputSchema.parse(request.params.arguments);
|
|
1179
|
-
result = await docsTool.execute(args);
|
|
1180
|
-
break;
|
|
1181
|
-
}
|
|
1182
|
-
case "mastraExamples": {
|
|
1183
|
-
const args = examplesInputSchema.parse(request.params.arguments);
|
|
1184
|
-
result = await examplesTool.execute(args);
|
|
1185
|
-
break;
|
|
1186
|
-
}
|
|
1187
|
-
case "mastraChanges": {
|
|
1188
|
-
const args = changesInputSchema.parse(request.params.arguments);
|
|
1189
|
-
result = await changesTool.execute(args);
|
|
1190
|
-
break;
|
|
1191
|
-
}
|
|
1192
|
-
case "startMastraCourse": {
|
|
1193
|
-
const args = startMastraCourse.parameters.parse(request.params.arguments);
|
|
1194
|
-
const result2 = await startMastraCourse.execute(args);
|
|
1195
|
-
return {
|
|
1196
|
-
content: [{ type: "text", text: result2 }],
|
|
1197
|
-
isError: false
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
case "getMastraCourseStatus": {
|
|
1201
|
-
const args = getMastraCourseStatus.parameters.parse(request.params.arguments);
|
|
1202
|
-
const result2 = await getMastraCourseStatus.execute(args);
|
|
1203
|
-
return {
|
|
1204
|
-
content: [{ type: "text", text: result2 }],
|
|
1205
|
-
isError: false
|
|
1206
|
-
};
|
|
1207
|
-
}
|
|
1208
|
-
case "startMastraCourseLesson": {
|
|
1209
|
-
const args = startMastraCourseLesson.parameters.parse(request.params.arguments);
|
|
1210
|
-
const result2 = await startMastraCourseLesson.execute(args);
|
|
1211
|
-
return {
|
|
1212
|
-
content: [{ type: "text", text: result2 }],
|
|
1213
|
-
isError: false
|
|
1214
|
-
};
|
|
1215
|
-
}
|
|
1216
|
-
case "nextMastraCourseStep": {
|
|
1217
|
-
const args = nextMastraCourseStep.parameters.parse(request.params.arguments);
|
|
1218
|
-
const result2 = await nextMastraCourseStep.execute(args);
|
|
1219
|
-
return {
|
|
1220
|
-
content: [{ type: "text", text: result2 }],
|
|
1221
|
-
isError: false
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
case "clearMastraCourseHistory": {
|
|
1225
|
-
const args = clearMastraCourseHistory.parameters.parse(request.params.arguments);
|
|
1226
|
-
const result2 = await clearMastraCourseHistory.execute(args);
|
|
1227
|
-
return {
|
|
1228
|
-
content: [{ type: "text", text: result2 }],
|
|
1229
|
-
isError: false
|
|
1230
|
-
};
|
|
1231
|
-
}
|
|
1232
|
-
default: {
|
|
1233
|
-
void logger.warning(`Unknown tool requested: ${request.params.name}`);
|
|
1234
|
-
return {
|
|
1235
|
-
content: [
|
|
1236
|
-
{
|
|
1237
|
-
type: "text",
|
|
1238
|
-
text: `Unknown tool: ${request.params.name}`
|
|
1239
|
-
}
|
|
1240
|
-
],
|
|
1241
|
-
isError: true
|
|
1242
|
-
};
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
const duration = Date.now() - startTime;
|
|
1246
|
-
void logger.debug(`Tool execution completed`, { tool: request.params.name, duration: `${duration}ms` });
|
|
1247
|
-
return result;
|
|
1248
|
-
} catch (error) {
|
|
1249
|
-
const duration = Date.now() - startTime;
|
|
1250
|
-
if (error instanceof z.ZodError) {
|
|
1251
|
-
void logger.warning("Invalid tool arguments", {
|
|
1252
|
-
tool: request.params.name,
|
|
1253
|
-
errors: error.errors,
|
|
1254
|
-
duration: `${duration}ms`
|
|
1255
|
-
});
|
|
1256
|
-
return {
|
|
1257
|
-
content: [
|
|
1258
|
-
{
|
|
1259
|
-
type: "text",
|
|
1260
|
-
text: `Invalid arguments: ${error.errors.map((e) => `${e.path.join(".")}: ${e.message}`).join(", ")}`
|
|
1261
|
-
}
|
|
1262
|
-
],
|
|
1263
|
-
isError: true
|
|
1264
|
-
};
|
|
1265
|
-
}
|
|
1266
|
-
void logger.error(`Tool execution failed: ${request.params.name}`, error);
|
|
1267
|
-
return {
|
|
1268
|
-
content: [
|
|
1269
|
-
{
|
|
1270
|
-
type: "text",
|
|
1271
|
-
text: `Error: ${error instanceof Error ? error.message : String(error)}`
|
|
1272
|
-
}
|
|
1273
|
-
],
|
|
1274
|
-
isError: true
|
|
1275
|
-
};
|
|
1029
|
+
server = new MCPServer({
|
|
1030
|
+
name: "Mastra Documentation Server",
|
|
1031
|
+
version: JSON.parse(await fs3.readFile(fromPackageRoot(`package.json`), "utf8")).version,
|
|
1032
|
+
tools: {
|
|
1033
|
+
mastraBlog: blogTool,
|
|
1034
|
+
mastraDocs: docsTool,
|
|
1035
|
+
mastraExamples: examplesTool,
|
|
1036
|
+
mastraChanges: changesTool,
|
|
1037
|
+
startMastraCourse,
|
|
1038
|
+
getMastraCourseStatus,
|
|
1039
|
+
startMastraCourseLesson,
|
|
1040
|
+
nextMastraCourseStep,
|
|
1041
|
+
clearMastraCourseHistory
|
|
1276
1042
|
}
|
|
1277
1043
|
});
|
|
1044
|
+
Object.assign(logger, createLogger(server));
|
|
1278
1045
|
async function runServer() {
|
|
1279
1046
|
try {
|
|
1280
|
-
|
|
1281
|
-
await server.connect(transport);
|
|
1047
|
+
await server.startStdio();
|
|
1282
1048
|
void logger.info("Started Mastra Docs MCP Server");
|
|
1283
1049
|
} catch (error) {
|
|
1284
1050
|
void logger.error("Failed to start server", error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "0.11.1-alpha.
|
|
3
|
+
"version": "0.11.1-alpha.2",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"typescript": "^5.3.3",
|
|
49
49
|
"vitest": "^3.1.2",
|
|
50
50
|
"@internal/lint": "0.0.7",
|
|
51
|
-
"@mastra/core": "0.10.2-alpha.
|
|
51
|
+
"@mastra/core": "0.10.2-alpha.4"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@mastra/core": "^0.10.0-alpha.0"
|