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.transforms.resources_as_tools
Transform that exposes resources as tools.
This transform generates tools for listing and reading resources, enabling
clients that only support tools to access resource functionality.
The generated tools route through ctx.fastmcp at runtime, so all server
middleware (auth, visibility, rate limiting, etc.) applies to resource
operations exactly as it would for direct resources/read calls.
Example:
Classes
ResourcesAsTools
Transform that adds tools for listing and reading resources.
Generates two tools:
list_resources: Lists all resources and templatesread_resource: Reads a resource by URI

