2.9 KiB
icon
| icon |
|---|
| lucide/braces |
Frontmatter Contract
This page defines the authored frontmatter contracts for native FastMCP skills and registry-backed prompts.
Skill Frontmatter
Skills use the standard Agent Skills fields consumed by the FastMCP Skills Provider:
---
name: <skill-id>
description: <what the skill does and when to use it>
---
Rules:
nameanddescriptionare required.namemust equal the skill directory name.- The repository uses lowercase kebab-case directory names.
- Skill frontmatter contains no
x-personal-mcpcatalog metadata. - Supporting files require no frontmatter manifest. The provider discovers files recursively and generates
_manifestwith relative paths, byte sizes, and SHA256 hashes.
The provider uses the directory name as the URI identity and the frontmatter description as the main resource description. Repository tests enforce directory/name parity and reject extra skill frontmatter fields.
Prompt Frontmatter
Prompts remain registry-backed and retain repository metadata:
---
name: <prompt-id>
description: <what the prompt does and when to use it>
x-personal-mcp:
id: <prompt-id>
version: <semver>
tags:
- <tag>
capabilities:
- resource://prompts/<prompt-id>/document
arguments:
<argument-name>:
title: <display title>
description: <input guidance>
required: true
---
Prompt rules:
name,description, andx-personal-mcpare required.x-personal-mcp.id,name, and the prompt directory name must match.versionmust be semantic version text.capabilitiesmust includeresource://prompts/<prompt-id>/document.- Argument names must be valid Python identifiers.
- Argument entries accept optional
title,description, andrequiredfields. - Unknown prompt fields are rejected by the strict Pydantic registry models.
See the MCP prompts concept documentation and schema reference for the protocol-level prompt shape.
Validation Timing
Skill validation is file- and provider-oriented:
SkillsDirectoryProviderdiscovers each directory containingSKILL.md.- FastMCP parses the description and scans all files when the provider is created.
- Repository tests enforce the stricter standard-only frontmatter and directory/name rules.
Prompt validation remains registry-oriented and fails server startup for invalid metadata, duplicate prompt ids, or malformed arguments.
Invariants
- Skills remain directly portable to tools that understand standard Agent Skills directories.
- Native skill discovery has no parallel catalog metadata source.
- Prompts retain the richer metadata required by their catalog and MCP prompt-object surfaces.
- All authored content remains under
docs/.