feat: update version to 1.1.0 and add new tools for blog, API keys, and sessions
CI / Build & Test (push) Successful in 36s
CI / Build & Test (push) Successful in 36s
This commit is contained in:
@@ -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);
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user