from gradio import Server from fastapi.responses import HTMLResponse app = Server() @app.mcp.tool(name="add") @app.api(name="add") def add(a: int, b: int) -> int: """Add two numbers together.""" return a + b @app.mcp.tool(name="multiply") @app.api(name="multiply") def multiply(a: int, b: int) -> int: """Multiply two numbers together.""" return a * b @app.get("/", response_class=HTMLResponse) async def homepage(): return """