feat: update version to 1.1.0 and add new tools for blog, API keys, and sessions
CI / Build & Test (push) Successful in 36s

This commit is contained in:
Space-Banane
2026-06-18 16:49:16 +02:00
parent 4b1ab53543
commit fa43346e51
11 changed files with 448 additions and 35 deletions
+18
View File
@@ -137,4 +137,22 @@ export function registerModerationTools(server: McpServer, client: BetterNewsCli
return JSON.stringify(data, null, 2);
}),
);
server.tool(
"list_mod_comments",
"List all comments across the platform with moderation details (like/dislike counts, hidden status). Requires Mod/Admin role and mod:queue scope.",
{
page: z.number().int().positive().optional().describe("Page number (default 1)"),
limit: z.number().int().min(1).max(50).optional().describe("Items per page (default 20, max 50)"),
hidden: z.boolean().optional().describe("Filter by hidden status. Omit to see all."),
sort: z
.enum(["top", "most_disliked", "new", "oldest"])
.optional()
.describe("Sort order: top = most liked, most_disliked, new (default), oldest"),
},
handleTool(async (args) => {
const data = await client.get<unknown>("/api/mod/comments", args);
return JSON.stringify(data, null, 2);
}),
);
}