@mastra/deployer 1.18.1-alpha.0 → 1.19.0-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/CHANGELOG.md +16 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-deployment-monorepo.md +0 -6
- package/dist/server/index.cjs +24 -22
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +24 -22
- package/dist/server/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 1.19.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`9c57f2f`](https://github.com/mastra-ai/mastra/commit/9c57f2f7241e9f94769aa99fc86c531e8207d0f9), [`5bfc691`](https://github.com/mastra-ai/mastra/commit/5bfc69104c07ba7a9b55c2f8536422c0878b9c57)]:
|
|
8
|
+
- @mastra/core@1.19.0-alpha.2
|
|
9
|
+
- @mastra/server@1.19.0-alpha.2
|
|
10
|
+
|
|
11
|
+
## 1.18.1-alpha.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`9140989`](https://github.com/mastra-ai/mastra/commit/91409890e83f4f1d9c1b39223f1af91a6a53b549), [`d7c98cf`](https://github.com/mastra-ai/mastra/commit/d7c98cfc9d75baba9ecbf1a8835b5183d0a0aec8), [`acf5fbc`](https://github.com/mastra-ai/mastra/commit/acf5fbcb890dc7ca7167bec386ce5874dfadb997), [`24ca2ae`](https://github.com/mastra-ai/mastra/commit/24ca2ae57538ec189fabb9daee6175ad27035853), [`0762516`](https://github.com/mastra-ai/mastra/commit/07625167e029a8268ea7aaf0402416e6d8832874), [`2de3d36`](https://github.com/mastra-ai/mastra/commit/2de3d36932b7f73ad26bc403f7da26cfe89e903e), [`fce2cb1`](https://github.com/mastra-ai/mastra/commit/fce2cb1ac3c3d49302b35507448a85d6a0e614c1), [`d3736cb`](https://github.com/mastra-ai/mastra/commit/d3736cb9ce074d2b8e8b00218a01f790fe81a1b4), [`c627366`](https://github.com/mastra-ai/mastra/commit/c6273666f9ef4c8c617c68b7d07fe878a322f85c)]:
|
|
16
|
+
- @mastra/core@1.18.1-alpha.1
|
|
17
|
+
- @mastra/server@1.18.1-alpha.1
|
|
18
|
+
|
|
3
19
|
## 1.18.1-alpha.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.19.0-alpha.2"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
@@ -105,12 +105,6 @@ When deploying to cloud providers, ensure the correct package is selected as the
|
|
|
105
105
|
|
|
106
106
|
Most providers let you specify the root directory in their dashboard or configuration file.
|
|
107
107
|
|
|
108
|
-
### Mastra Cloud
|
|
109
|
-
|
|
110
|
-
The image below shows how to select `apps/api` as the project root when deploying to [Mastra Cloud](https://mastra.ai/docs/mastra-cloud/overview). While the interface may differ between providers, the configuration remains the same.
|
|
111
|
-
|
|
112
|
-

|
|
113
|
-
|
|
114
108
|
## Dependency management
|
|
115
109
|
|
|
116
110
|
Keep dependencies consistent to avoid version conflicts and build errors:
|
package/dist/server/index.cjs
CHANGED
|
@@ -3311,30 +3311,32 @@ var MastraServer = class extends serverAdapter.MastraServer {
|
|
|
3311
3311
|
} else if (route.responseType === "mcp-http") {
|
|
3312
3312
|
const { server, httpPath, mcpOptions: routeMcpOptions } = result;
|
|
3313
3313
|
const { req, res } = toReqRes(response.req.raw);
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3314
|
+
const options = { ...this.mcpOptions, ...routeMcpOptions };
|
|
3315
|
+
server.startHTTP({
|
|
3316
|
+
url: new URL(response.req.url),
|
|
3317
|
+
httpPath: `${resolvedPrefix}${httpPath}`,
|
|
3318
|
+
req,
|
|
3319
|
+
res,
|
|
3320
|
+
options: Object.keys(options).length > 0 ? options : void 0
|
|
3321
|
+
}).catch((e) => {
|
|
3322
|
+
this.mastra.getLogger()?.error("[MCP HTTP] Error in background startHTTP:", {
|
|
3323
|
+
error: e instanceof Error ? { message: e.message, stack: e.stack } : e
|
|
3322
3324
|
});
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3325
|
+
try {
|
|
3326
|
+
if (!res.headersSent) {
|
|
3327
|
+
res.writeHead(500, { "Content-Type": "application/json" });
|
|
3328
|
+
res.end(
|
|
3329
|
+
JSON.stringify({
|
|
3330
|
+
jsonrpc: "2.0",
|
|
3331
|
+
error: { code: -32603, message: "Internal server error" },
|
|
3332
|
+
id: null
|
|
3333
|
+
})
|
|
3334
|
+
);
|
|
3335
|
+
}
|
|
3336
|
+
} catch {
|
|
3335
3337
|
}
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
+
});
|
|
3339
|
+
return await toFetchResponse(res);
|
|
3338
3340
|
} else if (route.responseType === "mcp-sse") {
|
|
3339
3341
|
const { server, ssePath, messagePath } = result;
|
|
3340
3342
|
try {
|