File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
frontend/components/agent Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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 ;
You canāt perform that action at this time.
0 commit comments