fix: 修复从市场安装服务器时,选择SSE和Streamable HTTP不生效的问题 (#180)

This commit is contained in:
Imgodmaoyouknow
2025-06-13 22:50:36 +08:00
committed by GitHub
parent 40af398f68
commit 4b3bb26301

View File

@@ -365,11 +365,11 @@ export const useMarketData = () => {
// Prepare server configuration, merging with customConfig // Prepare server configuration, merging with customConfig
const serverConfig = { const serverConfig = {
name: server.name, name: server.name,
config: { config: customConfig.type === 'stdio' ? {
command: customConfig.command || installation.command || '', command: customConfig.command || installation.command || '',
args: customConfig.args || installation.args || [], args: customConfig.args || installation.args || [],
env: { ...installation.env, ...customConfig.env }, env: { ...installation.env, ...customConfig.env },
}, } : customConfig
}; };
// Call the createServer API // Call the createServer API