Repository navigation
docs(spec): Skills over MCP (spec 125) - #1919
Merged
Merged
Conversation
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.
Deploying mcpproxy-docs with
|
| 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 |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 43932939468 --repo smart-mcp-proxy/mcpproxy-go
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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).
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.enable_skills), with a per-serverexpose_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 inresearch.md.Decisions taken without asking (each is easy to overrule)
autotrust mode, even with a clean scan (stricter than tools)scanmode is approved after a clean and complete scan of every text fileDelivery
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-soluntil 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.