Authentication
Individuals authenticate with phone-based OTP via OAuth 2.1. This flow is used on ChatGPT, Claude.ai, and OpenClaw.
How it works
-
Discovery — Client fetches OAuth server metadata:
GET https://mcp.famasi.ai/.well-known/oauth-authorization-server -
Dynamic registration — Client registers with the authorisation server
-
Authorisation — You’re redirected to authorise:
- Enter your phone number
- Receive an OTP via SMS
- Enter the OTP to verify
- Consent screen
-
Token exchange — Authorisation code exchanged for access token
-
Refresh — Tokens refresh automatically
In practice
On hosted platforms (ChatGPT, Claude.ai), the OAuth flow is handled for you. You just:
- Enter your phone number when prompted
- Enter the OTP sent to your phone
- Start using Famasi
If the phone number isn’t registered, the agent automatically offers to create an account using the create_patient tool.
Security
- OTPs expire after 10 minutes
- Tokens refresh automatically by the MCP server
- No API keys or passwords to manage
- Sessions are token-based with automatic refresh