mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-23 18:29:21 -05:00
fix: 修复从市场安装服务器时,选择SSE和Streamable HTTP不生效的问题 (#180)
This commit is contained in:
@@ -365,11 +365,11 @@ export const useMarketData = () => {
|
||||
// Prepare server configuration, merging with customConfig
|
||||
const serverConfig = {
|
||||
name: server.name,
|
||||
config: {
|
||||
config: customConfig.type === 'stdio' ? {
|
||||
command: customConfig.command || installation.command || '',
|
||||
args: customConfig.args || installation.args || [],
|
||||
env: { ...installation.env, ...customConfig.env },
|
||||
},
|
||||
} : customConfig
|
||||
};
|
||||
|
||||
// Call the createServer API
|
||||
|
||||
Reference in New Issue
Block a user