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
Community
Fetching metadata from the HF Docker repository...
2a4d673
Multiple_game_mcp
/
math_server.py
Jofthomas
Update math_server.py
2a4d673
verified
3 months ago
raw
Copy download link
history
blame
Safe
191 Bytes
from
mcp.server.fastmcp
import
FastMCP
mcp = FastMCP(name=
"MathServer"
, stateless_http=
True
)
@mcp.tool(
description=
"A simple add tool"
)
def
add_two
(
a:
int
, b:
int
) ->
int
:
return
a + b