anilist-mcp-server: Instructions file for Codex

AGENTS.md

anilist-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from Grinv/anilist-mcp-server. It costs 4,002 tokens per session, scanned A, original, MIT.

Repository instructions for an AniList MCP server, a TypeScript program that connects an AI agent to AniList’s GraphQL API. They explain the project structure, authentication, API behaviour, and development commands.

In plain words
What is it for?
Use them when changing or testing AniList searches, media details, recommendations, user data, lists, favourites, follows, activities, threads, or notifications.
Why use it?
They distinguish public read-only data from account-changing actions that need an access token. This helps agents avoid treating personal-list or social operations like ordinary searches.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is Grinv/anilist-mcp-server's own configuration. It tells Codex and OpenCode how to work on anilist-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything anilist-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Grinv/anilist-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Grinv/anilist-mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Grinv/anilist-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for anilist-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/grinv/anilist-mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/grinv/anilist-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/grinv/anilist-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/grinv/anilist-mcp-server/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for anilist-mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/grinv/anilist-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/grinv/anilist-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,002 This file is loaded in full into every session.
When invoked 4,002 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.04002 $0.04002
Opus 5.5 $0.01601 $0.01601
Sonnet 5.5 $0.00800 $0.00800
Haiku 4.5 $0.00400 $0.00400

Measured 7d ago against content hash 18dd8936b228, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

anilist-mcp-server AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 258 lines

How it starts

The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Single source of truth for working on this repository — for any model or agent. CLAUDE.md only links here (@AGENTS.md); keep all shared guidance in this file, not in CLAUDE.md. (For end-user/runtime docs, see README.md.)

Project shape

A TypeScript MCP server for the AniList GraphQL API. Reads (search/details/genres/tags/recommendations/threads/activity/public user data) call the public GraphQL endpoint directly and need no credentials. Personal-list and social tools (add/update/remove list entries, favourites, follow, posting/deleting activity or threads, update_user, get_notifications) act on the authenticated user's own AniList account and require a user access token — see docs/auth.md for the OAuth model and docs/api-references.md for AniList's API specifics (rate limits, mutation semantics, considerations) before changing the client.

src/
  index.ts        # bin entry — calls start()
  server.ts       # buildServer() + start(); registers everything
  config.ts       # env → validated Config (zod)
  version.ts      # VERSION constant, kept in sync with package.json (checked by a test)
  lib/            # http, rateLimit, cache, tokenStore, oauthLogin, errors, logger,
                  # result, graphql (the GraphQL request/error-mapping layer)
  clients/        # anilist.ts — thin AniListClient facade (auth/config/login,
                  # exposes ctx(): AniListContext); anilist/*.ts — one file per
                  # domain (activity, context, favourites, fields, list, media,
                  # misc, notification, people, recommendation, search, thread,
                  # user), matching src/tools/* (plus fuzzyDate.ts: the
                  # date-filter encoders several domains share, and
                  # deleteById.ts: the four Delete* mutations' shared call).
                  # Tool handlers call these domain functions directly
                  # (e.g. `media.getMedia(client.ctx(), ...)`) rather than through a same-named method on AniListClient.
                  # anilist/ids.ts — branded numeric-ID type aliases (MediaId,
                  # ListEntryId, etc.), one per domain concept; every domain
                  # file's exported functions take these instead of plain
                  # `number` so e.g. a MediaId can't compile where a
                  # ListEntryId is expected. Compile-time only — see the
                  # file's own comment for why it has no zod runtime import.
                  # anilist/enums.ts — single source for the AniList enums
                  # re-typed on both sides of the boundary (MediaType,
                  # MediaListStatus, FavouriteKind, birthday kinds): one
                  # `as const` array per enum, feeding z.enum() in tools/ and
                  # the derived `(typeof X)[number]` type in these domain
                  # signatures, so runtime validation and the compile-time
                  # types can't drift. Lives here (not tools/) because
                  # clients/ can't import from tools/.
  tools/          # misc.ts, activity.ts, list.ts, media.ts, notification.ts,
                  # people.ts, recommendation.ts, search.ts, thread.ts, user.ts,
                  # login.ts, guard.ts (never-throw wrapper), outputSchemas.ts
                  # (shared output-schema fragments, incl. anilistId and its
                  # per-domain branded variants — mediaId, listEntryId, etc.)
  prompts.ts      # MCP Prompts: multi-step plans that orchestrate the read tools
  __tests__/      # node:test (*.test.ts) + helpers.ts
scripts/          # run-tests.ts, check-api.ts, sync-version.ts,
                  # preversion-check.ts (npm `preversion` gate — see the `release` skill)
.agents/skills/   # reusable agent workflows for this repo (e.g. live-audit/) —
                  # plain Markdown with a YAML frontmatter name/description,
                  # not tied to any one tool's orchestration features, per
                  # this file's agent-agnostic policy; same skill name/layout
                  # as this project's sibling MCP servers (tmdb-mcp, mal-mcp,
                  # steam-games-mcp) — sync improvements both ways rather
                  # than letting them drift. `.claude/skills` is a symlink
                  # here (Codex CLI/Gemini CLI read `.agents/skills`
                  # directly, Claude Code the symlink), so no skill content
                  # is duplicated per client path.

Read the full file on GitHub · 258 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed · +11 lines · +230 tokens per session 18dd8936b228
  2. 8d ago Changed · +9 lines · +141 tokens per session 4684fdb5258c
  3. 2mo ago First seen · 238 lines · 3,631 tokens per session scan A 8d467fb5699a

Subscribe to this mod's changes

anilist-mcp-server AGENTS.md is an instructions file published in the GitHub repository Grinv/anilist-mcp-server (1 stars, last pushed 8d ago), licensed MIT. It adds 4,002 tokens to every session, about $0.0160 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens