chore: import upstream snapshot with attribution
CI / Ruff (push) Has been cancelled
CI / MyPy (push) Has been cancelled
CI / Test Python 3.10 (push) Has been cancelled
CI / Test Python 3.11 (push) Has been cancelled
CI / Test Python 3.12 (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 12:49:13 +08:00
commit 8f1970542a
85 changed files with 9550 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
from examples.shared.apps.items import app # The FastAPI app
from examples.shared.setup import setup_logging
from fastapi_mcp import FastApiMCP
setup_logging()
# Add MCP server to the FastAPI app
mcp = FastApiMCP(app)
# Mount the MCP server to the FastAPI app
mcp.mount_http()
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)