builder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	CacheDir string
}

Builder handles cloning and building MCP servers

func New

func New(cacheDir string) *Builder

New creates a new Builder with the given cache directory

func (*Builder) Build

func (b *Builder) Build(server *mcp.Server) error

Build builds the server according to its build configuration

func (*Builder) Clone

func (b *Builder) Clone(server *mcp.Server) error

Clone clones a git repository for a server

func (*Builder) GetCommit

func (b *Builder) GetCommit(server *mcp.Server) (string, error)

GetCommit returns the current git commit hash for a server

func (*Builder) GetVersion

func (b *Builder) GetVersion(server *mcp.Server) (string, error)

GetVersion returns the current version tag for a server, if available

func (*Builder) Installed

func (b *Builder) Installed(server *mcp.Server) bool

Installed checks if a server is already installed

func (*Builder) Remove

func (b *Builder) Remove(server *mcp.Server) error

Remove removes an installed server

func (*Builder) ResolveCommand

func (b *Builder) ResolveCommand(server *mcp.Server) string

ResolveCommand resolves the command path for a server

func (*Builder) ServerDir

func (b *Builder) ServerDir(server *mcp.Server) string

ServerDir returns the directory where a server is installed

func (*Builder) Update

func (b *Builder) Update(server *mcp.Server) error

Update fetches and checks out the latest version

Jump to

Keyboard shortcuts

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