@mastra/mcp 2.4.2-alpha.0 → 2.5.0-alpha.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.
@@ -226,7 +226,8 @@ export declare class InternalMastraMCPClient extends MastraBase {
226
226
  * Opens a `subscriptions/listen` stream for the current interest set, then closes the
227
227
  * previous one so no notification is lost between filters. Resource subscriptions the
228
228
  * server declines are an error; declined list-changed bits only mean the server has
229
- * nothing to announce.
229
+ * nothing to announce. Older revisions push list-changed notifications unprompted, so
230
+ * they need no stream unless resource subscriptions are requested.
230
231
  */
231
232
  private replaceSubscriptionStream;
232
233
  private closeSubscriptionStream;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,OAAO,KAAK,EAAmB,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAShE,OAAO,KAAK,EAEV,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,2BAA2B,EAG3B,kBAAkB,EAMnB,MAAM,8BAA8B,CAAC;AAOtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAI3D,OAAO,KAAK,EAGV,eAAe,EAEf,8BAA8B,EAE9B,uBAAuB,EAEvB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAIjB,YAAY,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,eAAe,EACf,eAAe,EACf,yBAAyB,EACzB,qBAAqB,EACrB,wBAAwB,EACxB,eAAe,EACf,sBAAsB,EACtB,8BAA8B,EAC9B,mBAAmB,EACnB,qBAAqB,EACrB,0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AAC,kBAAkB;IAK1B;;;;;;;OAOG;IACH,OAAO,CAAC,mBAAmB;IAY3B;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC,CAU9E;IAED,OAAO,CAAC,wBAAwB;IAoBhC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,UAAU,EAAE,EAAE;QAAE,UAAU,EAAE,6BAA6B,CAAA;KAAE,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CA4B1G;IAEK,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAiB/D;IAED;;;OAGG;IACH,OAAO,CAAC,sBAAsB;IAuQ9B,OAAO,CAAC,mBAAmB;CAQ5B"}
@@ -261,9 +261,11 @@ export type BaseServerOptions = {
261
261
  * - `'throw'` (default): surface the failure on Mastra's failed-tool-call path
262
262
  * by throwing a `MastraError` that carries the server's `content` text. Tool
263
263
  * spans, stream chunks, scorers, and persisted message parts then reflect the
264
- * failure, and the model sees the error text so it can self-correct.
265
- * - `'return'`: resolve successfully with the raw result (or `structuredContent`),
266
- * ignoring `isError`.
264
+ * failure, and the model sees the error text so it can self-correct. Any
265
+ * `structuredContent` is kept on `error.details.structuredContent` as a JSON string.
266
+ * - `'return'`: resolve successfully with the full `CallToolResult` envelope
267
+ * (`isError`, `content`, and `structuredContent`), so callers can still tell the
268
+ * call failed.
267
269
  *
268
270
  * @default 'throw'
269
271
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/client/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,oCAAoC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ACjB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,aAAa,CAAC;IAC3B,uCAAuC;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,kFAAkF;IAClF,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,WAAW,EAAE,OAAO,CAAC;IACrB,oFAAoF;IACpF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,iFAAiF;IACjF,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,wEAAwE;IACxE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,MAAM,EAAE;QACN,gDAAgD;QAChD,IAAI,EAAE,MAAM,CAAC;QACb,wDAAwD;QACxD,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iEAAiE;QACjE,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC,CAAC"}
@@ -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: "2.4.2-alpha.0"
6
+ version: "2.5.0-alpha.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.4.2-alpha.0",
2
+ "version": "2.5.0-alpha.1",
3
3
  "package": "@mastra/mcp",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -38,7 +38,7 @@ Each server in the `servers` map is configured using the `MastraMCPServerDefinit
38
38
  - If `command` is provided, it uses the Stdio transport.
39
39
  - If `url` is provided, it uses the Streamable HTTP transport.
40
40
 
41
- The client speaks the MCP `2026-07-28` revision. On connect it asks the server which revisions it offers (`server/discover`) and falls back to the pre-2026 `initialize` handshake for servers that haven't upgraded, so tools, resources and prompts keep working against either. Features the older revisions lack (`resources.subscribe()`, `inputRequests`) fail with an error naming the negotiated revision. Set `protocolVersion` to skip the probe.
41
+ The client speaks the MCP `2026-07-28` revision. On connect it asks the server which revisions it offers (`server/discover`) and falls back to the pre-2026 `initialize` handshake for servers that haven't upgraded, so tools, resources and prompts keep working against either. Features the older revisions lack (`resources.subscribe()`, `inputRequests`) fail with an error naming the negotiated revision. `onListChanged()` handlers work against either revision, since older servers send list-changed notifications without a `subscriptions/listen` stream. Set `protocolVersion` to skip the probe.
42
42
 
43
43
  **command** (`string`): For Stdio servers: The command to execute.
44
44
 
@@ -84,7 +84,7 @@ The client speaks the MCP `2026-07-28` revision. On connect it asks the server w
84
84
 
85
85
  **requireToolApproval** (`boolean | (params: RequireToolApprovalContext) => boolean | Promise<boolean>`): Require human approval before executing tools from this server. When set to true, all tools require approval. When set to a function, the function is called with the tool name, arguments, request context, and any tool annotations advertised by the server to dynamically decide whether approval is needed.
86
86
 
87
- **onToolError** (`'throw' | 'return'`): How to handle tool execution failures the server reports in-band with isError: true. 'throw' raises a MastraError carrying the server's error text, so the failure reaches tool spans, stream chunks, scorers, and the model. 'return' resolves with the raw result and ignores isError. (Default: `'throw'`)
87
+ **onToolError** (`'throw' | 'return'`): How to handle tool execution failures the server reports in-band with isError: true. 'throw' raises a MastraError carrying the server's error text, so the failure reaches tool spans, stream chunks, scorers, and the model. Any structuredContent is kept on error.details.structuredContent as a JSON string. 'return' resolves with the full CallToolResult (isError, content, and structuredContent) instead of throwing. (Default: `'throw'`)
88
88
 
89
89
  **jsonSchemaValidator** (`JsonSchemaValidator`): Validator used for MCP tool schemas and structured results. The default supports JSON Schema 2020-12. Provide a compatible validator such as CfWorkerJsonSchemaValidator in runtimes that disallow dynamic code generation.
90
90
 
package/dist/index.cjs CHANGED
@@ -153,7 +153,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin$1(((exports, mo
153
153
  }
154
154
  }));
155
155
  //#endregion
156
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/helpers/util.js
156
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/helpers/util.js
157
157
  var util;
158
158
  (function(util) {
159
159
  util.assertEqual = (_) => {};
@@ -249,7 +249,7 @@ const getParsedType = (data) => {
249
249
  }
250
250
  };
251
251
  //#endregion
252
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/ZodError.js
252
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/ZodError.js
253
253
  const ZodIssueCode = util.arrayToEnum([
254
254
  "invalid_type",
255
255
  "invalid_literal",
@@ -360,7 +360,7 @@ ZodError.create = (issues) => {
360
360
  return new ZodError(issues);
361
361
  };
362
362
  //#endregion
363
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/locales/en.js
363
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/locales/en.js
364
364
  const errorMap = (issue, _ctx) => {
365
365
  let message;
366
366
  switch (issue.code) {
@@ -437,7 +437,7 @@ const errorMap = (issue, _ctx) => {
437
437
  return { message };
438
438
  };
439
439
  //#endregion
440
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/errors.js
440
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/errors.js
441
441
  let overrideErrorMap = errorMap;
442
442
  function setErrorMap(map) {
443
443
  overrideErrorMap = map;
@@ -446,7 +446,7 @@ function getErrorMap() {
446
446
  return overrideErrorMap;
447
447
  }
448
448
  //#endregion
449
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/helpers/parseUtil.js
449
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/helpers/parseUtil.js
450
450
  const makeIssue = (params) => {
451
451
  const { data, path, errorMaps, issueData } = params;
452
452
  const fullPath = [...path, ...issueData.path || []];
@@ -551,14 +551,14 @@ const isDirty = (x) => x.status === "dirty";
551
551
  const isValid = (x) => x.status === "valid";
552
552
  const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
553
553
  //#endregion
554
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/helpers/errorUtil.js
554
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/helpers/errorUtil.js
555
555
  var errorUtil;
556
556
  (function(errorUtil) {
557
557
  errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
558
558
  errorUtil.toString = (message) => typeof message === "string" ? message : message?.message;
559
559
  })(errorUtil || (errorUtil = {}));
560
560
  //#endregion
561
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/types.js
561
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/types.js
562
562
  var ParseInputLazyPath = class {
563
563
  constructor(parent, value, path, key) {
564
564
  this._cachedPath = [];
@@ -3772,7 +3772,7 @@ const coerce = {
3772
3772
  };
3773
3773
  const NEVER = INVALID;
3774
3774
  //#endregion
3775
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v3/index.js
3775
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v3/index.js
3776
3776
  var v3_default = /* @__PURE__ */ __exportAll({
3777
3777
  BRAND: () => BRAND,
3778
3778
  DIRTY: () => DIRTY,
@@ -3883,7 +3883,7 @@ var v3_default = /* @__PURE__ */ __exportAll({
3883
3883
  void: () => voidType
3884
3884
  });
3885
3885
  //#endregion
3886
- //#region ../schema-compat/dist/esm-CWlHuVIx.js
3886
+ //#region ../schema-compat/dist/esm-qtLw5F8u.js
3887
3887
  const ignoreOverride$1 = Symbol("Let zodToJsonSchema decide on which parser to use");
3888
3888
  const defaultOptions$1 = {
3889
3889
  name: void 0,
@@ -4900,7 +4900,7 @@ const zodToJsonSchema$1 = (schema, options) => {
4900
4900
  };
4901
4901
  var esm_default$1 = zodToJsonSchema$1;
4902
4902
  //#endregion
4903
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/util.js
4903
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/util.js
4904
4904
  function getEnumValues(entries) {
4905
4905
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
4906
4906
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -5225,6 +5225,17 @@ function prefixIssues(path, issues) {
5225
5225
  function unwrapMessage(message) {
5226
5226
  return typeof message === "string" ? message : message?.message;
5227
5227
  }
5228
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
5229
+ function sizeCaps(defChecks) {
5230
+ const caps = [];
5231
+ for (const ch of defChecks ?? []) {
5232
+ const d = ch._zod.def;
5233
+ if (!/_(length|size)$|_equals$/.test(d.check)) break;
5234
+ const max = d.maximum ?? d.length ?? d.size;
5235
+ if (max >= 0) caps.push([max, ch]);
5236
+ }
5237
+ return caps;
5238
+ }
5228
5239
  function attachSchema(issues, start, inst) {
5229
5240
  var _a;
5230
5241
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -5445,7 +5456,7 @@ function constantCatch(value) {
5445
5456
  return fn;
5446
5457
  }
5447
5458
  //#endregion
5448
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/core.js
5459
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/core.js
5449
5460
  var _a$2;
5450
5461
  const _zodDesc = {
5451
5462
  value: void 0,
@@ -5551,7 +5562,7 @@ function config(newConfig) {
5551
5562
  return globalConfig;
5552
5563
  }
5553
5564
  //#endregion
5554
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/errors.js
5565
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/errors.js
5555
5566
  function _getMessage() {
5556
5567
  const internals = this._zod;
5557
5568
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -5665,7 +5676,7 @@ function formatError(error, mapper = (issue) => issue.message) {
5665
5676
  return fieldErrors;
5666
5677
  }
5667
5678
  //#endregion
5668
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/parse.js
5679
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/parse.js
5669
5680
  function finalizeParams(callee, params) {
5670
5681
  return {
5671
5682
  callee: params?.callee ?? callee,
@@ -5868,7 +5879,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
5868
5879
  return _safeParseAsync(_Err)(schema, value, _ctx);
5869
5880
  };
5870
5881
  //#endregion
5871
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/regexes.js
5882
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/regexes.js
5872
5883
  /**
5873
5884
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
5874
5885
  * (timestamps embedded in the id). Use {@link cuid2} instead.
@@ -5941,7 +5952,7 @@ const _null$2 = /^null$/i;
5941
5952
  const lowercase = /^[^A-Z]*$/;
5942
5953
  const uppercase = /^[^a-z]*$/;
5943
5954
  //#endregion
5944
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/checks.js
5955
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/checks.js
5945
5956
  const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
5946
5957
  var _a;
5947
5958
  inst._zod ?? (inst._zod = {});
@@ -6327,7 +6338,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
6327
6338
  };
6328
6339
  });
6329
6340
  //#endregion
6330
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/doc.js
6341
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/doc.js
6331
6342
  var Doc = class {
6332
6343
  constructor(args = [], closed = {}) {
6333
6344
  this.content = [];
@@ -6361,14 +6372,14 @@ var Doc = class {
6361
6372
  }
6362
6373
  };
6363
6374
  //#endregion
6364
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/versions.js
6375
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/versions.js
6365
6376
  const version = {
6366
6377
  major: 4,
6367
6378
  minor: 6,
6368
- patch: 5
6379
+ patch: 7
6369
6380
  };
6370
6381
  //#endregion
6371
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/schemas.js
6382
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/schemas.js
6372
6383
  const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
6373
6384
  var _a;
6374
6385
  inst ?? (inst = {});
@@ -6885,6 +6896,26 @@ const $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
6885
6896
  return payload;
6886
6897
  };
6887
6898
  });
6899
+ function capSize(inst, size) {
6900
+ const caps = sizeCaps(inst._zod.def.checks);
6901
+ if (!caps.length) return;
6902
+ const cap = Math.min(...caps.map((c) => c[0]));
6903
+ const parse = inst._zod.parse;
6904
+ inst._zod.parse = (payload, ctx) => {
6905
+ const n = size(payload.value);
6906
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
6907
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
6908
+ const start = payload.issues.length;
6909
+ ch._zod.check(payload);
6910
+ payload.issues[start].continue = false;
6911
+ attachSchema(payload.issues, start, inst);
6912
+ return payload;
6913
+ }
6914
+ }
6915
+ return parse(payload, ctx);
6916
+ };
6917
+ }
6918
+ const arraySize = (input) => Array.isArray(input) ? input.length : -1;
6888
6919
  function handleArrayResult(result, final, index) {
6889
6920
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
6890
6921
  final.value[index] = result.value;
@@ -6922,6 +6953,7 @@ const $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
6922
6953
  if (proms.length) return Promise.all(proms).then(() => payload);
6923
6954
  return payload;
6924
6955
  };
6956
+ capSize(inst, arraySize);
6925
6957
  });
6926
6958
  function handlePropertyResult(result, final, key, input, optin, optout) {
6927
6959
  const isPresent = key in input;
@@ -7893,7 +7925,7 @@ function handleRefineResult(result, payload, input, inst) {
7893
7925
  }
7894
7926
  }
7895
7927
  //#endregion
7896
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/memoizer.js
7928
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/memoizer.js
7897
7929
  var $ZodCyclicError = class extends Error {
7898
7930
  constructor() {
7899
7931
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -8146,7 +8178,7 @@ function isBackEdge(ctx, value) {
8146
8178
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
8147
8179
  }
8148
8180
  //#endregion
8149
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/locales/en.js
8181
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/locales/en.js
8150
8182
  const error = () => {
8151
8183
  const Sizable = {
8152
8184
  string: {
@@ -8254,7 +8286,7 @@ function en_default() {
8254
8286
  return { localeError: error() };
8255
8287
  }
8256
8288
  //#endregion
8257
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/registries.js
8289
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/registries.js
8258
8290
  var _a;
8259
8291
  var $ZodRegistry = class {
8260
8292
  constructor() {
@@ -8301,7 +8333,7 @@ function registry() {
8301
8333
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
8302
8334
  const globalRegistry = globalThis.__zod_globalRegistry;
8303
8335
  //#endregion
8304
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/api.js
8336
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/api.js
8305
8337
  function snapshotChecks(def) {
8306
8338
  if (def.checks) def.checks = [...def.checks];
8307
8339
  return def;
@@ -8871,7 +8903,7 @@ function _check(fn, params) {
8871
8903
  return ch;
8872
8904
  }
8873
8905
  //#endregion
8874
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/to-json-schema.js
8906
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/to-json-schema.js
8875
8907
  function assignProps(target, ...sources) {
8876
8908
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
8877
8909
  return target;
@@ -9313,7 +9345,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
9313
9345
  return finalize(ctx, schema);
9314
9346
  };
9315
9347
  //#endregion
9316
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/core/json-schema-processors.js
9348
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/core/json-schema-processors.js
9317
9349
  const narrowMin = (agg, key, value) => {
9318
9350
  if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
9319
9351
  };
@@ -9957,7 +9989,7 @@ function toJSONSchema(input, params) {
9957
9989
  return finalize(ctx, input);
9958
9990
  }
9959
9991
  //#endregion
9960
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/errors.js
9992
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/errors.js
9961
9993
  const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
9962
9994
  function _lazyMethod(proto, key, make) {
9963
9995
  Object.defineProperty(proto, key, {
@@ -10007,7 +10039,7 @@ const initializer = (inst, issues) => {
10007
10039
  };
10008
10040
  const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
10009
10041
  //#endregion
10010
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/parse.js
10042
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/parse.js
10011
10043
  const parse = /* @__PURE__ */ _parse(ZodRealError);
10012
10044
  const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
10013
10045
  const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -10021,7 +10053,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
10021
10053
  const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
10022
10054
  const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
10023
10055
  //#endregion
10024
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.5/6448fd814698825170f93bd428080c609bd45ccbc007f4c2dfd5fac1bb52f28d/node_modules/zod/v4/classic/schemas.js
10056
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod/4.6.7/4c9f15c99caaca8b83ba8ab68f247a75121c86fb7e498876ed36daccd0f3d3ce/node_modules/zod/v4/classic/schemas.js
10025
10057
  function _ensureDefaultLocale() {
10026
10058
  if (!globalConfig.localeError) config(en_default());
10027
10059
  }
@@ -18447,7 +18479,7 @@ function isStandardSchemaWithJSON$2(value) {
18447
18479
  return isStandardSchema(value) && isStandardJSONSchema(value);
18448
18480
  }
18449
18481
  //#endregion
18450
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod-from-json-schema/0.5.2/6d17c02444d8741339c17b6813a2702a4dfeb014f03ed377f311bb739f609aba/node_modules/zod-from-json-schema/dist/index.mjs
18482
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/zod-from-json-schema/0.5.2/938b1a90632b5c19aade6e212477c764befeb6d6e1cdb7cfde7de2557cd03f99/node_modules/zod-from-json-schema/dist/index.mjs
18451
18483
  var TypeHandler = class {
18452
18484
  apply(types, schema) {
18453
18485
  if (!schema.type) return;
@@ -24232,9 +24264,17 @@ var InternalMastraMCPClient = class extends _mastra_core_base.MastraBase {
24232
24264
  * Opens a `subscriptions/listen` stream for the current interest set, then closes the
24233
24265
  * previous one so no notification is lost between filters. Resource subscriptions the
24234
24266
  * server declines are an error; declined list-changed bits only mean the server has
24235
- * nothing to announce.
24267
+ * nothing to announce. Older revisions push list-changed notifications unprompted, so
24268
+ * they need no stream unless resource subscriptions are requested.
24236
24269
  */
24237
24270
  async replaceSubscriptionStream() {
24271
+ const negotiated = this.negotiatedProtocolVersion;
24272
+ if (negotiated !== void 0 && negotiated !== "2026-07-28" && this.subscriptionInterest.resourceSubscriptions.size === 0) {
24273
+ const previous = this.subscriptionStream;
24274
+ this.subscriptionStream = void 0;
24275
+ await previous?.close();
24276
+ return;
24277
+ }
24238
24278
  this.assertCurrentRevision("subscriptions/listen");
24239
24279
  const previous = this.subscriptionStream;
24240
24280
  const filter = this.subscriptionFilter();
@@ -24555,13 +24595,14 @@ var InternalMastraMCPClient = class extends _mastra_core_base.MastraBase {
24555
24595
  text: errorText,
24556
24596
  details: {
24557
24597
  toolName: tool.name,
24558
- serverName: this.name
24598
+ serverName: this.name,
24599
+ ...res.structuredContent !== void 0 ? { structuredContent: JSON.stringify(res.structuredContent) } : {}
24559
24600
  }
24560
24601
  });
24561
24602
  }
24562
24603
  this.log("debug", `Tool executed successfully: ${tool.name}`);
24563
- if (res.structuredContent !== void 0) {
24564
- if (!res.isError && outputSchema) {
24604
+ if (res.structuredContent !== void 0 && !res.isError) {
24605
+ if (outputSchema) {
24565
24606
  const validation = (0, _mastra_core_tools.validateToolOutput)(await getOutputValidationSchema(), res.structuredContent, tool.name);
24566
24607
  if (validation.error) {
24567
24608
  this.log("debug", `Tool output failed schema validation: ${tool.name}`, { message: validation.error.message });