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

# Build, test and take your own app live

> Build your own app with “Mono Admin”, test it in the sandbox and take it live; plus the rules for MCP Apps widgets in the core.

An own app is a blueprint on the Node: a task, who may use it, the systems it needs, and the tools the tenant server (The MCP server for all employees, with the tenant’s name.) delivers for it. It is created in the chat with “Mono Admin” (The MCP server for the admins. With it, they set up Mono in the chat.), tested in the sandbox, and goes live only after a passed test run.

> [accordion] What you need
>
> * The admin role at the tenant.
> * An AI client with “Mono Admin”, for example Claude or ChatGPT ([Connect an AI client](https://mono.mintlify.site/en/admins/connect-ai-client.md)), or locally an MCP client with a token of the audience `admin-mono`.
> * For apps that need a model: a model provider that answers for the app’s data class.

**1. Describe the app**

> [tab] In the chat
>
> Create a new app in the chat with “Mono Admin”
>
> Use “New app” to create an app “Ferienplaner” for Muster AG. It should collect the employees’ vacation requests and show overlaps within the team.
>
> “Mono Admin” asks step by step: server, name, task, who may use it, systems, whether it writes or sends, model and schedule. The app is then in the sandbox.

> [tab] In the Console
>
> Open “Studio” › “Apps” and choose “New app”. Under “What should the app do?”, describe its job in your own words and choose “Propose”. Mono proposes the whole app on one card; you change any part in place or in your own words. “Create and test” creates it in the sandbox and starts the test run. If the server has no model for this, set the app up in your AI client with “Set up in the chat”. “Set up yourself” shows the steps as a form.

**2. Check the blueprint**

Open “Studio” › “Apps” and the app. The page “Own app · Muster AG” shows the “Task”, “Who may use it” and the “Tools”. Mono assigns the tools from the app’s systems; what no connected system delivers is under “Still missing” with the next step. With “Choose tools” you adjust the assignment; the app then shows “customized”.

**3. Test in the sandbox**

> [tab] In the Console
>
> Choose “Start test run”. Every item ends with “ok”, “Notice” or “Error” and one sentence.

> [tab] In the chat
>
> Start the test run in the chat
>
> Test the app “Ferienplaner” in the sandbox.

**4. Take it live**

> [tab] In the Console
>
> Choose “Go live”. The tested version appears on the tenant server.

> [tab] In the chat
>
> Take the tested app live
>
> Take the app “Ferienplaner” live.
>
> “Mono Admin” shows “Please confirm” with the switch from the sandbox to live. Choose “Apply”.

> [!TIP]
>
> The app shows “Live · v1”. Employees of the chosen groups find it in Claude, ChatGPT and Copilot with `mono_find` and open it with `app_open`, without a new tool. Claude and ChatGPT also list it as a prompt in the menu.

> [accordion] What does the test run check?
>
> The test run measures and writes nothing:
>
> * every assigned tool exists, is delivered and is not “off” on the server;
> * writing tools need a confirmation; a sending tool set to “on” is an error;
> * the groups are known, from the directory or from sign-ins;
> * a model answers for the app’s data class if one of its tools uses a model;
> * with knowledge, a real search for the app’s task that counts hits per data class and never stores content;
> * the server’s tool budget stays at 40 at most;
> * the name is free on every server of the Node.
>
> On top comes the agent test: a real run of the draft with the model and the app’s reading tools, in which every write is refused. It is an “Error” when none of the app’s tools answered – for example because no model for “Answers” can call tools yet –, when a tool failed in its system or when the answer was cut off. “Go live” then waits for a passed test. When no model has passed Mono’s tool test, the summary says so before “Create”, and the test’s result names the tenant’s models. It shows a “Notice” when the app answered but Mono could not measure everything, for example a system the app would only have written to. For a team of apps an unfinished run is always an “Error”, because a team runs only through the Node.

> [accordion] Why does the test start over after every change?
>
> The test run stores a fingerprint of the blueprint: name, task, groups, systems, writing steps, tools, model, schedule and, for teams, the members. “Go live” succeeds only if the draft’s fingerprint matches the tested one exactly. A change after the test shows “Changed after the test run”. A live app keeps running while its next draft is in the sandbox.

> [accordion] When is “Pin” worth it?
>
> “Pin” gives the app its own tool `app_<name>` on the tenant server, at most 6 per server. All other apps run through `app_open`. Pin only apps that are needed very often. In ChatGPT, a workspace admin switches the new tool on once.

> [accordion] What happens next?
>
> * The tenant server sends `notifications/tools/list_changed` and `notifications/prompts/list_changed`; Claude reads the list again.
> * The tenant server’s instructions name the app from the next connection on.
> * Every step (test run, live, paused, pinned) is in the tenant’s audit.

> [accordion] Undo
>
> * “Pause”: the app is no longer visible on the tenant server until you choose “Resume”.
> * “Discard draft”: back to the live version.
> * “Unpin”: the pinned app runs through `app_open` again; its own tool disappears.

> [accordion] If something doesn’t work
>
> | Message | What helps |
> | - | - |
> | “First a test run in the sandbox.” | Choose “Start test run”. |
> | “The app was changed after the test run. Test it again.” | Choose “Test again”. |
> | “The last test run did not pass.” | Fix the items with “Error” and test again. |
> | “6 apps are already pinned on this server. …” | Choose “Unpin” on another app. |
> | “An app with this name already exists on this server.” | Choose another name. |
> | “… is a standard app. Choose a name of your own.” | The name belongs to a standard app such as Inbox or Knowledge. |

> [accordion] The same steps through the Node API
>
> The Console uses `POST /api/v1/mandanten/:id/apps/:app/actions` with `{ "action": "test" }`, `"live"`, `"pause"`, `"resume"`, `"discard"`, `"pin"` or `"unpin"`. `GET /api/v1/mandanten/:id/apps/:app` returns the app with its test run, tools and live version. An app is created through the “New app” flow of “Mono Admin”. More under [Node API](https://mono.mintlify.site/en/developers/node-api.md).

## Widgets with MCP Apps

An own app brings no widget of its own. It answers through the tenant server’s catalog, and there the widget `ui://mono/company` shows its starting points. If you contribute a widget to the core or change one, follow these rules.

**1. Load nothing from elsewhere**

A widget is HTML in a template literal under `services/gateway/src/ui/`. It loads no script, no font and no image from another address. Double every backslash in regular expressions (`\\s`) and never write `\/`.

**2. Declare an empty CSP**

`widgetMeta` sets an empty `ui.csp` for MCP Apps hosts, `openai/widgetCSP` for ChatGPT, and also `openai/widgetDomain` with the Node’s address, on the entry in `resources/list` and on the content in `resources/read`. Without the domain, ChatGPT shows “CSP off”. `ui.domain` stays empty because every host has its own format.

**3. Deliver the view through \_meta**

The tool puts its view into the data as `view`; the Node sends it as `_meta["mono/view"]`, never in `structuredContent`, so that the model does not read it. The text of the answer remains the full answer for clients without widgets.

**4. Report the size through the bridge**

Every widget speaks through the one bridge `ui/bridge.ts`. It reports the size as `{ width, height }` from the first moment and on every layout change, and it answers the host’s `ping` and `ui/resource-teardown`. A widget that reports only its height stays at height 0 in Claude.

**5. Write only through the model or a confirmation**

Starting points put a prompt into the chat (`ui/message`) instead of calling a tool themselves. Writing steps run through “Please confirm” and “Apply” as everywhere.

> [accordion] Language, people and size
>
> * Widgets are built per connection in the person’s language; their words come from `widgetWords`, which refuses words with a backslash, a double quote or `</`.
> * Photos of people come only inline in `_meta["mono/people"]`, at most 12 of 16 KiB each, and only if the Console shows them to this person too.
> * Mono splits a value field in “Please confirm” at « → » into before and after.

> [accordion] How is a widget tested?
>
> `mono-admin-widget.spec.ts` drives the widgets with the official `AppBridge` in a host from `e2e/mcp-apps-host.ts`, never with a host of its own. `widget-csp.spec.ts` loads every widget under the CSP a host builds from its declarations. The host page needs a `<meta name="viewport">`, or the 390 px test measures nothing.

## Next

> [card] [Own apps for admins](https://mono.mintlify.site/en/admins/own-apps.md)
>
> The guide without code.

> [card] [Tutorial: Ferienplaner](https://mono.mintlify.site/en/tutorials/own-app-ferienplaner.md)
>
> An app from the start until live.

> [card] [MCP servers](https://mono.mintlify.site/en/developers/mcp-servers.md)
>
> Catalog, levels and approvals.

> [card] [Systems by their address](https://mono.mintlify.site/en/developers/systems-by-address.md)
>
> Operations an app can use.


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