@mastra/mcp 1.17.2 → 1.17.3-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.
Files changed (33) hide show
  1. package/LICENSE.md +6 -4
  2. package/dist/client/actions/elicitation.d.ts.map +1 -1
  3. package/dist/client/actions/progress.d.ts.map +1 -1
  4. package/dist/client/actions/prompt.d.ts.map +1 -1
  5. package/dist/client/actions/resource.d.ts +21 -21
  6. package/dist/client/actions/resource.d.ts.map +1 -1
  7. package/dist/client/client.d.ts.map +1 -1
  8. package/dist/client/configuration.d.ts +51 -51
  9. package/dist/client/configuration.d.ts.map +1 -1
  10. package/dist/client/oauth-provider.d.ts.map +1 -1
  11. package/dist/client/server-proxy.d.ts.map +1 -1
  12. package/dist/docs/SKILL.md +8 -8
  13. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  14. package/dist/docs/references/docs-auth-fga.md +18 -16
  15. package/dist/docs/references/docs-connections-mcp.md +3 -1
  16. package/dist/docs/references/docs-connections-overview.md +2 -0
  17. package/dist/docs/references/reference-editor-tools.md +2 -0
  18. package/dist/docs/references/reference-migrations-upgrade-to-v1-mcp.md +2 -0
  19. package/dist/docs/references/reference-tools-mcp-client.md +4 -2
  20. package/dist/docs/references/reference-tools-mcp-server.md +2 -0
  21. package/dist/index.cjs +12 -13
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.js +12 -13
  24. package/dist/index.js.map +1 -1
  25. package/dist/server/__tests__/mock-extra.d.ts.map +1 -1
  26. package/dist/server/mrtrElicitation.d.ts.map +1 -1
  27. package/dist/server/oauth-middleware.d.ts.map +1 -1
  28. package/dist/server/promptActions.d.ts.map +1 -1
  29. package/dist/server/resourceActions.d.ts.map +1 -1
  30. package/dist/server/server.d.ts.map +1 -1
  31. package/dist/server/toolActions.d.ts.map +1 -1
  32. package/package.json +11 -12
  33. package/CHANGELOG.md +0 -5453
package/dist/index.js CHANGED
@@ -17418,7 +17418,7 @@ let customAlphabet = (alphabet, defaultSize = 21) => {
17418
17418
  return (size = defaultSize) => {
17419
17419
  let id = "";
17420
17420
  let i = size | 0;
17421
- while (i--) id += alphabet[Math.random() * alphabet.length | 0];
17421
+ while (i-- > 0) id += alphabet[Math.random() * alphabet.length | 0];
17422
17422
  return id;
17423
17423
  };
17424
17424
  };
@@ -24185,7 +24185,7 @@ onListChanged: async (serverName, handler) => {
24185
24185
  }
24186
24186
  };
24187
24187
  //#endregion
24188
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.30/1b2e4fcdfb5fc9f7f51bffc1540f859608c39e01fb7d73d8ab30d60a680eaffc/node_modules/hono/dist/utils/stream.js
24188
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/utils/stream.js
24189
24189
  var StreamingApi = class {
24190
24190
  writer;
24191
24191
  encoder;
@@ -24258,7 +24258,7 @@ var StreamingApi = class {
24258
24258
  }
24259
24259
  };
24260
24260
  //#endregion
24261
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.30/1b2e4fcdfb5fc9f7f51bffc1540f859608c39e01fb7d73d8ab30d60a680eaffc/node_modules/hono/dist/helper/streaming/utils.js
24261
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/helper/streaming/utils.js
24262
24262
  var isOldBunVersion = () => {
24263
24263
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
24264
24264
  if (version === void 0) return false;
@@ -24267,7 +24267,7 @@ var isOldBunVersion = () => {
24267
24267
  return result;
24268
24268
  };
24269
24269
  //#endregion
24270
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.30/1b2e4fcdfb5fc9f7f51bffc1540f859608c39e01fb7d73d8ab30d60a680eaffc/node_modules/hono/dist/utils/html.js
24270
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/utils/html.js
24271
24271
  var HtmlEscapedCallbackPhase = {
24272
24272
  Stringify: 1,
24273
24273
  BeforeStream: 2,
@@ -24297,7 +24297,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
24297
24297
  else return resStr;
24298
24298
  };
24299
24299
  //#endregion
24300
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.30/1b2e4fcdfb5fc9f7f51bffc1540f859608c39e01fb7d73d8ab30d60a680eaffc/node_modules/hono/dist/helper/streaming/sse.js
24300
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono/4.12.34/86d7f25c35c79da0f9cccb7fef43100dfeaf7989a3b5712a780063b91be3ae59/node_modules/hono/dist/helper/streaming/sse.js
24301
24301
  var SSEStreamingApi = class extends StreamingApi {
24302
24302
  constructor(writable, readable) {
24303
24303
  super(writable, readable);
@@ -24306,16 +24306,15 @@ var SSEStreamingApi = class extends StreamingApi {
24306
24306
  const dataLines = (await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {})).split(/\r\n|\r|\n/).map((line) => {
24307
24307
  return `data: ${line}`;
24308
24308
  }).join("\n");
24309
- for (const key of [
24310
- "event",
24311
- "id",
24312
- "retry"
24313
- ]) if (message[key] && /[\r\n]/.test(message[key])) throw new Error(`${key} must not contain "\\r" or "\\n"`);
24309
+ for (const key of ["event", "id"]) {
24310
+ const value = message[key];
24311
+ if (value && /[\r\n]/.test(value)) throw new Error(`${key} must not contain "\\r" or "\\n"`);
24312
+ }
24314
24313
  const sseData = [
24315
24314
  message.event && `event: ${message.event}`,
24316
24315
  dataLines,
24317
- message.id && `id: ${message.id}`,
24318
- message.retry && `retry: ${message.retry}`
24316
+ message.id !== void 0 && `id: ${message.id}`,
24317
+ message.retry !== void 0 && `retry: ${message.retry}`
24319
24318
  ].filter(Boolean).join("\n") + "\n\n";
24320
24319
  await this.write(sseData);
24321
24320
  }
@@ -24351,7 +24350,7 @@ var streamSSE = (c, cb, onError) => {
24351
24350
  return c.newResponse(stream.responseReadable);
24352
24351
  };
24353
24352
  //#endregion
24354
- //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-mcp-server-sse-transport/0.0.7/d5ae5a23aa2b79db7055621f11a7cbc8d27f7caba1eeb308ab2cf5bcb1a8e5b8/node_modules/hono-mcp-server-sse-transport/build/sse.js
24353
+ //#region ../../../../../setup-pnpm/node_modules/.bin/store/v11/links/@/hono-mcp-server-sse-transport/0.0.7/2a63beb8624fb1bf3c7a3ca090a15654580e3b90bf86b236de2fea1561bf2a49/node_modules/hono-mcp-server-sse-transport/build/sse.js
24355
24354
  const MAXIMUM_MESSAGE_SIZE = 4 * 1024 * 1024;
24356
24355
  var SSETransport = class {
24357
24356
  messageUrl;