Skip to content

Commit cf59661

Browse files
committed
#930 | Added mcpServerUrl to copilot config
1 parent 28ef069 commit cf59661

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/components/DifyChatbot.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const DifyChatbot = ({ onChatToggle }) => {
4545
const organisation = useSelector((state) => state.app?.organisation);
4646
const authSession = useSelector((state) => state.app?.authSession);
4747
const authToken = localStorage.getItem(IdpDetails.AuthTokenName);
48+
const avni_mcp_server_url = aiConfig?.mcp_server_url || "";
4849

4950
useEffect(() => {
5051
// Doesn't update dify config. We need to keep track of the conversation id to update the inputs and config
@@ -205,6 +206,7 @@ const DifyChatbot = ({ onChatToggle }) => {
205206
}
206207

207208
params.append("auth_token", authToken);
209+
params.append("avni_mcp_server_url", avni_mcp_server_url);
208210

209211
return params.toString() ? `${baseUrl}?${params.toString()}` : baseUrl;
210212
};

0 commit comments

Comments
 (0)