File size: 456 Bytes
e66e891 8863982 e66e891 8863982 e66e891 8863982 e66e891 8863982 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
'''Tool functions for MCP server'''
from findfeed import search
def get_feed(url: str) -> str:
'''Finds the RSS feed URI for a website given the website's url.
Args:
url: The url for the website to find the RSS feed for
Returns:
The website's RSS feed URI as a string
'''
feeds = search(url)
if len(feeds) > 0:
return str(feeds[0].url)
else:
return f'No feed found for {url}'
|