@mastra/deployer 1.18.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 CHANGED
@@ -1,5 +1,29 @@
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
+
19
+ ## 1.18.1-alpha.0
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`180aaaf`](https://github.com/mastra-ai/mastra/commit/180aaaf4d0903d33a49bc72de2d40ca69a5bc599)]:
24
+ - @mastra/core@1.18.1-alpha.0
25
+ - @mastra/server@1.18.1-alpha.0
26
+
3
27
  ## 1.18.0
4
28
 
5
29
  ### Patch Changes
@@ -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.18.0"
6
+ version: "1.19.0-alpha.2"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.18.0",
2
+ "version": "1.19.0-alpha.2",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {
5
5
  "Deps": {
@@ -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
- ![Deployment configuration](/assets/images/monorepo-mastra-cloud-6bd3d30cb0ef7c255c8d8bb43aeff4ec.jpg)
113
-
114
108
  ## Dependency management
115
109
 
116
110
  Keep dependencies consistent to avoid version conflicts and build errors:
@@ -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
- try {
3315
- const options = { ...this.mcpOptions, ...routeMcpOptions };
3316
- await server.startHTTP({
3317
- url: new URL(response.req.url),
3318
- httpPath: `${resolvedPrefix}${httpPath}`,
3319
- req,
3320
- res,
3321
- options: Object.keys(options).length > 0 ? options : void 0
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
- return await toFetchResponse(res);
3324
- } catch {
3325
- if (!res.headersSent) {
3326
- res.writeHead(500, { "Content-Type": "application/json" });
3327
- res.end(
3328
- JSON.stringify({
3329
- jsonrpc: "2.0",
3330
- error: { code: -32603, message: "Internal server error" },
3331
- id: null
3332
- })
3333
- );
3334
- return await toFetchResponse(res);
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
- return await toFetchResponse(res);
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 {