MCPcopy Create free account
hub / github.com/echoVic/blade-code / importConfig

Method importConfig

src/mcp/config/MCPConfig.ts:188–198  ·  view source on GitHub ↗

* 导入配置

(config: MCPConfigFile)

Source from the content-addressed store, hash-verified

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 * 重置为默认配置

Callers

nothing calls this directly

Calls 2

getDefaultConfigMethod · 0.95
saveConfigMethod · 0.95

Tested by

no test coverage detected