Help us shape the future of Go! Take the 2026 Go Developer Survey

skillcheck

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package skillcheck lists the skills a server publishes (Skills extension, io.modelcontextprotocol/skills) and checks them against the extension and the Agent Skills format: manifests, frontmatter, digests, error codes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Session *mcp.ClientSession
	// Verify reads every file and compares size, digest and frontmatter.
	Verify bool
}

Checker runs the checks over a session.

func (*Checker) Run

func (c *Checker) Run(ctx context.Context) *Report

Run lists the skills and checks them.

type Report

type Report struct {
	Declared      bool        `json:"declared"`
	DirectoryRead bool        `json:"directoryRead"`
	Skills        []SkillInfo `json:"skills"`
	Results       []Result    `json:"results"`
}

Report is the outcome of a check run.

func (*Report) Failed

func (r *Report) Failed() bool

Failed reports whether any check failed.

type Result

type Result struct {
	Name   string `json:"name"`
	Status Status `json:"status"`
	Detail string `json:"detail,omitempty"`
}

Result is the outcome of one check.

type SkillInfo

type SkillInfo struct {
	URI          string `json:"uri"`
	Name         string `json:"name"`
	Description  string `json:"description"`
	License      string `json:"license,omitempty"`
	AllowedTools string `json:"allowedTools,omitempty"`
	Files        int    `json:"files"`   // -1 for "dynamic"
	Bytes        int64  `json:"bytes"`   // sum of the manifest sizes
	Dynamic      bool   `json:"dynamic"` // no manifest, no integrity
}

SkillInfo summarizes one skill for display, e.g. before enabling a server.

type Status

type Status string

Status of one check.

const (
	Pass Status = "PASS"
	Fail Status = "FAIL" // a MUST is violated
	Warn Status = "WARN" // a SHOULD is violated or trust is limited
	Skip Status = "SKIP"
)

Jump to

Keyboard shortcuts

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