Skip to main content

Access, security and administration

This page explains how the LumoAuth MCP server decides what a connection may do, and how an administrator keeps control of the connections of an organization.

How access is decided​

Four checks apply to every tool call. A call is carried out only when all four pass.

CheckWho decidesWhen
The server is on for the organizationAn administrator, in the portalEvery call
The access that the connection was givenThe person who connected, on the Choose the access pageEvery call
The permissions of that personThe roles of the account in the organizationEvery call, at the time of the call
Plan features and limitsThe plan of the organizationEvery call

The checks are the same checks that the organization portal and the Admin API apply. The MCP server adds no way around them:

  • A connection acts as the person who made it. If a role is taken away from that person, the connection loses the same access with the next call. If the account is blocked or deleted, the connection stops. If the account loses all administrator access, the connection ends when the application next renews its token: the tokens are revoked, and the person connects again once the account can administer the organization. The person counts as a monthly active user of the organization in every month in which the connection is used, as for a sign-in.
  • A connection can do less than the person, never more. The access chosen on the Choose the access page narrows what the person could do in the portal.
  • Limits of the plan apply. A tool cannot create an AI agent or an MCP server beyond the limits of your plan, or give access to the admin portal (through a role, a group or a permission) to more people than your plan has admin seats for. On the Developer plan, a tool also cannot create a user, or give access to the admin portal to someone who has not been active this month, while every monthly active user place is used. Applications are not limited in number. The tool returns the same message that the Admin API returns.
  • One organization per connection. A connection belongs to the organization that was chosen at sign-in. No tool accepts another organization. To work with a second organization, add the server to your client a second time under another name and connect it to that organization.

Access areas​

Access is given per area, as Read or as Read and change. Read and change includes Read.

AreaReadRead and change
Usersmanage:users:readmanage:users:write
Groupsmanage:groups:readmanage:groups:write
Rolesmanage:roles:readmanage:roles:write
Permissions and scopesmanage:permissions:readmanage:permissions:write
Applicationsmanage:clients:readmanage:clients:write
AI agents and MCP serversmanage:agents:readmanage:agents:write
Webhooksmanage:webhooks:readmanage:webhooks:write
Sessions and tokensmanage:sessions:readmanage:sessions:write
Access policiesmanage:abac:readmanage:abac:write
Social sign-in providersmanage:social:readNot available
Organization settingsmanage:settings:readNot available
Audit logsmanage:audit:readNot available
Analyticsmanage:analytics:readNot available

The Choose the access page offers an area only when your account holds a permission that a tool of the area needs. The client then lists only the tools that both the chosen access and your permissions allow.

These scopes are valid only at the MCP server. A token of an MCP connection is refused by the Admin API and by every other API of your organization, and an Admin API key is refused by the MCP server.

Change the access of a connection​

Connect the client again and choose again. In most clients you sign out of the server and sign in again. The new choice replaces the old one, and the tokens of the old choice stop working at once.

Tools that ask first​

Every tool states whether it reads, changes or deletes. MCP clients use that statement to decide when to ask you before a call. Tools that change or delete existing data carry the "destructive" mark. Tools that only add something, such as create_user, do not carry it. Keep the confirmation prompts of your client on for the tools that carry the mark.

New secrets​

Some tools create a secret that is shown once: create_application and rotate_application_secret (client secret), create_agent and rotate_agent_credentials (API key or client secret), and create_webhook and update_webhook with rotateSecret (signing secret).

By default the connected application receives the secret, so that a coding agent can put it into your configuration. An administrator can change that:

  1. Open Security → Sign-in settings → Platform security in the organization portal.
  2. Under LumoAuth MCP server, clear Return new secrets to the connected application.
  3. Save.

With the option off, the tools still make the change, and the result leaves the secret out. A person then rotates the secret in the portal to see one.

See and stop connections​

Open Applications → MCP connections in the organization portal. The page lists every application that an administrator of the organization has connected, with:

  • the name of the application, and the domain that identifies it when the application publishes a metadata document,
  • the person who connected it and the access that the person chose,
  • the status and the time of the last activity.

Two actions are available to an administrator who may edit applications:

  • Disconnect revokes the tokens of the application. A person can connect the application again by signing in and choosing the access.
  • Block revokes the tokens and refuses the application for this organization until you choose Unblock.

Unblock needs a full administrator: a user who holds both settings.manage and users.delete. A connection lets an application administer the organization for the person who connects it, so only a full administrator lets a blocked application back in.

A connection cannot be deleted, in the portal, with the Admin API or with the delete_application tool. A deleted connection would come back the next time the application is used, and a block on it would be lost.

A person can also end a connection from the client. Most clients revoke their tokens when you sign out of the server there.

Switch the server off​

The server is on for every organization. To switch it off:

  1. Open Security → Sign-in settings → Platform security in the organization portal.
  2. Switch LumoAuth MCP server off.
  3. Save.

Every connection of the organization stops at once, and new connections are refused. When you switch the server on again, each person connects again.

Audit log​

Every tool call of a connection is written to the audit log of the organization, also when the call is refused. Open Audit logs in the portal and filter by the event type.

