ani-mcp 0.8.2 → 0.8.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/dist/index.js CHANGED
@@ -21,7 +21,7 @@ if (!process.env.ANILIST_TOKEN) {
21
21
  }
22
22
  const server = new FastMCP({
23
23
  name: "ani-mcp",
24
- version: "0.8.2",
24
+ version: "0.8.3",
25
25
  });
26
26
  registerSearchTools(server);
27
27
  registerListTools(server);
package/dist/utils.js CHANGED
@@ -60,7 +60,13 @@ export function truncateDescription(text, maxLength = 500) {
60
60
  if (!text)
61
61
  return "No description available.";
62
62
  // AniList descriptions can contain HTML even with asHtml: false
63
- const clean = text.replace(/<br\s*\/?>/gi, "\n").replace(/<[^>]+>/g, "");
63
+ let clean = text.replace(/<br\s*\/?>/gi, "\n");
64
+ // Loop to handle nested fragments like <scr<script>ipt>
65
+ let prev = "";
66
+ while (prev !== clean) {
67
+ prev = clean;
68
+ clean = clean.replace(/<[^>]+>/g, "");
69
+ }
64
70
  if (clean.length <= maxLength)
65
71
  return clean;
66
72
  const truncated = clean.slice(0, maxLength);
package/manifest.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "manifest_version": "0.3",
3
3
  "name": "ani-mcp",
4
- "version": "0.8.2",
4
+ "version": "0.8.3",
5
5
  "display_name": "AniList MCP",
6
6
  "description": "A smart MCP server for AniList that gets your anime/manga taste - not just API calls.",
7
7
  "author": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ani-mcp",
3
3
  "mcpName": "io.github.gavxm/ani-mcp",
4
- "version": "0.8.2",
4
+ "version": "0.8.3",
5
5
  "description": "A smart [MCP](https://modelcontextprotocol.io) server for [AniList](https://anilist.co) that gets your anime/manga taste - not just API calls.",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/gavxm/ani-mcp",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.8.2",
9
+ "version": "0.8.3",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "ani-mcp",
14
- "version": "0.8.2",
14
+ "version": "0.8.3",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },