redditapis-mcp 0.18.0 → 0.20.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0 (2026-11-07)
4
+
5
+ ### Re-send dead-lettered webhook deliveries
6
+
7
+ One new tool.
8
+
9
+ - `reddit_monitor_webhook_redrive` (`POST /api/reddit/monitor/webhook/redrive`): re-sends a webhook's dead-lettered deliveries once the receiver is fixed. `dry_run: true` lists what would be re-sent without changing anything. Only endpoint failures are re-sent; deliveries dead because the target was removed, paused or refused are left alone. Bounded by `since_hours` (up to 720) and `limit` (up to 1000), oldest first. Free.
10
+
11
+ test/tools.test.mjs and test/smoke.mjs register it as a write tool.
12
+
13
+ ## 0.19.0 (2026-11-07)
14
+
15
+ ### Gallery posts on media search
16
+
17
+ No new tools; one tool's `kind` gains a value.
18
+
19
+ - `reddit_search_media`: `kind` now offers `gallery` (multi-image gallery posts), the kind the API has always accepted. Most multi-photo posts on Reddit are galleries, so `kind='image'` (single-image posts only) returned nothing for many photo searches and there was no way to ask for galleries. `gif` stays accepted for older callers and is described as what it does: the same as `all`. The description names the per-post `kind` field (image, video or gallery).
20
+
21
+ test/format-details.test.mjs checks `gallery` reaches the query string and `gif` is still accepted.
22
+
3
23
  ## 0.18.0 (2026-11-07)
4
24
 
5
25
  ### Self-post bodies on search, on request
