> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.houseofapps.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.houseofapps.ai/_mcp/server.

# Authorization

> How users connect an AI app to House of Apps MCP, and what MCP client builders need to implement

MCP servers don't use license keys. Each person signs in to House of Apps and approves the AI app, which then acts as that person in their organization.

## Connecting as a user

1. Add a House of Apps server URL in your AI app, for example `https://api-dev.houseofapps.ai/mcp/core`.
2. Your browser opens House of Apps. Sign in and pick the organization.
3. Review the consent screen and click **Allow**.
4. Return to your AI app. The House of Apps tools are now available.

Each server (`core`, `crm`, `tasks`, `tickets`, `admin`) is a separate connection with its own approval.

**Managing connections:** see and disconnect connected AI apps under **Settings → AI Connectors**. Disconnecting revokes the app's access immediately.

## Building an MCP client

House of Apps follows the standard MCP authorization spec, so MCP SDKs and clients that support it (Claude, Cursor, ChatGPT connectors) handle this for you. If you build your own client:

| Step                                                 | Endpoint                                                 |
| ---------------------------------------------------- | -------------------------------------------------------- |
| Discover the authorization server                    | `GET /.well-known/oauth-protected-resource/mcp/{server}` |
| Read authorization server metadata                   | `GET /.well-known/oauth-authorization-server`            |
| Register your client (dynamic client registration)   | `POST /oauth/register`                                   |
| Send the user to sign in and approve (PKCE required) | `GET /oauth/authorize`                                   |
| Exchange the code, or refresh a token                | `POST /oauth/token`                                      |
| Revoke a token                                       | `POST /oauth/revoke`                                     |

Call the server with `Authorization: Bearer ACCESS_TOKEN`.

**Token details**

- Scopes: `mcp:read` and `mcp:write`.
- Access tokens last **1 hour**.
- Refresh tokens last **30 days** and rotate: each refresh returns a new refresh token and the old one stops working. Always store the newest one.
- A token is valid only for the server it was issued for.

## What the app can do

The app gets the signed-in person's access in the organization they chose, and can't see more than they can. Its actions appear in House of Apps as that person's.