BINDINGS: list[BindingType] = [Binding(
'enter',
'toggle_authorize_url',
'Toggle URL',
show=False), Binding('escape'Esc unblocks the worker; the worker performs the actual shutdown.
Cancellation completes any outstanding input future with
MCPLoginCancelledError. The worker (_run_mcp_login_worker) sees
that exception, calls finish(success=False), and tears down the
OAuth handshake. Doing the teardown here would race the worker.