mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user