Multiple_game_mcp / math_server.py
Jofthomas's picture
Update math_server.py
abe8539 verified
raw
history blame
192 Bytes
from mcp.server.fastmcp import FastMCP
mcp = FastMCP(name="MathServer", stateless_http=True)
@mcp.tool(description="A simple add +2 to n tool")
def add_two(n: int) -> int:
return n + 2