fastmcp.utilities.components
Functions
get_fastmcp_metadata
fastmcp namespace and the legacy _fastmcp
namespace for compatibility with older FastMCP servers.
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 containing:
tags: sorted list of component tagsversion: component version (only if set)
_) are stripped from the fastmcp namespace.
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)

