redditapis-mcp 0.1.8 → 0.1.9
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 +11 -0
- package/package.json +1 -1
- package/src/tools.js +22 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.9
|
|
4
|
+
- Two new read tools (both $0.002, one upstream read each):
|
|
5
|
+
- **`reddit_subreddit_rules`** (`GET /api/reddit/sub/{name}/rules`) — a
|
|
6
|
+
subreddit's posting rules: each rule's name, description, what it applies to
|
|
7
|
+
(posts, comments, or all), violation reason, priority, and creation date,
|
|
8
|
+
plus Reddit's site-wide rules. Check a community's rules before posting.
|
|
9
|
+
- **`reddit_by_id`** (`GET /api/reddit/by_id/{fullnames}`) — bulk-fetch posts
|
|
10
|
+
by comma-separated t3_ fullnames (up to 100) in one call. Same post shape as
|
|
11
|
+
the subreddit listings. Hydrate ids you already have without a call per post.
|
|
12
|
+
- Brings the published read-only tool count to 17.
|
|
13
|
+
|
|
3
14
|
## 0.1.8
|
|
4
15
|
- **`reddit_deep_comment_search`** gains a research mode: pass `group_by="author"`
|
|
5
16
|
to get the distinct PEOPLE who mentioned your query (ranked by matching-comment
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redditapis-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
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
|
@@ -260,6 +260,28 @@ export const TOOLS = [
|
|
|
260
260
|
),
|
|
261
261
|
},
|
|
262
262
|
},
|
|
263
|
+
{
|
|
264
|
+
name: "reddit_subreddit_rules",
|
|
265
|
+
path: "/api/reddit/sub/{name}/rules",
|
|
266
|
+
description:
|
|
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
|
+
shape: {
|
|
269
|
+
name: z.string().min(1).describe(
|
|
270
|
+
"Subreddit name WITHOUT the r/ prefix (e.g. 'python'). Required (path parameter).",
|
|
271
|
+
),
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: "reddit_by_id",
|
|
276
|
+
path: "/api/reddit/by_id/{fullnames}",
|
|
277
|
+
description:
|
|
278
|
+
"Bulk-fetch posts by their t3_ fullnames in ONE call (up to 100), instead of a request per post. Pass a comma-separated list of fullnames you already have from a search or listing to hydrate them. Returns posts with title, author, score, comment count, and permalink — the same post shape as the listing endpoints. An unknown id is simply absent from the result. Example: fullnames='t3_abc123,t3_def456'.",
|
|
279
|
+
shape: {
|
|
280
|
+
fullnames: z.string().min(1).describe(
|
|
281
|
+
"Comma-separated post fullnames, each a t3_ prefix followed by the base-36 id (e.g. 't3_abc123,t3_def456'). Up to 100. Required (path parameter).",
|
|
282
|
+
),
|
|
283
|
+
},
|
|
284
|
+
},
|
|
263
285
|
];
|
|
264
286
|
|
|
265
287
|
// Turn tool args into a URL query string. Skips undefined/null/empty values.
|