@mrfentmen/rss-mcp 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/dist/api.js +2 -2
  2. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -75,9 +75,9 @@ export async function feedJson(args) {
75
75
  const RSS_UA = "mrfentmen-rss-mcp/1.0 (https://github.com/mrfentmen)";
76
76
  class Rss2JsonError extends Error {
77
77
  }
78
- /** rss2json is a free public endpoint, so the feed is read the same way its siblings are. */
78
+ /** rss2json's count parameter needs a paid key, so ask for the default 10 and slice. */
79
79
  async function feed(rssUrl, limit) {
80
- const res = await fetch(`https://api.rss2json.com/v1/api.json?rss_url=${encodeURIComponent(rssUrl)}&count=${limit}`, {
80
+ const res = await fetch(`https://api.rss2json.com/v1/api.json?rss_url=${encodeURIComponent(rssUrl)}`, {
81
81
  headers: { "User-Agent": RSS_UA, Accept: "application/json" },
82
82
  signal: AbortSignal.timeout(30000),
83
83
  });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.3",
2
+ "version": "1.0.4",
3
3
  "type": "module",
4
4
  "repository": {
5
5
  "type": "git",