Skip to content

Commit 7e975e5

Browse files
committed
Remove dead code
1 parent 147f7a8 commit 7e975e5

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/examples/clientStdioChat.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Type your queries or 'quit|q|exit' to exit.
1010
* You: Find to articles about AI agent and return URLs
1111
* [internal] Received response from Claude: [{"type":"text","text":"I'll search for information about AI agents
12-
* and provide you with a summary."},{"type":"tool_use","id":"toolu_01He9TkzQfh2979bbeuxWVqM","name":"search",
12+
* and provide you with a summary."},{"type":"tool_use","id":"tool_01He9TkzQfh2979bbeuxWVqM","name":"search",
1313
* "input":{"query":"what are AI agents definition capabilities applications","maxResults":2}}]
1414
* [internal] Calling tool: {"name":"search","arguments":{"query":"what are AI agents definition ...
1515
* I can help analyze the provided content about AI agents.
@@ -140,26 +140,6 @@ class MCPClient {
140140
}
141141

142142
return messages;
143-
144-
// const lastContent = nextResponse.content[nextResponse.content.length - 1];
145-
// if (lastContent.type !== 'tool_use' && toolCallCount < 3) {
146-
// return this.handleToolCall(lastContent, messages, toolCallCount + 1);
147-
// }
148-
//
149-
// const lastContent = nextResponse.content[nextResponse.content.length - 1];
150-
// if (lastContent.type !== 'tool_use' && toolCallCount < 3) {
151-
// return this.handleToolCall(lastContent, messages, toolCallCount + 1);
152-
// }
153-
//
154-
// if (nextResponse.content typeof ToolUseBlock) {
155-
// if (nextResponse.content.slice(-1).type !== 'tool_use' && toolCallCount < 3) {
156-
// return this.handleToolCall(nextResponse.content.slice(-1), messages, toolCallCount + 1);
157-
// }
158-
// }
159-
//
160-
// messages.push({ role: nextResponse.role, content: nextResponse.content.map((x: TextBlockParam) => x.text || '').join('\n') });
161-
//
162-
// return messages;
163143
}
164144

165145
/**

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
/**
3-
* Model Context Protocol (MCP) server for RAG Web Browser Actor
3+
* Model Context Protocol (MCP) server for Apify Actors
44
*/
55
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
66
import type { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';

0 commit comments

Comments
 (0)