Skills over MCP (SEP-2640)
Skills over MCP gives you content integrity and calls it trust — and the inventory you can scan is not the inventory the server will serve.
A skill arriving over MCP is a remote document that becomes procedure the moment your model reads it, and SEP-2640 secures it with a per-file sha256 set that proves only one thing: the bytes you got match the bytes the server offered on this call. No signature, no author, no publisher — and because skills/get must answer for skills that skills/list never showed you, enumerating a server does not bound what it can hand your agent. This essay is what the extension actually adds, why reusing Resources was the right call, and the two gaps a reviewer has to close themselves.
Step 1What the extension adds, precisely.
Agent skills began as local folders: a directory with a Markdown file whose YAML frontmatter names the skill and says when to load it, plus whatever scripts and references sit beside it. The extension — identified as io.modelcontextprotocol/skills — lets a server deliver that same shape over the wire, so a host that already treats MCP resources as a virtual filesystem can load a served skill the way it loads a local one.
skills/listenumerates the server's skills. Each entry carries the skill's YAML frontmatter, rendered verbatim as JSON, and a complete per-filesha256resource set for the skill's directory.skills/getreturns one skill's entry by URI. The requirement that matters is in STEP 4: it must answer for every skill the server serves, whether or not that skill appears in the listing.- The files themselves are Resources. Each file in a skill's directory is exposed as an MCP resource, conventionally under a
skill://URI. A server declaring this extension must also declare theresourcescapability — the extension is a convention on top of an existing primitive, not a new transport. - Directory reads are opt-in and client-gated. Clients must not call
resources/directory/readagainst a server that has not declareddirectoryRead: true, which keeps a host from walking a tree the server never offered to expose.
Status is the one thing to check rather than inherit from an essay: sources disagree on whether the SEP is final on the extensions track or still beta, while implementations have run ahead of the paperwork — VS Code 1.148 lists support for representing skills over MCP, and pull requests exist against the C# SDK, FastMCP and the Vercel AI SDK. Read the SEP page for the current state before you plan around it.
Step 2Reusing Resources was the right call, and it is why this is cheap to adopt.
The tempting design would have been a new primitive: skills alongside tools, resources and prompts, with its own fetch semantics. The extension instead maps a skill onto the filesystem abstraction hosts already have. That choice buys three things at once, and it is worth seeing why before you argue with any of its consequences.
First, progressive disclosure comes for free. A skill's whole premise is that the model reads the frontmatter cheaply, decides the skill is relevant, and only then pays for the body — the same economics as search-then-fetch tool design. Because the listing carries frontmatter and the body is a separate resource read, the protocol expresses that gradient without inventing anything. Second, a host that can already render resources into a workspace needs no new loading path. Third, the per-file digest set makes a skill a versioned bundle rather than a stream, which is what lets a host detect that what it cached has moved underneath it.
The spec's staleness rule follows directly: a host must not use content it cannot verify against the current resource set, and recovers by calling skills/get or skills/list again and proceeding from the set it gets back. That is a sound cache-invalidation contract, and it is also the sentence most likely to be misread as a security guarantee. It is not one, for the reason in STEP 3.
Step 3The digest proves integrity. Nobody asked who wrote it.
A sha256 per file answers the question "did I receive what the server sent?" It is silent on "who authored this, and did anyone vouch for it?" Those are different properties — integrity and provenance — and content addressing only ever delivers the first. The digest is computed by the same party that serves the bytes, so an adversary who controls the server controls the digest too, and a tampered skill arrives perfectly self-consistent.
That distinction is not academic here, because it decides what a registry entry or a security review can promise you. Pinning a skill by digest gets you reproducibility: the same bytes next time, and a loud failure if they change. It does not get you authenticity. This is exactly the gap that pinning versus verification names in the general case, and the same gap the software supply chain spent years closing with signatures and attestations rather than hashes alone.
# what the digest set answers, and what it does not assert sha256(received) == entry.resources[path].sha256 # integrity: yes assert signed_by(entry, trusted_publisher_key) # provenance: no such field # so a digest pin is reproducibility, not authenticity: # changed bytes -> detected # hostile server -> undetected (it signs nothing, it just rehashes) # first-fetch attack -> undetected (nothing to compare against yet)
The third line is the one teams miss. Digest pinning protects the second fetch onwards; it says nothing about the fetch where you first learned the digest. If that fetch happened during an unreviewed install, the pin has faithfully frozen whatever you were given.
Treat "verified against the resource set" in a host's logs as a cache-coherence claim, not a trust decision. A host that reports a skill as verified has told you its bytes are intact; it has not told you the skill is safe to execute, and no field in the listing could have told it so.
Step 4Unlisted skills: skills/get must answer for what skills/list omits.
This is the structural finding, and it inverts how most people scan an MCP server. skills/get is required to resolve a skill by URI including skills that do not appear in skills/list. Discovery and availability are deliberately decoupled, and for good reasons: a server may hold thousands of skills and list only the ones relevant to the current context, or expose a skill per tenant, or keep a deprecated skill resolvable so that saved references do not break.
The consequence for review is immediate. A scanner that walks skills/list and signs off on what it finds has enumerated the server's recommendations, not its contents. Anything that can put a skill:// URI in front of the host — a tool result, a retrieved document, a prior turn, a second MCP server — can cause a fetch of a skill your inventory never contained. The approval surface is the URI space, and the URI space is not enumerable from the client side.
Set that beside tool poisoning and the asymmetry is clear. A poisoned tool description at least has to appear in tools/list to be selected, which is why scanning that list is a meaningful control. The skills listing carries no equivalent guarantee, so the control has to move: gate on the fetch, not on the inventory.
- Log every
skills/get, with the URI and what triggered it. An unlisted fetch is not an anomaly — it is a supported operation — so the signal you want is "a skill loaded that no human ever approved," which only a fetch-time record produces. - Allowlist URI prefixes, not skill names. Names are server-chosen labels on a mutable listing; the URI is what the fetch actually uses.
- Decide who may introduce a URI. If a skill URI can arrive inside untrusted content, you have given prompt injection a path to loading procedure rather than merely proposing it.
Step 5A skill is procedure, not data — which puts it in a different trust class from a tool result.
The habit this extension breaks is a good habit: treat everything a server returns as untrusted input, and never let it steer the agent. That works because a tool result is data — you can quarantine it, label it, summarise it, and the model is supposed to reason about it rather than obey it. A skill is the opposite by construction. Its entire function is to be adopted as instructions: do the task this way, use these scripts, prefer this tool.
So the usual defence — taint-tracking the untrusted parts of the context — degrades here, because the content is not a claim you can discount. It is a procedure you either load or do not. There is no partial adoption of a skill that still leaves it useful, which is why the decision has to happen before the fetch and cannot be repaired afterwards by a careful prompt.
The SEP's own guidance is consistent with this: the host applies its trust and consent policy before using a served skill. That is correctly placed — the protocol cannot know your policy — but note what it implies. The security property is entirely host-side, which means the extension's safety in your deployment is a property of your host's implementation, not of the spec. Check what your host actually does: whether it prompts on first fetch, whether it distinguishes listed from unlisted skills, whether it records the digest it loaded, and whether a skill's frontmatter can influence anything beyond skill selection. The frontmatter arrives verbatim, which is convenient for fidelity and means every field in it is attacker-controlled when the server is.
The clean way to hold this: a tool call is a question you asked and can disbelieve; a skill is a procedure you adopted. Both arrive over the same connection from the same party, and only one of them is safe to receive from a source you have not vetted. This is the same boundary vetting a third-party skill draws for local skills — the extension does not move it, it just makes crossing it a network call.
Step 6What to require before you turn it on.
The extension is genuinely useful: it solves distribution for skills, which was the real obstacle to sharing them across an organisation, and it does so without a new primitive or a parallel registry. Adopt it — but adopt it with the two gaps closed locally, because the spec leaves both to you by design.
- Separate the skill server from the untrusted-content servers. One connection that both serves procedure and returns third-party data is a confused deputy waiting to happen. Skills from a server you operate; data from servers you do not.
- Pin digests, and record where the first digest came from. The pin is worth having for reproducibility. Its value depends entirely on the provenance of the fetch that established it, so that fetch is the thing to review and record.
- Gate on fetch, with human approval for anything unlisted. This is the one control the inventory cannot give you, per STEP 4. A first-fetch prompt for an unlisted URI is cheap and catches the case that matters.
- Leave
directoryReadoff unless a skill needs it. It is client-gated for a reason; a server that has not declared it cannot be walked, and most skills are a file and a script. - Review the frontmatter as code, not as metadata. It is author-controlled text that reaches your host verbatim and decides when a procedure loads. Apply the same scrutiny you would to a tool description, for the reasons in MCP security anti-patterns.
If you do one thing: instrument skills/get before you enable the extension, and alert on a fetch whose URI was not in the last skills/list you reviewed. Every other control here protects bytes you already decided to trust; this is the only one that tells you a procedure entered your agent without passing a human. Then go read your host's implementation notes — in this extension, the host is the security boundary, and the spec says so.