Skip to content

AniList MCP Server (Unofficial) changelog

io.github.grinv/anilist-mcp-server

5 changes recorded. MCP Harbor re-reads this listing from the official registry every six hours and asks the live server what it exposes, and keeps what changed between one look and the next.

  • AGENTS.md +44 −16

    https://raw.githubusercontent.com/grinv/anilist-mcp-server/HEAD/AGENTS.md

    − 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](README.md).)−                   # result, graphql (the GraphQL request/error-mapping layer)−                   # login.ts, guard.ts (never-throw wrapper), outputSchemas.ts− npm run build          # tsc --noEmit + tsup → dist/index.js (single ESM bundle)−   stripping on by default (what runs the tests and `scripts/*.ts`), also required by tsup 9.−   tsup targets `node22.18`; `tsconfig.json` uses `module: "node20"` with an− - Tool failures return `{ isError: true }` results (via `guard()` / `result.ts`),−   never thrown — the agent should get an actionable message. Mutation/personal−   tools are gated by `ctx.requireAuth()` (defined in `clients/anilist/context.ts`,−   function that needs it — it throws an actionable `ApiError` before any−   network call rather than making a doomed authenticated request.−   (`allowImportingTsExtensions`; tsup bundles them the same way). `eslint.config.mjs`−   pass. These, plus `tsup.config.ts`, are type-checked via a separate−   (`2.3.1`, pinned exact — not a `^range`) ahead of the sibling servers−   (`mal-mcp`/`tmdb-mcp`/`steam-games-mcp`, all still on v1). Re-run the full+ agent; Claude Code reads it directly too, so there is no `CLAUDE.md`. If one is+ ever added, it must import this file (`@AGENTS.md`): Claude Code reads+ AGENTS.md on its own only when no CLAUDE.md exists. (For+ end-user/runtime docs, see [README.md](README.md).)+                   # result, cancel (the call's AbortSignal), graphql (the+                   # GraphQL request/error-mapping layer)+                   # login.ts, register.ts (the one tool-registration wrapper),+                   # outputSchemas.ts+                   # audit-bundle.ts (CI: npm audit over the inlined packages),+ npm run build          # tsc --noEmit + tsdown → dist/index.js (single ESM bundle)+   stripping on by default (what runs the tests and `scripts/*.ts`).+   tsdown reads its target from `engines.node`; `tsconfig.json` uses `module: "node20"` with an+ - **Tool failures: throw, never build an error result.** Every tool is+   registered through `tools/register.ts`'s `tool(name, config, handler)`+   (each `registerXTools()` gets it instead of the McpServer); it runs the+   handler with the call's cancellation signal, checks a success against the+   tool's own `outputSchema` (a mismatch is `internal`) and turns any throw+   into an `isError` result via `lib/result.ts`. Throw `ApiError` for an+   upstream failure (facts: code, status, AniList's own `detail`, and this+   server's one-sentence `note` naming the occurrence) and+   `ToolError` for this server's own decisions (`invalid_arguments`,+   `login_required`, `not_configured`) with the sentence the model should+   read; anything else is `internal`. `toProblem()` is the only place+   tool-facing prose is written: the text is the problem's `detail`, and the+   RFC 9457 problem rides in `_meta["io.github.Grinv.anilist-mcp-server/problem"]`+   with no `structuredContent`. A new code needs a `PROBLEMS` entry and a+   `docs/errors.md` section (a test checks both). Mutation/personal tools are+   gated by `ctx.requireAuth()` (defined in `clients/anilist/context.ts`,+   function that needs it — it throws `login_required` before any network+   call rather than making a doomed authenticated request.+   Runtime packages (`@modelcontextprotocol/server`, `zod`) live in+   `devDependencies`, not `dependencies`: tsdown inlines them into+   `dist/index.js`, so `npx` installs nothing. A new runtime package must be+   added to `tsdown.config.ts`'s `bundledDeps` or the build fails; CI audits+   the bundled packages with `scripts/audit-bundle.ts`.+ - `manifest.json` lists no `prompts`, only `prompts_generated: true`: mcpb's+   static prompt text can't express the argument handling in `src/prompts.ts`+   (e.g. a numeric user ID vs a quoted username), so clients take the prompts+   from the server's own `prompts/list`. Its `tools` list stays hand-written+   (short descriptions) and is checked against the registered tools.

  • server.json 1 field changed
    version
    0.11.0 0.12.0

  • AGENTS.md +48 −28

    https://raw.githubusercontent.com/grinv/anilist-mcp-server/HEAD/AGENTS.md

    −                   # user), matching src/tools/*. Tool handlers call these−                   # domain functions directly (e.g. `media.getMedia(client.ctx(), ...)`)−                   # rather than through a same-named method on AniListClient.− scripts/          # build-tests.mjs, run-tests.mjs, check-api.mjs, sync-version.mjs−                   # (+ its sync-version.d.mts type-declaration companion),−                   # preversion-check.mjs (npm `preversion` gate — see the `release` skill)− npm test               # build tests with esbuild, run with node:test− - Runtime floor is **Node ≥ 20.11.0** (`fetch`, `AbortSignal.any()`/−   `.timeout()`, `import.meta.dirname`); tsup targets `node20.11`. Tests may−   run on newer Node but must not raise the runtime floor.−   `user`) isn't caught by schema validation (no schema in this codebase is−   `.strict()`) — the mismatched key is just dropped, and the tool silently−   falls back to whatever the field being absent means, instead of erroring−   (see `CHANGELOG.md` 0.2.2 for the bug this caused live).−   bridge (`node_modules/@modelcontextprotocol/server/dist/src-CX2iR2pK.mjs`,−   `standardSchemaToJsonSchema()`) with no `unrepresentable` override — and−   that bridge, like `z.toJSONSchema()` itself, defaults `unrepresentable` to−   `"throw"` (`zod/v4/core/to-json-schema.js`), not `"any"`. One of these−   types anywhere in a tool schema throws at `registerTool()` time — i.e. it−   crashes server startup, not just the one tool call. A reach for `z.date()`− - **Plain-JS tooling files** (`scripts/*.mjs`, `eslint.config.mjs`) still get−   type-checked — add `// @ts-check` + JSDoc annotations rather than leaving−   them untyped. They run directly via `node`/`eslint` (not through tsup), so−   they're checked via a separate `tsconfig.scripts.json` (`npm run− typecheck:scripts`, folded into `npm run lint`) instead of the main−   `tsconfig.json`, which only covers `src/`.−   (`2.0.0`, pinned exact — not a `^range`) ahead of the sibling servers− (`config.ts`, `clients/`, domain `tools/`, `prompts.ts`, `check-api.mjs`),+                   # 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.+ scripts/          # run-tests.ts, check-api.ts, sync-version.ts,+                   # preversion-check.ts (npm `preversion` gate — see the `release` skill)+ npm test               # node:test straight on src/**/*.test.ts (native type stripping)+ - Runtime floor is **Node ≥ 22.18.0** — the first 22.x with TypeScript type+   stripping on by default (what runs the tests and `scripts/*.ts`), also required by tsup 9.+   tsup targets `node22.18`; `tsconfig.json` uses `module: "node20"` with an+   ES2024 target/lib (Node 22's V8 12.4 has all of ES2024, e.g.+   `Promise.withResolvers()`, `Object.groupBy()`, but not ES2025's+   `Promise.try()`/`RegExp.escape()`). Keep `engines`, `manifest.json`'s+   `compatibility.runtimes.node` and the CI matrix's lowest entry in sync.+   Tests may run on newer Node but must not raise the runtime floor.+   `user`) once made the mismatched key silently dropped, so the tool fell+   back to whatever the field being absent means instead of erroring (see+   `CHANGELOG.md` 0.2.2 for the bug this caused live). Every tool+   `inputSchema` is now a `z.strictObject()` — an unknown key is rejected+   ("Unrecognized key") rather than dropped; keep new ones strict too (a test+   in `tools.test.ts` checks every registered tool).+   bridge (`standardSchemaToJsonSchema()` in+   `node_modules/@modelcontextprotocol/server/dist/src-*.mjs`) with no+   `unrepresentable` override — and that bridge, like `z.toJSONSchema()`+   itself, defaults `unrepresentable` to `"throw"`+   (`zod/v4/core/to-json-schema.js`), not `"any"`. Since SDK 2.3.0 that+   conversion is lazy (at `tools/list`, not `registerTool()`), so the server+   now starts fine — but one of these types anywhere in any tool schema makes+   every `tools/list` call throw (confirmed on 2.3.1: "Date cannot be+   represented in JSON Schema"), i.e. the client sees no tools at all, not+   just a broken one. Worse than the old startup crash, since nothing fails+   until a client connects. A reach for `z.date()`+ - **Tests and tooling files run as TypeScript directly** through Node's native+   type stripping (`node --test src/**/*.test.ts`, `node scripts/foo.ts` — no+   compile step), so all of `src/` and `scripts/` follow its rules: only+   erasable syntax (no `enum`/`namespace`/parameter properties;+   `erasableSyntaxOnly` enforces it), `import type` for type-only imports+   (`verbatimModuleSyntax`), and relative imports name the real `.ts` file+   (`allowImportingTsExtensions`; tsup bundles them the same way). `eslint.config.mjs`
  • server.json 1 field changed
    version
    0.10.0 0.11.0

  • server.json 2 fields changed
    title
    AniList MCP Server AniList MCP Server (Unofficial)
    version
    0.9.0 0.10.0