> ## 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.

# Work with Mono’s MCP servers

> Understand “Mono Admin” and the tenant server: connecting with OAuth, tools and their levels, approvals, catalog and widgets.

Every tenant (A company, an IT partner or a private person in Mono, with its own sign-in and its own data.) has two kinds of MCP servers on its Node: “Mono Admin” (The MCP server for the admins. With it, they set up Mono in the chat.) for the admins, and the tenant server (The MCP server for all employees, with the tenant’s name.) for all employees. Both speak Streamable HTTP, each is its own OAuth resource, and no tool is on both.

| Server | Address | For whom | What for |
| - | - | - | - |
| “Mono Admin” | `<Node>/admin-mono/mcp` | the admin group; an IT partner who reads along, with reading tools only | the whole Console in the chat: set up, approve, operate |
| Tenant server, for example “Muster AG” | `<Node>/<short name>-gateway/mcp`, locally `/muster-gateway/mcp` | all employees | knowledge, own apps, connected systems, tasks, their own approvals |

## Try it locally

**1. Get a token for the tenant server**

At its first start, the development Node writes the file `services/gateway/.mono/dev-tokens.json`. It holds one token per demo person (Anna Keller and Marco Rossi as admins, Lea Meier as a member) and per audience (`console`, `admin-mono`, `muster-gateway`). The Node never prints the tokens in the log.

```bash macOS and Linux theme={"system"}
# Anna Keller (admin), audience "console"
TOKEN=$(jq -r 'to_entries[]
  | select(.value.audience == "console" and .value.user.id == "u-anna")
  | .key' services/gateway/.mono/dev-tokens.json)
```

```powershell Windows theme={"system"}
# Anna Keller (admin), audience "console"
$tokens = Get-Content services/gateway/.mono/dev-tokens.json | ConvertFrom-Json
$TOKEN = ($tokens.PSObject.Properties |
  Where-Object { $_.Value.audience -eq "console" -and $_.Value.user.id -eq "u-anna" } |
  Select-Object -First 1).Name
```

For the tenant server, replace `console` with `muster-gateway`; for “Mono Admin”, with `admin-mono`. The person ids are `u-anna`, `u-marco` and `u-lea`.

For this example, take Lea Meier (`u-lea`) and the audience `muster-gateway`.

**2. List the tools**

```bash theme={"system"}
curl -s -X POST http://localhost:8787/muster-gateway/mcp \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | jq -r '.result.tools[].name'
```

**3. Get the server’s welcome**

```bash theme={"system"}
curl -s -X POST http://localhost:8787/muster-gateway/mcp \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"mono_find","arguments":{}}}' \
  | jq -r '.result.content[0].text'
```

> [!TIP]
>
> The list names `knowledge_search`, `knowledge_answer`, `outlook_mail_send`, `request_confirm`, the four catalog tools `mono_find`, `app_open`, `system_read`, `system_write`, and `task_start` and `task_status`. `mono_find` without a task welcomes Lea with her starting points.

> [accordion] How do I connect Claude Code, VS Code or Cursor?
>
> Any MCP client that can set its own header connects locally with the server’s address and `Authorization: Bearer <token>`. For “Mono Admin”, take a token of the audience `admin-mono`. One server refuses a token of the other: «Token ungültig oder für einen anderen Server» (“Token invalid or for another server”).

## Connect with OAuth

