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)
| 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> { |
no test coverage detected