@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/_types/hono/dist/types/client/types.d.ts +1 -1
- package/dist/_types/hono/dist/types/context.d.ts +2 -6
- package/dist/_types/hono/dist/types/hono-base.d.ts +3 -4
- package/dist/_types/hono/dist/types/router.d.ts +1 -1
- package/dist/_types/hono/dist/types/utils/headers.d.ts +2 -2
- package/dist/_types/hono/package.json +1 -0
- package/dist/_types/hono-mcp-server-sse-transport/build/sse.d.ts +2 -2
- package/dist/_types/hono-mcp-server-sse-transport/package.json +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +12 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -22
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts +20 -4
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +6 -5
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-
|
|
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 =
|
|
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.
|
|
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-
|
|
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.
|
|
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
|
-
|
|
25946
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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/
|
|
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;
|