redditapis-mcp 0.1.6 → 0.1.7
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 +13 -0
- package/package.json +1 -1
- package/src/tools.js +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.7
|
|
4
|
+
- Three new read tools (all $0.002, one upstream read each):
|
|
5
|
+
- **`reddit_user_submitted`** (`GET /api/reddit/user/{name}/submitted`) — a
|
|
6
|
+
user's submitted POSTS, the sibling of `reddit_user_comments`. Same post
|
|
7
|
+
shape as the subreddit listings.
|
|
8
|
+
- **`reddit_subreddit_comments`** (`GET /api/reddit/sub/{name}/comments`) — the
|
|
9
|
+
subreddit NEW-COMMENT stream (every new comment across a community, not one
|
|
10
|
+
post's thread). Same comment shape as `reddit_user_comments`.
|
|
11
|
+
- **`reddit_subreddit_about`** (`GET /api/reddit/sub/{name}/about`) — a
|
|
12
|
+
subreddit's public metadata (title, public description, subscriber count,
|
|
13
|
+
active-user count, creation date, type, NSFW flag). Returns a single object.
|
|
14
|
+
- Brings the published read-only tool count to 15.
|
|
15
|
+
|
|
3
16
|
## 0.1.6
|
|
4
17
|
- `reddit_deep_comment_search` v1.1, driven by a customer report that there was
|
|
5
18
|
no reliable way to expand a search past the first few posts:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redditapis-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
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
|
@@ -215,6 +215,45 @@ export const TOOLS = [
|
|
|
215
215
|
...LIMIT,
|
|
216
216
|
},
|
|
217
217
|
},
|
|
218
|
+
{
|
|
219
|
+
name: "reddit_user_submitted",
|
|
220
|
+
path: "/api/reddit/user/{name}/submitted",
|
|
221
|
+
description:
|
|
222
|
+
"List a Reddit user's submitted POSTS (their post history, the sibling of reddit_user_comments). Returns posts with title, author, score, comment count, and permalink, plus an `after` cursor. Use to see what a redditor posts, not just what they comment on. Example: name='spez' sort='top'.",
|
|
223
|
+
shape: {
|
|
224
|
+
name: z.string().min(1).describe(
|
|
225
|
+
"Reddit username WITHOUT the u/ prefix (e.g. 'spez'). Required (path parameter).",
|
|
226
|
+
),
|
|
227
|
+
...SORT_USER,
|
|
228
|
+
...TIME,
|
|
229
|
+
...AFTER,
|
|
230
|
+
...LIMIT,
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: "reddit_subreddit_comments",
|
|
235
|
+
path: "/api/reddit/sub/{name}/comments",
|
|
236
|
+
description:
|
|
237
|
+
"Stream the NEWEST comments across an entire subreddit (Reddit's /r/<name>/comments feed), not one post's thread. Returns comments with body, author, score, subreddit, the parent post link, and timestamp, plus an `after` cursor. Poll it to catch new comments in a community as they are posted. Example: name='python'.",
|
|
238
|
+
shape: {
|
|
239
|
+
name: z.string().min(1).describe(
|
|
240
|
+
"Subreddit name WITHOUT the r/ prefix (e.g. 'python'). Required (path parameter).",
|
|
241
|
+
),
|
|
242
|
+
...AFTER,
|
|
243
|
+
...LIMIT,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
name: "reddit_subreddit_about",
|
|
248
|
+
path: "/api/reddit/sub/{name}/about",
|
|
249
|
+
description:
|
|
250
|
+
"Fetch 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. Use it to size or vet a community before listing or searching its posts. Example: name='python'.",
|
|
251
|
+
shape: {
|
|
252
|
+
name: z.string().min(1).describe(
|
|
253
|
+
"Subreddit name WITHOUT the r/ prefix (e.g. 'python'). Required (path parameter).",
|
|
254
|
+
),
|
|
255
|
+
},
|
|
256
|
+
},
|
|
218
257
|
];
|
|
219
258
|
|
|
220
259
|
// Turn tool args into a URL query string. Skips undefined/null/empty values.
|