reddit-mcp-server 2.0.1 → 2.0.2
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 +7 -0
- package/README.md +2 -0
- package/dist/bin.js +2 -2
- package/dist/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2.0.2] - 2026-11-14
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- In `auto` mode, a failed startup credential check (Reddit rejects the client id or secret, or can't be reached) no longer stops the server. It logs a warning and starts, so registries that start it with placeholder credentials, such as Glama, can list its tools. Each tool call that needs OAuth retries authentication and reports the error. `REDDIT_AUTH_MODE=authenticated` still exits at startup
|
|
10
|
+
- Startup logs say "User credentials set for" instead of "User authenticated as", since the username and password are not checked at startup, and the keyless message notes that Reddit said it would end RSS feeds on 2026-11-13
|
|
11
|
+
|
|
5
12
|
## [2.0.1] - 2026-10-31
|
|
6
13
|
|
|
7
14
|
### Fixed
|
package/README.md
CHANGED
|
@@ -264,6 +264,8 @@ Reddit closed self-service OAuth app creation in November 2025, and as of 2026-1
|
|
|
264
264
|
| `auto` (no creds) | Shared, free | None | Most read tools ([Keyless Mode](#keyless-mode)) | New users |
|
|
265
265
|
| `anonymous` | Shared, free | None | Same as `auto` without credentials | Legacy alias |
|
|
266
266
|
|
|
267
|
+
If Reddit rejects your credentials at startup, `auto` logs a warning and starts anyway, and each tool call reports the error. `authenticated` exits instead.
|
|
268
|
+
|
|
267
269
|
### Keyless Mode
|
|
268
270
|
|
|
269
271
|
Without OAuth credentials, reads come from two free sources:
|
package/dist/bin.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
if ((process.env.TRANSPORT_TYPE ?? "").trim() === "") 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("2.0.
|
|
6
|
+
console.log("2.0.2");
|
|
7
7
|
process.exit(0);
|
|
8
8
|
}
|
|
9
9
|
if (args.includes("--help") || args.includes("-h")) {
|
|
10
10
|
console.log(`
|
|
11
|
-
Reddit MCP Server v2.0.
|
|
11
|
+
Reddit MCP Server v2.0.2
|
|
12
12
|
|
|
13
13
|
Usage: reddit-mcp-server [options]
|
|
14
14
|
|
package/dist/index.js
CHANGED
|
@@ -1548,7 +1548,7 @@ function formatCommentInfo(comment, maxLength = COMMENT_CONTENT_MAX_LENGTH) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
// src/index.ts
|
|
1550
1550
|
dotenv.config({ quiet: true });
|
|
1551
|
-
const VERSION = "2.0.
|
|
1551
|
+
const VERSION = "2.0.2";
|
|
1552
1552
|
function validateUserAgent(userAgent, username) {
|
|
1553
1553
|
if (!/^[\w-]+:[\w-]+:[\d.]+ \(by \/u\/\w+\)$/.test(userAgent)) {
|
|
1554
1554
|
console.error("[Warning] User-Agent does not follow Reddit's recommended format");
|
|
@@ -1733,23 +1733,28 @@ async function setupRedditClient() {
|
|
|
1733
1733
|
if (authMode === "anonymous") console.error("[Warning] REDDIT_AUTH_MODE=anonymous is deprecated; it is now an alias for auto without credentials.");
|
|
1734
1734
|
if (authMode === "anonymous" || !hasCredentials) {
|
|
1735
1735
|
console.error("[Setup] Keyless mode — no OAuth credentials detected.");
|
|
1736
|
-
console.error("[Setup] Reads come from RSS feeds (ranked listings
|
|
1736
|
+
console.error("[Setup] Reads come from RSS feeds (ranked listings; Reddit said it would end them 2026-11-13)");
|
|
1737
1737
|
console.error("[Setup] and the Arctic Shift archive (a free third-party Reddit archive; scores lag).");
|
|
1738
1738
|
console.error("[Setup] Existing REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET still give live data (60-100 req/min).");
|
|
1739
1739
|
console.error("[Setup] Reddit takes no new API access requests and closes its public API in March 2027.");
|
|
1740
1740
|
console.error("[Setup] See: https://github.com/jordanburke/reddit-mcp-server#reddit-is-closing-its-public-api");
|
|
1741
1741
|
} else {
|
|
1742
1742
|
console.error("[Setup] Testing Reddit API connection...");
|
|
1743
|
-
if (
|
|
1743
|
+
if (await client.checkAuthentication()) {
|
|
1744
|
+
console.error("[Setup] ✓ Reddit API connection successful");
|
|
1745
|
+
console.error("[Setup] Using OAuth Reddit API (60-100 req/min)");
|
|
1746
|
+
} else if (authMode === "authenticated") {
|
|
1744
1747
|
console.error("[Error] ✗ Failed to connect to Reddit API");
|
|
1745
1748
|
console.error("[Error] Please check your REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET");
|
|
1746
1749
|
process.exit(1);
|
|
1750
|
+
} else {
|
|
1751
|
+
console.error("[Warning] ✗ Could not authenticate with the Reddit API; starting anyway");
|
|
1752
|
+
console.error("[Warning] Check REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET. Tool calls retry and report the error");
|
|
1753
|
+
console.error("[Warning] Set REDDIT_AUTH_MODE=authenticated to exit on this instead");
|
|
1747
1754
|
}
|
|
1748
|
-
console.error("[Setup] ✓ Reddit API connection successful");
|
|
1749
|
-
console.error("[Setup] Using OAuth Reddit API (60-100 req/min)");
|
|
1750
1755
|
}
|
|
1751
1756
|
if (username !== void 0 && password !== void 0) {
|
|
1752
|
-
console.error(`[Setup] ✓ User
|
|
1757
|
+
console.error(`[Setup] ✓ User credentials set for: ${username}`);
|
|
1753
1758
|
console.error("[Setup] Write operations enabled (posting, replying, editing, deleting)");
|
|
1754
1759
|
} else {
|
|
1755
1760
|
console.error("[Setup] Read-only mode (no user credentials)");
|