MCPcopy
hub / github.com/sansan0/TrendRadar / get_rss_feeds_resource

Function get_rss_feeds_resource

mcp_server/server.py:67–78  ·  view source on GitHub ↗

获取 RSS 订阅源列表 返回当前配置的所有 RSS 源信息。

()

Source from the content-addressed store, hash-verified

65
66@mcp.resource("config://rss-feeds")
67async def get_rss_feeds_resource() -> str:
68 """
69 获取 RSS 订阅源列表
70
71 返回当前配置的所有 RSS 源信息。
72 """
73 tools = _get_tools()
74 status = await asyncio.to_thread(tools['data'].get_rss_feeds_status)
75 return json.dumps({
76 "feeds": status.get("today_feeds", {}),
77 "description": "TrendRadar 支持的 RSS 订阅源列表"
78 }, ensure_ascii=False, indent=2)
79
80
81@mcp.resource("data://available-dates")

Callers

nothing calls this directly

Calls 2

_get_toolsFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected