Skip to main content

Documentation Index

Fetch the complete documentation index at: https://gofastmcp.com/llms.txt

Use this file to discover all available pages before exploring further.

fastmcp.server.mixins.lifespan

Lifespan and Docket task infrastructure for FastMCP Server.

Classes

LifespanMixin

Mixin providing lifespan and Docket task infrastructure for FastMCP. Methods:

docket

docket(self: FastMCP) -> Docket | None
Get the Docket instance if Docket support is enabled. Returns None if Docket is not enabled or server hasn’t been started yet.