Claude, ChatGPT and Copilot connect through OAuth 2.1 with PKCE. The Node is the authorization server; the person signs in with their organization sign-in or another method of the Node. A client on the web needs a public HTTPS address of the Node for this ([Own address](https://mono.mintlify.site/en/admins/own-address.md)).

```mermaid theme={"system"}
sequenceDiagram
  participant K as AI client
  participant N as Node
  participant P as Person
  K->>N: POST /<server>/mcp without token
  N-->>K: 401 with resource_metadata
  K->>N: Read resource and server metadata
  K->>N: Identify as client (CIMD) or register
  K->>P: Open the Node’s sign-in page
  P->>N: Sign in
  N->>P: Show consent
  P->>N: “Allow”
  N-->>K: Code, then token for exactly this server
  K->>N: MCP with bearer token
```

> [accordion] Which endpoints does the Node name?
>
> | Endpoint | Content |
> | - | - |
> | `GET /.well-known/oauth-protected-resource/<server>/mcp` | the resource and its authorization server |
> | `GET /.well-known/oauth-authorization-server` | `authorization_endpoint`, `token_endpoint`, `registration_endpoint`, `jwks_uri`; `code_challenge_methods_supported: ["S256"]`, `token_endpoint_auth_methods_supported: ["none"]`, `client_id_metadata_document_supported: true` |
> | `POST /oauth/register` | registration per RFC 7591 for public clients with PKCE |
> | `GET /oauth/authorize`, `POST /oauth/token` | code with PKCE `S256` and the parameter `resource` (RFC 8707) |
>
> A 401 carries `WWW-Authenticate: Bearer resource_metadata="…"` so that the client finds the metadata.

> [accordion] CIMD or registration?
>
> A client can identify itself with a Client ID Metadata Document: its `client_id` is an https address that holds its name and return addresses. Claude and ChatGPT do this. The Node fetches the document within tight limits (public DNS name, the checked address pinned, no redirect, 3 seconds, 16 KiB) and keeps it for at most one day. Registration through `/oauth/register` remains for all other clients. Return addresses on `localhost` or `127.0.0.1` are valid on any port; the consent then warns to confirm only if the person has just started the connection themselves.

> [accordion] Approval by IT and the person’s consent
>
> IT approves every AI client once per tenant: who may use it and which data classes (“public”, “internal” and “confidential”. They decide where content may go.) may go to its provider. The default is “public” and “internal”; “confidential” is off. If an admin connects a known client as the first person, the page “Approve and connect” approves it with this default. After that, every person consents once; the consent is valid for 90 days and ends when the client’s data classes change. It covers this registration and the place the client returns to: a new registration or another place asks the person again. The steps for admins are under [Connect Claude, ChatGPT or Copilot](https://mono.mintlify.site/en/admins/connect-ai-client.md).

> [accordion] What does a token carry?
>
> An access token is valid for exactly one server, for at most one hour, and names the person and the client with its data classes. Every refresh checks the person again; a sign-in lasts at most 90 days. If an update changes the format of the sign-in, the Node answers once with `invalid_grant` and «Mono wurde aktualisiert. Bitte melden Sie sich einmal neu an.» (“Mono was updated. Please sign in again once.”); the AI clients then restart their sign-in on their own.

## Tools, levels and approvals

Every tool has a kind and a level. An admin sets the level per server; a deviation from the default is “customized”.

| Kind | What it does | Default level |
| - | - | - |
| `read` | reads with the person’s permissions | “on” |
| `write` | sends, writes or books | “with approval” |
| `decision` | carries out what is approved | “on” |

As long as the tenant limit applies that writing needs an approval (the default, in `GET /api/v1/mandanten/:id/settings` as `writesNeedApproval`), a `write` tool stays at “with approval” even when set to “on”. The tenant’s limits always win.

> [tab] Tenant server
>
> A `write` tool creates an approval (A person’s confirmation before Mono carries out something outward.) and answers with its preview. The person decides “Just this once” or “Always allow for …” (90 days, revocable), in the chat through `request_confirm` or in the Inbox. A second person is needed only if a tenant rule requires it, for example above an amount.

> [tab] “Mono Admin”
>
> An admin’s change becomes “Please confirm” with “before → after”. It applies only once the admin accepts it with `inbox_decide` and `confirm: true`. “Always allow” does not exist on “Mono Admin”. Keys never belong in the chat: `secret_link` gives a one-time link to the Node’s key page (`/schluessel`, one key, one use, 10 minutes).

> [accordion] Which hints (annotations) does the Node set?
>
> Every tool carries all four hints so that a client can allow reading calls together: a `read` tool is `readOnlyHint: true`, `idempotentHint: true` and `openWorldHint: true` only if it reaches a system outside Mono (`system_read`). A `write` tool on “Mono Admin” that only creates “Please confirm” is not `destructiveHint`; a `decision` tool always is. The titles follow the person’s language; names and descriptions stay the same.

## A fixed set of tool names

The tenant server does not grow with apps or systems. Its tool names stay fixed so that nobody in ChatGPT and Copilot has to switch on tools after every new app.

| Group | Tools | Number |
| - | - | - |
| Standard tools of connected services | knowledge, the person’s own approval, Microsoft 365 and Google Workspace, Mono Connector, `task_start`, `task_status` | at most 30 |
| Catalog tools | `mono_find`, `app_open`, `system_read`, `system_write` | 4 |
| Pinned apps | `app_<name>` for at most 6 own apps that an admin pins | 0 to 6 |

> [accordion] How does a model use the catalog?
>
> 1. `mono_find` with the task in the person’s words returns the matching apps and operations this person may use. Without a task, it welcomes the person.
> 2. `app_open` opens an app: task, steps, rules, its tools and operations with input schema, and with knowledge the matching documents.
> 3. `system_read` runs a reading operation of a connected system. `system_write` writes; every writing operation becomes an approval with the exact input as its preview.
>
> Reading and writing are separate tools so that an admin in ChatGPT can switch on reading only.

> [accordion] When does the Node send tools/list\_changed?
>
> A client that opens the server’s stream with `GET` hears `notifications/tools/list_changed` and, on the tenant server, also `notifications/prompts/list_changed`. The Node sends them as soon as what the server offers changes: a tool level, a standard app, a skill pack, a Mono Connector pairing, a service, an own app that goes live, pauses or is removed. A stream lives at most 15 minutes; then the client opens a new one and reads the list again.

> [accordion] What is in the server’s instructions?
>
> The instructions (`instructions`) are built at every connection from what is live right now. They start with the person: the name to greet with, role, language and time zone, never the email address, phone, groups or photo. Then they name the apps, the own apps, the client’s data classes, active skill packs and connected services. The instructions are in German; the model answers in the person’s language.

> [accordion] What happens to confidential results?
>
> The Node checks the client’s data classes at every call. It withholds a result above these classes and says so truthfully, for example: “More on this is not released for Claude.”

## Widgets with MCP Apps

Where the client shows MCP Apps, tools also answer with a widget. The text always remains the full answer so that every client can read it.

| Widget | Server | Shows |
| - | - | - |
| `ui://mono/admin` | “Mono Admin” | overviews, lists, “Please confirm” with before and after |
| `ui://mono/assistant` | “Mono Admin” | guided flows such as “New app” or “Connect provider” |
| `ui://mono/company` | tenant server | the welcome with the CI, starting points as prompts |
| `ui://mono/aufgabe` | tenant server | the card of a task |

> [accordion] How is a widget answer built?
>
> The resource has the type `text/html;profile=mcp-app` and declares that it loads nothing from elsewhere (empty CSP). The tool names it in `_meta.ui.resourceUri`, for ChatGPT also as `openai/outputTemplate`. What the widget shows is in `_meta["mono/view"]`, not in `structuredContent`, so that the model does not read it. The rules for your own widgets are under [Own apps and widgets](https://mono.mintlify.site/en/developers/own-apps-and-widgets.md).

## Notes per AI client

| AI client | Tool list | Widgets | Keep in mind |
| - | - | - | - |
| Claude | reads `tools/list` again on its own | shows MCP Apps | identifies itself by CIMD; shows the connector’s icon from the address’s domain |
| ChatGPT | an admin refreshes the connector’s tools; new tools are off at first | shows MCP Apps (Apps SDK) | upload the Node’s `icon.png` file as the icon; on Business and Enterprise, admins create the app and publish it |
| Microsoft Copilot | an admin refreshes the tools in Copilot Studio | none | shows the answers as text; sign-in with “OAuth 2.0” › “Dynamic (with discovery)” |

> [!NOTE]
>
> New apps and systems bring no new tool names. Only when a Mono update brings a new standard name does an admin refresh the tools in ChatGPT and Copilot once; the release notes say so.

## Next

> [card] [Tools of “Mono Admin”](https://mono.mintlify.site/en/developers/mcp/admin-mono.md)
>
> Every admin tool with its input and effect.

> [card] [Tools of the tenant server](https://mono.mintlify.site/en/developers/mcp/tenant-server.md)
>
> Every tool for the employees.

> [card] [Own apps and widgets](https://mono.mintlify.site/en/developers/own-apps-and-widgets.md)
>
> Apps that run through the catalog.

> [card] [Connect an AI client](https://mono.mintlify.site/en/admins/connect-ai-client.md)
>
> The steps in Claude, ChatGPT and Copilot.


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