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 f18d7dc
Browse filesBrowse the repository at this point in the historyBrowse files
Catalogs now receive an McpSkillRequestContext carrying the JSON-RPC
request, the caller's ClaimsPrincipal when the transport supplies one, and
per-request items. The skills methods are raw handlers and do not pass
through the request filters that guard the resource methods, so a catalog
whose skills are not visible to every caller needs the caller to decide
with; the docs and API remarks now say so plainly. The interface changes
before it ships rather than after.
InMemoryMcpSkillCatalog keeps its own copy of each entry, so mutating a
Skill (or McpServerSkill.ProtocolSkill) after registration cannot make the
published manifest disagree with the served bytes.
Validation tightens to what the specifications require: resource and skill
URIs must be absolute, without query or fragment, and without empty, '.',
or '..' path segments, so a prefix check establishes containment; the total
size check cannot overflow; and the Agent Skills frontmatter limits are
enforced (description at most 1024 characters, compatibility 1 to 500,
license and allowed-tools strings, metadata a map of strings).
CreateFromDirectory rejects a root directory that is itself a link, to
match its documented behaviour.
SkillFrontmatter rejects malformed block scalar headers (repeated
indicators or trailing text), comments inside flow collections (which YAML
treats as running to the end of the line), and \U escapes that are not
Unicode scalar values, each with a FormatException. The catalog contract
now describes cursors as opaque positions a catalog may resume from rather
than tokens it must have issued.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6omaTvQiryHtzFHRqUE3b
All of these validate the skill against the specification and throw <xref:System.ArgumentException> with a
78
-
specific message when, for example, the frontmatter `name` does not match the URI, `SKILL.md` is missing, or the
79
-
skill exceeds the per-skill limits of 512 files or 16 MiB. File contents are copied when the skill is created, so
78
+
specific message when, for example, the frontmatter `name` does not match the URI, `description` exceeds the
79
+
Agent Skills limit of 1024 characters, `metadata` is not a map of strings, a resource URI escapes the skill's
80
+
directory, `SKILL.md` is missing, or the skill exceeds the per-skill limits of 512 files or 16 MiB. File contents are copied when the skill is created, so
80
81
later changes to a caller's buffer or to files on disk do not affect what is served. `CreateFromDirectory` does not
81
82
follow symbolic links, since a link can point outside the skill directory; it throws if it encounters one. File
82
83
names containing characters with URI syntax (such as `{`, `?`, or a space) are percent-encoded in the resource URIs.
@@ -105,21 +106,26 @@ When skills come from a database, a file share, or a large or generated catalog,
if(text[pos]=='#'&&(pos==start||text[pos-1]is' ' or '\t'))
692
+
{
693
+
thrownewFormatException($"Line {lineNumber}: a comment inside a flow collection runs to the end of the line, leaving the collection unterminated. Move the comment after the closing bracket.");
694
+
}
695
+
679
696
pos++;
680
697
}
681
698
@@ -744,7 +761,16 @@ private static string ParseQuotedScalar(string text, int start, int lineNumber,
0 commit comments