fastmcp.client.mixins.skills
Skills-extension methods for the FastMCP client.
Classes
ClientSkillsMixin
Mixin providing SEP-2640 Skills methods for Client.
Methods:
list_skills_mcp
skills/list request and return its protocol result.
Args:
cursor: Optional pagination cursor from a previous result.cache_mode: Response-cache behavior for this call.
- The complete protocol result, including cache and pagination fields.
RuntimeError: If the client is disconnected or Skills was not negotiated.MCPError: If the server rejects the request.
list_skills
skills/list.
Args:
max_pages: Maximum number of pages to fetch before raising.cache_mode: Response-cache behavior for the first page.
- Every skill entry returned across the serverβs pages.
RuntimeError: If Skills was not negotiated or the page limit is reached.MCPError: If the server rejects a request.
get_skill_mcp
skills/get request and return its protocol result.
Args:
uri: URI of the skillβsSKILL.mdresource.cache_mode: Response-cache behavior for this call.
- The complete protocol result, including cache fields.
RuntimeError: If the client is disconnected or Skills was not negotiated.MCPError: If the server rejects the request.
get_skill
SKILL.md resource URI.
Args:
uri: URI of the skillβsSKILL.mdresource.cache_mode: Response-cache behavior for this call.
- The skill entry returned by the server.
RuntimeError: If the client is disconnected or Skills was not negotiated.MCPError: If the server rejects the request.
read_skill
Skill.
The manifest comes from skills/get when the Skills extension was
negotiated, and otherwise from the _manifest resource that FastMCP
skill providers serve next to the files. Every file must match the
size and SHA-256 digest the manifest promised. When an extension entry
is available, the parsed frontmatter must also match that entry.
Args:
uri: URI of the skillβsSKILL.mdresource.cache_mode: Response-cache behavior for theskills/getrequest.
- The skill, with the exact bytes of every file.
RuntimeError: If the client is disconnected.ValueError: If the manifest is unusable, a file does not match it, or the files do not form a valid skill.MCPError: If the server rejects a request.