@mastra/mcp 2.4.1-alpha.0 → 2.4.1-alpha.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/client/client.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-connections-mcp.md +2 -0
- package/dist/docs/references/docs-guides-mcp-authentication-authorization.md +10 -1
- package/dist/docs/references/reference-tools-mcp-server.md +1 -1
- package/dist/index.cjs +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -23512,9 +23512,12 @@ function extractToolErrorText(content) {
|
|
|
23512
23512
|
*/
|
|
23513
23513
|
function extractModelTextFromToolContent(content) {
|
|
23514
23514
|
if (!Array.isArray(content)) return void 0;
|
|
23515
|
-
return content.
|
|
23516
|
-
|
|
23517
|
-
|
|
23515
|
+
return content.map((part) => {
|
|
23516
|
+
if (!part || typeof part !== "object") return void 0;
|
|
23517
|
+
const p = part;
|
|
23518
|
+
if (p.type === "text" && typeof p.text === "string") return p.text;
|
|
23519
|
+
if (p.type === "resource" && typeof p.resource?.text === "string") return p.resource.text;
|
|
23520
|
+
}).filter((t) => t !== void 0).join("\n").trim() || void 0;
|
|
23518
23521
|
}
|
|
23519
23522
|
/**
|
|
23520
23523
|
* Non-enumerable metadata attached to structured tool execute results so
|