Skip to content

Commit 3eb3e8a

Browse files
committed
šŸ› Bugfix: Skip MCP tools as they will be handled in the MCP server installation step #1841
1 parent 15cf7a3 commit 3eb3e8a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ā€Žfrontend/components/agent/AgentImportWizard.tsxā€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,12 @@ export default function AgentImportWizard({
602602
const agentDisplayName = (agentInfo as any)?.display_name || (agentInfo as any)?.name || `${t("market.install.agent.defaultName", "Agent")} ${agentKey}`;
603603
if (Array.isArray((agentInfo as any)?.tools)) {
604604
(agentInfo as any).tools.forEach((tool: any) => {
605+
// Skip MCP tools as they will be handled in the MCP server installation step
606+
const toolSource = (tool?.source || "").toLowerCase();
607+
if (toolSource === "mcp") {
608+
return;
609+
}
610+
605611
const rawName = tool?.name || tool?.origin_name || tool?.class_name;
606612
const name = typeof rawName === "string" ? rawName.trim() : "";
607613
if (!name) return;

0 commit comments

Comments
Ā (0)