diff --git a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx index 536a04f2..5b0e0151 100644 --- a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx +++ b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx @@ -182,9 +182,9 @@ const Inputbar: FC = ({ assistant: _assistant, setActiveTopic, topic }) = } if (isFunctionCallingModel(model)) { - if (!isEmpty(assistant.mcpServers) && !isEmpty(activedMcpServers)) { + if (!isEmpty(enabledMCPs) && !isEmpty(activedMcpServers)) { userMessage.enabledMCPs = activedMcpServers.filter((server) => - assistant.mcpServers?.some((s) => s.id === server.id) + enabledMCPs?.some((s) => s.id === server.id) ) } }