skill-mcp
An MCP server that serves a directory of Agent Skills. Point it at skills;
it lists them, hands out their instructions and their bundled files, and runs
only the scripts a skill declares.
It is a generic adapter, not a curated set: the skills are content it reads, and
the same build serves whatever it is pointed at.
npx @chrischall/skill-mcp # serves the example skill bundled here
SKILLS_DIR=~/my-skills npx @chrischall/skill-mcp
The npm package is @chrischall/skill-mcp (unscoped skill-mcp is taken by
someone else on npm). Everything else — the repo, the binary, the registry
identity io.github.chrischall/skill-mcp — is unscoped.
What a skill is
A directory holding SKILL.md: YAML frontmatter (name, description, and
optionally the mcp-host: block below) followed by instructions, plus whatever
files those instructions refer to. Three layouts are found under each root:
<root>/SKILL.md # the root IS one skill
<root>/<name>/SKILL.md # a directory of skills
<root>/skills/<name>/SKILL.md
A skill is served under its DIRECTORY name, never under the name in its
own frontmatter (a frontmatter name that disagrees is reported and otherwise
ignored; where the root itself is the skill, the root directory names it). That
is a security rule, not a tidiness one: the owner's grant names a skill, so a
bundle that could choose its own name could claim its neighbour's and be handed
the neighbour's granted script and granted variables. For the same reason, two
directories that really do contribute one name — only possible across two roots
— have both refused and reported, rather than one of them winning by scan
order.
The tools
| tool | arguments | returns |
|---|
skill_list | — | every skill found: name, description, when to use it, file count, whether it declares runnable scripts and exactly which; plus problems, so an empty list is never a mystery |
skill_load | name | the SKILL.md body verbatim, plus a manifest of the bundle's files. Referenced files are not inlined — that is what skill_file is for |
skill_file | name, paths[] | one entry per path, in request order: text, or base64 with its media type, or that path's own error. At most 1 MiB per entry, truncated: true rather than a silent cut |
skill_run | name, script, args[], confirmToken | {exitCode, stdout, stderr, truncated, durationMs} |
skill_file takes a paths[] batch, so the files a SKILL.md points at come
back in one round trip: at most 8 paths per call, 1 MiB per entry and 4 MiB per
call (summed from file sizes before a byte is read, so the answer never depends
on the order the paths were listed in). One bad path fails only its own entry —
the rest of the batch is still served. Read the caps as bounds on this server's
own heap: they cap the allocation, not only the answer, because a hosted
child has a hard 256 MiB data limit and a bundle may be larger than that.
Each skill is also registered as an MCP prompt (its body is the message) and
each bundled file as a resource (skill://<name>/<path>), because a client that
supports those surfaces presents a skill better than a tool call does. It is a
second door, never the only one: when this server runs on
mcp-host and a registration narrows
enabledTools, prompts/list and resources/list come back empty and the
handshake stops advertising those capabilities — so the tools carry the whole
experience.
Discovery reports, it never goes quiet
Anything that keeps a directory from being served comes back in skill_list's
problems, with the path and the reason: no SKILL.md, frontmatter that will
not parse, a name two directories both claim (both refused), a declared script that is not in
the bundle, a symlink leading out of the root or out of a skill, a filename the
read tools could not address. One bad skill costs itself and never the listing,
and there is no third outcome where something is dropped in silence — a
symlinked skill directory is served when it stays inside the root (so
skills/foo -> ../shared/foo works) and reported when it does not. It is
served under its target directory's name — skills/foo -> ../bar is the skill
bar, reported as a name-mismatch so a grant is written against the right
name — and a directory reached twice (a link to a skill that is also listed
directly) is one skill, not a duplicate.
Problem reasons
Each entry in problems is {path, reason, detail}. detail is prose for a
person; reason is the stable value to switch on.