You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ecb11e6
Browse filesBrowse the repository at this point in the historyBrowse files
Close the neighbouring cases a differential YAML run and a second review pass found
Frontmatter reader, checked against the yaml 2.8 reference parser: a trailing comment on a continuation line ends
the plain scalar; plain scalars and keys cannot start with a flow indicator, a block scalar header, or a block
indicator followed by white space, and keys are held to the same reserved-start rules as values; empty flow entries
are rejected; -0 and -0.0 render as 0; block scalars keep white-space-only lines wider than their indentation and
reject a wider leading empty line; tabs are accepted where YAML allows them (blank lines, after ':' and '-', inside
block scalars) and rejected only as indentation; a sequence item with a quoted key is a compact mapping; and a flow
collection that closes on a later line is valid-but-unsupported YAML rather than malformed, so the explicit
frontmatter escape hatch covers it.
McpServerSkill keeps a private copy of its entry and ProtocolSkill returns a copy, so the manifest WithSkills
registers cannot drift from the served bytes through the caller's objects. Entry validation errors from the
directory overloads name directoryPath rather than a frontmatter parameter those overloads do not have. The client
rejects a skills/list page without a skills array instead of dereferencing null, and SkillVerifier treats null text
contents as a verification failure.
Replace a test that compared a value with itself, add tests for the cases above and for invalid and same-named skill
directories, root the Skills assembly in the AOT compatibility app, fix the missing using in the docs snippet, and
link the docs page to the samples on GitHub so the links work on the published site.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6omaTvQiryHtzFHRqUE3b
Copy file name to clipboardExpand all lines: docs/concepts/skills/skills.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ lays them out, and point `WithSkillsFromDirectory` at the parent:
41
41
42
42
```csharp
43
43
usingModelContextProtocol.Extensions.Skills;
44
+
usingModelContextProtocol.Protocol;
44
45
45
46
builder.Services
46
47
.AddMcpServer()
@@ -95,8 +96,8 @@ host verifies a skill by parsing the fetched `SKILL.md` itself and comparing fie
95
96
entry; a value that one side types as a number and the other as a string is a verification failure. Quote values
96
97
such as version numbers that are meant to be strings.
97
98
98
-
Anchors, aliases, tags, complex keys, nested flow collections, and multi-line quoted scalars are valid YAML the
99
-
reader does not support; it rejects them with a <xref:System.FormatException> naming the construct. For such a
99
+
Anchors, aliases, tags, complex keys, nested and multi-line flow collections, and multi-line quoted scalars are
100
+
valid YAML the reader does not support; it rejects them with a <xref:System.FormatException> naming the construct. For such a
100
101
file, the `Create` and `CreateFromDirectory` overloads that take an explicit `JsonObject` supply the frontmatter
101
102
directly. That escape hatch covers only valid-but-unsupported YAML: a file with no frontmatter block, malformed
102
103
YAML, or invalid UTF-8 is rejected regardless, since no host could parse it either. When the reader can parse the
@@ -217,7 +218,7 @@ Servers built with this package do not declare `directoryRead`, and hosts must n
217
218
218
219
### Samples
219
220
220
-
-[SkillsServer](../../../samples/SkillsServer/README.md): a Streamable
221
+
-[SkillsServer](https://github.com/modelcontextprotocol/csharp-sdk/tree/main/samples/SkillsServer): a Streamable
221
222
HTTP server serving two skills from directories on disk.
222
-
-[SkillsClient](../../../samples/SkillsClient/README.md): a client that
223
+
-[SkillsClient](https://github.com/modelcontextprotocol/csharp-sdk/tree/main/samples/SkillsClient): a client that
223
224
connects to it and discovers, retrieves, and verifies them.
0 commit comments