fastmcp.client.oauth_callback
OAuth callback server for handling authorization code flows.
This module provides a reusable callback server that can handle OAuth redirects
and display styled responses to users.
Functions
create_callback_html
create_oauth_callback_server
port
: The port to run the server oncallback_path
: The path to listen for OAuth redirects onserver_url
: Optional server URL to display in success messagesresponse_future
: Optional future to resolve when OAuth callback is received
- Configured uvicorn Server instance (not yet running)