MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / disconnectOne

Method disconnectOne

src/mcp/manager.ts:130–142  ·  view source on GitHub ↗

Disconnect a single server (keeps config; marks it disabled).

(name: string)

Source from the content-addressed store, hash-verified

128
129 /** Disconnect a single server (keeps config; marks it disabled). */
130 async disconnectOne(name: string): Promise<void> {
131 const connection = this.connections.get(name)
132 if (connection) {
133 await connection.close()
134 this.connections.delete(name)
135 }
136 const state = this.states.get(name)
137 if (state) {
138 state.status = "disabled"
139 state.toolCount = 0
140 state.detail = undefined
141 }
142 }
143
144 /** Enable a project server (approving it) and connect. Uses
145 * skipUnauthOAuth so enabling doesn't open a browser — the user auths

Callers 4

disableServerMethod · 0.95
removeServerMethod · 0.95
reauthServerMethod · 0.95
reconnectSelectedFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected