Skip to content

Commit 266c3b3

Browse files
committed
Remove unused variable toolResults
1 parent dfc9247 commit 266c3b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mcp-client-typescript/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class MCPClient {
100100

101101
// Process response and handle tool calls
102102
const finalText = [];
103-
const toolResults = [];
104103

105104
for (const content of response.content) {
106105
if (content.type === "text") {
@@ -114,7 +113,6 @@ class MCPClient {
114113
name: toolName,
115114
arguments: toolArgs,
116115
});
117-
toolResults.push(result);
118116
finalText.push(
119117
`[Calling tool ${toolName} with args ${JSON.stringify(toolArgs)}]`,
120118
);

0 commit comments

Comments
 (0)