SDO Skills MCP
by jr2804
README.md
# Skillsets MCP
Serve named sets of agent skills (**skillsets**) over the
[Model Context Protocol](https://modelcontextprotocol.io), so an MCP host can read them
without copying them into every project.
<!-- markdownlint-disable MD033 -->
<p align="center">
<a href="#"><img alt="Python 3.14+" src="https://img.shields.io/badge/python-3.14%2B-3776ab?logo=python"></a>
<a href="LICENSE"><img alt="License" src="https://img.shields.io/badge/license-MIT-green.svg"></a>
<a href="https://github.com/jr2804/skillsets-mcp/actions"><img alt="CI" src="https://github.com/jr2804/skillsets-mcp/actions/workflows/ci.yml/badge.svg"></a>
</p>
<!-- markdownlint-enable MD033 -->
A configuration file declares **groups** — named lists of git or local skill sources —
and **profiles** that compose those groups. One process serves one profile. 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](https://github.com/jr2804/sdo-skills) — the ETSI, 3GPP and ITU-T
writing skills — is the reference one, configured in
[`examples/conf.d/sdo.toml`](examples/conf.d/sdo.toml).
---
## Quick Start
```bash
# Clone and set up
git clone https://github.com/jr2804/skillsets-mcp.git
cd skillsets-mcp
mise dev
```
## Configure
Configuration lives in one or more TOML files:
```toml
[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 }]
[profiles.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`, optionally `owner/repo@ref` and `owner/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`. Within a profile, the first declared
source of a skill name wins. A source marked `optional = true` is skipped (with a
warning) when it cannot be found or synced; every other source is strict.
Files are found from `--config` (repeatable), then `SKILLSETS_CONFIG`, then
`~/.config/skillsets-mcp/conf.d/*.toml`.
## Sync, then serve
Git sources are cloned on demand, never on startup:
```bash
uvx --from git+https://github.com/jr2804/skillsets-mcp skillsets-mcp sync
uvx --from git+https://github.com/jr2804/skillsets-mcp skillsets-mcp serve --profile etsi
```
`sync` materialises one sparse, blob-less checkout per repository (and ref) under the
cache — `--cache`, `SKILLSETS_CACHE`, or `~/.cache/skillsets-mcp` — 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.
With `examples/conf.d/sdo.toml` the profiles resolve to:
| Profile | Skills | Content |
| ------- | ------ | -------------------------------------------------- |
| `etsi` | 11 | common + ETSI groups + the ETSI portal tooling |
| `3gpp` | 13 | common + the 3GPP group |
| `itut` | 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:
```jsonc
{
"mcp": {
"skillsets": {
"type": "local",
"command": ["uvx", "--from", "git+https://github.com/jr2804/skillsets-mcp", "skillsets-mcp",
"serve", "--profile", "etsi"],
"enabled": true
}
}
}
```
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 --profile <id>` | Serve a profile over stdio (default) or `--transport http` |
| `profiles` | List the profiles with their titles |
| `catalog --profile <id>` | List the skills a profile resolves to, in order |
| `check` | Validate every group and report what each profile resolves |
| `sync [--profile <id>]` | 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, shadowed skills and profiles that
resolve to zero skills — and exits 1 when anything is wrong.
Shell completion (after the command is on your `PATH`):
```bash
skillsets-mcp --install-completion
```
## Development
```bash
mise dev # uv sync -U --dev --all-extras --all-groups
mise test # uv run pytest --cov=skillsets_mcp (100 % coverage gate)
mise lint # ruff check --fix --unsafe-fixes
mise typecheck # ty check src/ tests/ (in neither `mise all` nor CI)
mise spell # codespell src/ tests/
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:
```bash
uv run pytest --no-cov tests/test_catalog.py
```
Pre-commit hooks:
```bash
pre-commit install
pre-commit run --all-files
```
Documentation (Zensical):
```bash
mise docs # build the docs (uv run --link-mode=copy zensical build)
uv run zensical serve # live preview
```
## Project Structure
```text
skillsets-mcp/
├── .config/mise/ # mise task definitions
├── .github/workflows/ # CI + release workflows
├── .agents/ # DOX state files (onboarding, policies, history)
├── docs/ # Zensical documentation
├── examples/conf.d/sdo.toml # reference groups and profiles
├── src/skillsets_mcp/
│ ├── __about__.py # version metadata
│ ├── config.py # conf.d loading and validation
│ ├── sources.py # source syntax -> local/git sources
│ ├── cache.py # cache layout and skills.lock.toml
│ ├── sync.py # sparse git checkouts
│ ├── catalog.py # discovery, shadowing, profile composition
│ ├── 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
```
## Tech Stack
| Layer | Tool | Purpose |
|-------|------|---------|
| Package manager | [uv](https://docs.astral.sh/uv/) | Fast installs, deterministic lockfile |
| Task runner | [mise](https://mise.jdx.dev/) | DAG-based tasks, tool version management |
| Linter + formatter | [ruff](https://docs.astral.sh/ruff/) | Single-binary code quality |
| Type checker | [ty](https://github.com/google/ty) | Strict type checking |
| Testing | [pytest](https://pytest.org/) | Test framework with 100% coverage gate |
| CLI | [Cyclopts](https://cyclopts.readthedocs.io/) | Type-driven CLI parsing and shell completion |
| Server | [FastMCP](https://gofastmcp.com/) | MCP server with the skills extension |
| Spell check | [codespell](https://github.com/codespell-project/codespell) | Code and doc spell checking |
| Documentation | [Zensical](https://github.com/zensical/zensical) | MkDocs Material with executable examples |
| Versioning | [uv-dynamic-versioning](https://github.com/ninoseki/uv-dynamic-versioning) | Git tag-based calendar versioning |
| Hooks | [pre-commit](https://pre-commit.com/) | 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](LICENSE) for details.
---
Generated from [copier-uv-plus](https://codeberg.org/jr2804/copier-uv-plus).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues