redditapis-mcp 0.5.0 → 0.5.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.1 (2026-09-06)
4
+
5
+ ### Fixed
6
+
7
+ - **The npm package page was showing a description cut off mid-word.** `package.json` carried a 394-character description; npm stores at most 255 and truncates the rest without an error or a warning, so the visible end of the description on npmjs.com was the fragment `register/test/dele`. 139 characters were being silently discarded. Measured against `registry.npmjs.org` rather than guessed. The description is now 249 characters and ends as a sentence, and `scripts/prepublish-tenant-check.mjs` refuses to publish one that is over the bound or that does not end in a full stop, the second check being the one that catches a cut string regardless of its length.
8
+
3
9
  ## 0.5.0 (2026-09-06)
4
10
 
5
11
  ### Added
package/README.md CHANGED
@@ -183,6 +183,7 @@ Modelled on Claude Code's own feedback tool. When a call fails in a way that is
183
183
  | Tool | Endpoint | What it does |
184
184
  |------|----------|--------------|
185
185
  | `reddit_feedback_send` | `POST /feedback` | `action: "draft"` (default) queues a report locally and sends nothing; `"list"` shows the queue; `"send"` posts only the drafts you name; `"discard"` drops them. |
186
+ | `reddit_account_me` | `GET /account/me` | How much credit this key has left, before spending any. Free, never metered. |
186
187
  | `reddit_feedback_get` | `GET /feedback/{id}` | Read a sent report's status (`new`, `triaged`, `shipped`, `declined`) and the team's response. |
187
188
 
188
189
  ## Usage examples
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "redditapis-mcp",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "mcpName": "io.github.redditapis/redditapis-mcp",
5
- "description": "Official MCP server for redditapis.com, the Reddit API (subreddit listings, post + comment + community + user + media search, comment trees, top posts, user profiles) plus monitor/webhook management (create/list/update/remove a monitor, register/test/delete a webhook, read delivery history) and user-reviewed product feedback to the team as native tools for Claude, Cursor, and any MCP client.",
5
+ "description": "Official MCP server for redditapis.com. Search Reddit posts, comments, communities, users and media; read subreddits, comment trees, top posts and profiles; create and manage monitors and webhooks. Native tools for Claude, Cursor and any MCP client.",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/redditapis/redditapis-mcp.git"
package/src/tools.js CHANGED
@@ -762,6 +762,26 @@ export const TOOLS = [
762
762
  ),
763
763
  },
764
764
  },
765
+ {
766
+ // CHECK BEFORE YOU SPEND. An agent planning a costed run has no way to ask
767
+ // how much credit is left, so it either runs blind and hits a 402 partway
768
+ // through, or it asks the user to go and look. Both are avoidable: the
769
+ // endpoint already exists and is already free.
770
+ //
771
+ // GET /account/me is mounted OUTSIDE /api (server.js), ahead of bearerAuth,
772
+ // under a comment reading "Free account endpoints live in apps/backend". So
773
+ // this tool bills nothing and is safe to call before every plan.
774
+ //
775
+ // Path verified against the live origin rather than read off the route
776
+ // tree: /account/me returns 401 unauthenticated while /account/<nonsense>
777
+ // returns 404, which is how we know the route exists. (/api/<anything>
778
+ // returns 401 for everything, so that path could not have told us.)
779
+ name: "reddit_account_me",
780
+ path: "/account/me",
781
+ description:
782
+ "How much credit this API key has left, before spending any. Returns the account's remaining credit balance and usage totals. FREE: this call is not metered and never costs a credit, so call it whenever you are about to run something expensive rather than guessing. Use it to decide whether a planned batch fits in the remaining balance, and to tell the user how much is left if a call returns 402. A 402 from any other tool means the balance is exhausted; its response carries a top-up URL to give the user.",
783
+ shape: {},
784
+ },
765
785
  {
766
786
  name: "reddit_feedback_get",
767
787
  path: "/feedback/{id}",