Skip to content

Expose skills using the MCP Skills extension resource layout (skill://<name>/SKILL.md) #261

Backlog

Description

@mobileskyfi

Summary

Make rosetta's skill resources follow the resource layout from the MCP Skills extension (SEP-2640, spec in modelcontextprotocol/ext-skills). The spec says that to a client without the extension, skill:// resources "are ordinary resources". So this layout works with every client today, and it's the base the full extension would build on later.

Today

  • src/mcp.ts:644-711 serves rosetta://skills (a markdown index) and rosetta://skills/{name}. Each skill is one combined blob: provenance header, then # name, then the content, then every reference file pasted underneath.
  • src/extract-skills.ts:49 strips the YAML frontmatter and keeps only name and description. Other frontmatter fields are lost.

Scope (layer 1: resource layout only)

  • Register one resource per file:
    • skill://<name>/SKILL.md (text/markdown; resource name and description come from the frontmatter)
    • skill://<name>/references/<file> for each row in skill_references, at its original relative path
  • Serve SKILL.md with its frontmatter first, as the spec requires. The final path segment must equal the frontmatter name.
  • Store the raw frontmatter in the DB so fields other than name and description are kept. This is a schema change, so it must follow schema-roundtrip-compat and the SCHEMA_VERSION rules.
  • Provenance moves into a small frontmatter field instead of a header in front of the file. The skill-attribution-boundary rule still applies. Pick a field name, either a namespaced key or one under metadata: as agentskills.io allows. Keep the resource description and the server instructions stating that this is community content, not MikroTik docs.
  • Keep rosetta://skills and rosetta://skills/{name} as they are. They're harmless, and existing users rely on them. Point the index at the new skill:// URIs as well.
  • Update the server instructions text (src/mcp.ts:1047), the routeros_stats note (src/mcp.ts:1071), and the TUI .resources / skill display so the TUI and MCP stay in sync.
  • Tests: correct URI shape, SKILL.md starts with ---, name matches the path, every reference is listed and readable, and the provenance field is present.
  • Update CHANGELOG and DESIGN.md (the "Why resources, not tools" section).

Out of scope: layer 2 (the full extension)

skills/list, skills/get, sha256/size manifests, the io.modelcontextprotocol/skills capability in server/discover, and the optional resources/directory/read.

SDK status as of 2026-11-28:

  • @modelcontextprotocol/sdk 1.32.2 (latest v1, which rosetta uses) only goes up to protocol 2025-11-25. It has no skills support and no 2026-07-28 revision.
  • The v2 split packages (@modelcontextprotocol/server 2.4.0, plus client and core) target 2026-07-28 and include @modelcontextprotocol/server/ext/skills (SkillCatalog, SkillsExtension, ...). Upstream is still fixing it: typescript-sdk #2798, #3066, #3102, #3229, #3242 are open, and #2789 is closed.
  • Client support (MCP client matrix) is partial in ChatGPT, fast-agent, and MCP Inspector. The Claude, Cursor, and VS Code cells are blank.

So layer 2 depends on a separate v1→v2 SDK migration and would be its own issue. Layer 1 should keep URIs and file boundaries compatible with what SkillCatalog expects, so moving to it later is just wiring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions