veryfront 0.1.538 → 0.1.539
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/esm/deno.js +1 -1
- package/esm/src/integrations/remote-tools.js +2 -2
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +1 -1
- package/src/deno.js +1 -1
- package/src/src/integrations/remote-tools.ts +2 -2
- package/src/src/utils/version-constant.ts +1 -1
package/esm/deno.js
CHANGED
|
@@ -83,6 +83,8 @@ async function callRemoteTool(baseUrl, token, toolName, args, endUserId) {
|
|
|
83
83
|
// If MCP CallToolResult format, extract content
|
|
84
84
|
if (result?.content && Array.isArray(result.content)) {
|
|
85
85
|
const text = joinCallToolText(result.content);
|
|
86
|
+
if (result.structuredContent)
|
|
87
|
+
return result.structuredContent;
|
|
86
88
|
if (result.isError) {
|
|
87
89
|
// Try to preserve structured error data (e.g., authentication_required with connectUrl)
|
|
88
90
|
const parsed = parseJsonText(text);
|
|
@@ -90,8 +92,6 @@ async function callRemoteTool(baseUrl, token, toolName, args, endUserId) {
|
|
|
90
92
|
return parsed;
|
|
91
93
|
return { error: "tool_error", message: text };
|
|
92
94
|
}
|
|
93
|
-
if (result.structuredContent)
|
|
94
|
-
return result.structuredContent;
|
|
95
95
|
return parseJsonText(text) ?? text;
|
|
96
96
|
}
|
|
97
97
|
return result;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.539";
|
|
2
2
|
//# sourceMappingURL=version-constant.d.ts.map
|
package/package.json
CHANGED
package/src/deno.js
CHANGED
|
@@ -124,6 +124,8 @@ async function callRemoteTool(
|
|
|
124
124
|
if (result?.content && Array.isArray(result.content)) {
|
|
125
125
|
const text = joinCallToolText(result.content as CallToolTextContent[]);
|
|
126
126
|
|
|
127
|
+
if (result.structuredContent) return result.structuredContent;
|
|
128
|
+
|
|
127
129
|
if (result.isError) {
|
|
128
130
|
// Try to preserve structured error data (e.g., authentication_required with connectUrl)
|
|
129
131
|
const parsed = parseJsonText(text);
|
|
@@ -131,8 +133,6 @@ async function callRemoteTool(
|
|
|
131
133
|
return { error: "tool_error", message: text };
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
if (result.structuredContent) return result.structuredContent;
|
|
135
|
-
|
|
136
136
|
return parseJsonText(text) ?? text;
|
|
137
137
|
}
|
|
138
138
|
|