Skillsets MCP¶
Serve named sets of agent skills (skillsets) over the Model Context Protocol, so an MCP host can read them without copying them into every project.
A configuration file declares groups — named lists of git or local skill sources —
and a skillset that selects groups from the merged pool. One process serves the
skillset of the configuration it finds. The server exposes the skills through the MCP
Skills extension (skills/list, skills/get, skill://<name>/SKILL.md resources) and,
for hosts that do not speak that extension yet, through two plain tools: list_skills
and read_skill.
Skill content is not in this repository. Any agent-skills repository works;
jr2804/sdo-skills — the ETSI, 3GPP and ITU-T
writing skills — is the reference one, configured in
examples/.
Quick Start¶
# Clone and set up
git clone https://github.com/jr2804/skillsets-mcp.git
cd skillsets-mcp
mise dev
Configure¶
Configuration is TOML. Groups and the skillset may live in one file:
[groups.common]
sources = ["jr2804/sdo-skills/skills/common"]
[groups.etsi]
sources = ["jr2804/sdo-skills/skills/etsi"]
[groups.etsi-tools]
sources = [{ path = "https://forge.etsi.org/rep/reimes/etsi-portal-tool", optional = true }]
[skillset]
name = "etsi"
title = "ETSI Writer"
description = "The ETSI standards-writing skills plus the ETSI tooling."
groups = ["common", "etsi", "etsi-tools"]
A source is one of:
owner/repo, optionallyowner/repo@refandowner/repo/sub/dir— git over HTTPS- a full URL —
https://…,git@host:…,file://…, including repository/tree/<ref>/<path>URLs - a local path — absolute,
./,../or~/ - a table for options:
{ path = "…", ref = "…", optional = true }
If the path itself contains a SKILL.md, it is one skill; otherwise the directory is a
container scanned up to three levels deep, and the shallowest SKILL.md shadows deeper
ones — the same convention as npx skills add. A skill name must be unique across the
selected groups: a duplicate is an error naming both sources. A source marked
optional = true is skipped (with a warning) when it cannot be found or synced; every
other source is strict.
Configuration hierarchy¶
Like mise, the configuration is discovered — closest first — and every file that exists is merged:
./skillsets.local.toml(gitignored by convention)./.skillsets.toml./.config/skillsets/config.toml./.config/skillsets/conf.d/*.toml~/.config/skillsets/config.toml~/.config/skillsets/conf.d/*.toml
Groups from every file join one pool; defining the same group twice is an error. When
several files define [skillset], the closest one wins and check lists the
overridden ones. groups may be omitted, in which case the skillset uses every group;
name defaults to the file stem, title to the name.
--config (repeatable) or SKILLSETS_CONFIG replaces discovery with the given files
or directories; a directory expands to its config.toml, every sibling *.toml and
conf.d/*.toml.
Sync, then serve¶
Git sources are cloned on demand, never on startup:
uvx --from git+https://github.com/jr2804/skillsets-mcp skillsets-mcp sync
uvx --from git+https://github.com/jr2804/skillsets-mcp skillsets-mcp serve
sync materialises one sparse, blob-less checkout per repository (and ref) under the
cache — --cache, SKILLSETS_CACHE, or ~/.cache/skillsets — and records the
resolved commits in skills.lock.toml beside it. serve, catalog and check only
read that cache, so they are safe to run offline; an unsynced repository makes them
fail with an instruction to run sync. Local sources need no sync at all.
The reference configurations in examples/ resolve to:
| Configuration | Skills | Content |
|---|---|---|
examples/etsi.toml |
11 | common + ETSI groups + the ETSI portal tooling |
examples/3gpp.toml |
13 | common + the 3GPP group |
examples/itut.toml |
7 | common + the ITU-T group |
(the ETSI tooling lives in an ETSI-internal GitLab repository, so that source is
optional and quietly skipped elsewhere.)
Host configuration¶
OpenCode (opencode.jsonc) — the tools work in every version; builds with the skills
extension expose the same skills natively when experimental.mcp_skills is on:
{
"mcp": {
"skillsets-etsi": {
"type": "local",
"command": ["uvx", "--from", "git+https://github.com/jr2804/skillsets-mcp", "skillsets-mcp",
"serve", "--config", "path/to/etsi.toml"],
"enabled": true
}
}
}
To serve several skillsets side by side, register one server per skillset, each with
its own --config. Claude Code (.mcp.json) takes the same command array under
mcpServers. A host that implements the skills extension sees the skills natively
(Claude Code 2.1.332+ in beta); otherwise the two tools carry the same content, one
file at a time.
Commands¶
| Command | Does |
|---|---|
serve |
Serve the configured skillset over stdio (default) or --transport http |
catalog |
List the skills the configured skillset resolves to, in order |
check |
Validate every group and report what the skillset resolves |
sync |
Fetch the git sources and write the lock file |
check is the gate to run before serving: it reports missing strict sources, skipped
optional ones, invalid skills, duplicate names, groups that fail, overridden skillsets
and skillsets that resolve to zero skills — and exits 1 when anything is wrong.
Shell completion (after the command is on your PATH):
skillsets-mcp --install-completion
Development¶
mise dev # uv sync -U --dev --all-extras --all-groups
mise test # uv run pytest (both packages, 100 % coverage gate)
mise lint # ruff check --fix --unsafe-fixes
mise typecheck # ty check src/ tests/ packages/ (in neither `mise all` nor CI)
mise spell # codespell src/ tests/ packages/
mise format # pyreorder + ruff format + ruff import sort
mise all # test + lint + spell + format + format-md + docs
A focused run needs --no-cov — the coverage gate fails below 100 % on a partial suite:
uv run pytest --no-cov tests/test_catalog.py
Pre-commit hooks:
pre-commit install
pre-commit run --all-files
Documentation (Zensical):
mise docs # build the docs (uv run --link-mode=copy zensical build)
uv run zensical serve # live preview
Project Structure¶
skillsets-mcp/
├── .config/mise/ # mise task definitions
├── .github/workflows/ # CI + release workflows
├── .agents/ # DOX state files (onboarding, policies, history)
├── docs/ # Zensical documentation
├── examples/ # reference skillsets (etsi, 3gpp, itut)
├── packages/config-hierarchy/ # generic TOML discovery/merge/overlay
│ ├── src/config_hierarchy/
│ └── tests/
├── src/skillsets_mcp/
│ ├── __about__.py # version metadata
│ ├── config.py # groups + skillset interpretation
│ ├── sources.py # source syntax -> local/git sources
│ ├── cache.py # cache layout and skills.lock.toml
│ ├── sync.py # sparse git checkouts
│ ├── catalog.py # discovery, shadowing, skill resolution
│ ├── server.py # FastMCP server, extension + tools
│ └── cli/ # Cyclopts CLI (app, args, commands)
├── tests/ # Test suite
├── .copier-answers.yml # Template version tracking
├── pyproject.toml # uv + hatch + pytest config
├── ruff.toml # Linter + formatter config
├── ty.toml # Type checker config
└── README.md
The workspace member packages/config-hierarchy (published as config-hierarchy) owns the generic mechanics -
discovering the mise-style hierarchy, expanding --config paths, merging tables and
reporting duplicates/overrides. It has no FastMCP or skillsets_mcp imports, so it can
be published on its own; src/skillsets_mcp/config.py only interprets [groups] and
[skillset].
Tech Stack¶
| Layer | Tool | Purpose |
|---|---|---|
| Package manager | uv | Fast installs, deterministic lockfile |
| Task runner | mise | DAG-based tasks, tool version management |
| Linter + formatter | ruff | Single-binary code quality |
| Type checker | ty | Strict type checking |
| Testing | pytest | Test framework with 100% coverage gate |
| CLI | Cyclopts | Type-driven CLI parsing and shell completion |
| Server | FastMCP | MCP server with the skills extension |
| Spell check | codespell | Code and doc spell checking |
| Documentation | Zensical | MkDocs Material with executable examples |
| Versioning | uv-dynamic-versioning | Git tag-based calendar versioning |
| Hooks | pre-commit | Automated quality gate |
| CI/CD | GitHub Actions | Test matrix + calendar-version release |
CI/CD¶
GitHub Actions runs on every push and PR:
| Workflow | Triggers | Jobs |
|---|---|---|
CI (ci.yml) |
push, PR to main | quality (ruff, codespell) + test matrix (3.14, 3.15-dev on Linux/macOS/Windows) + docs build |
Docs (docs.yml) |
push to main (docs, README, zensical.toml) |
builds the Zensical site and deploys it to https://jr2804.github.io/skillsets-mcp/ |
Release (release.yml) |
push to main | computes the next calendar version (YYYY.MM.N), tags the commit, builds the package, publishes a GitHub release with the artifacts |
Put [skip release] in the last commit message to suppress the release path: no tag is
cut and no GitHub release is published.
License¶
MIT — see LICENSE for details.
Generated from copier-uv-plus.