@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.
- package/dist/api.js +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
|
|
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)}
|
|
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