part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
A skill is a directory containing a SKILL.md (YAML front matter with name and description plus instructions) and supporting files, as defined by the Agent Skills specification. The extension defines how to discover and read skills from an MCP server using Resources, with strong integrity verification.
{ "capabilities": { "resources": {}, "extensions": { "io.modelcontextprotocol/skills": { "directoryRead": true } } } }
The server MUST declare resources and the extension, and MUST implement skills/list and skills/get. directoryRead (default false) indicates support for resources/directory/read.
skills/listPageable and cacheable. Each entry: the uri of the SKILL.md, the full frontmatter, and resources: the complete manifest (URI, SHA-256 digest and size of every file, including SKILL.md) or the string "dynamic" for generated content. Each entry is atomic (it is not split across pages).
skills/getBy uri; returns result.skill with the same shape. Servers MAY list partially but MUST answer skills/get for every skill they serve; hosts MUST be able to load by URI even if it is not listed. Unknown → -32602.
resources/read of the SKILL.md and of the supporting files (relative references resolved against the skill's root directory). Optional: resources/directory/read (direct children, inode/directory for subdirectories, pageable); clients MUST NOT call it without directoryRead: true.
Identity = origin server + URI. Names are non-unique labels. Hosts MUST preserve server and URI in logs, approvals and caches. Recommended scheme skill://, not mandatory; a host MUST NOT identify a resource as a skill solely by its scheme.
While the skill is active (at least until SKILL.md leaves the context), given a manifest, the host MUST: restrict reads to URIs in the manifest; verify the size and SHA-256 of each file before using it; compare the front matter field by field with that of the entry. Content that fails MUST NOT be used; it is refreshed with skills/get. A persisted approval MUST be bound to the complete set of URIs and digests: any change revokes it. Hosts MUST NOT download files in advance (neither on connect, nor on list, nor on approval). On-disk caches: immutable and protected, or verified on every access; excluded from filesystem skill discovery; with the MCP origin preserved. For "dynamic", the host MAY reject; if it accepts, it verifies the front matter and does not extend the approval to future content.
Servers SHOULD NOT exceed 512 files or 16 MiB per skill; hosts MUST support up to that. Hosts MUST: prevent skills with the same name from silently replacing one another; label content with its server and bind reads to it (cross-server reads require per-call approval); treat content as untrusted (code execution and permissions such as allowed-tools require explicit per-skill approval); obtain fresh consent before activating a nested skill.
The Inspector CLI offers skills/list --verify (conformance and digests; exit 7/8) and --require-digests (exit 9).
skills/list.1. What does the resources field of a skills/list entry contain?
The manifest allows integrity to be verified and the approval to be bound.
2. What happens if a file in the manifest changes after a skill has been approved?
The persisted approval is bound to the complete set of URIs and digests.
3. Can a host identify a skill solely because its URI starts with skill://?
The scheme is recommended, not an identifier.