refactor: unwrap McpOAuthCallback namespace + self-reexport (#22943)

This commit is contained in:
Kit Langton
2026-04-17 00:00:46 +00:00
committed by GitHub
parent bae80af1b4
commit 4e27804160
+2 -2
View File
@@ -56,7 +56,6 @@ interface PendingAuth {
timeout: ReturnType<typeof setTimeout> timeout: ReturnType<typeof setTimeout>
} }
export namespace McpOAuthCallback {
let server: ReturnType<typeof createServer> | undefined let server: ReturnType<typeof createServer> | undefined
const pendingAuths = new Map<string, PendingAuth>() const pendingAuths = new Map<string, PendingAuth>()
// Reverse index: mcpName → oauthState, so cancelPending(mcpName) can // Reverse index: mcpName → oauthState, so cancelPending(mcpName) can
@@ -229,4 +228,5 @@ export namespace McpOAuthCallback {
export function isRunning(): boolean { export function isRunning(): boolean {
return server !== undefined return server !== undefined
} }
}
export * as McpOAuthCallback from "./oauth-callback"