MCP Quickstart
Section titled “MCP Quickstart”From nothing to an agent answering a question about your tenant.
Before you start
Section titled “Before you start”- Node 24 and pnpm.
- The tenant’s public URL. Its hostname is how OSOS identifies the tenant, so an IP
address,
localhost, or an in-cluster address will not work — the server rejects them with an explanation rather than letting you discover it as an opaque error. - An application token. A tenant administrator creates an application user (a user of type Application — see Adding an application user), and the platform emails the new token to the administrator who created it; it is never shown on screen and cannot be read back later (if it is lost, regenerate it). The token carries the permissions of that application user, so give each integration its own.
- A tenant with a valid license. See Your license.
Install and build
Section titled “Install and build”Get the osos-mcp package from your OSOS vendor — it is not published to a public registry —
and run these in its folder:
pnpm installpnpm buildConfigure a tenant
Section titled “Configure a tenant”Configuration resolves across three layers — per-request values, environment variables, and a named profile — and it resolves per field, so a deployment can pin the tenant centrally and take the credential per request.
The smallest working configuration is two values:
OSOS_BASE_URL=https://your-tenant.example.comOSOS_APP_TOKEN=<the token you copied>For anything beyond a quick trial, prefer a named profile, so what you pass around is a name rather than a secret. A profile can also read its secret from an environment variable or a secret manager rather than storing it.
Two rules are worth knowing because they are deliberately not “last value wins”:
- A credential is bound to the tenant it was configured for. Naming a different tenant in a request will not quietly reuse a credential belonging to another one.
- Restrictions only accumulate. A request can make a session more restricted; it can never make it less.
Wire it into a client
Section titled “Wire it into a client”Most agent tools take a block like this:
{ "mcpServers": { "osos": { "command": "node", "args": ["/path/to/osos-mcp/dist/index.js"], "env": { "OSOS_BASE_URL": "https://your-tenant.example.com", "OSOS_APP_TOKEN": "…", "OSOS_LOCALE": "en", "OSOS_READ_ONLY": "true" } } }}Starting read-only is the sensible default for a first session: write tools are then not registered at all, so the agent cannot attempt one.
Verify
Section titled “Verify”Ask the agent to run the connection check. It answers four separate questions, which is what makes a failure diagnosable:
- Is the tenant reachable? — needs no credential, so it isolates a wrong URL.
- What languages does the tenant have? — also credential-free, and confirms you reached the tenant you meant.
- Is the credential accepted?
- Is the license valid?
A wrong base URL fails the first. A bad token passes the first two and fails the third. A license
problem passes the first three and fails the fourth. Then try list applications and
describe entity.
If something fails
Section titled “If something fails”| Symptom | Most likely cause |
|---|---|
| Refused before anything runs, mentioning a license | The tenant has no valid license. Ask your vendor; see Your license. |
| The tenant cannot be identified | The base URL is an IP, localhost, or an in-cluster address, or the hostname is not the registered one. |
| Authentication fails but the tenant is reachable | The token is wrong, expired in practice, or was archived. Note that the platform caches validations for a few minutes, so a token created seconds ago may not work yet. |
| A read returns an empty list you did not expect | Listing an entity’s records requires edit-tier access, not view. An empty result and “not permitted” can look identical. |
| Configuration changes refused | The license may not include administration. Ask your vendor. |
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27