fastmcp.utilities.components
Classes
FastMCPMeta
FastMCPComponent
Base class for FastMCP tools, prompts, resources, and resource templates.
Methods:
make_key
identifier: The raw identifier (name for tools/prompts, uri for resources)
- A prefixed key like “tool:name” or “resource:uri”
key
get_meta
_fastmcp key will be added to the
meta, containing a tags field with the tags of the component.
enable
disable
copy
register_with_docket
add_to_docket
- Tool: add_to_docket(docket, arguments: dict, **kwargs)
- Resource: add_to_docket(docket, **kwargs)
- ResourceTemplate: add_to_docket(docket, params: dict, **kwargs)
- Prompt: add_to_docket(docket, arguments: dict | None, **kwargs)

