FastAPI → Hyperia Bridge
1 Hello‑World Conversion
from fastapi import FastAPI
from hyperia import Hyperia
api = FastAPI()
@api.get("/ping")
def ping():
return {"pong": True}
mcp = Hyperia.from_fastapi(app=api, name="PingAPI")
if __name__ == "__main__":
mcp.run(transport="streamable-http", port=9100)2 How the Converter Works
3 Default Route Mapping
FastAPI Decorator
Example
Hyperia Component
Name / URI result
4 Timeout & Concurrency Control
5 Advanced Examples
5.1 CRUD Service with Pydantic Models
5.2 Streaming Responses
5.3 Auth Propagation
6 Why Use FastAPI→Hyperia Instead of OpenAPI→Hyperia?
Criteria
FastAPI wrapper
OpenAPI wrapper
7 Limitations & Caveats
8 Troubleshooting
Symptom
Cause
Fix
Last updated