Class McpServerSkillPackageCreateOptions
- Namespace
- ModelContextProtocol.Extensions.Skills
- Assembly
- ModelContextProtocol.Extensions.Skills.dll
Provides options for authoring a McpServerSkillPackage from files or a directory.
[Experimental("MCPEXP005", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp005")]
public sealed class McpServerSkillPackageCreateOptions
- Inheritance
-
McpServerSkillPackageCreateOptions
- Inherited Members
Properties
Frontmatter
Gets or sets explicitly supplied JSON frontmatter matching the authored SKILL.md.
public JsonObject? Frontmatter { get; set; }
Property Value
Remarks
When null, the SDK reads the frontmatter with its bounded YAML reader. Supply this property for YAML the reader does not support, after parsing the entire block with a full YAML parser.
The SDK still rejects invalid UTF-8, missing frontmatter boundaries, and detected format errors. When the reader parses the whole block, the supplied object must match it exactly. When it stops at an unsupported construct, acceptance proves neither whole-document validity nor equality with the file. The application owns that agreement.
IncludeHiddenAndSystemFiles
Gets or sets whether directory authoring includes dot-prefixed, hidden, and system entries.
public bool IncludeHiddenAndSystemFiles { get; set; }
Property Value
Remarks
The default is false. Included symbolic links remain errors. This setting applies only to directory loading; explicit file authoring keeps the files selected by the caller.
Meta
Gets or sets the entry-level protocol metadata used to populate Meta.
public JsonObject? Meta { get; set; }
Property Value
Remarks
This JSON is separate from the frontmatter's string-to-string metadata map and is not copied to the file resources.
Metadata
Gets or sets server-local primitive metadata, which is not serialized.
public IReadOnlyList<object>? Metadata { get; set; }
Property Value
Remarks
Metadata is not copied to the file resources and does not automatically authorize any request.
Uri
Gets or sets the resource URI of the skill's SKILL.md.
public string? Uri { get; set; }
Property Value
Remarks
When null, the URI is derived from the frontmatter name as skill://{name}/SKILL.md.
An explicit URI must have a name segment matching the frontmatter.