from mcp.server.fastmcp import FastMCP

mcp = FastMCP("demo")

@mcp.tool()
def add(a: int, b: int) -> int:
  """Add two numbers."""
  return a + b

@mcp.tool()
def get_weather(city: str) -> str:
  """Return a (fake) weather report for a city."""
  return f"It's 22°C and sunny in {city}."

if __name__ == "__main__":
  mcp.run()  # stdio transport by default
