Popular MCPs

This commit is contained in:
andrepimenta
2025-07-11 23:57:55 +01:00
parent 2eceda51ed
commit b8e5c253a3
2 changed files with 26 additions and 15 deletions

View File

@@ -662,6 +662,12 @@ class ClaudeChatProvider {
for (const content of jsonData.message.content) {
if (content.type === 'tool_result') {
let resultContent = content.content || 'Tool executed successfully';
// Stringify if content is an object or array
if (typeof resultContent === 'object' && resultContent !== null) {
resultContent = JSON.stringify(resultContent, null, 2);
}
const isError = content.is_error || false;
// Find the last tool use to get the tool name