MCPcopy Create free account
hub / github.com/continuedev/continue / disconnect

Method disconnect

core/context/mcp/MCPConnection.ts:101–106  ·  view source on GitHub ↗
(disable = false)

Source from the content-addressed store, hash-verified

99 }
100
101 async disconnect(disable = false) {
102 this.abortController.abort();
103 await this.client.close();
104 await this.transport.close();
105 this.status = disable ? "disabled" : "not-connected";
106 }
107
108 getStatus(): MCPServerStatus {
109 return {

Callers 7

_streamChatMethod · 0.80
setEnabledMethod · 0.80
ExpandableToolbarPreviewFunction · 0.80
useElementSizeFunction · 0.80
useAutoScrollFunction · 0.80
TableOfContentsFunction · 0.80

Calls 2

closeMethod · 0.65
abortMethod · 0.45

Tested by

no test coverage detected