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.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
.key over ad-hoc name or uri or uri_template logic for any
cross-component identity work (dedupe, grouping, collision detection,
lookup tables). It encodes type, identifier, and version, so variants
of the same component don’t falsely collide with each other, and
cross-type identifiers (e.g. a tool and a resource both named “foo”)
can’t clash.
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)

