Back to Fastmcp

dependencies

docs/python-sdk/fastmcp-dependencies.mdx

4.0.0a2466 B
Original Source

fastmcp.dependencies

Dependency injection exports for FastMCP.

This module re-exports dependency injection symbols to provide a clean, centralized import location for all dependency-related functionality.

DI features (Depends, CurrentContext, CurrentFastMCP) work without pydocket using the uncalled-for DI engine. The docket-specific dependencies (CurrentDocket, CurrentWorker) live in the fastmcp-tasks package (fastmcp_tasks.dependencies).