This commit is contained in:
changmin hyeon
2026-02-10 11:33:59 +09:00
commit 0d808202f6
17 changed files with 575 additions and 0 deletions

13
mcp/src_main.py.j2 Normal file
View File

@@ -0,0 +1,13 @@
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)