提交qiming-mcp-proxy
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user