Files
qiming/qiming-mcp-proxy/mcp-proxy/fixtures/streamable_mcp/streamable_hello.py
2026-06-01 13:03:20 +08:00

10 lines
233 B
Python

from fastmcp import FastMCP
mcp = FastMCP("MCPServer")
@mcp.tool
def hello(name: str) -> str:
return f"Hello, {name}!"
if __name__ == "__main__":
mcp.run(transport="streamable-http", host="0.0.0.0", port=8000, path="/mcp")