Skip to main content
Glama

get-9to5mac-news

Extracts and delivers English news from 9to5Mac, covering Apple product launches, iOS updates, Mac hardware, app recommendations, and Apple company insights. Stay informed on key Apple developments.

Instructions

获取 9to5Mac 苹果相关新闻,包含苹果产品发布、iOS 更新、Mac 硬件、应用推荐及苹果公司动态的英文资讯

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool registration defining the name, description, and handler function that calls getRssItems with the 9to5Mac RSS URL.
    export default defineToolConfig({ name: 'get-9to5mac-news', description: '获取 9to5Mac 苹果相关新闻,包含苹果产品发布、iOS 更新、Mac 硬件、应用推荐及苹果公司动态的英文资讯', func: () => getRssItems('https://9to5mac.com/feed/'), });
  • Core handler function that fetches and parses RSS feed items, extracting title, description, category, author, publish date, and link for each news item.
    export const getRssItems = async (url: string) => { const data = await getRss(url); if (!Array.isArray(data.rss?.channel?.item)) { return []; } return (data.rss.channel.item as any[]).map((item) => { let category = ''; if (typeof item.category === 'string') { category = item.category; } if (Array.isArray(item.category)) { category = item.category.join(', '); } return { title: item.title, description: item.description, category, author: item.author || item['dc:creator'], publish_time: item.pubDate, link: item.link, }; }); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/baranwang/mcp-trends-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server