@mastra/mcp 1.0.0 → 1.0.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/dist/index.js CHANGED
@@ -1999,7 +1999,7 @@ function createSimpleTokenProvider(accessToken, options) {
1999
1999
  });
2000
2000
  }
2001
2001
 
2002
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/utils/stream.js
2002
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/stream.js
2003
2003
  var StreamingApi = class {
2004
2004
  writer;
2005
2005
  encoder;
@@ -2076,7 +2076,7 @@ var StreamingApi = class {
2076
2076
  }
2077
2077
  };
2078
2078
 
2079
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/helper/streaming/utils.js
2079
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/utils.js
2080
2080
  var isOldBunVersion = () => {
2081
2081
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
2082
2082
  if (version === void 0) {
@@ -2087,7 +2087,7 @@ var isOldBunVersion = () => {
2087
2087
  return result;
2088
2088
  };
2089
2089
 
2090
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/utils/html.js
2090
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/html.js
2091
2091
  var HtmlEscapedCallbackPhase = {
2092
2092
  Stringify: 1};
2093
2093
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -2118,14 +2118,14 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
2118
2118
  }
2119
2119
  };
2120
2120
 
2121
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/helper/streaming/sse.js
2121
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/sse.js
2122
2122
  var SSEStreamingApi = class extends StreamingApi {
2123
2123
  constructor(writable, readable) {
2124
2124
  super(writable, readable);
2125
2125
  }
2126
2126
  async writeSSE(message) {
2127
2127
  const data = await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {});
2128
- const dataLines = data.split("\n").map((line) => {
2128
+ const dataLines = data.split(/\r\n|\r|\n/).map((line) => {
2129
2129
  return `data: ${line}`;
2130
2130
  }).join("\n");
2131
2131
  const sseData = [
@@ -2768,7 +2768,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
2768
2768
  elicitation: sessionElicitation,
2769
2769
  extra
2770
2770
  },
2771
- // @ts-ignore this is to let people know that the elicitation and extra keys are now nested under mcp.elicitation and mcp.extra in tool arguments
2771
+ // @ts-expect-error this is to let people know that the elicitation and extra keys are now nested under mcp.elicitation and mcp.extra in tool arguments
2772
2772
  get elicitation() {
2773
2773
  throw new Error(`The "elicitation" key is now nested under "mcp.elicitation" in tool arguments`);
2774
2774
  },