Skip to content

docs(spec): Skills over MCP (spec 125) - #1919

Merged
Dumbris merged 3 commits into
mainfrom
125-skills-over-mcp
Nov 17, 2026
Merged

Dumbris merged 3 commits into
mainfrom
125-skills-over-mcp

Conversation

@Dumbris

@Dumbris Dumbris commented Nov 16, 2026

Copy link
Copy Markdown
Member

Summary

Specification, plan and task list for Skills over MCP (issue #1895): bringing the skills that upstream servers expose through io.modelcontextprotocol/skills (SEP-2640) to every client connected to mcpproxy, without letting skill text bypass quarantine. Docs only; no code changes.

Related #1895

What the spec decides

  • A skill is instruction text for the model, so no skill content reaches an agent until that exact content has been approved. Approvals are bound to the content (file addresses, digests, sizes, frontmatter) and to the server incarnation.
  • mcpproxy keeps its own verified copy and serves agents only from the approved copy, so a change upstream can never reach an agent before a new review.
  • Agents get three search-first built-in tools (retrieve_skills, load_skill, read_skill_file) that work in every client. The native extension is offered later, on the single-server endpoint /mcp/s/<server> only.
  • Off by default (enable_skills), with a per-server expose_skills.

Verified before writing

A live check on 2026-11-16 against a public server that implements the extension showed the extension announced under the handshake mcpproxy already sends (protocol 2025-11-25, no client capabilities), 25 skills listed with per-file SHA-256 digests and sizes, and file reads matching them. No change to the upstream handshake is needed. Details in research.md.

Decisions taken without asking (each is easy to overrule)

Decision Where to change it
A changed skill always waits for a person outside auto trust mode, even with a clean scan (stricter than tools) the table in FR-013
A first-seen skill in the default scan mode is approved after a clean and complete scan of every text file the table in FR-013
"Dynamic" skills (no fixed file list) are never available to agents FR-014
Held skills are visible to administrators only, not to scoped agent tokens FR-019a
Binary files are listed but not served; nothing is ever executed FR-022, FR-025
Built-in tools first, native surface last Delivery order

Delivery

Five pull requests (plan.md): reading in and administrator listing; the approval gate; agent tools; Web UI; native surface. Nothing agent-facing merges before the gate.

Review

Spec and plan were cross-reviewed with opencode gpt-6.1-sol until clean (spec: 5 rounds; plan: 3 rounds on upstream/storage/runtime, 6 rounds on surfaces and scope). One reviewer run exited without a verdict because it was refused a read outside the repository; it was re-run in two parts and is not counted.

Related #1895

Specification for bringing upstream skills (io.modelcontextprotocol/skills,
SEP-2640) to every client through a quarantined catalog: reading skills in
with digest verification, a content-bound approval gate, search-first agent
tools served from the approved copy, and a native surface on the
single-server endpoint.
Related #1895

Implementation plan for Skills over MCP in five pull requests: reading
skills in with bounded, verified fetches; the content-bound approval gate;
search-first agent tools served from the approved copy; Web UI; the native
extension on the single-server endpoint.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 506dcba
Status: ✅  Deploy successful!
Preview URL: https://67a6e6e3.mcpproxy-docs.pages.dev
Branch Preview URL: https://125-skills-over-mcp.mcpproxy-docs.pages.dev

View logs

@github-actions

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: 125-skills-over-mcp

Available Artifacts

  • archive-darwin-amd64 (32 MB)
  • archive-darwin-arm64 (29 MB)
  • archive-linux-amd64 (20 MB)
  • archive-linux-arm64 (18 MB)
  • archive-windows-amd64 (32 MB)
  • archive-windows-arm64 (29 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (28 MB)
  • installer-dmg-darwin-arm64 (26 MB)
  • smart-mcp-proxymcpproxy-go08CLHV.dockerbuild (0 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 43932939468 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dumbris
Dumbris merged commit c9eaabb into main Nov 17, 2026
69 checks passed
Dumbris added a commit that referenced this pull request Nov 17, 2026
… (spec 125, PR-1) (#1921)

## Summary

First of five pull requests for **Skills over MCP** (spec 125, #1919):
MCPProxy reads the skills that upstream servers expose through
`io.modelcontextprotocol/skills` (SEP-2640) into its own catalog,
verifies them, and shows them to administrators. **Nothing is offered to
agents in this change**, and the feature is **off by default**
(`enable_skills`).

Related #1895

## What it does

- **Reads skills in.** For a connected server that announces the
extension: `skills/list` (paged), then every file through
`resources/read`. Each file is checked against the listed size and
SHA-256, and the `SKILL.md` frontmatter against the listing. A skill
that fails a check is stored as `unusable` with the reason; the others
are unaffected.
- **Keeps its own verified copy.** Text files are stored in bbolt
(`skill_files`, content-addressed per server) next to one record per
skill (`skill_approvals`). Both buckets are in the purge set: removing a
server removes its skills.
- **Bounds everything a server can make it do.** 512 files and 16 MiB
per skill, 200 skills and 64 MiB of stored text per server, 16 MiB per
listing, 256 MiB read per refresh, display fields cut before they are
stored. On streamable HTTP a response is cut off before it is buffered
when it is larger than its listed size allows.
- **Shows them to administrators only.** `GET
/api/v1/servers/{id}/skills`, `GET …/skills/content`, `POST
…/skills/refresh`, and `mcpproxy skills list|show|refresh`. A scoped
agent token is refused on all three and never receives the
`skills.changed` event. Every skill is `pending` (or `unusable`); the
review and approve step is the next pull request.
- **Two switches**, both hot-reloaded: `enable_skills` (default false)
and per-server `expose_skills`. With the feature off no skill request
reaches any upstream.

## Structure

| Area | Files |
|---|---|
| Pure rules (wire types, address rules, verification, `sk1-` content
hash, limits) | `internal/skills` |
| Test upstream (raw JSON-RPC, no public server in any test) |
`internal/skills/skillstest` |
| Upstream reads, per-request response limit |
`internal/upstream/{core,managed}/skills.go`, `manager_skills.go`,
`internal/transport/response_limit.go` |
| Storage | `internal/storage/skills.go`, purge set |
| Catalog (single-flight refresh, budgets, capture ordering, shutdown
join) | `internal/runtime/skills_catalog.go` |
| REST, CLI, docs | `internal/httpapi/skills.go`,
`cmd/mcpproxy/skills_cmd.go`, `docs/features/skills.md` |

No new dependencies. The upstream handshake and the protocol pin are
unchanged.

## Verification

- Unit and integration tests for every layer against the fixture
upstream, with `-race`; the full `internal/runtime`,
`internal/upstream`, `internal/storage`, `internal/httpapi`,
`internal/server` (CI skip list) and `cmd/mcpproxy` suites; both
golangci-lint runs; `make swagger-verify`; `vue-tsc`.
- **Live**, with a throwaway core, scratch data directory and high port,
against `https://huggingface.co/mcp`: 25 skills read in 25 s, all
`pending`, none available to agents, none unusable, 158 files verified
(1 binary); `hf-cli/SKILL.md` has the digest recorded in the spec's
research (`sha256:a60115f0…`); `skills list`, `skills show` and the
paged content endpoint work.
- With `enable_skills` off, a test asserts that no skill request reaches
the upstream and nothing is stored.

## Review

Cross-model review with opencode `gpt-6.1-sol`, in four chunks (rules
and upstream reads; storage and catalog; REST and CLI; config wiring),
repeated until clean. Findings fixed on the way, each with a test: two
addresses deriving one skill path; a same-digest file skipping its own
size check; size sums that could wrap; switches not re-checked during a
running refresh or a paged listing; the entry cap ignoring undecodable
entries; number comparison in frontmatter; terminal escape sequences in
CLI output and errors; a caller's cancelled request cancelling a shared
refresh; unbounded display metadata; a refresh superseded by a reconnect
reported as a failure; a per-server config change not triggering a
refresh.

Two reviewer points were not changed, on purpose:
- **stdio and SSE responses are not bounded before buffering.** They
arrive on a stream shared with every other message, so they cannot be
cut off per request; the length is checked afterwards. This is the
exposure any tool result from the same server already has. Documented in
`docs/features/skills.md`.
- **The administrator gate runs after the server-reach check.** A scoped
caller gets 403 only for a server already inside its own reach, which it
can list anyway. The server-edition form of this point was real and is
fixed: a tenant session reached the two skills GET routes through the
per-server allowlist, so `tenantSessionAllowlist` now refuses everything
under `skills` (`TestTenantSessionSkillsRoutesAreRefused`).

## Not in this change

Approval states and scanning (PR-2), agent tools (PR-3), Web UI (PR-4),
the native extension on `/mcp/s/<server>` (PR-5).
@Dumbris Dumbris mentioned this pull request Nov 24, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants