redditapis-mcp 0.20.2 → 0.20.4

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,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.4 (2026-11-18)
4
+
5
+ No new tools; one new input.
6
+
7
+ - `reddit_search`: optional `match` (`exact` | `any`). `exact` keeps only posts whose title or body contains `q` as a whole word or phrase, case-insensitive (surrounding quotes on `q` are ignored), for a brand that Reddit's own search splits and matches loosely. It reads the self-post bodies the page left null to test them, so it answers slower, like `include_bodies`. `any` or omitted keeps Reddit's matching unchanged.
8
+
9
+ Needs the API release that accepts `match` on `GET /api/reddit/search`. test/format-details.test.mjs checks it reaches the query string, and is left out when absent.
10
+
11
+ ## 0.20.3 (2026-11-12)
12
+
13
+ No new tools; description updates.
14
+
15
+ - `reddit_subreddit_about` and `reddit_search_communities` describe the new `weekly_visitors` and `weekly_contributions` fields (the counters Reddit shows in place of the member count). `subscribers` may be null where Reddit does not show it. Needs the API release of 2026-11-12.
16
+ - `reddit_subreddits_popular`, `_new` and `_default` say the weekly fields are null on those lists.
17
+
3
18
  ## 0.20.2 (2026-11-10)
4
19
 
5
20
  No new tools; one new input and description fixes.
package/README.md CHANGED
@@ -117,7 +117,7 @@ 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`). `include_bodies=true` fills self-post bodies the search page left null, on up to 25 posts. |
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. `match=exact` keeps only posts whose title or body carries `q` as a whole word or phrase. |
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
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. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redditapis-mcp",
3
- "version": "0.20.2",
3
+ "version": "0.20.4",
4
4
  "mcpName": "io.github.redditapis/redditapis-mcp",
5
5
  "description": "Reddit API as 61 MCP tools for Claude, Cursor and any MCP client: search, subreddits, posts, comments, users, media, monitors with webhooks, account writes (post, comment, vote, DM) and feedback. Hosted server at api.redditapis.com/mcp.",
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. 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'.",
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. match='exact' keeps only posts whose title or body carries `q` as a whole word or phrase (case-insensitive), for a brand Reddit splits loosely (e.g. a CamelCase name). 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
+ match: z.enum(["exact", "any"]).optional().describe(
300
+ "exact keeps only posts whose title or body contains `q` as a whole word or phrase, case-insensitive (surrounding quotes on `q` are ignored); it reads the self-post bodies the page left null to test them, so it answers slower, like include_bodies. any or omitted (default) returns Reddit's own loose matching. Applies to the returned page; the response `meta` counts how many were kept.",
301
+ ),
299
302
  include_bodies: z.boolean().optional().describe(
300
303
  "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
304
  ),
@@ -349,7 +352,7 @@ export const TOOLS = [
349
352
  name: "reddit_search_communities",
350
353
  path: "/api/reddit/search/communities",
351
354
  description:
352
- "Searches for subreddits (communities) by name or topic. Returns matching subreddits with title, subscriber count, description, and NSFW flag. Example: q='machine learning'.",
355
+ "Searches for subreddits (communities) by name or topic. Returns matching subreddits with title, weekly visitors and weekly contributions (Reddit no longer shows signed-out readers a subscriber count, so subscribers may be null), description, and NSFW flag. Example: q='machine learning'.",
353
356
  shape: { ...QUERY, ...AFTER, ...NSFW, ...LIMIT },
354
357
  },
355
358
  {
@@ -590,7 +593,7 @@ export const TOOLS = [
590
593
  name: "reddit_subreddit_about",
591
594
  path: "/api/reddit/sub/{name}/about",
592
595
  description:
593
- "Fetches a subreddit's public metadata by name (Reddit's /r/<name>/about data). Returns the subreddit's title, public description, subscriber count, active-user count, creation timestamp, type, and NSFW flag. Example: name='python'.",
596
+ "Fetches a subreddit's public metadata by name (Reddit's /r/<name>/about data). Returns the subreddit's title, public description, weekly visitors, weekly contributions, subscriber count (null when Reddit does not show it), creation timestamp, type, and NSFW flag. Example: name='python'.",
594
597
  shape: {
595
598
  name: z.string().min(1).describe(
596
599
  "Subreddit name WITHOUT the r/ prefix (e.g. 'python'). Required (path parameter).",
@@ -666,21 +669,21 @@ export const TOOLS = [
666
669
  name: "reddit_subreddits_popular",
667
670
  path: "/api/reddit/subreddits/popular",
668
671
  description:
669
- "Browses the most-subscribed, trending subreddits right now, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
672
+ "Browses the most-subscribed, trending subreddits right now, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag; weekly_visitors and weekly_contributions are null on these lists (the single-subreddit read carries them)) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
670
673
  shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
671
674
  },
672
675
  {
673
676
  name: "reddit_subreddits_new",
674
677
  path: "/api/reddit/subreddits/new",
675
678
  description:
676
- "Browses the newest subreddits, the communities most recently created, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
679
+ "Browses the newest subreddits, the communities most recently created, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag; weekly_visitors and weekly_contributions are null on these lists (the single-subreddit read carries them)) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
677
680
  shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
678
681
  },
679
682
  {
680
683
  name: "reddit_subreddits_default",
681
684
  path: "/api/reddit/subreddits/default",
682
685
  description:
683
- "Browses Reddit's default front-page set of subreddits, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
686
+ "Browses Reddit's default front-page set of subreddits, with no keyword. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag; weekly_visitors and weekly_contributions are null on these lists (the single-subreddit read carries them)) plus an `after` cursor for paging. `include_details=true` fills `created` on up to the first 10 subreddits; otherwise `meta.unavailable_fields` names any field the page left null.",
684
687
  shape: { ...AFTER, ...LIMIT, ...includeDetails("created") },
685
688
  },
686
689