From 266c3b3bafb005119f497c04c4482fd0fce5c408 Mon Sep 17 00:00:00 2001 From: Jean Rigotti Date: Wed, 2 Apr 2025 11:40:53 -0300 Subject: [PATCH] Remove unused variable `toolResults` --- mcp-client-typescript/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/mcp-client-typescript/index.ts b/mcp-client-typescript/index.ts index be89f65..edc2a1a 100644 --- a/mcp-client-typescript/index.ts +++ b/mcp-client-typescript/index.ts @@ -100,7 +100,6 @@ class MCPClient { // Process response and handle tool calls const finalText = []; - const toolResults = []; for (const content of response.content) { if (content.type === "text") { @@ -114,7 +113,6 @@ class MCPClient { name: toolName, arguments: toolArgs, }); - toolResults.push(result); finalText.push( `[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`, );