Skip to main content
Glama

anilist-mcp

MIT License
112
54
  • Apple
  • Linux
auth.ts719 B
import { ANILIST_TOKEN_HEADER } from "./constants.js"; export function requireAuth(anilistToken?: string): { isAuthorized: boolean; errorResponse?: any; } { if (!anilistToken || anilistToken.trim().length === 0) { return { isAuthorized: false, errorResponse: { content: [ { type: "text", text: `Error: This operation requires authentication. For Streamable HTTP transport mode, please provide an AniList API token via header '${ANILIST_TOKEN_HEADER}'. For STDIO transport mode, set the ANILIST_TOKEN environment variable before starting the server.`, }, ], isError: true, }, }; } return { isAuthorized: true }; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yuna0x0/anilist-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server