Table of Contents

Class McpServerSkillPackageDiscoveryOptions

Namespace
ModelContextProtocol.Extensions.Skills
Assembly
ModelContextProtocol.Extensions.Skills.dll

Provides common settings for authoring packages from immediate child skill directories.

[Experimental("MCPEXP005", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#mcpexp005")]
public sealed class McpServerSkillPackageDiscoveryOptions
Inheritance
McpServerSkillPackageDiscoveryOptions
Inherited Members

Properties

IncludeHiddenAndSystemFiles

Gets or sets whether dot-prefixed, hidden, and system directories and files are included.

public bool IncludeHiddenAndSystemFiles { get; set; }

Property Value

bool

Remarks

The default is false. Included symbolic links remain errors.

Meta

Gets or sets common entry-level protocol metadata applied to every authored skill.

public JsonObject? Meta { get; set; }

Property Value

JsonObject

Remarks

File resource metadata is unchanged.

Metadata

Gets or sets common server-local metadata applied to every authored skill.

public IReadOnlyList<object>? Metadata { get; set; }

Property Value

IReadOnlyList<object>

Remarks

Metadata is not copied to resources and does not authorize requests automatically.

UriPrefix

Gets or sets the prefix used to derive each skill's URI from its frontmatter name.

public string UriPrefix { get; set; }

Property Value

string

Remarks

Defaults to skill://. A missing trailing slash is added to a local copy. Names used as URI path segments are escaped with EscapeDataString(string). Each discovered skill reads its own frontmatter.