Appearance
Personal MCP Access Tokens
Use a personal access token when an MCP client supports a configured Bearer header but cannot complete OAuth. This is an alternative issuance method for an authenticated /mcp/:ssrSiteId resource, such as /mcp/admin or /mcp/web, not an anonymous endpoint or a different tool execution path. OAuth-capable clients can continue using browser authorization.
Create and connect
Sign in through the intended Cabloy Site and open Account → Security → MCP access tokens (
/cabloy/mcp/accessTokens, beneath that Site's public-path prefix). The page supplies the current runtimesys.env.SITE_IDasssrSiteId; the Admin Site manages/mcp/admin, while the Web Site manages/mcp/web. This page is separate from MCP authorizations and MCP personal scopes.Choose Create, enter a descriptive name and select one scope. The default is
mcp:read;mcp:allpermits write-capable tools only when the account already has their business permissions. An existing personalmcp:custom:<name>scope on this same Site resource restricts access to its selected exact tools. Manage those definitions on the personal scopes page.Set the lifetime in days. The default is 7 days. The page converts days to seconds for the API. There is no product maximum: a longer positive, finite, safely representable lifetime is allowed. This does not provide a never-expiring token. OAuth access/refresh lifetime policies are unchanged.
Create once, then copy the token and the server-derived MCP URL from the one-time result. Store the token in the client's protected credential configuration. The application cannot reveal it again after the dialog closes or navigation clears it; create a replacement and delete an unused token if necessary.
Configure the client to send one header on every protected MCP request:
httpAuthorization: Bearer <access-token>Use the displayed exact MCP URL, including
/mcp/<ssrSiteId>; do not shorten it to/mcpor change its Site ID. Do not put the token in a URL, cookie, prompt, screenshot or log. Use HTTPS outside the explicitly supported local-development exception.
The client must also support Cabloy's MCP HTTP transport and protocol framing. A token alone does not add support for stdio-only clients or incompatible transports. Once connected, follow the connected-client query guide.
List and delete
The page lists only the current user's personal tokens for the current Site resource in the active instance, with name, scope, creation time, expiry and active, expired or revoked status. List responses never contain token material. Expired and revoked personal records remain visible until deleted; they are not removed by OAuth expiry cleanup.
Delete requires confirmation and invalidates subsequent authentication immediately through the shared current-state lookup, even if the signed JWT has not expired. It does not undo a tool operation already admitted. Deletion is not recoverable; create a new token to reconnect. Personal tokens have no refresh credential, renewal action or secret-recovery endpoint.
To revoke the token currently used by a connected MCP client through a prompt, see Log out from an MCP client.
OAuth grants remain on the separate authorizations page. Neither management API can list, revoke or delete the other issuance kind.
Authorization and scope changes
The token is bound to its issuing user/auth record, canonical issuer/resource and instance. Creation and every external use require both current direct-role MCP admission (mcpAccess: true in the role union) and admission of the target Site by that union's siteIds (including a permitted wildcard); see role-level MCP admission for defaults and any-role semantics. Losing eligibility blocks creation/use but preserves listing and deletion. Restoring eligibility permits an otherwise-valid token again; delete it for permanent invalidation.
Every request reloads current account/auth/provider/role state and checks the current authorization row, nonce digest, generation and expiry. Existing tool policy, RBAC, business ownership and data scope still apply; neither mcp:all nor a custom scope grants missing permissions.
A custom token captures its exact tool ceiling at issuance and requires a currently owned, valid definition and currently authorized tools. Renaming, changing the selected tools or deleting that definition invalidates linked tokens; a description-only edit does not. Expanding a definition cannot silently expand an already-issued token.
Personal creation signs only an MCP access JWT and does not replace the browser login or issue an MCP refresh token. Personal credentials are rejected by OAuth code/refresh issuance and cannot become ordinary login credentials. The server stores only the nonce digest, never a recoverable copy of the signed token. Do not automatically retry creation after an uncertain response: check the list and remove an unused record before deliberately creating another.
API ownership
The authenticated personal API is owned by mcp-auth:
| Operation | Endpoint |
|---|---|
| List own safe metadata | GET /api/mcp/auth/accessToken/mine |
| Create once | POST /api/mcp/auth/accessToken/createMine |
| Delete own token | DELETE /api/mcp/auth/accessToken/deleteMine/:id |
All operations require the ssrSiteId query parameter. The UI takes it from the current runtime sys.env.SITE_ID, not a cross-Site picker. Create accepts name, optional scope and optional positive integer expiresIn (seconds) in its body. The server validates the Site and derives its canonical resource; user/auth identity and instance are not client-selected controls. Tokens, custom scopes and OAuth grants are resource-scoped: a /mcp/admin credential cannot authenticate /mcp/web, and deleting an ID under another Site's management boundary does not bypass ownership.
Responses use Cache-Control: no-store. The frontend consumes regenerated DTO/OpenAPI contracts; secret-bearing create results are kept out of query persistence and SSR transfer.
The old shared /mcp resource has no compatibility path or automatic credential conversion. Create a new Site-bound token rather than rewriting an old binding. The current mcp-auth version-1 development schema is not replayed automatically; see Existing databases and authority changes.