FastMCP requires its lifespan context to be passed to the parent ASGI app
to initialize the StreamableHTTPSessionManager task group. This fix nests
mcp_app.lifespan() inside our custom lifespan to ensure proper initialization
while maintaining our custom startup/shutdown logic.
Resolves: RuntimeError: Task group is not initialized
The FastMCP constructor doesn't accept a 'description' parameter.
Changed to use 'instructions' parameter and switched to keyword arguments
for clarity.
- get_libraries: List all library sections
- search_library: Search for media by title
- get_metadata: Get detailed item info by rating key
- get_recently_added: Get recently added content
- refresh_library: Trigger library scan
- plex_api_call: Raw API passthrough for any endpoint
- search_api_docs: Search OpenAPI spec for endpoint documentation
Includes Docker support and Gitea Actions workflow for container builds.