Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
Jofthomas/Multiple_mcp_fastapi_template
Jofthomas
/
Multiple_game_mcp
like
0
Sleeping
App
Files
Files
xet
Community
Fetching metadata from the HF Docker repository...
99fadc1
Multiple_game_mcp
/
echo_server.py
Jofthomas
Upload 3 files
692e2cd
verified
about 1 month ago
raw
Copy download link
history
blame
Safe
201 Bytes
from
mcp.server.fastmcp
import
FastMCP
mcp = FastMCP(name=
"EchoServer"
, stateless_http=
True
)
@mcp.tool(
description=
"A simple echo tool"
)
def
echo
(
message:
str
) ->
str
:
return
f"Echo:
{message}
"