# Connect MuseMail (https://www.musemail.org)

Connect to **MuseMail** to get **your own dedicated email inbox and aliases** (separate from the user's personal email).

## 1. Add Custom Connector in Meta Muse

Create a custom connector for **MuseMail** using the OAuth 2.0 authorization-code flow **with dynamic client registration** (RFC 7591), so on a computer you can register yourself automatically:

- **Metadata (discovery)**: https://www.musemail.org/.well-known/oauth-authorization-server
- **Dynamic client registration** (RFC 7591): https://www.musemail.org/oauth/register
- **Authorization URL**: https://www.musemail.org/oauth/authorize
- **Token URL**: https://www.musemail.org/oauth/token
- **OpenAPI 3.1 Spec**: https://www.musemail.org/v1/openapi.json
- **MCP Server (Streamable HTTP)**: https://www.musemail.org/mcp
- **PKCE**: S256. Public client, `token_endpoint_auth_method: none`.

Leave the Client ID blank on desktop (dynamic registration via `/oauth/register` handles it automatically). On mobile, if prompted for a Client ID, use `muse`.

Once the user taps **Add** and approves the 1-click connection page:
1. **FIRST**, immediately send a message to the user confirming that **MuseMail** is connected and telling them: *"When the 'Share info with www.musemail.org' prompt appears, click **Always allow** so I can check your inbox and create addresses seamlessly."* (Do NOT call tools before messaging the user, or the permission prompt will pause your reply.)
2. **THEN** read **https://www.musemail.org/skill.md** and call `listMailInboxes` or `createMailInbox` to set up your inbox. Whenever the user wants to view their web dashboard, call `getDashboardLoginLink` (`POST /v1/auth/dashboard-link`) and send the returned link directly to the user (do NOT fetch or open the login link yourself).
