feedkeeper 0.36.4 → 0.36.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feedkeeper",
3
- "version": "0.36.4",
3
+ "version": "0.36.5",
4
4
  "description": "A lightweight, self-hosted RSS reader and remote MCP server for your news, blogs, and AI workflows.",
5
5
  "keywords": [
6
6
  "rss",
@@ -46,9 +46,46 @@ export function createMcpServerForUser(userId, scope) {
46
46
  "and read or publish curated newspaper editions.",
47
47
  });
48
48
  const mcpUrlSchema = z.preprocess((val) => (typeof val === "string" ? normalizeUrlCandidate(val) : val), z.string().url());
49
+ const readOnlyAnnotations = {
50
+ readOnlyHint: true,
51
+ destructiveHint: false,
52
+ idempotentHint: true,
53
+ openWorldHint: false,
54
+ };
55
+ const readOnlyOpenWorldAnnotations = {
56
+ readOnlyHint: true,
57
+ destructiveHint: false,
58
+ idempotentHint: true,
59
+ openWorldHint: true,
60
+ };
61
+ const writeAdditiveAnnotations = {
62
+ readOnlyHint: false,
63
+ destructiveHint: false,
64
+ idempotentHint: false,
65
+ openWorldHint: false,
66
+ };
67
+ const writeAdditiveIdempotentAnnotations = {
68
+ readOnlyHint: false,
69
+ destructiveHint: false,
70
+ idempotentHint: true,
71
+ openWorldHint: false,
72
+ };
73
+ const writeOpenWorldAnnotations = {
74
+ readOnlyHint: false,
75
+ destructiveHint: false,
76
+ idempotentHint: false,
77
+ openWorldHint: true,
78
+ };
79
+ const writeDestructiveAnnotations = {
80
+ readOnlyHint: false,
81
+ destructiveHint: true,
82
+ idempotentHint: true,
83
+ openWorldHint: false,
84
+ };
49
85
  server.registerTool("list_feeds", {
50
86
  title: "List subscribed feeds",
51
87
  description: "Lists all RSS/Atom feeds the current user is subscribed to, including subscription settings, unread counts, and polling health status. Safe read-only operation. To inspect a single feed in detail, use get_feed. To discover new feeds, use discover_feeds.",
88
+ annotations: readOnlyAnnotations,
52
89
  inputSchema: {
53
90
  onlyWithErrors: z.boolean().optional().describe("When true, only returns feeds whose last poll failed or that have consecutive errors"),
54
91
  },
@@ -59,6 +96,7 @@ export function createMcpServerForUser(userId, scope) {
59
96
  server.registerTool("get_feed", {
60
97
  title: "Get subscribed feed details",
61
98
  description: "Returns metadata, subscription settings, polling health status, and unread count for a single subscribed feed by its numeric feed ID. Safe read-only operation. Use list_feeds to view all subscribed feeds.",
99
+ annotations: readOnlyAnnotations,
62
100
  inputSchema: {
63
101
  feedId: z.number().int().positive().describe("The numeric ID of the subscribed feed to inspect"),
64
102
  },
@@ -71,7 +109,13 @@ export function createMcpServerForUser(userId, scope) {
71
109
  if (scope === "write")
72
110
  server.registerTool("subscribe_feed", {
73
111
  title: "Subscribe to a feed",
74
- description: "Subscribes the current user to an RSS/Atom feed URL or website URL (auto-discovering the feed link if a website URL is provided). Requires write scope. Idempotent: subscribing to an already subscribed feed returns the existing subscription. Returns the subscription record.",
112
+ description: "Subscribes the current user to an RSS/Atom feed URL or website URL (auto-discovering the feed link if a website URL is provided). Requires write scope. Idempotent: subscribing to an already subscribed feed returns the existing subscription. Returns the subscription record. For API documentation, see https://github.com/visualfusion/feedkeeper.",
113
+ annotations: {
114
+ readOnlyHint: false,
115
+ destructiveHint: false,
116
+ idempotentHint: true,
117
+ openWorldHint: true,
118
+ },
75
119
  inputSchema: {
76
120
  url: mcpUrlSchema.describe("The RSS/Atom feed URL or website URL to subscribe to"),
77
121
  label: z.string().max(200).optional().describe("Optional custom display name for this feed subscription"),
@@ -101,7 +145,8 @@ export function createMcpServerForUser(userId, scope) {
101
145
  });
102
146
  server.registerTool("discover_feeds", {
103
147
  title: "Discover feeds on a website",
104
- description: "Inspects a website URL and discovers available RSS, Atom, and JSON feed links from HTML link tags. Safe read-only operation: does NOT subscribe to any feed. Returns a list of discovered candidate feed URLs and titles. Use subscribe_feed to subscribe to one of the discovered URLs.",
148
+ description: "Inspects a website URL and discovers available RSS, Atom, and JSON feed links from HTML link tags. Safe read-only operation: does NOT subscribe to any feed. Returns a list of discovered candidate feed URLs and titles. Use subscribe_feed to subscribe to one of the discovered URLs. For API documentation, see https://github.com/visualfusion/feedkeeper.",
149
+ annotations: readOnlyOpenWorldAnnotations,
105
150
  inputSchema: {
106
151
  url: mcpUrlSchema.describe("The website URL to scan for available RSS/Atom feed links"),
107
152
  },
@@ -122,6 +167,7 @@ export function createMcpServerForUser(userId, scope) {
122
167
  server.registerTool("unsubscribe_feed", {
123
168
  title: "Unsubscribe from a feed",
124
169
  description: "Unsubscribes the current user from a feed by its feed ID. Destructive action. Feeds and other users' subscriptions are unaffected. Returns { ok: true } on success.",
170
+ annotations: writeDestructiveAnnotations,
125
171
  inputSchema: {
126
172
  feedId: z.number().int().positive().describe("The numeric ID of the feed to unsubscribe from"),
127
173
  },
@@ -137,7 +183,8 @@ export function createMcpServerForUser(userId, scope) {
137
183
  if (scope === "write")
138
184
  server.registerTool("save_to_inbox", {
139
185
  title: "Save article or clipping to Universal Inbox",
140
- description: "Saves a web article URL, raw HTML, plain text/markdown clipping, or personal note directly into the user's Universal Inbox. At least one of url, contentHtml, or textContent must be provided. Returns { success: true, itemId: number, title: string, url: string, hasNote: boolean }.",
186
+ description: "Saves a web article URL, raw HTML, plain text/markdown clipping, or personal note directly into the user's Universal Inbox. At least one of url, contentHtml, or textContent must be provided. Returns { success: true, itemId: number, title: string, url: string, hasNote: boolean }. For API documentation, see https://github.com/visualfusion/feedkeeper.",
187
+ annotations: writeOpenWorldAnnotations,
141
188
  inputSchema: {
142
189
  url: mcpUrlSchema.optional().describe("Web page URL to fetch, extract via Readability, and save"),
143
190
  title: z.string().max(500).optional().describe("Optional custom title for the saved inbox item"),
@@ -171,12 +218,14 @@ export function createMcpServerForUser(userId, scope) {
171
218
  server.registerTool("list_folders", {
172
219
  title: "List folders / categories",
173
220
  description: "Lists all feed categories/folders created by the current user, including feed counts and unread article counts per folder. Safe read-only operation.",
221
+ annotations: readOnlyAnnotations,
174
222
  inputSchema: {},
175
223
  }, async () => textResult(listFoldersForUser(userId)));
176
224
  if (scope === "write")
177
225
  server.registerTool("create_folder", {
178
226
  title: "Create a feed folder",
179
227
  description: "Creates a new category folder to organize feed subscriptions. Requires write scope. Returns the created folder object with its assigned id, name, and position. Folders can be assigned to feeds using move_feed_to_folder.",
228
+ annotations: writeAdditiveAnnotations,
180
229
  inputSchema: {
181
230
  name: z.string().trim().min(1).max(100).describe("The unique display name for the new folder (1 to 100 characters)"),
182
231
  },
@@ -185,6 +234,7 @@ export function createMcpServerForUser(userId, scope) {
185
234
  server.registerTool("move_feed_to_folder", {
186
235
  title: "Move feed to folder",
187
236
  description: "Assigns a subscribed feed to a folder, or removes it from all folders (unfiled) if folderId is null. Requires write scope. Returns { ok: true } on success.",
237
+ annotations: writeAdditiveIdempotentAnnotations,
188
238
  inputSchema: {
189
239
  feedId: z.number().int().positive().describe("The numeric ID of the subscribed feed to move"),
190
240
  folderId: z.number().int().positive().nullable().describe("The target folder ID, or null to move the feed to unfiled (root level)"),
@@ -200,7 +250,13 @@ export function createMcpServerForUser(userId, scope) {
200
250
  if (scope === "write")
201
251
  server.registerTool("update_feed", {
202
252
  title: "Update feed settings",
203
- description: "Updates subscription settings for a feed: custom display name, poll interval, full-text extraction policy, push notification preference, badge counter inclusion, or updates the feed URL if the publisher relocated. Returns the updated subscription record.",
253
+ description: "Updates subscription settings for a feed: custom display name, poll interval, full-text extraction policy, push notification preference, badge counter inclusion, or updates the feed URL if the publisher relocated. Returns the updated subscription record. For API documentation, see https://github.com/visualfusion/feedkeeper.",
254
+ annotations: {
255
+ readOnlyHint: false,
256
+ destructiveHint: false,
257
+ idempotentHint: true,
258
+ openWorldHint: true,
259
+ },
204
260
  inputSchema: {
205
261
  feedId: z.number().int().positive().describe("The numeric ID of the subscribed feed to update"),
206
262
  url: mcpUrlSchema.optional().describe("New feed URL or website URL if the feed moved (auto-discovered and validated)"),
@@ -241,6 +297,7 @@ export function createMcpServerForUser(userId, scope) {
241
297
  server.registerTool("rename_folder", {
242
298
  title: "Rename a feed folder",
243
299
  description: "Renames an existing feed category folder for the current user. Requires write scope. Returns the updated folder record { id, name, position }. Returns error if folderId is not found or name is already taken.",
300
+ annotations: writeAdditiveIdempotentAnnotations,
244
301
  inputSchema: {
245
302
  folderId: z.number().int().positive().describe("The numeric ID of the folder to rename"),
246
303
  name: z.string().trim().min(1).max(100).describe("The new unique display name for the folder (1 to 100 characters)"),
@@ -259,6 +316,7 @@ export function createMcpServerForUser(userId, scope) {
259
316
  server.registerTool("delete_folder", {
260
317
  title: "Delete a feed folder",
261
318
  description: "Deletes a feed category folder. Subscribed feeds inside the folder remain intact and are moved to the root level (unfiled). Destructive action for the folder organization. Returns { ok: true } on success.",
319
+ annotations: writeDestructiveAnnotations,
262
320
  inputSchema: {
263
321
  folderId: z.number().int().positive().describe("The numeric ID of the folder to delete"),
264
322
  },
@@ -271,6 +329,7 @@ export function createMcpServerForUser(userId, scope) {
271
329
  server.registerTool("get_digest", {
272
330
  title: "Digest of recent articles grouped by feed",
273
331
  description: "Returns recent articles grouped by subscribed feed with short summaries (newest first). This is the fastest and most token-efficient way to scan what is new. Defaults to unread articles. Do NOT use this tool for pagination, full text, or deep filtering—use list_items for cursor pagination or get_new_items for unread filtering, and follow up with get_item for full article bodies.",
332
+ annotations: readOnlyAnnotations,
274
333
  inputSchema: {
275
334
  feedId: z.number().int().positive().optional().describe("Optional feed ID to limit the digest to a single feed"),
276
335
  folderId: z.number().int().positive().optional().describe("Optional folder ID to limit the digest to feeds in that folder"),
@@ -284,11 +343,13 @@ export function createMcpServerForUser(userId, scope) {
284
343
  server.registerTool("get_overview", {
285
344
  title: "Account overview and reading statistics",
286
345
  description: "Returns account-wide statistics: total subscribed feeds, total unread articles, saved/bookmarked count, top feeds with the most unread items, folder unread counts, and feeds currently experiencing poll failures. Safe read-only overview.",
346
+ annotations: readOnlyAnnotations,
287
347
  inputSchema: {},
288
348
  }, async () => textResult(buildOverview(userId)));
289
349
  server.registerTool("get_new_items", {
290
350
  title: "List unread articles with optional filters",
291
351
  description: "Returns a flat list of unread articles matching specified filters (feed, folder, search query, bookmarked status, date range). Use this tool when you specifically need unread articles as a flat list or need article HTML content. Unlike get_digest, articles are flat rather than grouped. Unlike list_items, this tool returns only unread articles and does not use cursors. Follow up with get_item for individual full articles.",
352
+ annotations: readOnlyAnnotations,
292
353
  inputSchema: {
293
354
  feedId: z.number().int().positive().optional().describe("Optional feed ID filter"),
294
355
  folderId: z.number().int().positive().optional().describe("Optional folder ID filter"),
@@ -309,6 +370,7 @@ export function createMcpServerForUser(userId, scope) {
309
370
  server.registerTool("list_items", {
310
371
  title: "Paginate items chronologically with cursors",
311
372
  description: "Lists articles chronologically with bidirectional cursor-based pagination. Use this tool for comprehensive browsing or historical paging through both read and unread articles. Pass nextCursor as 'before' to page backwards into older history, or newestCursor as 'after' to stream newly added items. Do NOT use for quick digests (use get_digest) or unread-only triage (use get_new_items).",
373
+ annotations: readOnlyAnnotations,
312
374
  inputSchema: {
313
375
  feedId: z.number().int().positive().optional().describe("Optional feed ID filter"),
314
376
  folderId: z.number().int().positive().optional().describe("Optional folder ID filter"),
@@ -330,6 +392,7 @@ export function createMcpServerForUser(userId, scope) {
330
392
  server.registerTool("get_item", {
331
393
  title: "Get single article content and metadata",
332
394
  description: "Returns full metadata and stored content (HTML or plain text) for a single subscribed article by its numeric itemId. Content is chunked at 40,000 characters; use offset and content.revision to paginate large articles. If an article only has an RSS teaser/summary and full web text is desired, call fetch_full_text.",
395
+ annotations: readOnlyAnnotations,
333
396
  inputSchema: {
334
397
  itemId: z.number().int().positive().describe("The numeric ID of the article to retrieve"),
335
398
  maxChars: z.number().int().positive().max(40_000).optional().describe("Maximum character length of content to return (up to 40,000)"),
@@ -350,6 +413,12 @@ export function createMcpServerForUser(userId, scope) {
350
413
  server.registerTool("fetch_full_text", {
351
414
  title: "Extract full web article text",
352
415
  description: "Downloads and extracts the clean, full-length article text from the original publisher website via Readability, permanently caching it on the server and returning it. Use this tool ONLY when get_item indicates that the feed provided only an excerpt or teaser. If full text is already cached, it returns cached content unless force=true is passed.",
416
+ annotations: {
417
+ readOnlyHint: false,
418
+ destructiveHint: false,
419
+ idempotentHint: true,
420
+ openWorldHint: true,
421
+ },
353
422
  inputSchema: {
354
423
  itemId: z.number().int().positive().describe("The numeric ID of the article whose full web content should be extracted"),
355
424
  force: z.boolean().optional().describe("When true, forces re-downloading and re-extracting from the web even if already cached"),
@@ -371,6 +440,7 @@ export function createMcpServerForUser(userId, scope) {
371
440
  server.registerTool("search_items", {
372
441
  title: "Search articles by keyword or phrase",
373
442
  description: "Searches article titles and summaries using SQLite FTS5 full-text search across all accessible items. Returns matching articles matching the query phrase, with optional feed, folder, bookmark, and date filters. Safe read-only search.",
443
+ annotations: readOnlyAnnotations,
374
444
  inputSchema: {
375
445
  query: z.string().min(1).max(200).describe("The search term or phrase to find in article titles and content summaries"),
376
446
  feedId: z.number().int().positive().optional().describe("Optional feed ID filter"),
@@ -383,15 +453,15 @@ export function createMcpServerForUser(userId, scope) {
383
453
  search: query, feedId, folderId, bookmarkedOnly, limit, publishedSince: since, publishedUntil: until,
384
454
  })));
385
455
  const itemActions = [
386
- ["mark_read", "Mark articles as read", "Marks one or more subscribed articles as read. Accepts a single itemId or an array of itemIds for batch processing. Idempotent: already-read articles remain read. Returns { ok: true, updated: number } where updated is the count of items that actually transitioned from unread to read.", markItemRead],
387
- ["mark_unread", "Mark articles as unread", "Marks one or more subscribed articles as unread. Accepts a single itemId or an array of itemIds for batch processing. Idempotent. Returns { ok: true, updated: number } where updated is the count of items that actually transitioned to unread.", markItemUnread],
388
- ["bookmark_item", "Bookmark articles for later", "Bookmarks (stars) one or more articles for permanent retention. Bookmarked articles retain full text and images and survive automatic retention cleanup and feed unsubscription. Idempotent. Returns { ok: true, updated: number }.", (userId, itemId) => {
456
+ ["mark_read", "Mark articles as read", "Marks one or more subscribed articles as read. Accepts a single itemId or an array of itemIds for batch processing. Idempotent: already-read articles remain read. Returns { ok: true, updated: number } where updated is the count of items that actually transitioned from unread to read.", writeAdditiveIdempotentAnnotations, markItemRead],
457
+ ["mark_unread", "Mark articles as unread", "Marks one or more subscribed articles as unread. Accepts a single itemId or an array of itemIds for batch processing. Idempotent. Returns { ok: true, updated: number } where updated is the count of items that actually transitioned to unread.", writeAdditiveIdempotentAnnotations, markItemUnread],
458
+ ["bookmark_item", "Bookmark articles for later", "Bookmarks (stars) one or more articles for permanent retention. Bookmarked articles retain full text and images and survive automatic retention cleanup and feed unsubscription. Idempotent. Returns { ok: true, updated: number }.", writeAdditiveIdempotentAnnotations, (userId, itemId) => {
389
459
  const changed = bookmarkItem(userId, itemId);
390
460
  if (changed)
391
461
  scheduleArchive(itemId);
392
462
  return changed;
393
463
  }],
394
- ["unbookmark_item", "Remove article bookmarks", "Removes bookmark status from one or more articles. Safely triggers archive pruning for unreferenced cached assets. Idempotent. Returns { ok: true, updated: number }.", (userId, itemId) => {
464
+ ["unbookmark_item", "Remove article bookmarks", "Removes bookmark status from one or more articles. Safely triggers archive pruning for unreferenced cached assets. Idempotent. Returns { ok: true, updated: number }.", writeDestructiveAnnotations, (userId, itemId) => {
395
465
  const changed = unbookmarkItem(userId, itemId);
396
466
  if (changed)
397
467
  pruneArchive();
@@ -399,8 +469,8 @@ export function createMcpServerForUser(userId, scope) {
399
469
  }],
400
470
  ];
401
471
  if (scope === "write")
402
- for (const [name, title, description, change] of itemActions) {
403
- server.registerTool(name, { title, description, inputSchema: itemSelection }, async (args) => {
472
+ for (const [name, title, description, annotations, change] of itemActions) {
473
+ server.registerTool(name, { title, description, annotations, inputSchema: itemSelection }, async (args) => {
404
474
  if (!hasUserCapability(userId, "sync"))
405
475
  return { ...textResult(capabilityDenial(userId, "sync")), isError: true };
406
476
  const itemIds = selectedItemIds(args);
@@ -413,6 +483,7 @@ export function createMcpServerForUser(userId, scope) {
413
483
  server.registerTool("mark_all_read", {
414
484
  title: "Mark all articles as read",
415
485
  description: "Marks all unread articles as read in a single operation. Can be scoped to a single feed or an entire folder. Idempotent. Returns { marked: number } with the count of newly read items.",
486
+ annotations: writeDestructiveAnnotations,
416
487
  inputSchema: {
417
488
  feedId: z.number().int().positive().optional().describe("Optional feed ID to limit the mark-all-read operation to one feed"),
418
489
  folderId: z.number().int().positive().optional().describe("Optional folder ID to limit the mark-all-read operation to one folder"),
@@ -423,12 +494,14 @@ export function createMcpServerForUser(userId, scope) {
423
494
  server.registerTool("list_muted_keywords", {
424
495
  title: "List muted keywords",
425
496
  description: "Lists all keyword filters configured for the current user. Articles matching any active muted keyword are automatically filtered out from new item views and newspaper editions. Safe read-only.",
497
+ annotations: readOnlyAnnotations,
426
498
  inputSchema: {},
427
499
  }, async () => textResult(listMutedKeywords(userId)));
428
500
  if (scope === "write")
429
501
  server.registerTool("add_muted_keyword", {
430
502
  title: "Add a muted keyword filter",
431
503
  description: "Adds a new keyword filter rule. Articles whose title or summary contains this keyword (case-insensitive) will be suppressed from feeds and editions. Requires write scope. Returns the created keyword rule { id, keyword, created_at }.",
504
+ annotations: writeAdditiveAnnotations,
432
505
  inputSchema: {
433
506
  keyword: z.string().trim().min(1).max(100).describe("The keyword phrase to filter out from feeds and editions (1 to 100 characters)"),
434
507
  },
@@ -437,6 +510,7 @@ export function createMcpServerForUser(userId, scope) {
437
510
  server.registerTool("unmute_keyword", {
438
511
  title: "Remove a muted keyword filter",
439
512
  description: "Removes an existing muted keyword filter by its numeric keywordId. Future and existing articles matching this keyword will once again be visible. Returns { ok: true } on success.",
513
+ annotations: writeDestructiveAnnotations,
440
514
  inputSchema: {
441
515
  keywordId: z.number().int().positive().describe("The numeric ID of the muted keyword rule to remove"),
442
516
  },
@@ -447,12 +521,14 @@ export function createMcpServerForUser(userId, scope) {
447
521
  server.registerTool("export_opml", {
448
522
  title: "Export feeds as OPML XML",
449
523
  description: "Exports all subscribed feeds and folder structures of the current user as an OPML 2.0 XML document. Safe read-only operation.",
524
+ annotations: readOnlyAnnotations,
450
525
  inputSchema: {},
451
526
  }, async () => ({ content: [{ type: "text", text: generateOpml(userId) }] }));
452
527
  if (scope === "write")
453
528
  server.registerTool("import_opml", {
454
529
  title: "Import feeds from OPML XML",
455
530
  description: "Imports feed subscriptions and folders from an OPML 2.0 XML string for the current user. Existing subscriptions are preserved. Requires write scope. Returns { imported: number, failed: number, foldersCreated: number }.",
531
+ annotations: writeAdditiveAnnotations,
456
532
  inputSchema: {
457
533
  opml: z.string().min(1).describe("The OPML 2.0 XML document string to parse and import"),
458
534
  },
@@ -471,6 +547,12 @@ export function createMcpServerForUser(userId, scope) {
471
547
  server.registerTool("refresh_feed", {
472
548
  title: "Refresh feed poll",
473
549
  description: "Requests an immediate poll of a subscribed feed from its origin URL and returns its updated health status, number of new items found, and error state. Respects origin HTTP cache headers and backoff pauses. Returns { success: boolean, newItems: number, error: string | null, deferred: boolean, retryAt: string | null, feed: object }.",
550
+ annotations: {
551
+ readOnlyHint: false,
552
+ destructiveHint: false,
553
+ idempotentHint: false,
554
+ openWorldHint: true,
555
+ },
474
556
  inputSchema: {
475
557
  feedId: z.number().int().positive().describe("The numeric ID of the subscribed feed to refresh"),
476
558
  },
@@ -515,11 +597,13 @@ export function createMcpServerForUser(userId, scope) {
515
597
  server.registerTool("get_edition", {
516
598
  title: "Get current curated newspaper edition",
517
599
  description: "Returns the authoritative edition state, publication metadata, article list, and revision number for the user's curated newspaper edition ('Deine Zeitung'). Returns the current revision (even if empty, expired, or dismissed), which must be passed as expectedRevision when calling publish_edition. Safe read-only.",
600
+ annotations: readOnlyAnnotations,
518
601
  inputSchema: {},
519
602
  }, async () => textResult(getEditionState(userId)));
520
603
  server.registerTool("get_edition_candidates", {
521
604
  title: "Get candidate articles for newspaper curation",
522
605
  description: "Use this tool ONLY when preparing to curate a newspaper edition with publish_edition. Returns a bounded shortlist of unread articles from the last 7 days scored for editorial curation, user reading preferences, and current revision. Do NOT use for general reading or browsing (use get_digest or get_new_items instead).",
606
+ annotations: readOnlyAnnotations,
523
607
  inputSchema: {
524
608
  limit: z.number().int().min(1).max(200).default(100).describe("Maximum number of candidate articles to evaluate (1 to 200, default: 100)"),
525
609
  },
@@ -528,12 +612,14 @@ export function createMcpServerForUser(userId, scope) {
528
612
  server.registerTool("publish_edition", {
529
613
  title: "Publish curated newspaper edition",
530
614
  description: "Publishes an ordered selection of 1 to 24 article IDs as the user's official curated edition ('Deine Zeitung'). The published edition remains available until the next edition is published or expires. Pass the revision from get_edition as expectedRevision for optimistic concurrency, and a UUID requestId for idempotent retries. Does NOT alter underlying articles. Requires write scope.",
615
+ annotations: writeAdditiveIdempotentAnnotations,
531
616
  inputSchema: publishEditionFields,
532
617
  }, async (input) => capabilityAction("editions", () => publishCuratedEdition(userId, input)));
533
618
  if (scope === "write")
534
619
  server.registerTool("dismiss_edition", {
535
620
  title: "Dismiss the current newspaper edition",
536
621
  description: "Explicitly dismisses the current curated edition so it is no longer shown as active. Requires a UUID requestId and the current revision as expectedRevision for conflict detection. Requires write scope. Returns { ok: true } on success.",
622
+ annotations: writeDestructiveAnnotations,
537
623
  inputSchema: {
538
624
  requestId: z.uuid().describe("Unique idempotency UUID for this dismiss operation"),
539
625
  expectedRevision: z.number().int().min(0).describe("The current edition revision number obtained from get_edition"),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedkeeper/server",
3
- "version": "0.36.4",
3
+ "version": "0.36.5",
4
4
  "private": true,
5
5
  "type": "module"
6
6
  }