@mastra/mcp 1.7.0-alpha.2 → 1.7.1-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.
- package/CHANGELOG.md +58 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-tools-mcp-client.md +47 -0
- package/dist/index.cjs +8 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -2307,7 +2307,7 @@ function createSimpleTokenProvider(accessToken, options) {
|
|
|
2307
2307
|
});
|
|
2308
2308
|
}
|
|
2309
2309
|
|
|
2310
|
-
// ../../node_modules/.pnpm/hono@4.12.
|
|
2310
|
+
// ../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/stream.js
|
|
2311
2311
|
var StreamingApi = class {
|
|
2312
2312
|
writer;
|
|
2313
2313
|
encoder;
|
|
@@ -2384,7 +2384,7 @@ var StreamingApi = class {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
};
|
|
2386
2386
|
|
|
2387
|
-
// ../../node_modules/.pnpm/hono@4.12.
|
|
2387
|
+
// ../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/helper/streaming/utils.js
|
|
2388
2388
|
var isOldBunVersion = () => {
|
|
2389
2389
|
const version = typeof Bun !== "undefined" ? Bun.version : void 0;
|
|
2390
2390
|
if (version === void 0) {
|
|
@@ -2395,7 +2395,7 @@ var isOldBunVersion = () => {
|
|
|
2395
2395
|
return result;
|
|
2396
2396
|
};
|
|
2397
2397
|
|
|
2398
|
-
// ../../node_modules/.pnpm/hono@4.12.
|
|
2398
|
+
// ../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/utils/html.js
|
|
2399
2399
|
var HtmlEscapedCallbackPhase = {
|
|
2400
2400
|
Stringify: 1};
|
|
2401
2401
|
var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) => {
|
|
@@ -2426,7 +2426,7 @@ var resolveCallback = async (str, phase, preserveCallbacks, context, buffer) =>
|
|
|
2426
2426
|
}
|
|
2427
2427
|
};
|
|
2428
2428
|
|
|
2429
|
-
// ../../node_modules/.pnpm/hono@4.12.
|
|
2429
|
+
// ../../node_modules/.pnpm/hono@4.12.18/node_modules/hono/dist/helper/streaming/sse.js
|
|
2430
2430
|
var SSEStreamingApi = class extends StreamingApi {
|
|
2431
2431
|
constructor(writable, readable) {
|
|
2432
2432
|
super(writable, readable);
|
|
@@ -4179,6 +4179,10 @@ Provided arguments: ${JSON.stringify(request.params.arguments, null, 2)}`
|
|
|
4179
4179
|
}) {
|
|
4180
4180
|
try {
|
|
4181
4181
|
this.logger.debug("Received SSE connection");
|
|
4182
|
+
if (this.sseTransport) {
|
|
4183
|
+
await this.sseTransport.close?.();
|
|
4184
|
+
this.sseTransport = void 0;
|
|
4185
|
+
}
|
|
4182
4186
|
this.sseTransport = new SSEServerTransport(messagePath, res);
|
|
4183
4187
|
await this.server.connect(this.sseTransport);
|
|
4184
4188
|
this.server.onclose = async () => {
|