fix(MCP): Revise the server type judgment logic to ensure the correct… (#5769)

This commit is contained in:
Roland 2025-05-08 20:57:48 +08:00 committed by GitHub
parent cdbba49dd5
commit 0e202509d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,7 +250,7 @@ const McpSettings: React.FC = () => {
}
// set stdio or sse server
if (values.serverType === 'sse' || server.type === 'streamableHttp') {
if (values.serverType === 'sse' || values.serverType === 'streamableHttp') {
mcpServer.baseUrl = values.baseUrl
} else {
mcpServer.command = values.command