Connect a client · FAQ
How do I connect any other MCP client or my own agent?
Point the client at https://mcp.casafari.com/ and let it register itself and sign in with PKCE. The 401 it receives carries a WWW-Authenticate header that points to the sign-in metadata.
- Fetch the protected resource metadata named in the header, then the authorization server metadata it points to.
- Register once at the registration endpoint (dynamic client registration) and keep the
client_id. - Send the person to the authorization endpoint with PKCE,
stateandresource, then exchange the code for tokens. - Call the server with
Authorization: Bearer <access_token>, and refresh the token when it expires.
An agent that runs without a person to sign in can't register itself. Instead, it uses client credentials that Casafari issues for the account. Call list_servers before using a product.
See: Connect your assistant, Authentication, casafari.com/auth.md.