Expand description
OAuth 2.1 for MCP HTTP / OpenAPI / GraphQL — wraps rmcp::transport::auth.
Credentials and sticky redirect metadata live under
$SKIFF_CACHE_DIR/oauth/<server-hash>/ with 0o700 dirs and 0o600 files.
Authorization-code callbacks bind loopback only; sticky URIs are re-validated.
Structs§
- File
Credential Store - OAuth
Options - Resolved OAuth options after secret resolution and validation.
- OAuth
Ready - Ready-to-use OAuth session wrapping rmcp
AuthClient.
Enums§
Functions§
- authorize
- Run OAuth (or restore cached tokens) and return an authorized client.
- clear_
oauth_ credentials - discovery_
url_ from_ args - Discoverable server URL for OAuth metadata (MCP URL, or OpenAPI HTTP base).
- find_
free_ port - oauth_
dir_ for_ server - oauth_
wanted - Whether any OAuth flag requests auth.
- options_
from_ args - Validate CLI oauth flags and resolve secrets into
OAuthOptions. - parse_
oauth_ flow - port_
available - resolve_
redirect_ uri - Resolve redirect URI: explicit validated URI, sticky cached, or fresh free port.
- server_
hash - setup_
from_ args - Convenience: setup from GlobalArgs if oauth wanted.
- validate_
redirect_ uri - Validate
--oauth-redirect-uri: http, loopback host, explicit port.