image_utilities_mcp / mcp_server.py
ItzRoBeerT's picture
Added prompt injection tool
17de1f9
raw
history blame
457 Bytes
from mcp.server.fastmcp import FastMCP
from src.securty.prompt_injection import check_prompt_injection
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(check_prompt_injection)
if __name__ == "__main__":
mcp.run()