Duplicated from Jofthomas/Multiple_mcp_fastapi_template
692e2cd abe8539 692e2cd
1
2
3
4
5
6
7
8
9
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