()
| 150 | } |
| 151 | |
| 152 | function addServer() { |
| 153 | if (!newServer.name.trim() || !newServer.command.trim()) return; |
| 154 | updateSettings({ |
| 155 | mcpServers: [...settings.mcpServers, { ...newServer, id: nanoid() }], |
| 156 | }); |
| 157 | setNewServer({ name: "", command: "", args: [], env: {}, enabled: true }); |
| 158 | setShowAddForm(false); |
| 159 | } |
| 160 | |
| 161 | return ( |
| 162 | <div> |
nothing calls this directly
no outgoing calls
no test coverage detected