Makini
User GuideAPI ReferenceMCP
Platforms
User GuideAPI ReferenceMCP
Platforms
Website
  1. MCP
  • Autonomous agents
  • MCP quickstart
  • Provider mode: agents for your customers
  • Users and permissions
  1. MCP

Provider mode

Provider mode is for companies that build AI agents for their own customers. Your product onboards each customer through the Management API. Their people get MCP seats, and your agents reach each customer's CMMS, ERP or fleet system through Makini, with no Makini screens in between.

Direct and provider mode#

Direct modeProvider mode
Who uses the agentsYour own teamYour customers' people
MCP users and rolesOne list for the workspaceSeparate for each customer
Company-wide credentialsOne set per platformOne set per customer and platform
Platform visibilityOne setting per platformYour default, which each customer can override
How users are addedInvited from the dashboardCreated by your product through the Management API, or from the dashboard
Each customer is fully isolated. Its users, roles, connections and company-wide credentials are its own, and one customer's settings never affect another's.

Switch to provider mode#

Open Settings → Application, find MCP mode, and click Switch to provider mode.
Switching deletes every MCP user, connection and company-wide credential on the application. In provider mode each of them belongs to one of your customers, so they can't carry over. Your roles, tool permissions and platform settings are kept, and your MCP server URL stays the same.

Your application sets the ceiling#

The tool permissions you set on Platforms → Permissions apply to every customer. A customer's roles can narrow that ceiling but never widen it, whoever edits them. You decide once what your agents may ever do, and each customer's setup works inside that.
In the dashboard, Customers lists your customers. Open one to manage its users, roles, platforms, company-wide credentials and connections.

Authenticate#

Provisioning customers is part of the Management API, under https://api.makini.io/mgmt. Request a token with your application's Client ID and Client Secret, using the client_credentials grant:
The token carries the mcp:provider:manage scope, which covers every route used here. Tokens last an hour, and a client_credentials response includes no refresh token, so request a new one when it expires. See Access tokens.

Onboard a customer#

1
Create a customer
externalId is your own ID for the customer, such as your account ID, and it must be unique within your application. name is optional.
{
  "endCustomer": {
    "id": "7f0c1d7e-4b1a-4f3e-9f55-2a8f1c0d9b12",
    "clientId": "<your Client ID>",
    "externalId": "acct_4821",
    "name": "Northwind Utilities",
    "userCount": 0,
    "createdAt": "2026-09-25T10:00:00Z",
    "updatedAt": "2026-09-25T10:00:00Z"
  }
}
Every new customer comes with a Default role, so you can add users right away.
2
Add an MCP user
The response is {"endUser": {…}} with the user's id, roleId and roleName. Leave out roleId to give the user the customer's default role.
Each email address belongs to one customer within your application.
3
Issue a personal access token
A personal access token lets your backend act as that user with no browser sign-in:
{
  "id": "5d1f0c1e-…",
  "token": "eyJhbGciOi...",
  "tokenEndpoint": "https://…/token",
  "agentClientId": "…",
  "resource": "https://mcp.makini.io/<clientId>"
}
See Personal access tokens below for how to use it.
4
Connect the customer's systems
The customer's user enters their own system credentials through Makini Link. When your agent calls verify_platform_authentication for a platform the user hasn't connected, it gets a Makini Link URL. Show that URL to the user. They open it, sign in to their system once, and the agent carries on.
Set the customer's company-wide credentials first, and users are asked only for their own sign-in details.

Personal access tokens#

The token is a long-lived OAuth refresh token for one MCP user. Makini returns it once and doesn't store it, so keep it in your secret store.
To get an access token, redeem it with a standard refresh_token grant at the tokenEndpoint, using the agentClientId from the same response. No client secret is needed:
Send the resulting access_token as a Bearer token to your MCP server, https://mcp.makini.io/<clientId>, from any MCP client library. Redeem again whenever the access token expires. The refresh token itself doesn't change.
A token works only on your own application's MCP server.
Each call to the tokens route creates a new, separate token, up to ten for each user. The response's id is what you list and revoke it by.
A token that hasn't been used for 90 days stops working.
Disabling or deleting the MCP user stops their tokens at the next redemption. After you enable a person again, issue them a new token.
A disabled user can't be issued a token. Enable them first.
People you provision can also sign in interactively from any MCP client, with a one-time code sent to their email.

Agents#

An agent is an MCP user nobody signs in as: a scheduled job or a backend service of yours, working for one customer. It has a name and no email address, and your backend does what a person would do from their agent.
Connect answers {"state": "connected", "connectionId": "…"} when the customer's company-wide credentials cover everything the platform asks for. Otherwise it answers {"state": "absent", "linkAuthorizeUrl": "https://…"}: open that Makini Link URL for whoever holds the credentials the agent should use.
Issue its tokens with the same tokens route as a person's. Three things differ from a person:
An agent only sees platforms that are connected. The others are left out of list_platforms, and it is never given a Makini Link URL.
Disabling an agent pauses it. Its tokens work again when you enable it.
Deleting an agent deletes its connections.

API Reference#

Every route for managing customers, their users, roles, platforms and company-wide credentials is in the API Reference under Management API → MCP, with its request and response schemas and errors.
Modified at 2026-10-25 02:32:55
Previous
MCP quickstart
Next
Users and permissions
Built with