MCPcopy Create free account
hub / github.com/arctic-cli/interface / stop

Function stop

packages/arctic/src/mcp/oauth-callback.ts:186–198  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184 }
185
186 export async function stop(): Promise<void> {
187 if (server) {
188 server.stop()
189 server = undefined
190 log.info("oauth callback server stopped")
191 }
192
193 for (const [name, pending] of pendingAuths) {
194 clearTimeout(pending.timeout)
195 pending.reject(new Error("OAuth callback server stopped"))
196 }
197 pendingAuths.clear()
198 }
199
200 export function isRunning(): boolean {
201 return server !== undefined

Callers

nothing calls this directly

Calls 2

stopMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected