mcpctl

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRequest

type AddRequest struct {
	ID               string
	Name             string
	Command          string
	Args             []string
	Env              map[string]string
	CWD              string
	AutoStart        *bool
	StartupTimeoutS  int
	CallTimeoutS     int
	MaxConcurrency   int
	ProtocolVersion  string
	ProtocolVersions []string
}

type ServerDetail

type ServerDetail struct {
	Status           ServerStatus
	TransportType    string
	Command          string
	Args             []string
	CWD              string
	EnvKeys          []string
	StartupTimeoutS  int
	CallTimeoutS     int
	MaxConcurrency   int
	ProtocolVersions []string
}

type ServerStatus

type ServerStatus struct {
	ID          string
	Name        string
	Enabled     bool
	AutoStart   bool
	Status      extensionspkg.ExtensionStatus
	Tools       int
	Message     string
	LastError   extensionspkg.ErrorCode
	CheckedAt   string
	ExtensionID string
}

type Service

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

func NewService

func NewService(workspace, configPath string, manager extensionspkg.Manager) *Service

func NewServiceWithMCPConfigPath

func NewServiceWithMCPConfigPath(workspace, configPath, mcpConfigPath string, manager extensionspkg.Manager) *Service

func (*Service) Add

func (s *Service) Add(ctx context.Context, req AddRequest) (ServerStatus, error)

func (*Service) Enable

func (s *Service) Enable(ctx context.Context, serverID string, enabled bool) (ServerStatus, error)

func (*Service) List

func (s *Service) List(ctx context.Context) ([]ServerStatus, error)

func (*Service) Reload

func (s *Service) Reload(ctx context.Context) error

func (*Service) Remove

func (s *Service) Remove(ctx context.Context, serverID string) error

func (*Service) Show

func (s *Service) Show(ctx context.Context, serverID string) (ServerDetail, error)

func (*Service) Test

func (s *Service) Test(ctx context.Context, serverID string) (ServerStatus, error)

Jump to

Keyboard shortcuts

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