redditapis-mcp 0.1.9 → 0.1.10
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 +16 -3
- package/package.json +1 -1
- package/src/tools.js +22 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.10
|
|
4
|
+
- Three new read tools for community DISCOVERY (all $0.002, one upstream read each):
|
|
5
|
+
- **`reddit_subreddits_popular`** (`GET /api/reddit/subreddits/popular`), browse
|
|
6
|
+
the most-subscribed, trending subreddits right now, no keyword needed.
|
|
7
|
+
- **`reddit_subreddits_new`** (`GET /api/reddit/subreddits/new`), browse the
|
|
8
|
+
newest subreddits, the communities most recently created.
|
|
9
|
+
- **`reddit_subreddits_default`** (`GET /api/reddit/subreddits/default`), browse
|
|
10
|
+
Reddit's default front-page set of subreddits.
|
|
11
|
+
- Each returns a `subreddits` list (same per-item shape as
|
|
12
|
+
`reddit_subreddit_about`) plus an `after` cursor, and takes only `after` +
|
|
13
|
+
`limit`. These BROWSE communities; `reddit_search_communities` SEARCHES by
|
|
14
|
+
keyword. Brings the published read-only tool count to 20.
|
|
15
|
+
|
|
3
16
|
## 0.1.9
|
|
4
17
|
- Two new read tools (both $0.002, one upstream read each):
|
|
5
|
-
- **`reddit_subreddit_rules`** (`GET /api/reddit/sub/{name}/rules`)
|
|
18
|
+
- **`reddit_subreddit_rules`** (`GET /api/reddit/sub/{name}/rules`), a
|
|
6
19
|
subreddit's posting rules: each rule's name, description, what it applies to
|
|
7
20
|
(posts, comments, or all), violation reason, priority, and creation date,
|
|
8
21
|
plus Reddit's site-wide rules. Check a community's rules before posting.
|
|
@@ -24,10 +37,10 @@
|
|
|
24
37
|
- **`reddit_user_submitted`** (`GET /api/reddit/user/{name}/submitted`) — a
|
|
25
38
|
user's submitted POSTS, the sibling of `reddit_user_comments`. Same post
|
|
26
39
|
shape as the subreddit listings.
|
|
27
|
-
- **`reddit_subreddit_comments`** (`GET /api/reddit/sub/{name}/comments`)
|
|
40
|
+
- **`reddit_subreddit_comments`** (`GET /api/reddit/sub/{name}/comments`), the
|
|
28
41
|
subreddit NEW-COMMENT stream (every new comment across a community, not one
|
|
29
42
|
post's thread). Same comment shape as `reddit_user_comments`.
|
|
30
|
-
- **`reddit_subreddit_about`** (`GET /api/reddit/sub/{name}/about`)
|
|
43
|
+
- **`reddit_subreddit_about`** (`GET /api/reddit/sub/{name}/about`), a
|
|
31
44
|
subreddit's public metadata (title, public description, subscriber count,
|
|
32
45
|
active-user count, creation date, type, NSFW flag). Returns a single object.
|
|
33
46
|
- Brings the published read-only tool count to 15.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redditapis-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Official MCP server for redditapis.com, the Reddit API (subreddit listings, post + comment + community + user + media search, comment trees, top posts, user profiles) as native tools for Claude, Cursor, and any MCP client.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
package/src/tools.js
CHANGED
|
@@ -264,7 +264,7 @@ export const TOOLS = [
|
|
|
264
264
|
name: "reddit_subreddit_rules",
|
|
265
265
|
path: "/api/reddit/sub/{name}/rules",
|
|
266
266
|
description:
|
|
267
|
-
"Fetch a subreddit's posting rules by name (Reddit's /r/<name>/about/rules data). Returns a `rules` list
|
|
267
|
+
"Fetch a subreddit's posting rules by name (Reddit's /r/<name>/about/rules data). Returns a `rules` list, each with name, description, what it applies to (posts, comments, or all), violation reason, priority, and creation date, plus a `site_rules` list of Reddit's site-wide rules. Use it to check a community's rules before posting or commenting. Example: name='python'.",
|
|
268
268
|
shape: {
|
|
269
269
|
name: z.string().min(1).describe(
|
|
270
270
|
"Subreddit name WITHOUT the r/ prefix (e.g. 'python'). Required (path parameter).",
|
|
@@ -282,6 +282,27 @@ export const TOOLS = [
|
|
|
282
282
|
),
|
|
283
283
|
},
|
|
284
284
|
},
|
|
285
|
+
{
|
|
286
|
+
name: "reddit_subreddits_popular",
|
|
287
|
+
path: "/api/reddit/subreddits/popular",
|
|
288
|
+
description:
|
|
289
|
+
"Browse the most-subscribed, trending subreddits right now, no keyword needed. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. This BROWSES communities by popularity; use reddit_search_communities instead to SEARCH communities by keyword.",
|
|
290
|
+
shape: { ...AFTER, ...LIMIT },
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "reddit_subreddits_new",
|
|
294
|
+
path: "/api/reddit/subreddits/new",
|
|
295
|
+
description:
|
|
296
|
+
"Browse the newest subreddits, the communities most recently created, no keyword needed. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. This BROWSES communities by recency; use reddit_search_communities instead to SEARCH communities by keyword.",
|
|
297
|
+
shape: { ...AFTER, ...LIMIT },
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
name: "reddit_subreddits_default",
|
|
301
|
+
path: "/api/reddit/subreddits/default",
|
|
302
|
+
description:
|
|
303
|
+
"Browse Reddit's default front-page set of subreddits, no keyword needed. Returns a `subreddits` list (each with name, title, subscriber count, description, type, and NSFW flag) plus an `after` cursor for paging. This BROWSES the default communities; use reddit_search_communities instead to SEARCH communities by keyword.",
|
|
304
|
+
shape: { ...AFTER, ...LIMIT },
|
|
305
|
+
},
|
|
285
306
|
];
|
|
286
307
|
|
|
287
308
|
// Turn tool args into a URL query string. Skips undefined/null/empty values.
|