MCP authentication
Choose an OAuth connection or a profile token.
OAuth
Compatible clients discover protected-resource metadata at https://www.prefsly.io/.well-known/oauth-protected-resource and authorization metadata at https://www.prefsly.io/.well-known/oauth-authorization-server. They register a public client, use authorization code with PKCE S256, and present a Prefsly consent screen. You choose one profile to share. Access tokens expire; refresh tokens rotate when used.
Create and use a profile token
In Prefsly, open Connections, choose the profile the client may read, give the connection a recognizable name, and create the token. Copy it immediately: Prefsly shows it only once. Store it in the client’s secure secret or input mechanism when available, never in version control. Configure the client to send it as an Authorization bearer header over HTTPS. A token grants exactly one selected profile; create a new token to use another profile.
Authorization: Bearer <profile-token>Revoke
The Connections page lists grants. Revoke any grant immediately; future MCP requests with that grant fail.