MCPHub
Back to blog
Agent SkillsSEP-26407 min read

When Agent Skills Leave Local Folders: SEP-2640 and MCPHub in Practice

Local skill folders work well for one person, but teams quickly run into drift and governance friction. Here is how MCP's SEP-2640 Skills Extension works, why hosting skills at the gateway layer makes sense, and how to publish and connect them with MCPHub.

MMCPHub team

Agent Skills caught on quickly for a simple reason: they are lightweight. Create a directory, add a SKILL.md file with a bit of YAML frontmatter, drop supporting docs or scripts alongside it, place the folder under .agents/skills/, and an agent can pick it up.

That workflow feels great for one engineer on one machine. Move it into a team setting, though, and the friction shows up fast. Every developer has to sync shared runbooks or release procedures across laptops and clients by hand. Within a couple of weeks, copies drift. And when a workflow changes or turns out to have a bug, there is no central off switch—just a message in team chat asking everyone to pull or delete the old folder.

There is also an awkward split underneath: many skills exist to teach an agent how to combine a specific set of remote MCP tools. The tools already live on a server behind a standard protocol, yet the operating manual still travels around as copied local directories.

MCP’s SEP-2640: Skills Extension is designed to close that gap. Starting in MCPHub v1.3.0 (PR #1508), we brought this capability into the gateway layer. This post walks through the ideas behind SEP-2640, the architectural questions that matter when hosting skills in an MCP gateway, and how to publish and connect a skill with MCPHub.

How SEP-2640 approaches the problem

Before SEP-2640, MCP already had Tools, Resources, and Prompts, none of which quite fit multi-file Agent Skills. Rather than inventing a brand-new file-transfer mechanism, SEP-2640 (extension ID io.modelcontextprotocol/skills) layers a small discovery surface directly on top of MCP’s existing Resources primitive:

  • Clients call skills/list to discover the skills exposed by a server, receiving each skill’s parsed frontmatter and full file manifest.
  • Only when the model decides a skill is relevant to the task does the client fetch SKILL.md—and later any supporting files—through standard resources/read calls.
  • When a client needs to inspect or refresh a single entry, it can query skills/get directly by URI.

Two design choices here carry most of the practical value.

First is progressive disclosure. Loading dozens of full skill guides and reference files into context on connection would burn through the context window before real work begins. Separating catalog discovery from on-demand file reads lets the model scan lightweight names and descriptions upfront and pull detailed instructions only when needed.

Second is integrity verification paired with a clear boundary. A remote skill is external instruction text injected into a model’s context; if a server silently changes it, the risk looks a lot like software supply-chain tampering. SEP-2640 includes a SHA-256 digest for every file in the manifest so hosts can verify what they read and re-prompt users when content changes. Just as importantly, the spec deliberately stops at read-only delivery: it does not install files onto the agent’s local filesystem or specify how bundled scripts should be executed. Keeping distribution separate from execution leaves sandboxing and consent decisions where they belong—on the client host.

Why host skills in an MCP gateway

The textbook mental model for Skills over MCP is a single MCP server shipping its own operating manual alongside its tools. That works well for standalone SaaS integrations.

Inside an engineering organization, however, workflows rarely map cleanly to a single upstream server. Teams commonly connect a dozen internal and third-party MCP servers, and the most useful skills span several of them—or capture internal engineering conventions that do not belong to any upstream server at all. Modifying every upstream server just to serve internal runbooks is rarely realistic.

An MCP gateway like MCPHub already sits between clients and upstream servers with centralized routing and access control: a global /mcp endpoint, group-scoped /mcp/:group endpoints, authentication, and group visibility. Hosting skills at the gateway layer lets tools and workflows share the exact same publishing surface and access boundary. A team connects to its group endpoint and gets the tools and skills meant for that group, without running a separate distribution system.

Putting this into a gateway still raises two practical boundary questions:

  • Coexisting with older protocol versions and existing resources. MCP is still evolving quickly, and a gateway typically serves plenty of 2025-era clients alongside newer ones. MCPHub exposes the Skills extension only on MCP 2026-07-28 stateless HTTP endpoints, so legacy clients never see the extension during handshake. Hosted skills also live under a dedicated URI namespace so they do not collide with existing built-in or upstream resources.
  • Keeping remote sources under control. Supporting imports directly from GitHub or skills.sh means you cannot simply proxy a live branch on every request—otherwise any upstream push silently alters agent behavior across your teams. MCPHub pins remote imports to the resolved commit at import time, stores the files locally, and leaves every new skill disabled until an administrator reviews it and chooses where to publish.

Practical guide: publishing and connecting a skill with MCPHub

On MCPHub v1.3.0 or later, getting a skill from import to a compatible client takes three steps.

Prerequisites

  • Deployment: Currently supported on single-instance self-hosted deployments. Skill files are stored under data/skills/<skill-name>/ in the MCPHub working directory; if you run Docker, mount /app/data for persistence and include data/skills/ in your backups.
  • Client support: Your client needs MCP 2026-07-28 and io.modelcontextprotocol/skills support (check the official client support matrix before wiring one up).

Step 1: Import a skill

Sign in to the MCPHub dashboard as an administrator and open Skills in the sidebar. From here you can view installed skills or switch to Discover and Configuration.

MCPHub Skills page showing installed skills, Discover, Configuration, and manual import

There are three ways to bring a skill in:

  1. Local directory: Click Import manually and select a local folder containing SKILL.md. The folder name must match the name field in SKILL.md frontmatter.
  2. Public GitHub directory URL: In Import manually, switch to a remote source and paste a repository directory URL such as https://github.com/owner/repo/tree/main/skill-name (or point directly to a commit SHA).
  3. Discover from skills.sh: Switch to the Discover tab to browse the leaderboard or search public skills on skills.sh and import in one click. If your server accesses GitHub through a proxy, configure direct, server-default, or custom HTTP(S) proxy settings under Skills → Configuration first.

Import Skill dialog supporting local folders and remote sources

Step 2: Review and choose publication scope

Every newly imported skill starts disabled so nothing is exposed before review.

Click a skill to open its detail page. You can inspect SKILL.md and supporting files in the built-in file browser and verify the source repository and pinned commit in the upper right. Once everything looks right:

  • Turn on Enabled;
  • Select Global endpoint (exposed on /mcp when global routing is enabled) and/or specific Groups (exposed on /mcp/<group>).

Skill detail page with file browser, pinned Git commit, and publication scope controls

Group endpoints reuse MCPHub’s existing authentication and group visibility rules—no separate permission model to maintain. To take a skill down, toggle Enabled off or delete it.

Step 3: Connect a compatible client

Point a SEP-2640-compatible client at the published global or group endpoint. With the official TypeScript SDK (v2.4.0+), enable automatic version negotiation so the client discovers the 2026-07-28 endpoint, then use SkillsClient to list, read, and verify skills:

import { Client } from "@modelcontextprotocol/client";
import { SkillsClient } from "@modelcontextprotocol/client/ext/skills";

const client = new Client(
  { name: "my-agent", version: "1.0.0" },
  { versionNegotiation: { mode: "auto" } },
);

// After the client connects
const skills = new SkillsClient(client);
const { skills: entries } = await skills.list();
const manifest = await skills.read(entries[0]);

Once connected, the client lists the skills permitted on that endpoint via skills/list, fetches SKILL.md and attachments lazily through resources/read, and verifies contents against the manifest’s SHA-256 digests. MCPHub never installs files onto the agent’s machine, and existing Tools, Prompts, and Resources continue working on the same endpoint.

Current boundaries

Serving skills over MCP solves a concrete problem—centralized distribution, scoping, and revocation of team workflows—while leaving a few real boundaries worth keeping in mind:

  • Single-instance self-hosting only: Because skill files currently live on local disk, the Skills catalog is disabled in replica and hosted modes. Multi-instance high availability will need shared object storage underneath.
  • Basic update and versioning workflow: Today each import is stored as a static snapshot without in-place overwrites or version history, so updating a skill means removing and re-importing it. Long-lived team catalogs will eventually need proper versioning, diffs before publishing, and rollback.
  • Client adoption is still catching up: MCP 2026-07-28 and SEP-2640 are recent, and many widely used clients are still on older protocol versions. Remote skills and local skill folders will coexist for a while.
  • Distribution is not execution: Documentation- and workflow-heavy skills already work cleanly over MCP. Skills that rely heavily on running bundled local scripts still depend on how mature the client host’s sandbox and approval flow are.

Even with those limits, moving agent workflows from manually copied local folders to remote capabilities with pinned sources, clear access boundaries, and an instant off switch is a practical step forward. Storage scaling, version history, and broader client support can follow as real usage matures.


For full configuration details, see the Skills over MCP documentation and the SEP-2640 specification. If you are new to MCPHub, start with What Is an MCP Gateway? or spin up a local instance with the Docker self-hosting tutorial.