diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx index 496958e1d22..ba1f3c868c9 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx @@ -1252,29 +1252,6 @@ export const ToolInput = memo(function ToolInput({ ) : undefined, }) - if (supportsAdvancedMcpServer) { - actionItems.push({ - label: 'MCP Server (Advanced)', - value: 'action-mcp-server-advanced', - icon: Server, - onSelect: () => { - setStoreValue([ - ...selectedTools.map((tool) => ({ ...tool, isExpanded: false })), - { - type: MCP_SERVER_ADVANCED_TOOL_TYPE, - params: { serverId: '' }, - isExpanded: true, - usageControl: 'auto', - }, - ]) - setOpen(false) - }, - disabled: isPreview || disabled || mcpUnsupported, - suffixElement: mcpUnsupported ? ( - - ) : undefined, - }) - } } if (actionItems.length > 0) { groups.push({ items: actionItems }) @@ -1412,6 +1389,35 @@ export const ToolInput = memo(function ToolInput({ }) } + if (!permissionConfig.disableMcpTools && supportsAdvancedMcpServer) { + groups.push({ + section: 'Advanced', + items: [ + { + label: 'MCP Server (Advanced)', + value: 'action-mcp-server-advanced', + icon: Server, + onSelect: () => { + setStoreValue([ + ...selectedTools.map((tool) => ({ ...tool, isExpanded: false })), + { + type: MCP_SERVER_ADVANCED_TOOL_TYPE, + params: { serverId: '' }, + isExpanded: true, + usageControl: 'auto', + }, + ]) + setOpen(false) + }, + disabled: isPreview || disabled || mcpUnsupported, + suffixElement: mcpUnsupported ? ( + + ) : undefined, + }, + ], + }) + } + return groups }, [ open,