mcpserver

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadSkillInput

type ReadSkillInput struct {
	Name string `json:"name" jsonschema:"name of the skill to read"`
}

ReadSkillInput is the input type for read_skill tool

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server provides an MCP server that exposes skill operations

func NewServer

func NewServer(registry *clients.Registry) *Server

NewServer creates a new MCP server

func (*Server) ReportSkillUsage

func (s *Server) ReportSkillUsage(skillName, skillVersion string)

ReportSkillUsage reports usage of a skill to the vault. This function runs in a goroutine and is best-effort - it will not block the MCP call.

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run starts the MCP server over stdio

func (*Server) SetUsageReporter

func (s *Server) SetUsageReporter(reporter UsageReporter)

SetUsageReporter sets a custom usage reporter (for testing)

type UsageReporter

type UsageReporter interface {
	ReportSkillUsage(skillName, skillVersion string)
}

UsageReporter handles reporting skill usage

Jump to

Keyboard shortcuts

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