What problem does it solve?
Projects that need to combine a FastAPI REST surface with a FastMCP server often lack clear guidance on how to mount, generate, or co‑host these interfaces while keeping a single uv‑managed Python environment.
Core Features & Use Cases
- Pattern A – Mount existing MCP into FastAPI: Shows how to import a curated FastMCP instance and mount it as a sub‑app, preserving lifespans and middleware.
- Pattern B – Generate FastMCP from FastAPI: Provides a quick bootstrap using
FastMCP.from_fastapi and advises on reviewing generated tools and endpoints.
- Pattern C – Serve both API and MCP from one process: Demonstrates combining routes and lifespans for a unified deployment.
- Pattern D – Promote generated MCP to a curated service: Guides the transition from auto‑generated code to a production‑ready FastMCP application.
- UV workflow guidance: Details dependency management with
uv add, running tests, and handling workspace‑aware commands.
- Validation checklist: Ensures configuration coherence, lifespan correctness, and proper testing of both HTTP and MCP sides.
Quick Start
Use the integrate-fastapi-fastmcp skill to determine the best integration pattern and generate the necessary FastMCP mounting code for my uv project.