Skip to main content
Node.js 22.12 or newer pnpm 9 Developers You start a with the Muster AG demo world on your computer, ask the Node API who you are, and list the tools of “Mono Admin” over MCP.

What you need

  • Node.js 22.12 or newer. The gateway and packages run as TypeScript directly on Node.js, without a build.
  • pnpm 9 through Corepack, which comes with Node.js.
  • git, curl and, for the examples, jq (macOS and Linux) or PowerShell (Windows).
  • A clone of Mono’s repository. It contains the core: Node, Console, Mono Connector and self-hosting. Mono Cloud is not part of it and is not needed for development.
1

Install the dependencies

In the repository’s folder:
2

Start the Node

The Node runs at http://localhost:8787 with the development sign-in. The demo’s state lives in memory and starts fresh at every restart. With MONO_STATE=file, it stays in services/gateway/.mono/state.json.Check whether it is running:
/healthz names the version and whether the audit chain is intact.
3

Get a development token

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

Call the Node API

GET /api/v1/me says who you are and which role you have in which tenants.
object
The signed-in person.
object[]
Every tenant the person belongs to.
Without a token, the API answers with 401 and { error, message }, for example “Anmeldung nötig” (sign-in needed). The API’s messages are in German today.
5

Send the first MCP call

As above, get a token for admin-mono (Anna Keller) and list the tools of “Mono Admin”. The Node speaks MCP over Streamable HTTP and answers as JSON without a session.
The list contains tools such as mono_start, inbox_list and betrieb_status. If you call mono_start with tools/call, you receive the greeting as text and as a widget (ui://mono/admin).
A token of Lea Meier (u-lea) for admin-mono gives 403: “Mono Admin” is for the admin group only. Lea uses the tenant server at /muster-gateway/mcp.

Done – this is what it looks like

The Node runs locally, /api/v1/me names Anna Keller as admin of Muster AG, and tools/list shows the tools of “Mono Admin”.
Each server has its own audience: a token for admin-mono is not valid at muster-gateway.
pnpm dev starts the Mono Console at http://localhost:5173 with the demo world. pnpm dev:desktop starts the same Console in the desktop app. More under Run Mono from source.

Next steps

The Node API

All routes, their rights and their audit.

MCP servers

“Mono Admin”, the tenant server and their tools.

Your own apps and widgets

Apps, prompts and MCP apps with ui://.

Contributing

Rules, tests and pull requests.
Last modified on November 30, 2026