@mastra/mcp 1.18.1-alpha.0 → 1.18.1-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/dist/index.js CHANGED
@@ -11172,7 +11172,7 @@ function toStandardSchema$4(schema) {
11172
11172
  return new AiSdkSchemaWrapper(schema);
11173
11173
  }
11174
11174
  //#endregion
11175
- //#region ../schema-compat/dist/json-schema-BKit3LVN.js
11175
+ //#region ../schema-compat/dist/json-schema-DaHLYDhg.js
11176
11176
  var require_code$1 = /* @__PURE__ */ __commonJSMin$1(((exports) => {
11177
11177
  Object.defineProperty(exports, "__esModule", { value: true });
11178
11178
  exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
@@ -17924,7 +17924,7 @@ var require__2020 = /* @__PURE__ */ __commonJSMin$1(((exports, module) => {
17924
17924
  }
17925
17925
  });
17926
17926
  }));
17927
- var import_ajv = /* @__PURE__ */ __toESM$1(require_ajv(), 1);
17927
+ var import_ajv = require_ajv();
17928
17928
  var import__2020 = /* @__PURE__ */ __toESM$1(require__2020(), 1);
17929
17929
  var import_json_schema_traverse$2 = /* @__PURE__ */ __toESM$1(require_json_schema_traverse(), 1);
17930
17930
  /**
@@ -18056,7 +18056,7 @@ var JsonSchemaWrapper = class {
18056
18056
  */
18057
18057
  #getAjvValidator() {
18058
18058
  if (!this.#ajvValidateCache) {
18059
- const AjvClass = typeof this.#schema.$schema === "string" && this.#schema.$schema.includes("2020-12") ? import__2020.default : import_ajv.default;
18059
+ const AjvClass = typeof this.#schema.$schema === "string" && this.#schema.$schema.includes("2020-12") ? import__2020.default : import_ajv.Ajv;
18060
18060
  this.#ajvInstance = new AjvClass({
18061
18061
  allErrors: true,
18062
18062
  strict: false,
@@ -18216,7 +18216,7 @@ function toStandardSchema$2(zodSchema) {
18216
18216
  return wrapper;
18217
18217
  }
18218
18218
  //#endregion
18219
- //#region ../schema-compat/dist/schema-D_ikovK6.js
18219
+ //#region ../schema-compat/dist/schema-BwlBcZRB.js
18220
18220
  /**
18221
18221
  * Supported JSON Schema targets for z.toJSONSchema().
18222
18222
  * Works with both real Zod v4 and Zod 3.25's v4 compat layer.
@@ -25887,7 +25887,7 @@ onListChanged: async (serverName, handler) => {
25887
25887
  }
25888
25888
  };
25889
25889
  //#endregion
25890
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/utils/stream.js
25890
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/utils/stream.js
25891
25891
  var StreamingApi = class {
25892
25892
  writer;
25893
25893
  encoder;
@@ -25942,14 +25942,8 @@ var StreamingApi = class {
25942
25942
  }
25943
25943
  async pipe(body) {
25944
25944
  this.writer.releaseLock();
25945
- try {
25946
- await body.pipeTo(this.writable, {
25947
- preventClose: true,
25948
- preventAbort: true
25949
- });
25950
- } finally {
25951
- this.writer = this.writable.getWriter();
25952
- }
25945
+ await body.pipeTo(this.writable, { preventClose: true });
25946
+ this.writer = this.writable.getWriter();
25953
25947
  }
25954
25948
  onAbort(listener) {
25955
25949
  this.abortSubscribers.push(listener);
@@ -25961,16 +25955,12 @@ var StreamingApi = class {
25961
25955
  abort() {
25962
25956
  if (!this.aborted) {
25963
25957
  this.aborted = true;
25964
- this.abortSubscribers.forEach((subscriber) => {
25965
- try {
25966
- Promise.resolve(subscriber()).catch(() => {});
25967
- } catch {}
25968
- });
25958
+ this.abortSubscribers.forEach((subscriber) => subscriber());
25969
25959
  }
25970
25960
  }
25971
25961
  };
25972
25962
  //#endregion
25973
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/helper/streaming/utils.js
25963
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/helper/streaming/utils.js
25974
25964
  var isOldBunVersion = () => {
25975
25965
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
25976
25966
  if (version === void 0) return false;
@@ -25979,7 +25969,7 @@ var isOldBunVersion = () => {
25979
25969
  return result;
25980
25970
  };
25981
25971
  //#endregion
25982
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/utils/html.js
25972
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/utils/html.js
25983
25973
  var HtmlEscapedCallbackPhase = {
25984
25974
  Stringify: 1,
25985
25975
  BeforeStream: 2,
@@ -26009,7 +25999,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
26009
25999
  else return resStr;
26010
26000
  };
26011
26001
  //#endregion
26012
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.13.7/16fe89d7a68113ebfa0de2c75556f1b27b82f6d628b070129230d3bbe03cc914/node_modules/hono/dist/helper/streaming/sse.js
26002
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/helper/streaming/sse.js
26013
26003
  var SSEStreamingApi = class extends StreamingApi {
26014
26004
  constructor(writable, readable) {
26015
26005
  super(writable, readable);
@@ -26062,7 +26052,7 @@ var streamSSE = (c, cb, onError) => {
26062
26052
  return c.newResponse(stream.responseReadable);
26063
26053
  };
26064
26054
  //#endregion
26065
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-mcp-server-sse-transport/0.0.7/8ceaed0182f7c154d0b5bb7edbfdab5e7bebf75cba2b75c5854a8575100bd311/node_modules/hono-mcp-server-sse-transport/build/sse.js
26055
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-mcp-server-sse-transport/0.0.7/77cb993510b4dd1d9c8bf87f5375b9a3a33086c9f52f5b16d58cb9c95462e6dc/node_modules/hono-mcp-server-sse-transport/build/sse.js
26066
26056
  const MAXIMUM_MESSAGE_SIZE = 4 * 1024 * 1024;
26067
26057
  var SSETransport = class {
26068
26058
  messageUrl;