mcpserver

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStdio

func RunStdio(ctx context.Context) error

func ToolDescription

func ToolDescription(name string) string

Types

type ConnectResult

type ConnectResult struct {
	Target  string
	Changed []string
	Message string
}

func Connect

func Connect(ctx context.Context, target ConnectTarget) ([]ConnectResult, error)

func ConnectClaudeCode

func ConnectClaudeCode(ctx context.Context) (ConnectResult, error)

func ConnectClaudeDesktop

func ConnectClaudeDesktop(configPath string) (ConnectResult, error)

func ConnectCodex

func ConnectCodex(configPath string) (ConnectResult, error)

type ConnectTarget

type ConnectTarget string
const (
	ConnectTargetClaude        ConnectTarget = "claude"
	ConnectTargetClaudeCode    ConnectTarget = "claude-code"
	ConnectTargetClaudeDesktop ConnectTarget = "claude-desktop"
	ConnectTargetCodex         ConnectTarget = "codex"
	ConnectTargetCodexCLI      ConnectTarget = "codex-cli"
	ConnectTargetCodexApp      ConnectTarget = "codex-app"
	ConnectTargetWeb           ConnectTarget = "web"
)

func ParseConnectTarget

func ParseConnectTarget(value string) (ConnectTarget, error)

func (ConnectTarget) String

func (t ConnectTarget) String() string

type PageInput

type PageInput struct {
	StartAt   int `json:"start_at,omitempty" jsonschema:"Zero-based item offset for pagination."`
	MaxTokens int `json:"max_tokens,omitempty" jsonschema:"Approximate maximum response tokens. Default 10000."`
}

type Server

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

func New

func New(cacheSvc cache.CacheService, repo *repository.Repository) *Server

func (*Server) Run

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

type Skill

type Skill struct {
	Name        string
	Description string
	Related     []string
	Content     string
}

func ListSkills

func ListSkills() ([]Skill, error)

func LoadSkill

func LoadSkill(name string) (Skill, error)

Jump to

Keyboard shortcuts

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