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 +1 -1
- package/dist/utils.js +7 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/index.js
CHANGED
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
|
-
|
|
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
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.
|
|
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.
|
|
9
|
+
"version": "0.8.3",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "ani-mcp",
|
|
14
|
-
"version": "0.8.
|
|
14
|
+
"version": "0.8.3",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|