fastmcp.server.http
Functions
set_http_request
create_base_app
routes
: List of routes to include in the appmiddleware
: List of middleware to include in the appdebug
: Whether to enable debug modelifespan
: Optional lifespan manager for the app
- A Starlette application
create_sse_app
server
: The FastMCP server instancemessage_path
: Path for SSE messagessse_path
: Path for SSE connectionsauth
: Optional authentication provider (AuthProvider)debug
: Whether to enable debug moderoutes
: Optional list of custom routesmiddleware
: Optional list of middleware
create_streamable_http_app
server
: The FastMCP server instancestreamable_http_path
: Path for StreamableHTTP connectionsevent_store
: Optional event store for session managementauth
: Optional authentication provider (AuthProvider)json_response
: Whether to use JSON response formatstateless_http
: Whether to use stateless mode (new transport per request)debug
: Whether to enable debug moderoutes
: Optional list of custom routesmiddleware
: Optional list of middleware
- A Starlette application with StreamableHTTP support