star_articles
Mark articles as favorites in FreshRSS to save them for later reading or highlight important content.
Instructions
Star/favorite one or more articles
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| articleIds | Yes | Article IDs to star/unstar |
Implementation Reference
- src/handlers/article-handlers.ts:60-70 (handler)The handler function for "star_articles" which calls client.articles.star and returns the result.
server.registerTool( 'star_articles', { description: 'Star/favorite one or more articles', inputSchema: starArticlesSchema, }, wrapTool('star_articles', async (args: z.infer<typeof starArticlesSchema>) => { await client.articles.star(args.articleIds); return textResult(`Starred ${args.articleIds.length.toString()} article(s).`); }) ); - src/tools/article-tools.ts:41-45 (schema)The Zod schema definition for input validation of the "star_articles" tool.
export const starArticlesSchema = z .object({ articleIds: z.array(z.string()).min(1).describe('Article IDs to star/unstar'), }) .strict(); - src/handlers/article-handlers.ts:60-70 (registration)The registration of "star_articles" tool within the MCP server.
server.registerTool( 'star_articles', { description: 'Star/favorite one or more articles', inputSchema: starArticlesSchema, }, wrapTool('star_articles', async (args: z.infer<typeof starArticlesSchema>) => { await client.articles.star(args.articleIds); return textResult(`Starred ${args.articleIds.length.toString()} article(s).`); }) );