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 & PathAuth RequirementRate Limit ZoneDescription
POST /mcpBearer token (OAuth or PAT)taicket_mcp_limit (25r/s) + per-user windowPrimary Streamable HTTP MCP JSON-RPC 2.0 endpoint for initialize, tools/list, tools/call, resources/*, and prompts/*.
GET /mcpBearer token (OAuth or PAT)taicket_mcp_limit (25r/s)Optional Streamable HTTP server-sent event (SSE) channel for active MCP sessions.
DELETE /mcpBearer token + Mcp-Session-Idtaicket_mcp_limit (25r/s)Explicitly terminates an active Streamable HTTP MCP session.
GET /healthPublictaicket_mcp_limit (25r/s)Returns JSON liveness status, service version, uptime, and connection readiness.
GET /.well-known/oauth-protected-resourcePublictaicket_mcp_limit (25r/s)RFC 9728 Protected Resource Metadata identifying the MCP resource URL, authorization server, and supported scopes.
GET /.well-known/oauth-authorization-serverPublictaicket_mcp_limit (25r/s)RFC 8414 Authorization Server Metadata listing authorization, token, registration, and revocation endpoints.
POST /oauth/registerPublic (IP rate limited)taicket_mcp_oauth_limit (10r/s)RFC 7591 Dynamic Client Registration with strict HTTPS/loopback redirect URI validation.
GET /oauth/authorizeBrowser 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/callbackDiscord OAuth state cookietaicket_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/consentPending transaction cookietaicket_mcp_oauth_limit (10r/s)Renders server selector and granular scope toggle consent UI in plain server-owner language.
POST /oauth/consentTransaction cookie + CSRFtaicket_mcp_oauth_limit (10r/s)Approves or denies access, mints a single-use 60s McpOAuthCode, and redirects back to the AI client.
POST /oauth/tokenPKCE verifier or refresh tokentaicket_mcp_oauth_limit (10r/s)Exchanges authorization codes (with PKCE S256 + RFC 8707) or rotates refresh tokens atomically.
POST /oauth/revokeToken payload (RFC 7009)taicket_mcp_oauth_limit (10r/s)Revokes an OAuth access token or refresh token family immediately.
GET /oauth/approve-actionDiscord mcp_account_session cookietaicket_mcp_oauth_limit (10r/s)Displays plain-language summary of a pending destructive or structural McpSetupPreview (query param: id=<planId>).
POST /oauth/approve-actionDiscord session + CSRFtaicket_mcp_oauth_limit (10r/s)Records humanApprovedAt, humanApprovedBy, and approvedPayloadHash so apply_setup can proceed.
GET /accountDiscord mcp_account_session cookietaicket_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/logoutPublic / Session cookietaicket_mcp_oauth_limit (10r/s)Initiates Discord OAuth sign-in for /account or clears the signed session cookie.
POST /account/tokensSession cookie + CSRFtaicket_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/revokeSession cookie + CSRFtaicket_mcp_oauth_limit (10r/s)Revokes a single Personal Access Token immediately.
POST /account/grants/:id/revokeSession cookie + CSRFtaicket_mcp_oauth_limit (10r/s)Revokes a connected OAuth 2.1 client grant and all associated access and refresh tokens.
POST /account/revoke-allSession cookie + CSRFtaicket_mcp_oauth_limit (10r/s)Revokes all active OAuth grants and Personal Access Tokens belonging to the signed-in Discord user.
GET /, /docs/*Publictaicket_mcp_limit (25r/s)Static Next.js 14 documentation website served from mcp/dist/site/.
GET /privacy, /terms, /supportPublictaicket_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."
}

Related documentation