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) => {