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 8c39436
Browse filesBrowse the repository at this point in the historyBrowse files
The client now validates every entry returned by skills/list and
skills/get against the specification's structural requirements and throws
SkillVerificationException for one a host must not load. The server-side
handlers apply the same validation to entries from a custom catalog and
report a failure as an internal error rather than publishing it.
The explicit-frontmatter escape hatch now covers only valid YAML the reader
does not support (anchors, aliases, tags, complex keys, nested flow
collections, multi-line quoted scalars). A SKILL.md that is not UTF-8, has
no frontmatter block, or is malformed is rejected regardless, since no host
could parse it either.
SkillFrontmatter rejects a compact mapping inside a flow sequence ("[a: b]"),
which reference parsers read as a mapping, and unpaired surrogates from \u
escapes, while still accepting a surrogate pair.
URI validation uses System.Uri for syntax and then checks the raw segments,
so "1 bad://x/SKILL.md" is rejected and "file:///x/SKILL.md" is accepted.
Optional frontmatter fields that are present but null are rejected rather
than treated as absent. A self-comparing test assertion is fixed.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6omaTvQiryHtzFHRqUE3b
/// <param name="requestParams">The request parameters, including the cursor of the page to retrieve.</param>
75
79
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
76
-
/// <returns>The page, as returned by the server.</returns>
80
+
/// <returns>The page, as returned by the server, with every entry validated against the specification.</returns>
77
81
/// <exception cref="ArgumentNullException"><paramref name="client"/> or <paramref name="requestParams"/> is <see langword="null"/>.</exception>
78
82
/// <exception cref="InvalidOperationException">The server did not declare the MCP Skills extension.</exception>
83
+
/// <exception cref="SkillVerificationException">The server returned an entry that violates the specification.</exception>
79
84
/// <exception cref="McpException">The request failed or the server returned an error response.</exception>
@@ -109,9 +121,10 @@ public static async ValueTask<ListSkillsResult> ListSkillsAsync(
109
121
/// <param name="client">The client.</param>
110
122
/// <param name="uri">The URI of the skill's <c>SKILL.md</c>.</param>
111
123
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
112
-
/// <returns>The skill's entry.</returns>
124
+
/// <returns>The skill's entry, validated against the specification.</returns>
113
125
/// <exception cref="ArgumentNullException"><paramref name="client"/> or <paramref name="uri"/> is <see langword="null"/>.</exception>
114
126
/// <exception cref="InvalidOperationException">The server did not declare the MCP Skills extension.</exception>
127
+
/// <exception cref="SkillVerificationException">The server returned an entry that violates the specification.</exception>
115
128
/// <exception cref="McpException">
116
129
/// The request failed or the server returned an error response, including <see cref="McpErrorCode.InvalidParams"/>
117
130
/// when the server serves no skill at <paramref name="uri"/>.
@@ -165,8 +178,11 @@ public static async ValueTask<GetSkillResult> GetSkillAsync(
0 commit comments