14 lines
307 B
Django/Jinja
14 lines
307 B
Django/Jinja
from fastmcp import FastMCP
|
|
|
|
mcp = FastMCP(name="{{ node_name }}")
|
|
|
|
@mcp.tool()
|
|
def hello(name: str) -> str:
|
|
"""
|
|
This is a tool that says, "Hello!"
|
|
"""
|
|
return f"Hello ! {{ node_name }} ! {name} !"
|
|
|
|
if __name__ == "__main__":
|
|
mcp.run(transport="streamable-http", host="0.0.0.0", port=80)
|