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

Method updateServerConfig

src/mcp/config/MCPConfig.ts:134–140  ·  view source on GitHub ↗

* 更新服务器配置

(config: Partial<MCPServerConfigFile>)

Source from the content-addressed store, hash-verified

132 * 更新服务器配置
133 */
134 updateServerConfig(config: Partial<MCPServerConfigFile>): void {
135 this.config.server = {
136 ...this.config.server,
137 ...config,
138 };
139 this.saveConfig();
140 }
141
142 /**
143 * 获取服务器配置

Callers

nothing calls this directly

Calls 1

saveConfigMethod · 0.95

Tested by

no test coverage detected