API tokens and AI access
Every way into rConfig that isn’t a person at the sign-in page goes through a token: a script calling the REST API, a monitoring tool reading the Security Center report, or an AI agent connected over MCP. A token is a password for a program, and it usually outlives the reason it was made. This page explains what limits a token, how to keep the number of live, all-powerful or forgotten tokens at zero, and what the AI Center sends outside your network.
Two kinds of token, one store
rConfig issues two kinds of token, and Security Center checks both together.
| Token | Used by | Sent as | Created in |
|---|---|---|---|
| REST API token | Scripts, integrations, SIEM and compliance tools | The apitoken header |
Settings > REST API Tokens |
| MCP token | AI agents connected to rConfig’s MCP server | Authorization: Bearer |
AI Center > MCP Access Tokens |
The MCP endpoint refuses a REST API token, so give each integration the kind of token its endpoint expects.
What limits a token
Two things decide what a token can do, and both apply at once.
- Abilities (REST API tokens, V8.4.0+) decide which endpoints the token may call, as read and write pairs such as
devices.readorsnippets.write. A token with no write abilities can’t change anything. - The owner’s role decides which records the token sees. A token can never do more than its owner could; an administrator’s token sees everything, so a service account with a narrow role is the only way to limit what a token reads.
The pattern that follows is one service account per integration, a role covering only the devices that integration needs, and one token per integration with only the abilities it calls. The API tokens and least privilege guide works through it, including the write abilities that deserve the most care and why device credentials come back by default on device calls.
MCP tokens follow the same owner rule: every MCP tool result is limited to the devices the token’s owner can see, and secrets in config content are obfuscated before they leave rConfig.
Expiry and rotation
A token that never expires keeps working after the script, integration or person it was made for is gone, and a leaked one works for ever. From V8.5.0 a new REST API token expires after a year by default, or after 30 or 90 days, and choosing Never warns that Security Center will flag it. MCP tokens default to a year, with 30 days, 90 days, a custom date or no expiry as the alternatives.
Rotation is a habit, not a feature: create the new token, switch the integration to it, confirm it works, then revoke the old one. Do it on a schedule and whenever someone with access to a token leaves.
What Security Center checks
The tokens checks look at every REST API and MCP token:
| Check | Looks for | Fix |
|---|---|---|
tokens.no_expiry |
Tokens with no expiry date | Replace them with tokens that expire |
tokens.wildcard |
Tokens with every ability (*) or no abilities list |
Replace them with scoped tokens |
tokens.unused |
Valid tokens not used for 90 days or more | Revoke from the finding (Choose tokens to revoke) |
tokens.expired_present |
Expired tokens still in the list | Delete from the finding (Delete expired tokens) |
The last two can be fixed from the page by a user with security.update; rConfig shows what will change, records the fix in the activity log and runs the checks again. The first two need a person to decide what the replacement token should be allowed to do.
AI access
The AI Center is off until AI_CENTER_ENABLED is set, and nothing is sent to an AI provider until a user clicks an AI button. Four controls decide who uses it and what it sees:
- Permissions.
aicenter.viewto use AI features,aicenter.mcptokento create your own MCP tokens,aicenter.updateto manage providers, capabilities and other users’ MCP tokens. - Capability toggles. Each capability can be switched off for everyone.
- Terms. Each user accepts the AI Center terms before using any AI feature.
- Roles. AI features and MCP tools see only the devices and configs the user’s role can see.
What leaves the server
What reaches the provider depends on the capability. Config Analysis sends the device config on the first message; Policy & Compliance Narration sends results but no config text; the MCP server sends nothing to your provider, because the agent you connect receives the tool results instead. The governance and privacy page lists each capability’s data, and the provider decides where it goes: an on-premises model (Ollama, or an OpenAI-compatible endpoint on a private address) keeps it on your network, while a cloud provider processes it under that provider’s terms.
The Security Assistant and get_security_posture
Two AI routes read Security Center results.
- The Security Assistant (V8.5.0) answers questions on the Security Center page, such as “what should I fix first?”, from the latest stored run. It sends each check’s ID, status, severity, message and fix, and the advisories that apply. It never sees configs, credentials or secrets, and it can’t run checks or apply fixes. Finding messages can name hosts, accounts and devices; set
SECURITY_ASSISTANT_INCLUDE_DETAILS=falseto send only check IDs, statuses and severities. - The
get_security_postureMCP tool gives a connected agent the same report: failing and warning checks with their fixes, and the advisories that apply. The token’s owner needssecurity.view.
Both need the same thought as any other route out: who can ask, and where the answer is processed.
Uplink guideSecurity review of Iris: the questions to expect, and where the answers areA walkthrough for security teams reviewing Iris and its MCP server: data handling, access, logging, write paths, third parties and known limits.Read the guide