@mastra/mcp-docs-server 0.13.19-alpha.0 → 0.13.19-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +19 -19
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +8 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +11 -11
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +12 -12
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +10 -10
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +13 -13
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +8 -8
- package/.docs/organized/changelogs/create-mastra.md +7 -7
- package/.docs/organized/changelogs/mastra.md +14 -14
- package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -1
- 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/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/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 +10 -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
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/client-js
|
|
2
2
|
|
|
3
|
+
## 0.12.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Allow streamVNext and generateVNext to use structuredOutputs from the MastraClient ([#7597](https://github.com/mastra-ai/mastra/pull/7597))
|
|
8
|
+
|
|
9
|
+
- Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
|
|
10
|
+
|
|
11
|
+
- Make agent streamVNext work with clientTools in client js ([#7577](https://github.com/mastra-ai/mastra/pull/7577))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`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)]:
|
|
14
|
+
- @mastra/core@0.16.1-alpha.1
|
|
15
|
+
|
|
3
16
|
## 0.12.1-alpha.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -285,18 +298,5 @@
|
|
|
285
298
|
|
|
286
299
|
### Patch Changes
|
|
287
300
|
|
|
288
|
-
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
289
|
-
- @mastra/core@0.14.1
|
|
290
|
-
|
|
291
|
-
## 0.10.23-alpha.1
|
|
292
|
-
|
|
293
|
-
### Patch Changes
|
|
294
|
-
|
|
295
|
-
- Updated dependencies [[`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236)]:
|
|
296
|
-
- @mastra/core@0.14.1-alpha.1
|
|
297
|
-
|
|
298
|
-
## 0.10.23-alpha.0
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2409 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @mastra/core
|
|
2
2
|
|
|
3
|
+
## 0.16.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed ai tracing for workflows nested directly in agents ([#7599](https://github.com/mastra-ai/mastra/pull/7599))
|
|
8
|
+
|
|
9
|
+
- Fixed ai tracing context propagation in tool calls ([#7531](https://github.com/mastra-ai/mastra/pull/7531))
|
|
10
|
+
|
|
11
|
+
- add usage and total usage to streamVNext onFinish callback ([#7598](https://github.com/mastra-ai/mastra/pull/7598))
|
|
12
|
+
|
|
13
|
+
- Allow streamVNext and generateVNext to use structuredOutputs from the MastraClient ([#7597](https://github.com/mastra-ai/mastra/pull/7597))
|
|
14
|
+
|
|
15
|
+
- Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
|
|
16
|
+
|
|
17
|
+
- Fix InvalidDataContentError when using image messages with AI SDK ([#7542](https://github.com/mastra-ai/mastra/pull/7542))
|
|
18
|
+
|
|
19
|
+
Resolves an issue where passing image content in messages would throw an InvalidDataContentError. The fix properly handles multi-part content arrays containing both text and image parts when converting between Mastra and AI SDK message formats.
|
|
20
|
+
|
|
3
21
|
## 0.16.1-alpha.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -280,23 +298,5 @@
|
|
|
280
298
|
|
|
281
299
|
- [#7032](https://github.com/mastra-ai/mastra/pull/7032) [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c) Thanks [@wardpeet](https://github.com/wardpeet)! - Bump zod peerdep to 3.25.0 to support both v3/v4
|
|
282
300
|
|
|
283
|
-
### Patch Changes
|
|
284
|
-
|
|
285
|
-
- [#6938](https://github.com/mastra-ai/mastra/pull/6938) [`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
|
|
286
|
-
- Updated dependency [`@opentelemetry/auto-instrumentations-node@^0.62.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node/v/0.62.1) (from `^0.62.0`, in `dependencies`)
|
|
287
|
-
|
|
288
|
-
- [#6997](https://github.com/mastra-ai/mastra/pull/6997) [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56) Thanks [@wardpeet](https://github.com/wardpeet)! - Bundle/mastra speed improvements
|
|
289
|
-
|
|
290
|
-
- [#6933](https://github.com/mastra-ai/mastra/pull/6933) [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b) Thanks [@NikAiyer](https://github.com/NikAiyer)! - Add util functions for workflow server handlers and made processor process function async
|
|
291
|
-
|
|
292
|
-
- [#6954](https://github.com/mastra-ai/mastra/pull/6954) [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Add db schema and base storage apis for AI Tracing
|
|
293
|
-
|
|
294
|
-
- [#6957](https://github.com/mastra-ai/mastra/pull/6957) [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Implement Tracing API for inmemory(mock) storage
|
|
295
|
-
|
|
296
|
-
- [#6923](https://github.com/mastra-ai/mastra/pull/6923) [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae) Thanks [@rase-](https://github.com/rase-)! - Event based execution engine
|
|
297
|
-
|
|
298
|
-
- [#6971](https://github.com/mastra-ai/mastra/pull/6971) [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246) Thanks [@epinzur](https://github.com/epinzur)! - "updated ai tracing in workflows"
|
|
299
|
-
|
|
300
|
-
- [#6949](https://github.com/mastra-ai/mastra/pull/6949) [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1) Thanks [@CalebBarnes](https://github.com/CalebBarnes)! - stream/generate vnext: simplify internal output schema handling, improve types and typescript generics, and add jsdoc comments
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3082 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/deployer-cloud
|
|
2
2
|
|
|
3
|
+
## 0.16.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`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), [`f36343e`](https://github.com/mastra-ai/mastra/commit/f36343e02935b9a112a45b2dc3de7b562cc3aa68)]:
|
|
8
|
+
- @mastra/core@0.16.1-alpha.1
|
|
9
|
+
- @mastra/deployer@0.16.1-alpha.1
|
|
10
|
+
|
|
3
11
|
## 0.16.1-alpha.0
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.16.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Add explicit `@opentelemetry/api` dependency to mastra server in bundler output ([#7518](https://github.com/mastra-ai/mastra/pull/7518))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`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/core@0.16.1-alpha.1
|
|
11
|
+
- @mastra/server@0.16.1-alpha.1
|
|
12
|
+
|
|
3
13
|
## 0.16.1-alpha.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -289,14 +299,4 @@
|
|
|
289
299
|
|
|
290
300
|
- [#6995](https://github.com/mastra-ai/mastra/pull/6995) [`681252d`](https://github.com/mastra-ai/mastra/commit/681252d20e57fcee6821377dea96cacab3bc230f) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving
|
|
291
301
|
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
- [#7017](https://github.com/mastra-ai/mastra/pull/7017) [`2a96802`](https://github.com/mastra-ai/mastra/commit/2a96802f76790ebb86a1bcb254398dccf27e5479) Thanks [@TheIsrael1](https://github.com/TheIsrael1)! - Fix cloudflare deployer - disable esmShim for cloudflare
|
|
295
|
-
|
|
296
|
-
- [#6924](https://github.com/mastra-ai/mastra/pull/6924) [`de24804`](https://github.com/mastra-ai/mastra/commit/de248044e79b407d211b339ce3ed4dc6e1630704) Thanks [@LekoArts](https://github.com/LekoArts)! - Improve internal mechanism to detect and handle workspace packages
|
|
297
|
-
|
|
298
|
-
- [#6942](https://github.com/mastra-ai/mastra/pull/6942) [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01) Thanks [@wardpeet](https://github.com/wardpeet)! - Add zod as peerdeps for all packages
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`681252d`](https://github.com/mastra-ai/mastra/commit/681252d20e57fcee6821377dea96cacab3bc230f), [`01be5d3`](https://github.com/mastra-ai/mastra/commit/01be5d358fad8faa101e5c69dfa54562c02cc0af), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`da58ccc`](https://github.com/mastra-ai/mastra/commit/da58ccc1f2ac33da0cb97b00443fc6208b45bdec), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
|
|
301
|
-
|
|
302
|
-
... 3917 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 3927 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/dynamodb
|
|
2
2
|
|
|
3
|
+
## 0.15.1-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#7500](https://github.com/mastra-ai/mastra/pull/7500))
|
|
8
|
+
- Updated dependency [`electrodb@^3.4.5` ↗︎](https://www.npmjs.com/package/electrodb/v/3.4.5) (from `^3.4.3`, in `dependencies`)
|
|
9
|
+
- Updated dependencies [[`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/core@0.16.1-alpha.1
|
|
11
|
+
|
|
3
12
|
## 0.15.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- Updated dependencies [510e2c8]
|
|
290
299
|
- Updated dependencies [2f72fb2]
|
|
291
300
|
- Updated dependencies [27cc97a]
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
- Updated dependencies [9d49408]
|
|
295
|
-
- Updated dependencies [41daa63]
|
|
296
|
-
- Updated dependencies [ad0a58b]
|
|
297
|
-
- Updated dependencies [254a36b]
|
|
298
|
-
- Updated dependencies [2ecf658]
|
|
299
|
-
- Updated dependencies [7a7754f]
|
|
300
|
-
- Updated dependencies [fc92d80]
|
|
301
|
-
|
|
302
|
-
... 551 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 560 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 0.13.19-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dependencies updates: ([#7527](https://github.com/mastra-ai/mastra/pull/7527))
|
|
8
|
+
- Updated dependency [`@modelcontextprotocol/sdk@^1.17.5` ↗︎](https://www.npmjs.com/package/@modelcontextprotocol/sdk/v/1.17.5) (from `^1.17.3`, in `dependencies`)
|
|
9
|
+
- Updated dependencies [[`0f7b8c0`](https://github.com/mastra-ai/mastra/commit/0f7b8c0c22d2a677a0f71c35ad1bc2d60b063d39), [`47b6dc9`](https://github.com/mastra-ai/mastra/commit/47b6dc94f4976d4f3d3882e8f19eb365bbc5976c), [`565d65f`](https://github.com/mastra-ai/mastra/commit/565d65fc16314a99f081975ec92f2636dff0c86d), [`4da3d68`](https://github.com/mastra-ai/mastra/commit/4da3d68a778e5c4d5a17351ef223289fe2f45a45), [`0b0bbb2`](https://github.com/mastra-ai/mastra/commit/0b0bbb24f4198ead69792e92b68a350f52b45cf3), [`d951f41`](https://github.com/mastra-ai/mastra/commit/d951f41771e4e5da8da4b9f870949f9509e38756), [`8049e2e`](https://github.com/mastra-ai/mastra/commit/8049e2e8cce80a00353c64894c62b695ac34e35e)]:
|
|
10
|
+
- @mastra/mcp@0.12.0-alpha.1
|
|
11
|
+
- @mastra/core@0.16.1-alpha.1
|
|
12
|
+
|
|
3
13
|
## 0.13.19-alpha.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -288,15 +298,5 @@
|
|
|
288
298
|
|
|
289
299
|
### Patch Changes
|
|
290
300
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
- Updated dependencies [12cae67]
|
|
294
|
-
- Updated dependencies [fd3a3eb]
|
|
295
|
-
- Updated dependencies [6faaee5]
|
|
296
|
-
- Updated dependencies [4232b14]
|
|
297
|
-
- Updated dependencies [a89de7e]
|
|
298
|
-
- Updated dependencies [5a37d0c]
|
|
299
|
-
- Updated dependencies [4bde0cb]
|
|
300
|
-
- Updated dependencies [e1aed55]
|
|
301
|
-
|
|
302
|
-
... 1653 more lines hidden. See full changelog in package directory.
|
|
301
|
+
|
|
302
|
+
... 1663 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/mcp-registry-registry
|
|
2
2
|
|
|
3
|
+
## 0.10.14-alpha.0
|
|
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 [[`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/core@0.16.1-alpha.1
|
|
11
|
+
|
|
3
12
|
## 0.10.13
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- 07d6d88: Bump MCP SDK version and add tool output schema support to MCPServer and MCPClient
|
|
290
299
|
- Updated dependencies [15e9d26]
|
|
291
300
|
- Updated dependencies [07d6d88]
|
|
292
|
-
- Updated dependencies [5d74aab]
|
|
293
|
-
- Updated dependencies [144eb0b]
|
|
294
|
-
- @mastra/core@0.10.7-alpha.2
|
|
295
|
-
|
|
296
|
-
## 0.10.3
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- 6dacc4d: dependencies updates:
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 634 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/mcp
|
|
2
2
|
|
|
3
|
+
## 0.12.0-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 [[`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/core@0.16.1-alpha.1
|
|
11
|
+
|
|
3
12
|
## 0.12.0-alpha.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -289,14 +298,5 @@
|
|
|
289
298
|
- Updated dependencies [8388649]
|
|
290
299
|
- Updated dependencies [a239d41]
|
|
291
300
|
- Updated dependencies [dd94a26]
|
|
292
|
-
- Updated dependencies [3ba6772]
|
|
293
|
-
- Updated dependencies [b5cf2a3]
|
|
294
|
-
- Updated dependencies [2fff911]
|
|
295
|
-
- Updated dependencies [b32c50d]
|
|
296
|
-
- Updated dependencies [63449d0]
|
|
297
|
-
- Updated dependencies [121a3f8]
|
|
298
|
-
- Updated dependencies [ec510e7]
|
|
299
|
-
- @mastra/core@0.13.2
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2293 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/playground-ui
|
|
2
2
|
|
|
3
|
+
## 6.1.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
|
|
8
|
+
|
|
9
|
+
- add workflow streaming in agent thread ([#7506](https://github.com/mastra-ai/mastra/pull/7506))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`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), [`9ad094f`](https://github.com/mastra-ai/mastra/commit/9ad094fe813b115734a0c1f4859fe4191e05b186)]:
|
|
12
|
+
- @mastra/core@0.16.1-alpha.1
|
|
13
|
+
- @mastra/client-js@0.12.1-alpha.1
|
|
14
|
+
|
|
3
15
|
## 6.1.1-alpha.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -286,17 +298,5 @@
|
|
|
286
298
|
|
|
287
299
|
## 5.2.1-alpha.0
|
|
288
300
|
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
292
|
-
- @mastra/core@0.14.1-alpha.0
|
|
293
|
-
- @mastra/client-js@0.10.23-alpha.0
|
|
294
|
-
|
|
295
|
-
## 5.2.0
|
|
296
|
-
|
|
297
|
-
### Minor Changes
|
|
298
|
-
|
|
299
|
-
- 03997ae: Update peer deps of core
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 2865 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/server
|
|
2
2
|
|
|
3
|
+
## 0.16.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`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)]:
|
|
8
|
+
- @mastra/core@0.16.1-alpha.1
|
|
9
|
+
|
|
3
10
|
## 0.16.1-alpha.0
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -291,12 +298,5 @@
|
|
|
291
298
|
|
|
292
299
|
## 0.14.1
|
|
293
300
|
|
|
294
|
-
### Patch Changes
|
|
295
|
-
|
|
296
|
-
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
297
|
-
- @mastra/core@0.14.1
|
|
298
|
-
|
|
299
|
-
## 0.14.1-alpha.1
|
|
300
|
-
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 3220 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.12.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- add workflow streaming in agent thread ([#7506](https://github.com/mastra-ai/mastra/pull/7506))
|
|
8
|
+
|
|
3
9
|
## 0.12.1-alpha.0
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -292,11 +298,5 @@
|
|
|
292
298
|
- f9b1508: add the same agent table as in cloud and export it from the playground
|
|
293
299
|
- dfbeec6: Fix navigation to vnext AgentNetwork agents
|
|
294
300
|
|
|
295
|
-
## 0.10.12-alpha.2
|
|
296
|
-
|
|
297
|
-
### Patch Changes
|
|
298
|
-
|
|
299
|
-
- 794d9f3: Fix thread creation in playground
|
|
300
|
-
- dfbeec6: Fix navigation to vnext AgentNetwork agents
|
|
301
301
|
|
|
302
|
-
...
|
|
302
|
+
... 1349 more lines hidden. See full changelog in package directory.
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.12.1-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Use workflow streamVNext in playground ([#7575](https://github.com/mastra-ai/mastra/pull/7575))
|
|
8
|
+
|
|
9
|
+
- add workflow streaming in agent thread ([#7506](https://github.com/mastra-ai/mastra/pull/7506))
|
|
10
|
+
|
|
11
|
+
- 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), [`f36343e`](https://github.com/mastra-ai/mastra/commit/f36343e02935b9a112a45b2dc3de7b562cc3aa68)]:
|
|
12
|
+
- @mastra/mcp@0.12.0-alpha.1
|
|
13
|
+
- @mastra/core@0.16.1-alpha.1
|
|
14
|
+
- @mastra/deployer@0.16.1-alpha.1
|
|
15
|
+
|
|
3
16
|
## 0.12.1-alpha.0
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -286,17 +299,4 @@
|
|
|
286
299
|
|
|
287
300
|
- [#7032](https://github.com/mastra-ai/mastra/pull/7032) [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c) Thanks [@wardpeet](https://github.com/wardpeet)! - Bump zod peerdep to 3.25.0 to support both v3/v4
|
|
288
301
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
- Updated dependencies [[`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c)]:
|
|
292
|
-
- @mastra/deployer@0.15.0-alpha.4
|
|
293
|
-
- @mastra/core@0.15.0-alpha.4
|
|
294
|
-
- @mastra/mcp@0.11.0-alpha.3
|
|
295
|
-
|
|
296
|
-
## 0.10.24-alpha.2
|
|
297
|
-
|
|
298
|
-
### Patch Changes
|
|
299
|
-
|
|
300
|
-
- Updated dependencies [[`da58ccc`](https://github.com/mastra-ai/mastra/commit/da58ccc1f2ac33da0cb97b00443fc6208b45bdec)]:
|
|
301
|
-
|
|
302
|
-
... 5377 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 5390 more lines hidden. See full changelog in package directory.
|
package/.docs/raw/auth/jwt.mdx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "MastraJwtAuth"
|
|
2
|
+
title: "MastraJwtAuth Class"
|
|
3
3
|
description: "Documentation for the MastraJwtAuth class, which authenticates Mastra applications using JSON Web Tokens."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
import { Tabs, Tab } from "@/components/tabs";
|
|
7
7
|
|
|
8
|
-
# MastraJwtAuth
|
|
8
|
+
# MastraJwtAuth Class
|
|
9
9
|
|
|
10
10
|
The `MastraJwtAuth` class provides a lightweight authentication mechanism for Mastra using JSON Web Tokens (JWTs). It verifies incoming requests based on a shared secret and integrates with the Mastra server using the `experimental_auth` option.
|
|
11
11
|
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "MastraAuthSupabase Class"
|
|
3
|
+
description: "Documentation for the MastraAuthSupabase class, which authenticates Mastra applications using Supabase Auth."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Tabs, Tab } from "@/components/tabs";
|
|
7
|
+
|
|
8
|
+
# MastraAuthSupabase Class
|
|
9
|
+
|
|
10
|
+
The `MastraAuthSupabase` class provides authentication for Mastra using Supabase Auth. It verifies incoming requests using Supabase's authentication system and integrates with the Mastra server using the `experimental_auth` option.
|
|
11
|
+
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
This example uses Supabase Auth. Make sure to add your Supabase credentials to your `.env` file and ensure your Supabase project is properly configured.
|
|
15
|
+
|
|
16
|
+
```env filename=".env" copy
|
|
17
|
+
SUPABASE_URL=https://your-project.supabase.co
|
|
18
|
+
SUPABASE_ANON_KEY=your-anon-key
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
> **Note:** Review your Supabase Row Level Security (RLS) settings to ensure proper data access controls.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
Before you can use the `MastraAuthSupabase` class you have to install the `@mastra/auth-supabase` package.
|
|
26
|
+
|
|
27
|
+
```bash copy
|
|
28
|
+
npm install @mastra/auth-supabase@latest
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Usage example
|
|
32
|
+
|
|
33
|
+
```typescript {2,7-9} filename="src/mastra/index.ts" showLineNumbers copy
|
|
34
|
+
import { Mastra } from "@mastra/core/mastra";
|
|
35
|
+
import { MastraAuthSupabase } from '@mastra/auth-supabase';
|
|
36
|
+
|
|
37
|
+
export const mastra = new Mastra({
|
|
38
|
+
// ..
|
|
39
|
+
server: {
|
|
40
|
+
experimental_auth: new MastraAuthSupabase({
|
|
41
|
+
url: process.env.SUPABASE_URL,
|
|
42
|
+
anonKey: process.env.SUPABASE_ANON_KEY
|
|
43
|
+
}),
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
> **Note:** The default `authorizeUser` method checks the `isAdmin` column in the `users` table in the `public` schema. To customize user authorization, provide a custom `authorizeUser` function when constructing the provider.
|
|
49
|
+
|
|
50
|
+
> See the [MastraAuthSupabase](/reference/auth/supabase.mdx) API reference for all available configuration options.
|
|
51
|
+
|
|
52
|
+
## Client-side setup
|
|
53
|
+
|
|
54
|
+
When using Supabase auth, you'll need to retrieve the access token from Supabase on the client side and pass it to your Mastra requests.
|
|
55
|
+
|
|
56
|
+
### Retrieving the access token
|
|
57
|
+
|
|
58
|
+
Use the Supabase client to authenticate users and retrieve their access token:
|
|
59
|
+
|
|
60
|
+
```typescript filename="lib/auth.ts" showLineNumbers copy
|
|
61
|
+
import { createClient } from "@supabase/supabase-js";
|
|
62
|
+
|
|
63
|
+
const supabase = createClient("<supabase-url>", "<supabase-key>");
|
|
64
|
+
|
|
65
|
+
const authTokenResponse = await supabase.auth.signInWithPassword({
|
|
66
|
+
email: "<user's email>",
|
|
67
|
+
password: "<user's password>",
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const accessToken = authTokenResponse.data?.session?.access_token;
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
> Refer to the [Supabase documentation](https://supabase.com/docs/guides/auth) for other authentication methods like OAuth, magic links, and more.
|
|
74
|
+
|
|
75
|
+
## Configuring `MastraClient`
|
|
76
|
+
|
|
77
|
+
When `experimental_auth` is enabled, all requests made with `MastraClient` must include a valid Supabase access token in the `Authorization` header:
|
|
78
|
+
|
|
79
|
+
```typescript {6} filename="lib/mastra/mastra-client.ts" showLineNumbers copy
|
|
80
|
+
import { MastraClient } from "@mastra/client-js";
|
|
81
|
+
|
|
82
|
+
export const mastraClient = new MastraClient({
|
|
83
|
+
baseUrl: "https://<mastra-api-url>",
|
|
84
|
+
headers: {
|
|
85
|
+
Authorization: `Bearer ${accessToken}`
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
> **Note:** The access token must be prefixed with `Bearer` in the Authorization header.
|
|
91
|
+
|
|
92
|
+
> See [Mastra Client SDK](/docs/server-db/mastra-client.mdx) for more configuration options.
|
|
93
|
+
|
|
94
|
+
### Making authenticated requests
|
|
95
|
+
|
|
96
|
+
Once `MastraClient` is configured with the Supabase access token, you can send authenticated requests:
|
|
97
|
+
|
|
98
|
+
<Tabs items={["MastraClient", "curl"]}>
|
|
99
|
+
<Tab>
|
|
100
|
+
```tsx filename="src/components/test-agent.tsx" showLineNumbers copy
|
|
101
|
+
import { mastraClient } from "../../lib/mastra-client";
|
|
102
|
+
|
|
103
|
+
export const TestAgent = () => {
|
|
104
|
+
async function handleClick() {
|
|
105
|
+
const agent = mastraClient.getAgent("weatherAgent");
|
|
106
|
+
|
|
107
|
+
const response = await agent.generate({
|
|
108
|
+
messages: "What's the weather like in New York"
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
console.log(response);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return <button onClick={handleClick}>Test Agent</button>;
|
|
115
|
+
};
|
|
116
|
+
```
|
|
117
|
+
</Tab>
|
|
118
|
+
<Tab>
|
|
119
|
+
```bash copy
|
|
120
|
+
curl -X POST http://localhost:4111/api/agents/weatherAgent/generate \
|
|
121
|
+
-H "Content-Type: application/json" \
|
|
122
|
+
-H "Authorization: Bearer <your-supabase-access-token>" \
|
|
123
|
+
-d '{
|
|
124
|
+
"messages": "Weather in London"
|
|
125
|
+
}'
|
|
126
|
+
```
|
|
127
|
+
</Tab>
|
|
128
|
+
</Tabs>
|
|
@@ -19,19 +19,19 @@ Mastra Cloud is a deployment platform that connects to your GitHub repository, a
|
|
|
19
19
|
- Comprehensive logs and traces
|
|
20
20
|
- Custom domains for each project
|
|
21
21
|
|
|
22
|
-
[View Mastra Cloud documentation →](
|
|
22
|
+
[View Mastra Cloud documentation →](../mastra-cloud/overview.mdx)
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
### With a Web Framework
|
|
26
26
|
|
|
27
27
|
Mastra can be integrated with a variety of web frameworks. For example, see one of the following for a detailed guide.
|
|
28
28
|
|
|
29
|
-
- [With Next.js](
|
|
30
|
-
- [With Astro](
|
|
29
|
+
- [With Next.js](../frameworks/web-frameworks/next-js.mdx)
|
|
30
|
+
- [With Astro](../frameworks/web-frameworks/astro.mdx)
|
|
31
31
|
|
|
32
32
|
When integrated with a framework, Mastra typically requires no additional configuration for deployment.
|
|
33
33
|
|
|
34
|
-
[View Web Framework Integration →](
|
|
34
|
+
[View Web Framework Integration →](./web-framework.mdx)
|
|
35
35
|
|
|
36
36
|
### With a Server
|
|
37
37
|
|
|
@@ -42,7 +42,7 @@ You can deploy Mastra as a standard Node.js HTTP server, which gives you full co
|
|
|
42
42
|
- Deploy to VMs, containers, or PaaS platforms
|
|
43
43
|
- Ideal for integrating with existing Node.js applications
|
|
44
44
|
|
|
45
|
-
[Server deployment guide →](
|
|
45
|
+
[Server deployment guide →](./server-deployment.mdx)
|
|
46
46
|
|
|
47
47
|
### Serverless Platforms
|
|
48
48
|
|
|
@@ -53,7 +53,7 @@ Mastra provides platform-specific deployers for popular serverless platforms, en
|
|
|
53
53
|
- Simplified deployment process
|
|
54
54
|
- Automatic scaling through the platform
|
|
55
55
|
|
|
56
|
-
[Serverless deployment guide →](
|
|
56
|
+
[Serverless deployment guide →](./server-deployment.mdx)
|
|
57
57
|
|
|
58
58
|
## Client Configuration
|
|
59
59
|
|
|
@@ -64,7 +64,7 @@ Once your Mastra application is deployed, you'll need to configure your client t
|
|
|
64
64
|
- Retries and error handling
|
|
65
65
|
- Support for streaming responses
|
|
66
66
|
|
|
67
|
-
[Client configuration guide →](/
|
|
67
|
+
[Client configuration guide →](../server-db/mastra-client.mdx)
|
|
68
68
|
|
|
69
69
|
## Choosing a Deployment Option
|
|
70
70
|
|