From 5b19445bc0d0adfe80180e65e6e178d570e80f59 Mon Sep 17 00:00:00 2001 From: jldec Date: Sat, 6 Dec 2025 13:22:50 -0500 Subject: [PATCH] Repro issue: call getAITools() when there are no MCPs --- src/app/chat-agent-agent/ChatAgentAgentDO.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/chat-agent-agent/ChatAgentAgentDO.ts b/src/app/chat-agent-agent/ChatAgentAgentDO.ts index 9adfbe1..626f0da 100644 --- a/src/app/chat-agent-agent/ChatAgentAgentDO.ts +++ b/src/app/chat-agent-agent/ChatAgentAgentDO.ts @@ -23,7 +23,7 @@ export class ChatAgentAgentDO extends AIChatAgent { // Collect all tools, including MCP tools const allTools = { ...agentTools(this), - ...(mcpServers.tools.length ? this.mcp.getAITools() : {}) + ...this.mcp.getAITools() // (mcpServers.tools.length ? this.mcp.getAITools() : {}) } // Prevent recursion - subagents cannot use subagent tools Object.keys(allTools).forEach((key) => {