UNPKG

anilist-mcp

Version:

AniList MCP server for accessing AniList API data

18 lines (17 loc) 538 B
export function requireAuth() { if (!process.env.ANILIST_TOKEN) { return { isAuthorized: false, errorResponse: { content: [ { type: "text", text: "Error: This operation requires authentication. Please provide an AniList API token via the ANILIST_TOKEN environment variable.", }, ], isError: true, }, }; } return { isAuthorized: true }; }