Access, scopes and masking
How MCP access works in inspector.rest - OAuth versus personal tokens, scope by project and environment, tool groups, secret masking, expiry, revocation and the role limit.
MCP access is a connection (a grant) that belongs to one user and one organization. A connection is created in one of two ways, and both carry the same settings.
OAuth or personal token
| Personal token | OAuth 2.1 | |
|---|---|---|
| Created | In the console under MCP access (console.inspector.rest/<org-slug>/mcp) → New token | When a client connects, on the consent screen at console.inspector.rest/oauth/authorize |
| Looks like | irt_ followed by 40 characters, sent as Authorization: Bearer | The client receives the access token; you never handle it |
| Shown | Once, when created | – |
| Good for | Clients that can send a header: Claude Code, Cursor, VS Code, scripts | Claude, Claude Code and Cursor |
| Lifetime | Until the connection expires | The access token lasts 1 hour; refresh tokens renew it. The connection’s expiry still applies |
| Revoke | In the console | In the console; access and refresh tokens stop together |
With OAuth, the client discovers the authorization server from the MCP server, registers itself and uses the authorization code flow with PKCE. Redirect addresses must be https or a loopback address (http://127.0.0.1 or http://localhost). On the consent screen you see the client’s name and where it returns to, then choose the organization, scope, tool groups, masking and expiry.
What a connection contains
| Setting | Meaning |
|---|---|
| Name | A label for you, for example the client name. |
| Organization | A connection belongs to exactly one organization. |
| Scope | All projects (including projects created later), or selected projects. For each selected project you can limit it to certain environments; with none selected, all environments of the project (including later ones) are in scope. |
| Tool groups | Which groups of tools the agent sees. |
| Masking | On by default. |
| Expiry | 30 days, 90 days (default), 1 year or never. The owner gets an email 7 days before it expires. |
Environments outside the scope are not listed by list_environments and cannot be queried.
Tool groups
Tools are organized in three groups. A tool of a disabled group is not listed in tools/list, and a call to it fails with tool_disabled. By default all three groups are on.
| Group | Tools |
|---|---|
| Discover and summarize | list_environments, summarize_requests, top_values |
| Requests | list_requests, get_request, compare_requests (differences in headers and metadata, and in bodies) |
| Bodies | describe_body, read_body, search_bodies |
Masking
Masking is a setting of the connection, on by default. The agent cannot turn it off, and no tool has a parameter for it. When masking is on, these values become "[redacted]":
- headers
authorization,proxy-authorization,cookie,set-cookieandx-api-key, - any header, body field, form field or query parameter whose name contains
token,secret,password,passwd,api-key,apikeyorsession(case-insensitive;_and-count the same, soapi_keymatches too).
Masking happens on the data server before anything leaves it. Turn it off only for environments without real credentials: with masking off, the agent sees secrets as they were sent.
Roles and limits
- A connection never exceeds the current role of its user. Owners, admins and members can all use MCP. If the user leaves the organization, the connection stops working.
- Each user can have up to 50 active connections per organization.
- Revocation, expiry and membership changes take effect on the next call.
- Users see, edit (name, scope, tool groups, masking) and revoke their own connections. Admins and owners see all connections in the organization (owner, scope and last use) and can revoke them.
- The console shows when each connection was last used.
Rate limit
Each connection can make 120 tool calls per minute. See Output budgets and limits.