* 导入配置
(config: MCPConfigFile)
| 186 | * 导入配置 |
| 187 | */ |
| 188 | importConfig(config: MCPConfigFile): void { |
| 189 | this.config = { |
| 190 | ...this.getDefaultConfig(), |
| 191 | ...config, |
| 192 | servers: { |
| 193 | ...this.getDefaultConfig().servers, |
| 194 | ...config.servers, |
| 195 | }, |
| 196 | }; |
| 197 | this.saveConfig(); |
| 198 | } |
| 199 | |
| 200 | /** |
| 201 | * 重置为默认配置 |
nothing calls this directly
no test coverage detected