Agents
Tokens and scopes
An MCP token is a personal access token: it acts as the person who created it, cut down to reading. It never reaches further than its owner. Besides reading, it can only propose learnings, which people may reject before they activate, ask for a review of a merge request (at most one per commit) and report exposed secrets. It cannot start tasks, run release steps or approve anything.
What a token can see
Section titled “What a token can see”A token carries its owner’s grants, limited to these permissions:
| Permission | What the agent can read with it |
|---|---|
repos:read |
Repositories, their health and analysis freshness. |
analyses:read |
Analysis records: public API, usages, stack, coverage, assets, test ids, jobs. |
audits:read |
Vulnerability findings from audits. |
knowledge:read |
Rules and learnings. |
releases:read |
Release rules, status and changes. |
So a developer of the storefront team gets an agent that sees the storefront’s repositories, and other teams’ repositories only as far as the Reach setting (access.crossTeam) lets everyone read their catalog. An admin’s token reads everything, but still cannot write anything a read-only token cannot.
Whatever your grants, a token never gets settings:write, credentials:*, users:* or AI administration, and it cannot create or revoke tokens.
What a token can propose
Section titled “What a token can propose”One tool writes knowledge:
| Tool | What it leaves |
|---|---|
propose_learning |
A pending learning in Knowledge › Learnings; it activates after the approval delay unless a person rejects it earlier. |
See Rules and knowledge.
Everything else that changes something stays with people:
- Tasks start from Chat task cards, Roll out in Supply chain › Libraries, Ops › Tasks and
POST /api/task-groups. An agent can follow a task’s merge request withcode_reviewon the task’s branch; see Changing code through tasks. - Release steps run from the Releases screen and from confirmations in Chat.
Report exposed secrets
Section titled “Report exposed secrets”Each token also has a Report exposed secrets choice, set on its row under Account › Connect agents:
| Choice | The agent |
|---|---|
| Under my name (default) | Gets report_secret_exposure; reports carry your name. |
| Anonymously | Gets report_secret_exposure; reports store nothing about you, and their time is moved back by up to 10 minutes. |
| Off | Does not get the tool. |
Agents call the tool on their own when a secret of the organization shows up in a session, masked, so administrators rotate it. Only you see the choice, administrators can neither read nor set it, and changing it is not audited. Anonymous calls are left out of the usage below. The choice links to the license’s Use Condition: reporting is voluntary and never grounds for sanctions. See Secret reports.
Scopes
Section titled “Scopes”The New token dialog has no switches: every new token reads and proposes. Tokens created earlier with the Release steps (release) or Run tasks (tasks) scope keep working, as read tokens: no MCP tool uses those scopes anymore, and the token list shows them as Read.
Expiry and status
Section titled “Expiry and status”Tokens live 30 days, 90 days (the default), a year, or never expire. The table shows each token’s state:
| Status | Meaning |
|---|---|
| Active | Used at least once and not about to expire. |
| Expires soon | Expires within 14 days. Create its successor. |
| Expired | Stopped working; agents get 401. |
| Never used | Created but no call yet. |
Last used is updated at most once an hour, so it can lag a little behind a busy agent.
Revoke a token
Section titled “Revoke a token”Press the trash icon on the token’s row and confirm.
Agents using it lose access right away.
A revoked token stops working at once. Revoke a token when a machine is lost, a colleague leaves a shared agent behind, or you no longer recognize its calls. Creating and revoking tokens are logged as mcp.token.created and mcp.token.revoked in the audit log.
Every tool call except anonymous secret reports is recorded with the tool, what it was about (a package or a repository), the client and the token.
- Account › Connect agents shows Calls, 7 days per token and, under My usage, your own calls over 7, 30 or 90 days with your most used tools, packages and clients.
- Ops › AI spend shows everyone’s MCP usage to people who may see people (
users:read); see AI spend.
| Tools | Calls | Packages | Calls | Clients | Calls |
|---|---|---|---|---|---|
repo_rules |
96 | @acme/widget-kit |
71 | claude-code | 402 |
package_usage |
71 | date-fns |
18 | cursor | 80 |
find_packages |
54 | @acme/forms |
12 | curl | 3 |
My usage: your calls, then the most used tools, packages and clients.
Good practice
Section titled “Good practice”- One token per machine or agent, named after it. A leak then costs one revocation.
- Keep tokens out of repositories: no
.mcp.jsonwith a secret in version control. - Give CI agents short-lived tokens and rotate them; give people’s laptops 90 days.
- Revoke tokens nobody uses anymore instead of waiting for them to expire.
Related
Section titled “Related”- Connect an agent — create a token and set up your client.
- Permissions — every permission and role.
- Permissions and scopes — how grants and scopes work.
- Settings › People — where admins change grants.
- Secret reports — what reporting exposed secrets means.