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.
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_9f4b2a1c8e7d6053a1b2c3d4curl -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 Trigger | Scope of Invalidation | Effect Time |
|---|---|---|
| POST /oauth/revoke with access_token | Sets revokedAt on matching McpAccessToken | Immediate (next HTTP request) |
| POST /oauth/revoke with refresh_token | Revokes entire familyId across McpOAuthGrant, McpAccessToken, and McpRefreshToken | Immediate |
| Refresh token reuse detected at /oauth/token | Revokes entire familyId across grant, access tokens, and refresh tokens | Immediate |
| Revoke client in /account | Revokes selected McpOAuthGrant and all descendant access and refresh tokens | Immediate |
| Revoke PAT in /account | Sets revokedAt on selected tmcp_... McpAccessToken record | Immediate |
| Revoke All in /account | Revokes every active OAuth grant, access token, refresh token, and PAT for the Discord user | Immediate |
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.