Authentication

Token Revocation

RFC 7009 programmatic revocation, /account self-service grant and PAT revocation, Revoke All emergency invalidation, and automatic replay revocation.

Programmatic Revocation (RFC 7009)

Clients can invalidate OAuth access tokens, OAuth refresh tokens, or scoped PATs at any time via POST /oauth/revoke. In compliance with RFC 7009 Section 2.2, the endpoint returns HTTP 200 OK even when the supplied token is already expired, already revoked, or unrecognized, preventing token existence probing.

Revoking a refresh token via RFC 7009http
POST /oauth/revoke HTTP/1.1
Host: mcp.taicket.xyz
Content-Type: application/x-www-form-urlencoded

token=tmcp_rt_3d7c9e2a1b4f5082e6a9c0d1f2e3b4a5&token_type_hint=refresh_token&client_id=dcr_9f4b2a1c8e7d6053a1b2c3d4
Revoking an access token with curlbash
curl -X POST https://mcp.taicket.xyz/oauth/revoke \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "token=tmcp_oa_6a8f4d91e2c04b7790c1a4e5f8d2b3c4" \
  -d "token_type_hint=access_token"

Cascading Revocation Semantics

Revocation TriggerScope of InvalidationEffect Time
POST /oauth/revoke with access_tokenSets revokedAt on matching McpAccessTokenImmediate (next HTTP request)
POST /oauth/revoke with refresh_tokenRevokes entire familyId across McpOAuthGrant, McpAccessToken, and McpRefreshTokenImmediate
Refresh token reuse detected at /oauth/tokenRevokes entire familyId across grant, access tokens, and refresh tokensImmediate
Revoke client in /accountRevokes selected McpOAuthGrant and all descendant access and refresh tokensImmediate
Revoke PAT in /accountSets revokedAt on selected tmcp_... McpAccessToken recordImmediate
Revoke All in /accountRevokes every active OAuth grant, access token, refresh token, and PAT for the Discord userImmediate

Because every request to /mcp hashes the presented bearer token and checks revokedAt in taicket_mcp, revocation takes effect on the very next request with zero grace window.

Self-Service Revocation Portal

Server managers can inspect all active OAuth client connections, view token prefixes and last-4 digits for active PATs, review recent MCP audit log entries, and revoke individual credentials or all credentials at once in the Discord-authenticated Account Portal.

Related documentation