fastmcp.server.providers.skills.skill_provider
Basic skill provider for handling a single skill folder.
Classes
SkillResource
A resource representing a skill’s main file or manifest.
Methods:
read
SkillFileTemplate
A template for accessing files within a skill.
Methods:
read
create_resource
SkillFileResource
A resource representing a specific file within a skill.
Methods:
read
SkillProvider
Provider that exposes a single skill folder as MCP resources.
Each skill folder must contain a main file (default: SKILL.md) and may
contain additional supporting files.
Exposes:
- A Resource for the main file (skill:///SKILL.md)
- A Resource for the synthetic manifest (skill:///_manifest)
- Supporting files via ResourceTemplate or Resources (configurable)
skill_path: Path to the skill directory.main_file_name: Name of the main skill file. Defaults to “SKILL.md”.supporting_files: How supporting files (everything except main file and manifest) are exposed to clients:- “template”: Accessed via ResourceTemplate, hidden from list_resources(). Clients discover files by reading the manifest first.
- “resources”: Each file exposed as individual Resource in list_resources(). Full enumeration upfront.

