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

Method disconnectFromServer

src/agent/MCPComponent.ts:181–186  ·  view source on GitHub ↗

* 断开服务器连接

(serverName: string)

Source from the content-addressed store, hash-verified

179 * 断开服务器连接
180 */
181 async disconnectFromServer(serverName: string): Promise<void> {
182 const session = this.sessions.get(serverName);
183 if (session && this.client) {
184 await this.client.disconnect(session.id);
185 }
186 }
187
188 /**
189 * 加载服务器资源

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
disconnectMethod · 0.80

Tested by

no test coverage detected