🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: slove the descktop use offical endpoint mcp not use stdio (#11813)
Shinji-Li370bf160c2f6
diff --git a/src/store/tool/slices/mcpStore/action.ts b/src/store/tool/slices/mcpStore/action.tsindex 5e674c49a37..e32c500248e 100644--- a/src/store/tool/slices/mcpStore/action.ts+++ b/src/store/tool/slices/mcpStore/action.ts@@ -293,17 +293,14 @@ export const createMCPPluginStoreSlice: StateCreator<(!option?.connection?.type && !option?.connection?.url),);- const hasNonHttpDeployment = deploymentOptions.some((option) => {- const type = option?.connection?.type;- if (!type && option?.connection?.url) return false;+ // Check if cloudEndPoint is available: stdio type + haveCloudEndpoint exists+ // Both desktop and web should use cloud endpoint if available+ const hasCloudEndpoint = stdioOption && haveCloudEndpoint;- return type && type !== 'http';- });-- // Check if cloudEndPoint is available: web + stdio type + haveCloudEndpoint exists- const hasCloudEndpoint = !isDesktop && stdioOption && haveCloudEndpoint;-- let shouldUseHttpDeployment = !!httpOption && (!hasNonHttpDeployment || !isDesktop);+ // Prioritize endpoint (http/cloud) over stdio in all environments+ // Desktop: endpoint > stdio+ // Web: endpoint only (stdio not supported)+ let shouldUseHttpDeployment = !!httpOption;if (hasCloudEndpoint) {// Use cloudEndPoint, create cloud type connection@@ -664,10 +661,10 @@ export const createMCPPluginStoreSlice: StateCreator<errorLog,params: connection? {- args: connection.args,- command: connection.command,- type: connection.type,- }+ args: connection.args,+ command: connection.command,+ type: connection.type,+ }: undefined,step: 'installation_error',timestamp: Date.now(),