@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.cjs CHANGED
@@ -2006,7 +2006,7 @@ function createSimpleTokenProvider(accessToken, options) {
2006
2006
  });
2007
2007
  }
2008
2008
 
2009
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/utils/stream.js
2009
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/stream.js
2010
2010
  var StreamingApi = class {
2011
2011
  writer;
2012
2012
  encoder;
@@ -2083,7 +2083,7 @@ var StreamingApi = class {
2083
2083
  }
2084
2084
  };
2085
2085
 
2086
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/helper/streaming/utils.js
2086
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/utils.js
2087
2087
  var isOldBunVersion = () => {
2088
2088
  const version = typeof Bun !== "undefined" ? Bun.version : void 0;
2089
2089
  if (version === void 0) {
@@ -2094,7 +2094,7 @@ var isOldBunVersion = () => {
2094
2094
  return result;
2095
2095
  };
2096
2096
 
2097
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/utils/html.js
2097
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/utils/html.js
2098
2098
  var HtmlEscapedCallbackPhase = {
2099
2099
  Stringify: 1};
2100
2100
  var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
@@ -2125,14 +2125,14 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
2125
2125
  }
2126
2126
  };
2127
2127
 
2128
- // ../../node_modules/.pnpm/hono@4.11.3/node_modules/hono/dist/helper/streaming/sse.js
2128
+ // ../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/streaming/sse.js
2129
2129
  var SSEStreamingApi = class extends StreamingApi {
2130
2130
  constructor(writable, readable) {
2131
2131
  super(writable, readable);
2132
2132
  }
2133
2133
  async writeSSE(message) {
2134
2134
  const data = await resolveCallback(message.data, HtmlEscapedCallbackPhase.Stringify, false, {});
2135
- const dataLines = data.split("\n").map((line) => {
2135
+ const dataLines = data.split(/\r\n|\r|\n/).map((line) => {
2136
2136
  return `data: ${line}`;
2137
2137
  }).join("\n");
2138
2138
  const sseData = [
@@ -2775,7 +2775,7 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
2775
2775
  elicitation: sessionElicitation,
2776
2776
  extra
2777
2777
  },
2778
- // @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
2778
+ // @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
2779
2779
  get elicitation() {
2780
2780
  throw new Error(`The "elicitation" key is now nested under "mcp.elicitation" in tool arguments`);
2781
2781
  },