anilist-mcp-server 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,102 +6,61 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.1.3] - 2026-07-21
10
+
11
+ ### Fixed
12
+
13
+ - Fix a startup race where a `SIGINT`/`SIGTERM` arriving between `serveStdio()` starting and the signal handlers being registered would kill the process immediately instead of shutting down gracefully — handlers are now armed first. ([40d16ba](https://github.com/Grinv/anilist-mcp-server/commit/40d16ba))
14
+
15
+ ## [0.1.2] - 2026-07-21
16
+
17
+ ### Fixed
18
+
19
+ - Reject a malformed `access_token` in AniList's OAuth token response with a clear error, instead of silently storing it. ([38c193c](https://github.com/Grinv/anilist-mcp-server/commit/38c193c))
20
+ - Stop `get_media_tags`'s description from implying `search_media` can filter results by tag — it can't. ([ed171f7](https://github.com/Grinv/anilist-mcp-server/commit/ed171f7))
21
+
22
+ ### Changed
23
+
24
+ - Expose `ANILIST_OAUTH_PORT` and `ANILIST_TOKEN_STORE` in the `.mcpb` install form and MCP Registry entry, not just as env vars. ([d75eaf1](https://github.com/Grinv/anilist-mcp-server/commit/d75eaf1))
25
+ - Clarify several tool and prompt descriptions (activity/recommendation ID sources, `search_media`'s term-less sort/browse mode, `get_user_recent_activity`'s fixed 5-post count) to reduce cross-tool mix-ups. ([ed171f7](https://github.com/Grinv/anilist-mcp-server/commit/ed171f7))
26
+
27
+ ## [0.1.1] - 2026-07-21
28
+
29
+ ### Added
30
+
31
+ - Add a `sort` parameter to `search_media` — the underlying client already supported it, but the tool never exposed it. ([94bbd20](https://github.com/Grinv/anilist-mcp-server/commit/94bbd20))
32
+ - Add `excludeInList` to `get_recommendations_for_media`, filtering out recommendations already on the caller's own list. ([94bbd20](https://github.com/Grinv/anilist-mcp-server/commit/94bbd20))
33
+
34
+ ## [0.1.0] - 2026-07-21
35
+
36
+ Everything below is one commit: [f84674f](https://github.com/Grinv/anilist-mcp-server/commit/f84674f).
37
+
9
38
  ### Added
10
39
 
11
- - Initial release: an MCP server for AniList's GraphQL API, talking to
12
- `https://graphql.anilist.co` directly through a first-party client instead
13
- of a third-party wrapper (see AGENTS.md's "Why this server exists").
14
- - Add `get_notifications`: the authenticated user's AniList notifications
15
- (airing episodes, activity/thread likes/replies/mentions, new followers,
16
- media/staff/character data-submission updates) — AniList's `Notification`
17
- union has 20 possible types, each surfaced with its own distinguishing
18
- reference (`media`/`user`/`thread`/`staff`/`character`) alongside the
19
- common `id`/`type`/`context`/`createdAt` fields.
20
- - Add 45 tools covering anime/manga search and details (incl. per-title
21
- characters/voice-actors, staff, reviews, related media, score/status
22
- statistics, and airing schedule), standalone characters/staff/studios,
23
- genres/tags, recommendations, forum threads, activity feeds, and personal
24
- AniList list management (add/update/remove entries, favourites, follow,
25
- posting/deleting activity, deleting threads, account settings). Anime/manga
26
- variants of the same operation (e.g. `get_anime`/`get_manga`,
27
- `search_anime`/`search_manga`, `favourite_anime`/`favourite_manga`) are
28
- unified into a single tool taking a `type`/`kind` parameter instead of
29
- duplicating the tool per media type.
30
- - Add `login_anilist`/`submit_anilist_redirect`: an Authorization Code Grant
31
- OAuth flow with localhost auto-capture (falls back to manual redirect paste
32
- for remote/headless hosts), matching the sibling servers' login UX.
33
- - Cache read-only GraphQL queries in-memory (`CACHE_TTL_MS`, keyed per-account
34
- — not just whether the caller was authenticated) instead of re-hitting
35
- AniList on every call.
36
- - Add five MCP Prompts (`recommend_similar`, `seasonal_overview`,
37
- `hidden_gems`, `catch_up_activity`, `check_notifications`) — reusable
38
- multi-step plans a client can offer as one-click flows instead of the user
39
- chaining tool calls manually.
40
- - Declare an `outputSchema` on every tool, describing its `structuredContent`
41
- shape so clients can validate/introspect tool results instead of only
42
- getting an opaque JSON blob.
43
- - Publish a one-click `.mcpb` bundle as a release asset for MCP clients that
44
- support drag-and-drop install (e.g. Claude Desktop), alongside the source
45
- install path.
46
- - Run on MCP TypeScript SDK v2 beta (`@modelcontextprotocol/server`, pinned
47
- to an exact `2.0.0-beta.x`) — see AGENTS.md for the plan to bump to the
48
- first stable v2 release.
40
+ - Initial release: an MCP server for AniList's GraphQL API, replacing the broken third-party `anilist-mcp` wrapper (see AGENTS.md's "Why this server exists").
41
+ - Add 45 tools covering anime/manga search and details, characters/staff/studios, genres/tags, recommendations, forum threads, activity feeds, notifications, and personal AniList list management.
42
+ - Unify anime/manga tool pairs (e.g. `get_anime`/`get_manga`, `search_anime`/`search_manga`) into a single tool taking a `type` parameter, instead of one tool per media type.
43
+ - Add `get_notifications` for the authenticated user's AniList notifications (airing episodes, activity/thread activity, new followers).
44
+ - Add `login_anilist`/`submit_anilist_redirect`: an OAuth login flow with localhost auto-capture, falling back to manual redirect paste for remote/headless hosts.
45
+ - Cache read-only GraphQL queries in-memory (`CACHE_TTL_MS`) instead of re-hitting AniList on every call.
46
+ - Add five MCP Prompts (`recommend_similar`, `seasonal_overview`, `hidden_gems`, `catch_up_activity`, `check_notifications`) as one-click multi-step flows.
47
+ - Declare an `outputSchema` on every tool so clients can validate/introspect `structuredContent` instead of an opaque blob.
48
+ - Publish a one-click `.mcpb` bundle as a release asset for drag-and-drop MCP clients (e.g. Claude Desktop).
49
+ - Run on MCP TypeScript SDK v2 beta (`@modelcontextprotocol/server`, pinned to an exact version).
49
50
 
50
51
  ### Fixed
51
52
 
52
- - Fix `seasonal_overview`'s prompt instructions to drop the `status_in:
53
- ["RELEASING"]` filter when a specific past/future `season`+`year` is given,
54
- instead of always applying it — a past season's titles are long since
55
- `FINISHED`, so the old instructions would have told the model to search for
56
- results that can never match.
57
- - Have `catch_up_activity`'s prompt instructions check both the anime AND
58
- manga CURRENT list groups, instead of only anime.
59
- - Never cache `get_notifications` — its `resetNotificationCount` argument is
60
- a real one-time side effect and its result must reflect the current
61
- notification list, so a repeated call within the read-cache window no
62
- longer silently skips the badge reset or returns a stale list.
63
- - Classify `add_list_entry`/`update_list_entry`'s advancedScores validation
64
- failures (unmatched category names, unresolvable media type) as a proper
65
- `bad_request` tool error instead of an unclassified internal error, so the
66
- specific, actionable message reaches the caller instead of a generic
67
- "Unexpected error" wrapper.
68
- - Surface a gated tool's actual "run login_anilist" guidance instead of a
69
- generic "credentials rejected" message when no token is configured —
70
- previously any `unauthorized` error was mapped to the same templated text
71
- regardless of whether it came from AniList itself or from our own
72
- pre-flight check, discarding the specific fix instructions.
73
- - Return the actual saved/deleted data from `add_list_entry`/
74
- `update_list_entry`/`remove_list_entry`, the favourite/follow/activity/
75
- thread mutation tools, and `update_user`, instead of the raw GraphQL
76
- response envelope.
77
- - Reject `remove_list_entry`/`delete_activity`/`delete_thread` when AniList
78
- reports `deleted: false` (already gone, or not owned by the caller), instead
79
- of reporting a successful deletion that didn't actually happen.
80
- - Reject `get_user_activity`/`catch_up_activity` with a clear "no such user"
81
- error when the given username doesn't resolve to any AniList account,
82
- instead of silently falling back to the site-wide global activity feed.
83
- - Report `get_studio` as a real tool error (not a disguised success result)
84
- when neither `id` nor `name` is given.
85
- - Send the logged-in user's token on read tools (get_media, search_media,
86
- get_user_profile, get_user_list, etc.) when one is configured, so
87
- viewer-relative fields (`isFavourite`, `isFollowing`, `isFollower`) and the
88
- caller's own private list entries resolve correctly instead of always
89
- looking logged-out.
90
- - Generate and verify an OAuth `state` value in `login_anilist`, rejecting a
91
- callback/redirect that doesn't match the login attempt that started it —
92
- and don't clear that check prematurely if the token exchange itself fails.
93
- - Disable retries on the OAuth token exchange, since an authorization code is
94
- single-use and a retry would just replay an already-consumed code; report a
95
- clear "run login_anilist again" message on a rejected code instead of a
96
- generic "bad request" one.
97
- - Convert `add_list_entry`/`update_list_entry`'s `score` to AniList's raw
98
- 0-100 scale before sending, instead of assuming every account's configured
99
- `scoreFormat` is 0-10 — previously a non-decimal-10 account would have its
100
- score silently written on the wrong scale.
101
- - Order `advancedScores` against the account's actual configured
102
- advanced-scoring categories for the entry's real anime/manga type (fetched
103
- live, uncached) and convert it to AniList's raw 0-100 scale, instead of
104
- sending it in the input object's own key order on a 0-10 scale — previously
105
- every write was silently off by 10x, and an account with overlapping
106
- anime/manga category names could have a score filed under the wrong
107
- category entirely.
53
+ - Fix `seasonal_overview` to only filter by `RELEASING` for the current season, not an explicit past/future one.
54
+ - Have `catch_up_activity` check both the anime AND manga list groups, not just anime.
55
+ - Never cache `get_notifications`, since its `resetNotificationCount` side effect and result must always be fresh.
56
+ - Classify `add_list_entry`/`update_list_entry`'s advancedScores validation failures as a `bad_request` tool error instead of an unclassified one.
57
+ - Surface a gated tool's actual login guidance instead of a generic "credentials rejected" message.
58
+ - Return the actual saved/deleted data from every mutation tool, instead of the raw GraphQL response envelope.
59
+ - Reject `remove_list_entry`/`delete_activity`/`delete_thread` when AniList reports `deleted: false`, instead of a false success.
60
+ - Reject `get_user_activity`/`catch_up_activity` with a clear error when the given username doesn't resolve, instead of silently returning the global feed.
61
+ - Report `get_studio` as a real tool error, not a disguised success, when neither `id` nor `name` is given.
62
+ - Send the logged-in user's token on read tools when configured, so viewer-relative fields (`isFavourite`, `isFollowing`, `isFollower`) resolve correctly.
63
+ - Verify the OAuth `state` value in `login_anilist`, rejecting a mismatched callback.
64
+ - Disable retries on the OAuth token exchange, since an authorization code is single-use.
65
+ - Convert `add_list_entry`/`update_list_entry`'s `score` to AniList's raw 0-100 scale, instead of assuming a 0-10 `scoreFormat`.
66
+ - Order `advancedScores` against the account's real configured categories for the entry's actual media type, instead of guessing from key overlap.
package/README.md CHANGED
@@ -96,28 +96,17 @@ enable the personal-list/social tools (see
96
96
  [Connect your AniList account](#connect-your-anilist-account)). Leave them
97
97
  blank to use just the credential-free read tools.
98
98
 
99
- ### From source
100
-
101
- ```sh
102
- git clone https://github.com/Grinv/anilist-mcp-server
103
- cd anilist-mcp-server
104
- npm ci
105
- npm run build
106
- ```
107
-
108
- This produces a self-contained `dist/index.js`. Point your client at it (see below).
109
-
110
- ## Connect it to an MCP client
99
+ ### Via npx (no install)
111
100
 
112
- Add the server to your client's MCP config (Claude Desktop/Code, Cursor, VS Code,
113
- Cline, …):
101
+ Published on npm as [`anilist-mcp-server`](https://www.npmjs.com/package/anilist-mcp-server).
102
+ Add it to your client's MCP config (Claude Desktop/Code, Cursor, VS Code, Cline, …):
114
103
 
115
104
  ```json
116
105
  {
117
106
  "mcpServers": {
118
107
  "anilist": {
119
- "command": "node",
120
- "args": ["/absolute/path/to/anilist-mcp-server/dist/index.js"],
108
+ "command": "npx",
109
+ "args": ["-y", "anilist-mcp-server"],
121
110
  "env": {
122
111
  "ANILIST_CLIENT_ID": "...",
123
112
  "ANILIST_CLIENT_SECRET": "..."
@@ -130,10 +119,25 @@ Cline, …):
130
119
  Or with the Claude Code CLI:
131
120
 
132
121
  ```sh
133
- claude mcp add anilist -e ANILIST_CLIENT_ID=... -e ANILIST_CLIENT_SECRET=... -- node /absolute/path/to/anilist-mcp-server/dist/index.js
122
+ claude mcp add anilist -e ANILIST_CLIENT_ID=... -e ANILIST_CLIENT_SECRET=... -- npx -y anilist-mcp-server
134
123
  ```
135
124
 
136
- The `env` block is **optional** — omit it to use only the credential-free read
125
+ ### From source
126
+
127
+ ```sh
128
+ git clone https://github.com/Grinv/anilist-mcp-server
129
+ cd anilist-mcp-server
130
+ npm ci
131
+ npm run build
132
+ ```
133
+
134
+ This produces a self-contained `dist/index.js`. Point your client at it the same
135
+ way as above, swapping `"command": "npx", "args": ["-y", "anilist-mcp-server"]`
136
+ for `"command": "node", "args": ["/absolute/path/to/anilist-mcp-server/dist/index.js"]`
137
+ (and `npx -y anilist-mcp-server` for `node /absolute/path/to/anilist-mcp-server/dist/index.js`
138
+ in the CLI form).
139
+
140
+ The `env` block (shown above for both install methods) is **optional** — omit it to use only the credential-free read
137
141
  tools; the personal/mutation tools will return a clear error until you log in.
138
142
  To enable them, set `ANILIST_CLIENT_ID` + `ANILIST_CLIENT_SECRET` and run the
139
143
  **`login_anilist`** tool once (a one-time browser authorization; the token is
@@ -245,6 +249,7 @@ To be notified of new versions, click **Watch → Releases** on GitHub.
245
249
  - **`.mcpb` bundle:** download the new `anilist-mcp-server.mcpb` from the
246
250
  [releases page](https://github.com/Grinv/anilist-mcp-server/releases) and
247
251
  reinstall it in your client (it replaces the old version).
252
+ - **npx:** unpinned `npx -y anilist-mcp-server` fetches the latest on the next run.
248
253
  - **From source:** `git pull && npm ci && npm run build`.
249
254
 
250
255
  See the [CHANGELOG](CHANGELOG.md) for what changed in each release.