@mastra/mcp 1.9.0 → 1.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Removed Hono from @mastra/core and auth package runtime dependencies. Auth providers now receive framework-agnostic request types that support standard Request objects and Hono-compatible request shapes. MCP and deployer avoid relying on core-bundled Hono context types at package boundaries. ([#17410](https://github.com/mastra-ai/mastra/pull/17410))
8
+
9
+ - Updated dependencies [[`c973db4`](https://github.com/mastra-ai/mastra/commit/c973db428df1b564ff0c35d4b2a90e8f4f1e13fd), [`552285e`](https://github.com/mastra-ai/mastra/commit/552285e5af43cfc680a0972032cab8de8776c6a0), [`77e686c`](https://github.com/mastra-ai/mastra/commit/77e686c264e493e99ae5024e4dfe3ea5d5a09718), [`ece8dba`](https://github.com/mastra-ai/mastra/commit/ece8dba7ec1a5089eee8c33167cd762bfa91e509), [`e751af2`](https://github.com/mastra-ai/mastra/commit/e751af219433fbf4c7035b2d771b4c9ec8813b05), [`e2a8380`](https://github.com/mastra-ai/mastra/commit/e2a838017a7657850404c1e94c70d79ffdc6f14a), [`be3f1cd`](https://github.com/mastra-ai/mastra/commit/be3f1cd81f0e2a649e8eac15a024d542d814aef8), [`a34d9db`](https://github.com/mastra-ai/mastra/commit/a34d9dbc39fedb722f271318e9355ecee70489ab)]:
10
+ - @mastra/core@1.39.0
11
+
12
+ ## 1.9.1-alpha.0
13
+
14
+ ### Patch Changes
15
+
16
+ - Removed Hono from @mastra/core and auth package runtime dependencies. Auth providers now receive framework-agnostic request types that support standard Request objects and Hono-compatible request shapes. MCP and deployer avoid relying on core-bundled Hono context types at package boundaries. ([#17410](https://github.com/mastra-ai/mastra/pull/17410))
17
+
18
+ - Updated dependencies [[`c973db4`](https://github.com/mastra-ai/mastra/commit/c973db428df1b564ff0c35d4b2a90e8f4f1e13fd), [`552285e`](https://github.com/mastra-ai/mastra/commit/552285e5af43cfc680a0972032cab8de8776c6a0), [`77e686c`](https://github.com/mastra-ai/mastra/commit/77e686c264e493e99ae5024e4dfe3ea5d5a09718), [`ece8dba`](https://github.com/mastra-ai/mastra/commit/ece8dba7ec1a5089eee8c33167cd762bfa91e509), [`e751af2`](https://github.com/mastra-ai/mastra/commit/e751af219433fbf4c7035b2d771b4c9ec8813b05), [`e2a8380`](https://github.com/mastra-ai/mastra/commit/e2a838017a7657850404c1e94c70d79ffdc6f14a), [`be3f1cd`](https://github.com/mastra-ai/mastra/commit/be3f1cd81f0e2a649e8eac15a024d542d814aef8), [`a34d9db`](https://github.com/mastra-ai/mastra/commit/a34d9dbc39fedb722f271318e9355ecee70489ab)]:
19
+ - @mastra/core@1.39.0-alpha.0
20
+
3
21
  ## 1.9.0
4
22
 
5
23
  ### Minor Changes
@@ -3,7 +3,7 @@ name: mastra-mcp
3
3
  description: Documentation for @mastra/mcp. Use when working with @mastra/mcp APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mcp"
6
- version: "1.9.0"
6
+ version: "1.9.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.9.0",
2
+ "version": "1.9.1",
3
3
  "package": "@mastra/mcp",
4
4
  "exports": {
5
5
  "UnauthorizedError": {
package/dist/index.cjs CHANGED
@@ -3887,9 +3887,10 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
3887
3887
  * ```
3888
3888
  */
3889
3889
  async startHonoSSE({ url, ssePath, messagePath, context }) {
3890
+ const honoContext = context;
3890
3891
  try {
3891
3892
  if (url.pathname === ssePath) {
3892
- return streamSSE(context, async (stream2) => {
3893
+ return streamSSE(honoContext, async (stream2) => {
3893
3894
  await this.connectHonoSSE({
3894
3895
  messagePath,
3895
3896
  stream: stream2
@@ -3897,22 +3898,22 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
3897
3898
  });
3898
3899
  } else if (url.pathname === messagePath) {
3899
3900
  this.logger.debug("Received message");
3900
- const sessionId = context.req.query("sessionId");
3901
+ const sessionId = honoContext.req.query("sessionId");
3901
3902
  this.logger.debug("Received message for sessionId", { sessionId });
3902
3903
  if (!sessionId) {
3903
- return context.text("No sessionId provided", 400);
3904
+ return honoContext.text("No sessionId provided", 400);
3904
3905
  }
3905
3906
  if (!this.sseHonoTransports.has(sessionId)) {
3906
- return context.text(`No transport found for sessionId ${sessionId}`, 400);
3907
+ return honoContext.text(`No transport found for sessionId ${sessionId}`, 400);
3907
3908
  }
3908
- const message = await this.sseHonoTransports.get(sessionId)?.handlePostMessage(context);
3909
+ const message = await this.sseHonoTransports.get(sessionId)?.handlePostMessage(honoContext);
3909
3910
  if (!message) {
3910
- return context.text("Transport not found", 400);
3911
+ return honoContext.text("Transport not found", 400);
3911
3912
  }
3912
3913
  return message;
3913
3914
  } else {
3914
3915
  this.logger.debug("Unknown path:", { path: url.pathname });
3915
- return context.text("Unknown path", 404);
3916
+ return honoContext.text("Unknown path", 404);
3916
3917
  }
3917
3918
  } catch (e) {
3918
3919
  const mastraError = new error.MastraError(