Skip to content

Commit 701d520

Browse files
committed
fix(agent): rename mcpServers to mcpServerSelections to avoid shadowing DB import, route ArrowRight through handleSelect
1 parent 9fdc1d4 commit 701d520

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/sim/executor/handlers/agent/agent-handler.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,14 +236,14 @@ export class AgentBlockHandler implements BlockHandler {
236236
})
237237

238238
const mcpTools: ToolInput[] = []
239-
const mcpServers: ToolInput[] = []
239+
const mcpServerSelections: ToolInput[] = []
240240
const otherTools: ToolInput[] = []
241241

242242
for (const tool of filtered) {
243243
if (tool.type === 'mcp') {
244244
mcpTools.push(tool)
245245
} else if (tool.type === 'mcp-server') {
246-
mcpServers.push(tool)
246+
mcpServerSelections.push(tool)
247247
} else {
248248
otherTools.push(tool)
249249
}
@@ -268,8 +268,8 @@ export class AgentBlockHandler implements BlockHandler {
268268

269269
const mcpResults = await this.processMcpToolsBatched(ctx, mcpTools)
270270

271-
// Process MCP servers (all tools from server mode)
272-
const mcpServerResults = await this.processMcpServerSelections(ctx, mcpServers)
271+
// Process MCP server selections (all tools from server mode)
272+
const mcpServerResults = await this.processMcpServerSelections(ctx, mcpServerSelections)
273273

274274
const allTools = [...otherResults, ...mcpResults, ...mcpServerResults]
275275
return allTools.filter(

0 commit comments

Comments
 (0)