fastmcp.resources
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
FastMCP 4 beta is here — get the latest MCP protocol. See what's new.
fastmcp.resources.typesTextResource read read(self) -> ResourceResult
BinaryResource read read(self) -> ResourceResult
FileResource validate_absolute_path validate_absolute_path(cls, path: Path) -> Path
set_binary_from_mime_type set_binary_from_mime_type(cls, is_binary: bool, info: ValidationInfo) -> bool
read read(self) -> ResourceResult
HttpResource read read(self) -> ResourceResult
DirectoryResource validate_absolute_path validate_absolute_path(cls, path: Path) -> Path
list_files list_files(self) -> list[Path]
read read(self) -> ResourceResult