package/README.md CHANGED
@@ -104,7 +104,7 @@ Authentication is a Bearer token: the server sends `Authorization: Bearer <REDDI
104
104
 
105
105
  ## Tools
106
106
 
107
- 60 tools and 3 playbook resources: 33 Reddit reads, 10 Reddit account tools (connect, status, disconnect, comment, submit, vote, DM, and schedule, list or cancel a post or comment for later), 10 monitor/webhook management tools, `reddit_set_watch` (one call that stands up a whole watch), `reddit_explain` (where the rows you are holding came from), 3 feedback tools, and 2 account tools (`reddit_account_me`, which is also where the credit balance lives, and `reddit_account_payments`, the top-up history). Reddit writes (commenting, posting, voting, DMs) act as YOUR Reddit account and only after you connect it with `reddit_connect`; each is marked as a write so your client asks before it runs. Monitor/webhook tools configure your OWN redditapis.com account (an alerting subscription), never Reddit itself, and the feedback tools send a report to the redditapis.com team, never to Reddit. Every read works with just your API key; the 6 monitor/webhook writes additionally need an active monitoring plan (see Monitoring below). The feedback tools are free and need only your key.
107
+ 61 tools and 3 playbook resources: 33 Reddit reads, 10 Reddit account tools (connect, status, disconnect, comment, submit, vote, DM, and schedule, list or cancel a post or comment for later), 11 monitor/webhook management tools, `reddit_set_watch` (one call that stands up a whole watch), `reddit_explain` (where the rows you are holding came from), 3 feedback tools, and 2 account tools (`reddit_account_me`, which is also where the credit balance lives, and `reddit_account_payments`, the top-up history). Reddit writes (commenting, posting, voting, DMs) act as YOUR Reddit account and only after you connect it with `reddit_connect`; each is marked as a write so your client asks before it runs. Monitor/webhook tools configure your OWN redditapis.com account (an alerting subscription), never Reddit itself, and the feedback tools send a report to the redditapis.com team, never to Reddit. Every read works with just your API key; the 6 monitor/webhook writes additionally need an active monitoring plan (see Monitoring below). The feedback tools are free and need only your key.
108
108
 
109
109
  A few conventions across the catalog:
110
110
 
@@ -120,7 +120,7 @@ A few conventions across the catalog:
120
120
  | `reddit_search` | `GET /api/reddit/search` | Search posts across all of Reddit or within one subreddit (`subreddit`). `include_bodies=true` fills self-post bodies the search page left null, on up to 25 posts. |
121
121
  | `reddit_search_comments` | `GET /api/reddit/search/comments` | Search by comment text; returns the parent posts, since Reddit's comment search does not hand back the matching comment itself. |
122
122
  | `reddit_deep_comment_search` | `GET /api/reddit/search/comments/deep` | Genuine comment search: returns the actual matching comment bodies (score, author, comment-deep permalink, parent post). `limit` sets how many parent posts to expand; `group_by="author"` switches to research mode (the distinct people talking about your query). Premium call. |
123
- | `reddit_search_media` | `GET /api/reddit/search/media` | Search posts filtered to media, narrowed by `kind` (`image`, `video`, `gif`, `all`). |
123
+ | `reddit_search_media` | `GET /api/reddit/search/media` | Search posts filtered to media, narrowed by `kind` (`image`, `video`, `gallery`, `all`; `gif` is kept and means `all`). Most multi-photo posts are galleries. |
124
124
  | `reddit_search_communities` | `GET /api/reddit/search/communities` | Find subreddits by name or topic (title, subscribers, description, NSFW flag). |
125
125
  | `reddit_search_users` | `GET /api/reddit/search/users` | Find redditors by name or keyword (username, karma, account age). `include_details: true` fills `link_karma`, `comment_karma` and `created` on up to the first 10 users. |
126
126
  | `reddit_ads_search` | `GET /api/reddit/ads/search` | Search the Reddit ads library: promoted posts with advertiser, title, landing page, call to action, media, every subreddit each ad appeared in, first and last seen dates and sightings. Filter by `q`, `advertiser`, `domain`, `subreddit`, `campaign_id`, `since` and `until`. Reddit's own house ads are excluded. Newest first; page with `cursor` (the previous response's `after`). Returns `ads`, `count`, `after` and `has_more`. Billed at the read rate, the same as `reddit_search`. |
@@ -186,6 +186,7 @@ Monitors watch **named subreddits or all of Reddit**, for **posts or comments**
186
186
  | `reddit_monitor_webhook_create` | `POST /api/reddit/monitor/webhook/create` | Register a delivery target (`webhook`/`slack`/`discord`). Returns a signing secret shown ONCE. |
187
187
  | `reddit_monitor_webhook_list` | `GET /api/reddit/monitor/webhook/list` | List your webhooks. Never returns the secret; a Slack or Discord URL comes back masked (`url_masked: true`). |
188
188
  | `reddit_monitor_webhook_test` | `POST /api/reddit/monitor/webhook/test` | Send a one-off test delivery to confirm a webhook is wired up correctly. |
189
+ | `reddit_monitor_webhook_redrive` | `POST /api/reddit/monitor/webhook/redrive` | Re-send a webhook's dead-lettered deliveries once the endpoint is fixed (`dry_run` lists them first). Free. |
189
190
  | `reddit_monitor_webhook_delete` | `POST /api/reddit/monitor/webhook/delete` | Permanently delete a webhook. Does not cascade-pause monitors still pointing at it. |
190
191
 
191
192
  #### `reddit_set_watch` refuses rather than guesses
@@ -368,7 +369,7 @@ npm start # run the stdio server (needs REDDITAPIS_KEY)
368
369
 
369
370
  **What does it cost?** $0.0015 per read pay as you go, or a monthly read plan from $19 for 30,000 reads; every account gets 1,000 free reads a month, plus $0.50 of free credit at signup and no card. Monitors need a monitoring plan, which has no free tier.
370
371
 
371
- **Can it post, comment or vote?** Yes, after you connect your Reddit account once with `reddit_connect` (your session is stored encrypted on our side and never travels in later calls). `reddit_comment`, `reddit_submit`, `reddit_vote` and `reddit_dm` then act as that account, and each is marked as a write so your client asks before it runs. `reddit_disconnect` deletes the stored session. Of the other tools, the 10 monitor/webhook tools manage your OWN redditapis.com monitors and webhooks (a write, but never a write to Reddit itself), `reddit_set_watch` sets up a whole watch in one call, `reddit_explain` says where the rows you hold came from, the 3 feedback tools send or read a report to the redditapis.com team, and `reddit_account_me` and `reddit_account_payments` read your own balance, plan and top-up history.
372
+ **Can it post, comment or vote?** Yes, after you connect your Reddit account once with `reddit_connect` (your session is stored encrypted on our side and never travels in later calls). `reddit_comment`, `reddit_submit`, `reddit_vote` and `reddit_dm` then act as that account, and each is marked as a write so your client asks before it runs. `reddit_disconnect` deletes the stored session. Of the other tools, the 11 monitor/webhook tools manage your OWN redditapis.com monitors and webhooks (a write, but never a write to Reddit itself), `reddit_set_watch` sets up a whole watch in one call, `reddit_explain` says where the rows you hold came from, the 3 feedback tools send or read a report to the redditapis.com team, and `reddit_account_me` and `reddit_account_payments` read your own balance, plan and top-up history.
372
373
 
373
374
  **Which clients are supported?** Claude Desktop, Claude Code, Cursor, Windsurf, and VS Code (Copilot agent mode), or any Model Context Protocol client.
374
375
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redditapis-mcp",
3
- "version": "0.18.0",
3
+ "version": "0.20.0",
4
4
  "mcpName": "io.github.redditapis/redditapis-mcp",
5
5
  "description": "Official MCP server for redditapis.com. Search Reddit posts, comments, communities, users and media; read subreddits, comment trees and profiles; search the Reddit ads library; manage monitors and webhooks. Works with Claude, Cursor and any MCP client.",
6
6
  "repository": {
@@ -81,6 +81,7 @@ export const TOOL_ANNOTATIONS = {
81
81
  reddit_monitor_remove: { title: "Delete Monitor", readOnly: false, destructive: true, idempotent: true, openWorld: false },
82
82
  reddit_monitor_webhook_create: { title: "Create Webhook", readOnly: false, destructive: false, idempotent: false, openWorld: false },
83
83
  reddit_monitor_webhook_test: { title: "Send Webhook Test", readOnly: false, destructive: false, idempotent: false, openWorld: true },
84
+ reddit_monitor_webhook_redrive: { title: "Redrive Dead Webhook Deliveries", readOnly: false, destructive: false, idempotent: false, openWorld: true },
84
85
  reddit_monitor_webhook_delete: { title: "Delete Webhook", readOnly: false, destructive: true, idempotent: true, openWorld: false },
85
86
  reddit_feedback_send: { title: "Send Feedback Report", readOnly: false, destructive: true, idempotent: false, openWorld: false },
86
87
  reddit_set_watch: { title: "Create Watch", readOnly: false, destructive: false, idempotent: false, openWorld: true },
package/src/tools.js CHANGED
@@ -388,11 +388,11 @@ export const TOOLS = [
388
388
  name: "reddit_search_media",
389
389
  path: "/api/reddit/search/media",
390
390
  description:
391
- "Searches Reddit posts filtered to media (images, video, gifs). Returns media posts with the media URL/type, author, score, and the post url. `kind` narrows the results to one media type. Example: q='aurora borealis' kind='image'.",
391
+ "Searches Reddit posts filtered to media (single images, video, galleries). Returns media posts with the media URL, `kind` (image, video or gallery, resolved per post), author, score, and the post url. `kind` narrows the results to one media type; most multi-photo posts are galleries, so a photo search that returns few single images is often answered by kind='gallery' or kind='all'. Example: q='aurora borealis' kind='all'.",
392
392
  shape: {
393
393
  ...QUERY,
394
- kind: z.enum(["image", "video", "gif", "all"]).optional().describe(
395
- "Media type filter. 'image', 'video', 'gif', or 'all' (default). Filters the raw Reddit results to that media kind.",
394
+ kind: z.enum(["image", "video", "gallery", "all", "gif"]).optional().describe(
395
+ "Media type filter. 'image' = single-image posts, 'video' = video posts, 'gallery' = multi-image gallery posts, 'all' (default) = any of the three. 'gif' is kept for older callers and returns the same as 'all'.",
396
396
  ),
397
397
  ...SORT_SEARCH,
398
398
  ...TIME_SEARCH,
@@ -791,6 +791,20 @@ export const TOOLS = [
791
791
  "Sends a one-off test delivery to a registered webhook (rate-limited to 10/min), confirming it is wired up correctly before a real match arrives. The test payload is formatted by the webhook's `kind`, the same way a real delivery would be. On failure the response carries `reason` and `status`, plus `hint`, a sentence naming the fix (most often that the target's `kind` does not match its host, which no test can succeed through), and `detail`, a bounded, sanitised copy of what the destination itself replied. `hint` carries the remedy; a bare `reason` such as `http_error` with a 400 names no field, no value and no remedy. Returns 404 `webhook_not_found` if the id does not exist or is not on this account, or `webhook_url_rejected` if the URL fails re-validation (e.g. now resolves to a private address).",
792
792
  shape: { ...WEBHOOK_ID },
793
793
  },
794
+ {
795
+ name: "reddit_monitor_webhook_redrive",
796
+ path: "/api/reddit/monitor/webhook/redrive",
797
+ method: "POST",
798
+ write: true,
799
+ description:
800
+ "Re-sends a webhook's dead-lettered deliveries, once the receiving endpoint can take them (for example after a schema fix on the receiver). With `dry_run: true` it answers `selected`, `delivery_ids`, `oldest_at` and `newest_at` and changes nothing. Only endpoint failures are re-sent (an HTTP error other than 410, a network error, a timeout, retries exhausted); deliveries dead because the target was removed, paused or its URL was refused are counted in `skipped_permanent` and left alone. Oldest first, within `since_hours` (default 24, up to 720) and `limit` (default 100, up to 1000); a further call takes the rest. Post fields that were null when matched (`text`, `is_self`, `locked`, `archived`, `upvote_ratio`) may be filled from Reddit on the way out, up to 25 posts per delivery pass; any still unknown stay null. Re-sent deliveries go out within about a minute and show in the monitor's delivery list. Rate-limited to 10/min, shared with the webhook test delivery. Returns 404 `webhook_not_found` if the id is not on this account, and 409 `webhook_paused` when re-sending to a paused target (a dry run still answers). Free.",
801
+ shape: {
802
+ ...WEBHOOK_ID,
803
+ since_hours: z.number().int().min(1).max(720).optional().describe("How far back to look, in hours (1 to 720). Default 24."),
804
+ limit: z.number().int().min(1).max(1000).optional().describe("Most deliveries to re-send in this call (1 to 1000). Default 100, oldest first."),
805
+ dry_run: z.boolean().optional().describe("true lists what would be re-sent and changes nothing."),
806
+ },
807
+ },
794
808
  {
795
809
  name: "reddit_monitor_webhook_delete",
796
810
  path: "/api/reddit/monitor/webhook/delete",