fix(MCPSettings): ensure server name is set when missing and reorder radio options
This commit is contained in:
parent
f5b675b356
commit
8b00ff4b93
@ -69,6 +69,11 @@ const PopupContainer: React.FC<Props> = ({ resolve }) => {
|
||||
isActive: false,
|
||||
...(serverConfig as any)
|
||||
}
|
||||
|
||||
if (!server.name) {
|
||||
server.name = id
|
||||
}
|
||||
|
||||
serversArray.push(server)
|
||||
}
|
||||
|
||||
|
||||
@ -261,8 +261,8 @@ const McpSettings: React.FC<Props> = ({ server }) => {
|
||||
<Radio.Group
|
||||
onChange={(e) => setServerType(e.target.value)}
|
||||
options={[
|
||||
{ label: 'SSE', value: 'sse' },
|
||||
{ label: 'STDIO', value: 'stdio' }
|
||||
{ label: 'STDIO', value: 'stdio' },
|
||||
{ label: 'SSE', value: 'sse' }
|
||||
]}
|
||||
/>
|
||||
</Form.Item>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user