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

Method addServer

src/mcp/config/MCPConfig.ts:86–89  ·  view source on GitHub ↗

* 添加服务器配置

(name: string, config: MCPConnectionConfig)

Source from the content-addressed store, hash-verified

84 * 添加服务器配置
85 */
86 addServer(name: string, config: MCPConnectionConfig): void {
87 this.config.servers[name] = config;
88 this.saveConfig();
89 }
90
91 /**
92 * 移除服务器配置

Callers 1

mcpCommandFunction · 0.80

Calls 1

saveConfigMethod · 0.95

Tested by

no test coverage detected