Serving Skills over MCP

Publish an Agent Skill you already have through skills/list and skills/get, on the same connection that serves your tools.

Overview

Toolbox serves an Agent Skill as a set of ordinary resources. The io.modelcontextprotocol/skills extension adds two methods on top of them:

  • skills/list returns every skill the server declares.
  • skills/get returns one skill, addressed by the URI of its SKILL.md. An unknown URI returns error code -32602.

Both methods return metadata only. Each entry carries the SKILL.md frontmatter, and the URI, sha256: digest, and byte size of every file in the skill. The client reads the content of a file with resources/read, and compares the bytes against the digest.

Note

Toolbox computes the digests for each request. After you edit a file, the next skills/list or skills/get request publishes the new digest. If you add or remove a file of the skill, you change the configuration, so reload the server.

Toolbox enables the extension by default. To turn it off, see Disabling the extension.

Toolbox advertises extensions only for MCP protocol version 2026-07-28. A client on any other version reads the files as ordinary resources.

The skill files are always ordinary resources. resources/list and resources/read return them on every protocol version, whether the extension is enabled or disabled.

A client must declare io.modelcontextprotocol/skills in _meta.clientCapabilities.extensions on each skills/list and skills/get request. Without it, both methods return error code -32021 (MISSING_REQUIRED_CLIENT_CAPABILITY).

Defining a skill

The skill:// convention

A resource joins a skill through its URI. Give the resource a URI of the form skill://<skill-path>/<file>:

  • The resource at skill://<skill-path>/SKILL.md declares a skill.
  • Every other resource under the same skill://<skill-path>/ prefix is a file of that skill.

A skill:// resource with no SKILL.md at its skill path joins no skill. Toolbox serves it as an ordinary resource, and logs a warning at startup.

The skill path holds one or more segments. skill://guide/SKILL.md and skill://team/guide/SKILL.md both declare a skill. The frontmatter name must equal the last segment, so the second one requires name: guide.

Only concrete resources (kind: resource) become files of a skill. A resource template accepts a skill:// URI template, but Toolbox does not count the files it matches as members of a skill.

Example

Declare one kind: resource entry for each file of the skill:

kind: resource
name: deploy-runbook
type: file
description: "How to deploy the billing service."
path: "./skills/deploy-runbook/SKILL.md"
uri: "skill://deploy-runbook/SKILL.md"
---
kind: resource
name: deploy-runbook-rollback
type: file
description: "Rollback steps for the billing service."
path: "./skills/deploy-runbook/reference/rollback.md"
uri: "skill://deploy-runbook/reference/rollback.md"

The SKILL.md on disk opens with YAML frontmatter, and its name matches the skill path:

---
name: deploy-runbook
description: "How to deploy the billing service, and how to roll it back."
---

Read `reference/rollback.md` before you start a rollback.

skills/list then returns one entry:

{
  "skills": [
    {
      "uri": "skill://deploy-runbook/SKILL.md",
      "frontmatter": {
        "name": "deploy-runbook",
        "description": "How to deploy the billing service, and how to roll it back."
      },
      "resources": [
        {
          "uri": "skill://deploy-runbook/SKILL.md",
          "digest": "sha256:...",
          "size": 184
        },
        {
          "uri": "skill://deploy-runbook/reference/rollback.md",
          "digest": "sha256:...",
          "size": 2210
        }
      ]
    }
  ]
}

Configuration

A skill uses two fields of the resource schema. The required column below applies to a skill, not to resources in general.

fieldtyperequireddescription
uristringYesAddress the resource as skill://<skill-path>/<file>. A URI that ends in /SKILL.md declares a skill. Other skill:// URIs are files of a skill.
dynamicboolNoSet to true on a SKILL.md resource to publish the dynamic marker in place of digests. See Dynamic skills. Defaults to false.

A type: file resource is the usual choice, because it serves a file from disk.

Nested skills

A skill path can contain another skill. skill://guide/SKILL.md and skill://guide/api/SKILL.md declare two skills, and Toolbox lists both.

The specification requires each entry to list every file under its skill path. A file of the inner skill is also under the outer skill’s path, so it appears in both entries. For example, skill://guide/api/reference.md appears in the entry for guide and in the entry for api.

Dynamic skills

Set dynamic: true on a SKILL.md resource when the content of the skill changes faster than a host’s load cycle. The entry then publishes the string "dynamic" in place of the file list.

Warning

A dynamic skill publishes no digests, so a client cannot verify the bytes it fetched against the catalogue. Use dynamic: true only when a stable digest is impossible.

The io.modelcontextprotocol/skills extension defines the "dynamic" marker and the per-skill limits. Toolbox adds three rules for the marker:

  • dynamic must be mentioned only on the SKILL.md resource of a skill. Validation fails here for any other resource.
  • The 512-file limit does not apply, because a dynamic skill publishes no file list. The 16 MiB limit still bounds the read of the SKILL.md.
  • A nested dynamic skill makes every enclosing skill dynamic. The outer skill contains the inner files, so its own digests cannot be stable either.

Validation

Toolbox validates every skill at startup. A skill that breaks a rule fails to load. The error message starts with the URI of the skill’s SKILL.md, followed by the rule that the skill breaks.

The SKILL.md must follow the Agent Skills specification, and the skill must follow the io.modelcontextprotocol/skills extension, which defines how a server serves a skill. Toolbox adds one rule of its own: no two resources declare the same skill:// URI.

Skills in other MCP methods

Skills in resources/list

resources/list publishes the frontmatter name and description of a SKILL.md, not the Toolbox config’s name and description. Toolbox also reports the mimeType of a SKILL.md as text/markdown.

Skills and groups

The skills catalogue is server-wide. Groups do not scope skills/list or skills/get, and the endpoint of the request does not change the result. Groups do scope resources/list and resources/read, which return the file content.

Treat the skills metadata: skill names and supporting files etc. as visible to all clients.

Disabling the extension

Pass the extension URI to --disable-ext:

./toolbox --disable-ext io.modelcontextprotocol/skills

The server then returns error code -32021 for skills/list and skills/get on any endpoint, and removes the extension from its advertised capabilities. resources/list and resources/read still return the skill files as ordinary resources. See Disabling MCP Extensions.

Toolbox still validates every skill at startup. A skill that breaks one of the validation rules fails the load, with or without the extension.




Last modified November 5, 2026: chore(main): release 1.16.0 (#4317) (06ea49d)