reddit-mcp-server 1.5.2 → 1.5.3
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/README.md +10 -0
- package/dist/bin.js +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -213,6 +213,16 @@ export REDDIT_BOT_FOOTER=$'\n\n---\n^(🤖 Custom bot footer text)'
|
|
|
213
213
|
}
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
+
**Anonymous mode does not work on every network.** Reddit blocks unauthenticated requests from many IP ranges — datacenters, cloud hosts, VPNs, and addresses it has flagged — and answers with an HTTP 403 block page. If you hit this, tools fail with:
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
Reddit is blocking unauthenticated requests from this network (HTTP 403 with a
|
|
220
|
+
block page). Set REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET to authenticate with
|
|
221
|
+
OAuth, which also raises the rate limit from ~10 to 60+ requests/min.
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
The fix is OAuth credentials — see the next section. This is a property of your network, not of your Reddit account or the subreddit you asked for, so it affects every tool at once. A 403 on a single subreddit while others work is a different thing: that subreddit is private or quarantined.
|
|
225
|
+
|
|
216
226
|
### Authenticated Mode (Higher Rate Limits)
|
|
217
227
|
|
|
218
228
|
1. Create a Reddit app at https://www.reddit.com/prefs/apps (select "script" type)
|
package/dist/bin.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
process.env.TRANSPORT_TYPE ??= "stdio";
|
|
4
4
|
const args = process.argv.slice(2);
|
|
5
5
|
if (args.includes("--version") || args.includes("-v")) {
|
|
6
|
-
console.log("1.5.
|
|
6
|
+
console.log("1.5.3");
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
if (args.includes("--help") || args.includes("-h")) {
|
|
10
10
|
console.log(`
|
|
11
|
-
Reddit MCP Server v1.5.
|
|
11
|
+
Reddit MCP Server v1.5.3
|
|
12
12
|
|
|
13
13
|
Usage: reddit-mcp-server [options]
|
|
14
14
|
|
package/dist/index.js
CHANGED
|
@@ -1085,7 +1085,7 @@ function formatSubredditInfo(subreddit) {
|
|
|
1085
1085
|
//#endregion
|
|
1086
1086
|
//#region src/index.ts
|
|
1087
1087
|
dotenv.config({ quiet: true });
|
|
1088
|
-
const VERSION = "1.5.
|
|
1088
|
+
const VERSION = "1.5.3";
|
|
1089
1089
|
function validateUserAgent(userAgent, username) {
|
|
1090
1090
|
if (!/^[\w-]+:[\w-]+:[\d.]+ \(by \/u\/\w+\)$/.test(userAgent)) {
|
|
1091
1091
|
console.error("[Warning] User-Agent does not follow Reddit's recommended format");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reddit-mcp-server",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "A Model Context Protocol (MCP) server for Reddit with full read AND write operations - create posts, reply, edit, and delete content.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|