image_utilities_mcp / mcp_server.py
ItzRoBeerT's picture
Added compress function
705282e
raw
history blame
1.03 kB
from mcp.server.fastmcp import FastMCP
from src.utils.change_format import change_format
from src.utils.remove_background import remove_background_from_url
from src.utils.visualize_image import visualize_base64_image
from src.utils.generate_image import generate_image
from src.utils.apply_filter import apply_filter
from src.utils.add_text import add_text_to_image
from src.utils.describe import describe_image
from src.utils.compress import compress_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(describe_image)
mcp.add_tool(change_format)
mcp.add_tool(visualize_base64_image)
mcp.add_tool(generate_image)
mcp.add_tool(apply_filter)
mcp.add_tool(add_text_to_image)
mcp.add_tool(compress_image)
if __name__ == "__main__":
mcp.run()