reddit-mcp-server 1.0.7 → 1.0.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/dist/bin.js +1036 -899
- package/dist/index.js +13 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1267,7 +1267,8 @@ var RedditServer = class {
|
|
|
1267
1267
|
},
|
|
1268
1268
|
{
|
|
1269
1269
|
capabilities: {
|
|
1270
|
-
tools: {}
|
|
1270
|
+
tools: {},
|
|
1271
|
+
logging: {}
|
|
1271
1272
|
}
|
|
1272
1273
|
}
|
|
1273
1274
|
);
|
|
@@ -1292,6 +1293,9 @@ var RedditServer = class {
|
|
|
1292
1293
|
const username = process.env.REDDIT_USERNAME;
|
|
1293
1294
|
const password = process.env.REDDIT_PASSWORD;
|
|
1294
1295
|
if (!clientId || !clientSecret) {
|
|
1296
|
+
console.error(
|
|
1297
|
+
"[Error] Missing required Reddit API credentials. Please set REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET environment variables."
|
|
1298
|
+
);
|
|
1295
1299
|
process.exit(1);
|
|
1296
1300
|
}
|
|
1297
1301
|
try {
|
|
@@ -1302,7 +1306,14 @@ var RedditServer = class {
|
|
|
1302
1306
|
username,
|
|
1303
1307
|
password
|
|
1304
1308
|
});
|
|
1305
|
-
|
|
1309
|
+
console.error("[Setup] Reddit client initialized");
|
|
1310
|
+
if (username && password) {
|
|
1311
|
+
console.error(`[Setup] Authenticated as user: ${username}`);
|
|
1312
|
+
} else {
|
|
1313
|
+
console.error("[Setup] Running in read-only mode (no user authentication)");
|
|
1314
|
+
}
|
|
1315
|
+
} catch (error) {
|
|
1316
|
+
console.error("[Error] Failed to initialize Reddit client:", error);
|
|
1306
1317
|
process.exit(1);
|
|
1307
1318
|
}
|
|
1308
1319
|
}
|
|
@@ -1677,12 +1688,6 @@ var RedditServer = class {
|
|
|
1677
1688
|
});
|
|
1678
1689
|
}
|
|
1679
1690
|
};
|
|
1680
|
-
if (require.main === module) {
|
|
1681
|
-
const server = new RedditServer();
|
|
1682
|
-
server.run().catch(() => {
|
|
1683
|
-
process.exit(1);
|
|
1684
|
-
});
|
|
1685
|
-
}
|
|
1686
1691
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1687
1692
|
0 && (module.exports = {
|
|
1688
1693
|
RedditServer
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reddit-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "A Model Context Protocol (MCP) that provides tools for fetching and creating Reddit content. Fork of the alexandros-lekkas/reddit-mcp-server.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|