redditapis-mcp 0.17.0 → 0.19.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.19.0 (2026-11-07)
4
+
5
+ ### Gallery posts on media search
6
+
7
+ No new tools; one tool's `kind` gains a value.
8
+
9
+ - `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).
10
+
11
+ test/format-details.test.mjs checks `gallery` reaches the query string and `gif` is still accepted.
12
+
13
+ ## 0.18.0 (2026-11-07)
14
+
15
+ ### Self-post bodies on search, on request
16
+
17
+ No new tools; one tool gains an optional parameter.
18
+
19
+ - `reddit_search`: optional boolean `include_bodies`. `true` reads the self-post bodies (`text`, `is_self`) the search page left null, on up to 25 posts. Default `false`: the page as served, where bodies the free listing fill reached are present and the rest stay null. The description now says so, so a caller can tell a missing body from an empty one.
20
+
21
+ Needs the API release that accepts `include_bodies` on `GET /api/reddit/search` (live since 2026-11-06). test/format-details.test.mjs checks it reaches the query string, and is left out when absent.
22
+
3
23
  ## 0.17.0 (2026-11-06)
4
24
 
5
25
  ### Normalized comment trees, and list details on request
package/README.md CHANGED
@@ -117,10 +117,10 @@ A few conventions across the catalog:
117
117
 
118
118
  | Tool | Endpoint | What it does |
119
119
  |---|---|---|
120
- | `reddit_search` | `GET /api/reddit/search` | Search posts across all of Reddit or within one subreddit (`subreddit`). |
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`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redditapis-mcp",
3
- "version": "0.17.0",
3
+ "version": "0.19.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": {
package/src/tools.js CHANGED
@@ -273,7 +273,7 @@ export const TOOLS = [
273
273
  name: "reddit_search",
274
274
  path: "/api/reddit/search",
275
275
  description:
276
- "Searches Reddit posts across all of Reddit or within one subreddit. Returns matching posts with author, score, comments, permalink, and an `after` cursor. `subreddit` scopes the search to one community. Optional advanced filters narrow the results by minimum/maximum score, comment count, media type, and post flags, with an optional re-sort of the page. Filters apply to the returned page, so a filtered response carries a `meta` object with page-completeness counts, and the next page comes from `after`. SORT BEHAVIOUR, measured 2026-09-11: `top`, `new` and `comments` order the MATCHING set by score, date or comment count alone, and Reddit matches loosely (image OCR, comments, and the word 'reddit' is in almost every big post), so a generic multi-word query with sort='top' and no subreddit returns the site-wide viral listing, not the topic. Even a distinctive term is ranked by score alone (q='pgvector' sort='top': 1 of 5 results was about pgvector, the rest were large posts that mention it once). Best match then highest score comes from sort='relevance' with a large `limit`, where sort_type='score' re-orders that returned page (it does not reach past the page); a quoted phrase (q='\"rust vs go\"') or a `subreddit` scope also narrows the matching set. Example: q='rust vs go' sort='relevance' t='year' limit=100 sort_type='score'.",
276
+ "Searches Reddit posts across all of Reddit or within one subreddit. Returns matching posts with author, score, comments, permalink, and an `after` cursor. `subreddit` scopes the search to one community. Optional advanced filters narrow the results by minimum/maximum score, comment count, media type, and post flags, with an optional re-sort of the page. Filters apply to the returned page, so a filtered response carries a `meta` object with page-completeness counts, and the next page comes from `after`. SORT BEHAVIOUR, measured 2026-09-11: `top`, `new` and `comments` order the MATCHING set by score, date or comment count alone, and Reddit matches loosely (image OCR, comments, and the word 'reddit' is in almost every big post), so a generic multi-word query with sort='top' and no subreddit returns the site-wide viral listing, not the topic. Even a distinctive term is ranked by score alone (q='pgvector' sort='top': 1 of 5 results was about pgvector, the rest were large posts that mention it once). Best match then highest score comes from sort='relevance' with a large `limit`, where sort_type='score' re-orders that returned page (it does not reach past the page); a quoted phrase (q='\"rust vs go\"') or a `subreddit` scope also narrows the matching set. Search pages may leave `text` and `is_self` null on older self posts; `include_bodies=true` fills them on up to 25 posts. Example: q='rust vs go' sort='relevance' t='year' limit=100 sort_type='score'.",
277
277
  shape: {
278
278
  ...QUERY,
279
279
  subreddit: z.string().optional().describe(
@@ -296,6 +296,9 @@ export const TOOLS = [
296
296
  spoiler: z.boolean().optional().describe("Filters by the spoiler flag."),
297
297
  contest_mode: z.boolean().optional().describe("Filters by the contest_mode flag."),
298
298
  sort_type: z.enum(["score", "num_comments", "created"]).optional().describe("Re-sorts the filtered page (descending) by this field. Page-local: it re-orders only the posts this call returned, not the whole result set, so its reach is bounded by `limit`."),
299
+ include_bodies: z.boolean().optional().describe(
300
+ "true also reads the self-post bodies (`text`, `is_self`) the search page left null, on up to 25 posts, so the page answers slower. false or omitted (default) returns the page as served: bodies the free listing fill reached are present, the rest stay null; reading the post by id returns its body.",
301
+ ),
299
302
  },
300
303
  },
301
304
  {
@@ -385,11 +388,11 @@ export const TOOLS = [
385
388
  name: "reddit_search_media",
386
389
  path: "/api/reddit/search/media",
387
390
  description:
388
- "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'.",
389
392
  shape: {
390
393
  ...QUERY,
391
- kind: z.enum(["image", "video", "gif", "all"]).optional().describe(
392
- "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'.",
393
396
  ),
394
397
  ...SORT_SEARCH,
395
398
  ...TIME_SEARCH,