mcpskills

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mcp-skills-go

An MCP (Model Context Protocol) server that serves Claude Code skills from a directory of SKILL.md files.

Uses Go's fs.FS interface for filesystem access, which provides path traversal protection by design. Works with both embed.FS (compile-time) and os.DirFS (runtime).

Tools

The server exposes 5 MCP tools:

Tool Description
list-skills List all available skills with metadata (name, description, version)
get-skill Get a skill's full content (frontmatter + markdown body)
list-skill-resources List all resource files in a skill's directory
get-skill-resource Get a resource file from a skill's subdirectory
search-skills Search skills by keyword (OR mode by default) against name, description, and body

All tools which return JSON also return it as structuredContent, and declare an outputSchema.

MCP Protocol Revision

Built with the 2026-07-28 revision of the protocol (older clients are still supported by the SDK):

  • The deprecated Logging feature (SEP-2577) is not advertised; the standalone server logs to stderr instead.
  • tools/list results carry a ttlMs cache hint (SEP-2549), so clients can cache the tool list instead of re-fetching it.

Skills Directory Structure

skills-dir/
  my-skill/
    SKILL.md              # Required: frontmatter + body
    references/           # Optional: supporting docs
      guide.md
    scripts/              # Optional: executable code
    agents/               # Optional: sub-agent definitions
SKILL.md Format
---
name: my-skill
description: When to use this skill
version: 1.0.0
---

Skill instructions go here.

Usage

As a library (embed.FS)
import (
    "embed"
    "io/fs"

    skills "github.com/meinside/mcp-skills-go"
)

//go:embed my-skills
var skillsFS embed.FS

sub, _ := fs.Sub(skillsFS, "my-skills")
server, tools := skills.NewServer(sub)
As a library (os.DirFS)
import (
    "os"

    skills "github.com/meinside/mcp-skills-go"
)

fsys := os.DirFS("/path/to/skills")
server, tools := skills.NewServer(fsys)
As a standalone STDIO server
go build -o skills-mcp-stdio-server ./cmd/skills-mcp-stdio-server/
./skills-mcp-stdio-server --skills-dir /path/to/skills
Claude Code MCP configuration
{
  "mcpServers": {
    "skills": {
      "command": "/path/to/skills-mcp-stdio-server",
      "args": ["--skills-dir", "/path/to/skills"]
    }
  }
}

Build

go build ./...

Test

go test ./...

License

MIT

Documentation

Overview

Package mcpskills provides an MCP server that serves SKILL.md-based skills via fs.FS.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(fsys fs.FS) (*mcp.Server, []*mcp.Tool)

NewServer creates a new MCP server that serves skills from the given fs.FS. It returns the server and the list of registered mcp.Tool definitions.

Types

This section is empty.

Directories

Path Synopsis
cmd
Package skills provides parsing and access to SKILL.md-based skill directories via fs.FS.
Package skills provides parsing and access to SKILL.md-based skill directories via fs.FS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址