MCPcopy Index your code
hub / github.com/MatterAIOrg/OrbCode / enableServer

Method enableServer

src/mcp/manager.ts:147–153  ·  view source on GitHub ↗

Enable a project server (approving it) and connect. Uses * skipUnauthOAuth so enabling doesn't open a browser — the user auths * explicitly from /mcp.

(name: string)

Source from the content-addressed store, hash-verified

145 * skipUnauthOAuth so enabling doesn't open a browser — the user auths
146 * explicitly from /mcp. */
147 async enableServer(name: string): Promise<void> {
148 this.enabled.add(name)
149 this.disabled.delete(name)
150 const state = this.states.get(name)
151 if (state) state.disabled = false
152 await this.connectOne(name, { skipUnauthOAuth: true })
153 }
154
155 /** Disable a server and disconnect it. */
156 async disableServer(name: string): Promise<void> {

Callers 2

AppFunction · 0.95
enableSelectedFunction · 0.80

Calls 1

connectOneMethod · 0.95

Tested by

no test coverage detected