EventWritten when
mcp.management.connectedA person connected an application and chose the access
mcp.management.tool_callA tool was called. The entry names the tool, the application, the person, the outcome and the identifiers of the affected objects
mcp.management.disconnectedAn administrator disconnected an application, or a connection ended because the account behind it can no longer administer the organization
mcp.management.connection_blockedAn administrator blocked an application
mcp.management.connection_unblockedAn administrator unblocked an application
mcp.management.enabledThe server was switched on for the organization
mcp.management.disabledThe server was switched off for the organization

A mcp.management.tool_call entry records the names of the fields that a call set, not their values. The change itself is recorded as well, by the same event that the portal or the Admin API writes for it, for example user.created.

Refused calls​

A refused call is a mcp.management.tool_call entry with the status failure. The entry names the tool as the application sent it, the application, the person and the reason. It never holds an argument of the call.

ReasonThe call was refused because
insufficient_scopeThe connection was not given the access that the tool needs
unknown_toolThe server has no tool of that name
invalid_argumentsThe arguments were not accepted
invalid_requestThe message was not a valid tool call
rate_limitedThe connection sent too many requests
switched_offThe server is switched off for the organization
not_in_planThe server is not part of the plan of the organization
no_admin_accessThe account of the person no longer has administrator access
A status code such as 400, 403, 404 or 409The tool ran and the request was refused for the organization: a value that is not valid, a missing permission, a feature that is not in the plan, or an object that does not exist

Two limits apply:

  • A request without a valid token of a connection is not recorded. Such a request names no organization, so there is no audit log that it belongs to. The same holds for a token that has expired or was revoked, except after the server was switched off: a tool call with a token that the switch revoked is recorded with the reason switched_off.
  • At most 30 refused calls of one connection are listed per minute. Further refused calls in that minute are counted, and the next entry of the connection carries the count as refusals_not_listed.

Good practice​

  • Give read access first. Add Read and change for the areas of the task at hand, and connect again with less when the task is done.
  • Review what the agent proposes. Text that your users typed, such as display names, reaches the model as data. Keep confirmation prompts on for tools that change or delete.
  • Use a second organization for experiments. Connect a test organization under another server name, and try new prompts there.
  • Look at the connections regularly. Disconnect applications that nobody uses.

For client developers​

The server follows the MCP authorization specification. A client that implements the specification needs no LumoAuth-specific code.

TopicValue
TransportStreamable HTTP. POST only: the server holds no session and sends no stream of its own. GET and DELETE return 405
Protocol versions2026-07-28, and 2025-11-25, 2025-06-18 and 2025-03-26 with the initialize handshake
FeaturesTools. No resources, prompts or sampling
Protected resource metadatahttps://app.lumoauth.dev/.well-known/oauth-protected-resource/mcp
Authorization server metadatahttps://app.lumoauth.dev/.well-known/oauth-authorization-server
Client identificationA Client ID Metadata Document (an https URL as client_id), or dynamic client registration at the registration_endpoint
Client typePublic client. token_endpoint_auth_method is none
GrantAuthorization code with PKCE (S256), and refresh tokens
resource parameterhttps://app.lumoauth.dev/mcp. A request without resource is taken as a request for this server; any other value is refused with invalid_target
Redirect URIshttps, or http on localhost, 127.0.0.1 or [::1] with any port. A client that registers itself may also use a private-use scheme, but only in reverse-domain form that its publisher controls (such as com.example.agent:/callback) or one of the schemes of known MCP clients: cursor, vscode, vscode-insiders and windsurf. A generic name such as myagent:// is refused, because any app on the device could claim it. A metadata document may list https and loopback http redirect URIs only
Access tokenOpaque, valid for one hour
Refresh tokenRotated with every use. Reuse of an old refresh token revokes the connection

For the EU region, replace app.lumoauth.dev with eu.app.lumoauth.dev.

Notes:

  • The organization is not part of the address. The authorization endpoint first asks the person for the organization, and then continues on the sign-in page of that organization. The iss parameter of the authorization response is the issuer of the metadata above.
  • Ask for the scopes of the WWW-Authenticate challenge. The challenge names the read scopes. The person may give less or more on the Choose the access page. The token response states the scopes that were given.
  • A missing scope is a 403. A tool call that needs a scope that the token lacks returns 403 with insufficient_scope and the scope that is needed. Start a new authorization request to ask for it.
  • Tool results carry structuredContent. Text fields in a result were typed by people. Treat them as data, never as instructions.
  • Rate limit. A connection may send 300 messages per minute. Beyond that the server returns 429 with a Retry-After header.
  • Custom domains. The server answers only at the two addresses above, not at the custom domain of an organization.

Troubleshooting​

What you seeReason and fix
"The LumoAuth MCP server is switched off for this organization"An administrator switched it off. See Switch the server off
The sign-in ends with a message that the account cannot connectThe account has no access to the organization portal. Ask an administrator of the organization for a role that has it
The organization is not found on the first pageEnter the short name from the URL of your portal, not the display name. Check that you use the address of the right region
The client lists fewer tools than you expectThe list follows the access that you chose and the permissions of your account. Connect again and choose more, or ask for the role that you need
A tool returns "upgrade required" or a limit messageThe plan of the organization does not include the feature, or a limit of the plan is reached. The message names the feature or the limit
A tool returns 403 with insufficient_scopeThe connection has no Read and change access to the area. Connect again and choose it
A tool that used to work returns 401The connection was disconnected or blocked, the server was switched off, or you connected the same application again. Sign in again from the client
The result of create_application has no secretReturn new secrets to the connected application is off. See New secrets