@mastra/deployer 1.60.0-alpha.7 → 1.60.0-alpha.8

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,13 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 1.60.0-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`4e7a421`](https://github.com/mastra-ai/mastra/commit/4e7a421dce8a48742f785d1e93ad2f43a572b282), [`242e324`](https://github.com/mastra-ai/mastra/commit/242e3241e73cbd5c9bb86a31ebb49ca0256488d4), [`217e967`](https://github.com/mastra-ai/mastra/commit/217e9672d8b3160eb729d8e9f0044949e88da239), [`d774e89`](https://github.com/mastra-ai/mastra/commit/d774e8930c781df8c9effe3763e6b501c099b6cc), [`23e0be2`](https://github.com/mastra-ai/mastra/commit/23e0be261381e49534b4ff3101c60ee64a946cbf), [`9c27a53`](https://github.com/mastra-ai/mastra/commit/9c27a53cd9d3de4f3f025bc387d94ce371c33f95), [`dff25a1`](https://github.com/mastra-ai/mastra/commit/dff25a1103fa72ee082a9b6f805ebeb5ce400753), [`217e967`](https://github.com/mastra-ai/mastra/commit/217e9672d8b3160eb729d8e9f0044949e88da239), [`7f78585`](https://github.com/mastra-ai/mastra/commit/7f785857e401570e2ffb316911f126ed363aa537), [`f2a4afd`](https://github.com/mastra-ai/mastra/commit/f2a4afd7e37e809669001ed17724b341a5c1f45e), [`d438148`](https://github.com/mastra-ai/mastra/commit/d438148e222c1e2fb3c652725ce75680962ebec4), [`ba05fe0`](https://github.com/mastra-ai/mastra/commit/ba05fe0738f70cb686777546e968237d09269142), [`d26a8d4`](https://github.com/mastra-ai/mastra/commit/d26a8d4281f28414715b333c85bedaf70d0b2890), [`677cdc6`](https://github.com/mastra-ai/mastra/commit/677cdc6af564dec29a13464d12b7ab2a4efc22e9), [`a318490`](https://github.com/mastra-ai/mastra/commit/a318490e17da32f338d50929c770d901a9b3dd72), [`763e0c6`](https://github.com/mastra-ai/mastra/commit/763e0c61e04d76ad9a9efd301aa57525ca0cbea9), [`23e0be2`](https://github.com/mastra-ai/mastra/commit/23e0be261381e49534b4ff3101c60ee64a946cbf), [`7fc8806`](https://github.com/mastra-ai/mastra/commit/7fc880627d3cbf995d31ea0e8b807bf15417e651), [`0e02eac`](https://github.com/mastra-ai/mastra/commit/0e02eacdb2e30e1697a41910b41163742a181dc1), [`4df174c`](https://github.com/mastra-ai/mastra/commit/4df174c32bddf093a82f273070b8380aef7c9e90), [`f7c25b5`](https://github.com/mastra-ai/mastra/commit/f7c25b5106ddfb48e591f98df7a51e0f2dd01dba), [`dc09cc1`](https://github.com/mastra-ai/mastra/commit/dc09cc1083d861cde192c1cd235324dc75b8c731), [`36b4649`](https://github.com/mastra-ai/mastra/commit/36b4649045a3a380cbab8ceca866db4086223aff), [`377eb81`](https://github.com/mastra-ai/mastra/commit/377eb81ce43b964e3a6b541df172da74a8ff3716), [`b432242`](https://github.com/mastra-ai/mastra/commit/b432242c1d8f9a8de009a3d3e54c17962eebc002)]:
8
+ - @mastra/core@1.60.0-alpha.8
9
+ - @mastra/server@1.60.0-alpha.8
10
+
3
11
  ## 1.60.0-alpha.7
4
12
 
5
13
  ### 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.60.0-alpha.7"
6
+ version: "1.60.0-alpha.8"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.60.0-alpha.7",
2
+ "version": "1.60.0-alpha.8",
3
3
  "package": "@mastra/deployer",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -102,7 +102,7 @@ If a `public` folder exists in your Mastra directory (`src/mastra/public`), its
102
102
 
103
103
  ### Mastra configuration
104
104
 
105
- The build process respects configuration in your Mastra instance. For server behavior like CORS, timeouts, and middleware, see [server overview](https://mastra.ai/docs/server/mastra-server). For all available options, see the [configuration reference](https://mastra.ai/reference/configuration).
105
+ The build process respects configuration in your Mastra instance. For server behavior like CORS, timeouts, and middleware, see [server overview](https://mastra.ai/docs/server/overview). For all available options, see the [configuration reference](https://mastra.ai/reference/configuration).
106
106
 
107
107
  ## Build process
108
108
 
@@ -151,7 +151,7 @@ NODE_OPTIONS="--max-old-space-size=4096" mastra build
151
151
 
152
152
  ## Related
153
153
 
154
- - [Server Overview](https://mastra.ai/docs/server/mastra-server): Configure server behavior, middleware, and authentication
154
+ - [Server Overview](https://mastra.ai/docs/server/overview): Configure server behavior, middleware, and authentication
155
155
  - [Server Adapters](https://mastra.ai/docs/server/server-adapters): Use Express or Hono instead of `mastra build`
156
156
  - [Custom API Routes](https://mastra.ai/docs/server/custom-api-routes): Add custom HTTP endpoints
157
157
  - [Configuration Reference](https://mastra.ai/reference/configuration): Full configuration options
@@ -17,7 +17,7 @@ Mastra can run against any of these runtime environments:
17
17
 
18
18
  ### Mastra server
19
19
 
20
- Mastra provides a [server](https://mastra.ai/docs/server/mastra-server) powered by Hono that can be deployed independently. Use the `mastra build` command to build your application and deploy the output to your preferred VM, container, or PaaS platform.
20
+ Mastra provides a [server](https://mastra.ai/docs/server/overview) powered by Hono that can be deployed independently. Use the `mastra build` command to build your application and deploy the output to your preferred VM, container, or PaaS platform.
21
21
 
22
22
  Use this option when you need full control over your infrastructure, long-running processes, or WebSocket connections. The [Mastra server deployment guide](https://mastra.ai/docs/deployment/mastra-server) provides more details.
23
23
 
@@ -3346,10 +3346,15 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
3346
3346
  else if (route.responseType === "mcp-http") {
3347
3347
  const { server, httpPath, mcpOptions: routeMcpOptions } = result;
3348
3348
  const { req, res } = toReqRes(response.req.raw);
3349
- const options = {
3349
+ const { setRequestAuth, ...options } = {
3350
3350
  ...this.mcpOptions,
3351
3351
  ...routeMcpOptions
3352
3352
  };
3353
+ await (0, _mastra_server_server_adapter.applyMcpRequestAuth)({
3354
+ req,
3355
+ requestContext: response.get("requestContext"),
3356
+ setRequestAuth
3357
+ });
3353
3358
  server.startHTTP({
3354
3359
  url: new URL(response.req.url),
3355
3360
  httpPath: `${resolvedPrefix}${httpPath}`,
@@ -3379,11 +3384,18 @@ var MastraServer = class extends _mastra_server_server_adapter.MastraServer {
3379
3384
  } else if (route.responseType === "mcp-sse") {
3380
3385
  const { server, ssePath, messagePath } = result;
3381
3386
  try {
3387
+ const { req } = toReqRes(response.req.raw);
3388
+ await (0, _mastra_server_server_adapter.applyMcpRequestAuth)({
3389
+ req,
3390
+ requestContext: response.get("requestContext"),
3391
+ setRequestAuth: this.mcpOptions?.setRequestAuth
3392
+ });
3382
3393
  return await server.startHonoSSE({
3383
3394
  url: new URL(response.req.url),
3384
3395
  ssePath: `${resolvedPrefix}${ssePath}`,
3385
3396
  messagePath: `${resolvedPrefix}${messagePath}`,
3386
- context: response
3397
+ context: response,
3398
+ authInfo: req.auth
3387
3399
  });
3388
3400
  } catch {
3389
3401
  return response.json({ error: "Error handling MCP SSE request" }, 500);