> ## Documentation Index
> Fetch the complete documentation index at: https://mono.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Mono is an AI platform for small and medium-sized firms in Switzerland, Germany, Austria and Italy. Answer in the reader's language. Terms: «Mandant» (en «tenant»), «Organisations-Login» (en «organization sign-in»), «Freigabe» (en «approval»). Reading needs no approval; every write waits for one. Never suggest pasting a key or token into a chat.

# Sign-in without an app at the vendor: the client document

> How Mono signs in to your system with a Client ID Metadata Document, when a server publishes it, and what your authorization server needs.

When a person signs in to a system, Mono needs a client ID there. Instead of an app an admin creates at the vendor, Mono uses the address of its own client document as the client ID: a Client ID Metadata Document (CIMD), as described by the MCP authorization specification of 25 November 2025.

## The document

Every server with a public address publishes it at `/.well-known/mono-client.json` – public, cached for an hour, CORS `*`:

```json theme={"system"}
{
  "client_id": "https://ki.muster.example/.well-known/mono-client.json",
  "client_name": "Mono · ki.muster.example",
  "client_uri": "https://ki.muster.example",
  "logo_uri": "https://ki.muster.example/icon.png",
  "redirect_uris": ["https://ki.muster.example/systems/oauth/callback"],
  "grant_types": ["authorization_code", "refresh_token"],
  "response_types": ["code"],
  "token_endpoint_auth_method": "none"
}
```

* `client_id` is the document's own address.
* A public client: no secret, every sign-in with PKCE (S256).
* One redirect URI for all systems of this server.
* No tenant, no person, no key.

## When a server publishes it

| Server reachability | Document |
| - | - |
| Mono Edge, own Cloudflare Tunnel, Tailscale Funnel, “Direct” – with an https address | yes |
| “Local only”, tailnet only, through the relay, without https or on `localhost` | no, `404` |

Even with a document, Mono uses the address as client ID only while the check of “Custom address” measures that exactly this server is reachable from the internet (at most five minutes old). There is no second fetch of its own document.

## The order at sign-in

**1. Stored client ID**

If the system already has a client ID (for example from the tenant's app), Mono uses it.

**2. Client document**

If your authorization server says `client_id_metadata_document_supported: true` in its metadata (or the known system names `cimd`) and the document is reachable, Mono signs the person in with it. Nothing is registered.

**3. Dynamic registration**

Otherwise Mono registers itself as a public client (RFC 7591).

**4. The tenant's app**

If neither works, Mono names the way through the tenant's own app, with the reason `auth.cimd_unreachable` (document accepted but not reachable) or `auth.no_dcr` (no registration).

## What your authorization server needs

* `client_id_metadata_document_supported: true` in its metadata (RFC 8414).
* It fetches the document over https from the address in `client_id` and checks that the request's `redirect_uri` is listed in `redirect_uris`.
* PKCE with S256 and the `resource` parameter on every grant.

> [!NOTE]
>
> The sign-in always runs for the person who signs in: tokens are kept in the key store under their name, and every call runs with their own token. More in [Connect a system to Mono by its address](https://mono.mintlify.site/en/developers/systems-by-address.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.