feedkeeper 0.36.0 → 0.36.1
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/package.json +1 -1
- package/server/dist/mcp/server.js +5 -28
- package/server/package.json +1 -1
package/package.json
CHANGED
|
@@ -12,8 +12,6 @@ import { SsrfBlockedError, normalizeUrlCandidate } from "../feeds/ssrfGuard.js";
|
|
|
12
12
|
import { generateOpml, importOpmlFeeds } from "../feeds/opml.js";
|
|
13
13
|
import { pollFeed } from "../feeds/poller.js";
|
|
14
14
|
import { discoverFeeds } from "../feeds/discovery.js";
|
|
15
|
-
import { findUserById } from "../auth/users.js";
|
|
16
|
-
import { getDatabaseStats, runCleanup } from "../feeds/cleanup.js";
|
|
17
15
|
import { APP_VERSION } from "../version.js";
|
|
18
16
|
import { dismissEdition, editionCandidates, ensureEditionSchema, getEdition, getEditionState, publishCuratedEdition, publishEditionFields } from "../native/editions.js";
|
|
19
17
|
import { getNativePreferences, patchNativePreferences, preferencePatchSchema } from "../native/preferences.js";
|
|
@@ -111,7 +109,7 @@ export function createMcpServerForUser(userId, scope) {
|
|
|
111
109
|
if (scope === "write")
|
|
112
110
|
server.registerTool("unsubscribe_feed", {
|
|
113
111
|
title: "Unsubscribe from a feed",
|
|
114
|
-
description: "
|
|
112
|
+
description: "Unsubscribes the current user from a feed. Feeds and other users' subscriptions are unaffected.",
|
|
115
113
|
inputSchema: { feedId: z.number().int().positive() },
|
|
116
114
|
}, async ({ feedId }) => {
|
|
117
115
|
try {
|
|
@@ -241,7 +239,7 @@ export function createMcpServerForUser(userId, scope) {
|
|
|
241
239
|
if (scope === "write")
|
|
242
240
|
server.registerTool("delete_folder", {
|
|
243
241
|
title: "Delete folder",
|
|
244
|
-
description: "Deletes a folder. Its feeds
|
|
242
|
+
description: "Deletes a folder category. Its subscribed feeds remain intact and are moved to the root level (unfiled).",
|
|
245
243
|
inputSchema: { folderId: z.number().int().positive() },
|
|
246
244
|
}, async ({ folderId }) => {
|
|
247
245
|
if (!findFolderById(userId, folderId))
|
|
@@ -414,9 +412,9 @@ export function createMcpServerForUser(userId, scope) {
|
|
|
414
412
|
inputSchema: { keyword: z.string().min(1).max(100) },
|
|
415
413
|
}, async ({ keyword }) => textResult(addMutedKeyword(userId, keyword)));
|
|
416
414
|
if (scope === "write")
|
|
417
|
-
server.registerTool("
|
|
418
|
-
title: "
|
|
419
|
-
description: "Unmutes a keyword by its ID.",
|
|
415
|
+
server.registerTool("unmute_keyword", {
|
|
416
|
+
title: "Unmute keyword",
|
|
417
|
+
description: "Unmutes a previously muted keyword by its ID (removes the keyword filter rule).",
|
|
420
418
|
inputSchema: { keywordId: z.number().int().positive() },
|
|
421
419
|
}, async ({ keywordId }) => {
|
|
422
420
|
removeMutedKeyword(userId, keywordId);
|
|
@@ -538,27 +536,6 @@ export function createMcpServerForUser(userId, scope) {
|
|
|
538
536
|
description: "Explicitly dismisses the current edition, including curated issues, using a revision and stable UUID requestId. Automatic scheduling waits until the next time slot; generate_edition with force=true can start a new issue immediately.",
|
|
539
537
|
inputSchema: { requestId: z.uuid(), expectedRevision: z.number().int().min(0) },
|
|
540
538
|
}, async (input) => editionAction(() => dismissEdition(userId, input)));
|
|
541
|
-
const currentUser = findUserById(userId);
|
|
542
|
-
if (scope === "write" && currentUser?.role === "admin") {
|
|
543
|
-
server.registerTool("cleanup_database", {
|
|
544
|
-
title: "Clean up database and retention",
|
|
545
|
-
description: "Admin tool: runs item retention cleanup and VACUUM to purge old/read items and reclaim disk space.",
|
|
546
|
-
inputSchema: {
|
|
547
|
-
retentionReadDays: z.number().int().min(0).optional().describe("Override read items retention in days"),
|
|
548
|
-
retentionMaxDays: z.number().int().min(0).optional().describe("Override total item age retention in days"),
|
|
549
|
-
retentionMaxItemsPerFeed: z.number().int().min(0).optional().describe("Override maximum items per feed cap"),
|
|
550
|
-
},
|
|
551
|
-
}, async (args) => {
|
|
552
|
-
try {
|
|
553
|
-
const result = runCleanup(args);
|
|
554
|
-
const stats = getDatabaseStats();
|
|
555
|
-
return textResult({ result, stats });
|
|
556
|
-
}
|
|
557
|
-
catch (error) {
|
|
558
|
-
return errorResult(error instanceof Error ? error.message : String(error));
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
539
|
registerPromptsAndResources(server, userId, scope);
|
|
563
540
|
return server;
|
|
564
541
|
}
|