ReferenceHTTP API
API Reference
Complete HTTP endpoint reference for https://mcp.taicket.xyz covering Streamable HTTP MCP, health checks, OAuth 2.1 discovery and flows, human action approvals, /account, and static docs.
Complete HTTP endpoint table
All public routes are served from the single taicket-mcp Express process behind https://mcp.taicket.xyz. Sensitive routes disable caching and framing via both Express middleware and Nginx location headers.
| Method & Path | Auth Requirement | Rate Limit Zone | Description |
|---|---|---|---|
| POST /mcp | Bearer token (OAuth or PAT) | taicket_mcp_limit (25r/s) + per-user window | Primary Streamable HTTP MCP JSON-RPC 2.0 endpoint for initialize, tools/list, tools/call, resources/*, and prompts/*. |
| GET /mcp | Bearer token (OAuth or PAT) | taicket_mcp_limit (25r/s) | Optional Streamable HTTP server-sent event (SSE) channel for active MCP sessions. |
| DELETE /mcp | Bearer token + Mcp-Session-Id | taicket_mcp_limit (25r/s) | Explicitly terminates an active Streamable HTTP MCP session. |
| GET /health | Public | taicket_mcp_limit (25r/s) | Returns JSON liveness status, service version, uptime, and connection readiness. |
| GET /.well-known/oauth-protected-resource | Public | taicket_mcp_limit (25r/s) | RFC 9728 Protected Resource Metadata identifying the MCP resource URL, authorization server, and supported scopes. |
| GET /.well-known/oauth-authorization-server | Public | taicket_mcp_limit (25r/s) | RFC 8414 Authorization Server Metadata listing authorization, token, registration, and revocation endpoints. |
| POST /oauth/register | Public (IP rate limited) | taicket_mcp_oauth_limit (10r/s) | RFC 7591 Dynamic Client Registration with strict HTTPS/loopback redirect URI validation. |
| GET /oauth/authorize | Browser flow (PKCE S256) | taicket_mcp_oauth_limit (10r/s) | Starts OAuth 2.1 authorization, creates a 10m McpOAuthTransaction, and redirects to Discord Official OAuth2. |
| GET /oauth/discord/callback | Discord OAuth state cookie | taicket_mcp_oauth_limit (10r/s) | Exchanges Discord authorization code, encrypts Discord tokens with AES-256-GCM, and routes to /oauth/consent, /account, or /oauth/approve-action. |
| GET /oauth/consent | Pending transaction cookie | taicket_mcp_oauth_limit (10r/s) | Renders server selector and granular scope toggle consent UI in plain server-owner language. |
| POST /oauth/consent | Transaction cookie + CSRF | taicket_mcp_oauth_limit (10r/s) | Approves or denies access, mints a single-use 60s McpOAuthCode, and redirects back to the AI client. |
| POST /oauth/token | PKCE verifier or refresh token | taicket_mcp_oauth_limit (10r/s) | Exchanges authorization codes (with PKCE S256 + RFC 8707) or rotates refresh tokens atomically. |
| POST /oauth/revoke | Token payload (RFC 7009) | taicket_mcp_oauth_limit (10r/s) | Revokes an OAuth access token or refresh token family immediately. |
| GET /oauth/approve-action | Discord mcp_account_session cookie | taicket_mcp_oauth_limit (10r/s) | Displays plain-language summary of a pending destructive or structural McpSetupPreview (query param: id=<planId>). |
| POST /oauth/approve-action | Discord session + CSRF | taicket_mcp_oauth_limit (10r/s) | Records humanApprovedAt, humanApprovedBy, and approvedPayloadHash so apply_setup can proceed. |
| GET /account | Discord mcp_account_session cookie | taicket_mcp_oauth_limit (10r/s) | Connected AI clients, Scoped Personal Access Token management (tmcp_...), and personal MCP audit log portal. |
| GET /account/login & POST /account/logout | Public / Session cookie | taicket_mcp_oauth_limit (10r/s) | Initiates Discord OAuth sign-in for /account or clears the signed session cookie. |
| POST /account/tokens | Session cookie + CSRF | taicket_mcp_oauth_limit (10r/s) | Creates a scoped PAT (7d, 30d, or 90d expiry, max 10 active) and displays plaintext once. |
| POST /account/tokens/:id/revoke | Session cookie + CSRF | taicket_mcp_oauth_limit (10r/s) | Revokes a single Personal Access Token immediately. |
| POST /account/grants/:id/revoke | Session cookie + CSRF | taicket_mcp_oauth_limit (10r/s) | Revokes a connected OAuth 2.1 client grant and all associated access and refresh tokens. |
| POST /account/revoke-all | Session cookie + CSRF | taicket_mcp_oauth_limit (10r/s) | Revokes all active OAuth grants and Personal Access Tokens belonging to the signed-in Discord user. |
| GET /, /docs/* | Public | taicket_mcp_limit (25r/s) | Static Next.js 14 documentation website served from mcp/dist/site/. |
| GET /privacy, /terms, /support | Public | taicket_mcp_limit (25r/s) | Public legal disclosures (Privacy Policy, Terms of Service) and user support guide. |
Health response and unauthenticated challenge
GET /health response payloadjson
{
"status": "ok",
"service": "taicket-mcp",
"version": "1.0.0",
"protocolVersion": "2025-06-18",
"mcpEndpoint": "https://mcp.taicket.xyz/mcp",
"timestamp": "2026-06-15T14:30:00.000Z"
}HTTP 401 challenge returned when POST /mcp lacks a valid Bearer tokenhttp
HTTP/1.1 401 Unauthorized
Content-Type: application/json
Cache-Control: no-store, no-cache, must-revalidate, private
WWW-Authenticate: Bearer resource_metadata="https://mcp.taicket.xyz/.well-known/oauth-protected-resource", scope="mcp:read mcp:write"
{
"error": "UNAUTHORIZED",
"message": "Authentication is required to access Taicket MCP."
}