Duplicated from Jofthomas/Multiple_mcp_fastapi_template
692e2cd 2a4d673
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 tool") def add_two(a: int, b:int) -> int: return a + b