Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
FastMCP 4 is here — built for the new MCP protocol. See what's new.
SDK Reference
fastmcp.resources.types
TextResource
read
read(self) -> ResourceResult
BinaryResource
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
HttpResource
DirectoryResource
list_files
list_files(self) -> list[Path]