Spaces:
Sleeping
Sleeping
File size: 637 Bytes
43b3cef a941c51 43b3cef a941c51 43b3cef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
from mcp.server.fastmcp import FastMCP
from src.utils.change_format import change_format
from src.utils.image_helpers import remove_background_from_url
from src.utils.visualize_image import visualize_base64_image
mcp = FastMCP("Youtube Service")
@mcp.tool()
def say_hello(name: str) -> str:
"""
Returns a greeting message for the given name.
Args:
name (str): The name to greet.
Returns:
str: A greeting message.
"""
return f"Hello, {name}!"
mcp.add_tool(remove_background_from_url)
mcp.add_tool(change_format)
mcp.add_tool(visualize_base64_image)
if __name__ == "__main__":
mcp.run()
|