get_feed_favicon
Retrieve favicon images for RSS feeds in FreshRSS to visually identify and organize your subscriptions.
Instructions
Get a feed favicon as an MCP resource (Fever API)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feedId | Yes | Feed ID to get favicon for |
Implementation Reference
- src/handlers/fever-handlers.ts:40-56 (handler)The handler implementation for the 'get_feed_favicon' tool, which fetches and returns a feed's favicon.
wrapTool('get_feed_favicon', async (args: z.infer<typeof getFaviconSchema>) => { const favicons = await client.fever.listFavicons(); const feedIdNum = Number(args.feedId); const found = favicons.find((f) => f.feedId === feedIdNum); if (found === undefined) { return textResult(`No favicon for feed ${args.feedId}.`); } const parsed = parseDataUri(found.dataUri); if (parsed === null) { return textResult('Invalid favicon data.'); } return resourceResult({ uri: `freshrss://favicon/${args.feedId}`, blob: parsed.base64, mimeType: parsed.mimeType, }); }) - src/handlers/fever-handlers.ts:34-39 (registration)Registration of the 'get_feed_favicon' tool with the MCP server.
server.registerTool( 'get_feed_favicon', { description: 'Get a feed favicon as an MCP resource (Fever API)', inputSchema: getFaviconSchema, }, - src/tools/fever-tools.ts:5-9 (schema)Zod schema definition for the 'get_feed_favicon' tool inputs.
export const getFaviconSchema = z .object({ feedId: z.string().describe('Feed ID to get favicon for'), }) .strict();