inspector.restDocs

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 tokenOAuth 2.1
CreatedIn the console under MCP access (console.inspector.rest/<org-slug>/mcp) → New tokenWhen a client connects, on the consent screen at console.inspector.rest/oauth/authorize
Looks likeirt_ followed by 40 characters, sent as Authorization: BearerThe client receives the access token; you never handle it
ShownOnce, when created–
Good forClients that can send a header: Claude Code, Cursor, VS Code, scriptsClaude, Claude Code and Cursor
LifetimeUntil the connection expiresThe access token lasts 1 hour; refresh tokens renew it. The connection’s expiry still applies
RevokeIn the consoleIn 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

SettingMeaning
NameA label for you, for example the client name.
OrganizationA connection belongs to exactly one organization.
ScopeAll 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 groupsWhich groups of tools the agent sees.
MaskingOn by default.
Expiry30 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.

GroupTools
Discover and summarizelist_environments, summarize_requests, top_values
Requestslist_requests, get_request, compare_requests (differences in headers and metadata, and in bodies)
Bodiesdescribe_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-cookie and x-api-key,
  • any header, body field, form field or query parameter whose name contains token, secret, password, passwd, api-key, apikey or session (case-insensitive; _ and - count the same, so api_key matches 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.