@mastra/mcp 1.10.0 → 1.10.1-alpha.0

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,14 @@
1
1
  # @mastra/mcp
2
2
 
3
+ ## 1.10.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Security remediation for the 2026-06-17 "easy-day-js" supply-chain incident. Patch bump to publish clean versions and move the `latest` dist-tag forward, superseding the compromised versions that declared the malicious `easy-day-js` dependency. ([#18056](https://github.com/mastra-ai/mastra/pull/18056))
8
+
9
+ - Updated dependencies [[`77a2351`](https://github.com/mastra-ai/mastra/commit/77a2351ee79296e360bce822cb3391f7cfd6489d)]:
10
+ - @mastra/core@1.43.1-alpha.0
11
+
3
12
  ## 1.10.0
4
13
 
5
14
  ### Minor Changes
@@ -164,6 +164,19 @@ export declare class HonoRequest<P extends string = '/', I extends Input['out']
164
164
  * ```
165
165
  */
166
166
  arrayBuffer(): Promise<ArrayBuffer>;
167
+ /**
168
+ * `.bytes()` parses the request body as a `Uint8Array`.
169
+ *
170
+ * @see {@link https://hono.dev/docs/api/request#bytes}
171
+ *
172
+ * @example
173
+ * ```ts
174
+ * app.post('/entry', async (c) => {
175
+ * const body = await c.req.bytes()
176
+ * })
177
+ * ```
178
+ */
179
+ bytes(): Promise<Uint8Array>;
167
180
  /**
168
181
  * Parses the request body as a `Blob`.
169
182
  * @example
@@ -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.10.0"
6
+ version: "1.10.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.0",
2
+ "version": "1.10.1-alpha.0",
3
3
  "package": "@mastra/mcp",
4
4
  "exports": {
5
5
  "UnauthorizedError": {
package/dist/index.cjs CHANGED
@@ -2357,7 +2357,7 @@ function createSimpleTokenProvider(accessToken, options) {
2357
2357
  });
2358
2358
  }
2359
2359
 
2360
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.18/a4592d669eb2c33e4f24995614864047f2c1a155accc9d64dd2de0f4e8d608a9/node_modules/hono/dist/utils/stream.js
2360
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.21/c401a6c1b505d0adf80740e6e7d31122a2ebd9abaf1de7e5dee418ae2a608e7a/node_modules/hono/dist/utils/stream.js
2361
2361
  var StreamingApi = class {
2362
2362
  writer;
2363
2363
  encoder;
@@ -2386,7 +2386,9 @@ var StreamingApi = class {
2386
2386
  done ? controller.close() : controller.enqueue(value);
2387
2387
  },
2388
2388
  cancel: () => {
2389
- this.abort();
2389
+ if (!this.closed) {
2390
+ this.abort();
2391
+ }
2390
2392
  }
2391
2393
  });
2392
2394
  }
@@ -2408,11 +2410,11 @@ var StreamingApi = class {
2408
2410
  return new Promise((res) => setTimeout(res, ms));
2409
2411
  }
2410
2412
  async close() {
2413
+ this.closed = true;
2411
2414
  try {
2412
2415
  await this.writer.close();
2413
2416
  } catch {
2414
2417
  }
2415
- this.closed = true;
2416
2418
  }
2417
2419
  async pipe(body) {
2418
2420
  this.writer.releaseLock();
@@ -2434,7 +2436,7 @@ var StreamingApi = class {
2434
2436
  }
2435
2437
  };
2436
2438
 
2437
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.18/a4592d669eb2c33e4f24995614864047f2c1a155accc9d64dd2de0f4e8d608a9/node_modules/hono/dist/helper/streaming/utils.js
2439
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.21/c401a6c1b505d0adf80740e6e7d31122a2ebd9abaf1de7e5dee418ae2a608e7a/node_modules/hono/dist/helper/streaming/utils.js
2438
2440
  var isOldBunVersion = () => {
2439
2441
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
2440
2442
  if (version === void 0) {
@@ -2445,7 +2447,7 @@ var isOldBunVersion = () => {
2445
2447
  return result;
2446
2448
  };
2447
2449
 
2448
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.18/a4592d669eb2c33e4f24995614864047f2c1a155accc9d64dd2de0f4e8d608a9/node_modules/hono/dist/utils/html.js
2450
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.21/c401a6c1b505d0adf80740e6e7d31122a2ebd9abaf1de7e5dee418ae2a608e7a/node_modules/hono/dist/utils/html.js
2449
2451
  var HtmlEscapedCallbackPhase = {
2450
2452
  Stringify: 1};
2451
2453
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -2476,7 +2478,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
2476
2478
  }
2477
2479
  };
2478
2480
 
2479
- // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.18/a4592d669eb2c33e4f24995614864047f2c1a155accc9d64dd2de0f4e8d608a9/node_modules/hono/dist/helper/streaming/sse.js
2481
+ // ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.21/c401a6c1b505d0adf80740e6e7d31122a2ebd9abaf1de7e5dee418ae2a608e7a/node_modules/hono/dist/helper/streaming/sse.js
2480
2482
  var SSEStreamingApi = class extends StreamingApi {
2481
2483
  constructor(writable, readable) {
2482
2484
  super(writable, readable);
@@ -3363,7 +3365,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
3363
3365
  const resource = resources.find((r) => r.uri === uri);
3364
3366
  if (!resource) {
3365
3367
  this.logger.warn("Unknown resource URI requested", { uri });
3366
- throw new Error(`Resource not found: ${uri}`);
3368
+ throw new types_js.McpError(types_js.ErrorCode.InvalidParams, `Resource not found: ${uri}`);
3367
3369
  }
3368
3370
  try {
3369
3371
  const resourcesOrResourceContent = await capturedResourceOptions.getResourceContent({ uri, extra });
@@ -3472,7 +3474,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
3472
3474
  if (prompt.arguments) {
3473
3475
  for (const arg of prompt.arguments) {
3474
3476
  if (arg.required && (args?.[arg.name] === void 0 || args?.[arg.name] === null)) {
3475
- throw new Error(`Missing required argument: ${arg.name}`);
3477
+ throw new types_js.McpError(types_js.ErrorCode.InvalidParams, `Missing required argument: ${arg.name}`);
3476
3478
  }
3477
3479
  }
3478
3480
  }