mcpserver

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlClient

type ControlClient interface {
	Status(runtimeID string) (map[string]any, error)
	List() ([]map[string]any, error)
	Spawn(params map[string]any) (map[string]any, error)
	Shutdown(mode string) error
	Close() error
	AnswerPermission(runtimeID, requestID, optionID string) error
}

type Options

type Options struct {
	Transport        string
	ControlSocket    string
	SupervisorSocket string
	NoAutostart      bool
	IdleTimeout      time.Duration
	Addr             string
	AuthToken        string
	ControlClient    ControlClient
}

type RunInfo

type RunInfo struct {
	RunID            string
	Label            string
	RuntimeID        string
	SessionID        string
	SupervisorID     string
	SentinelPath     string
	EventLogPath     string
	Agent            string
	AgentProfile     string
	Model            string
	Backend          string
	RosterFile       string
	RosterEntry      string
	EffectiveAgent   string
	EffectiveModel   string
	EffectiveBackend string
	Thinking         string
	Dir              string
	AutoApprove      bool
	CreatedAt        time.Time
}

type RunRegistry

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

func NewRunRegistry

func NewRunRegistry() *RunRegistry

func (*RunRegistry) All

func (r *RunRegistry) All() []*RunInfo

func (*RunRegistry) Lookup

func (r *RunRegistry) Lookup(key string) *RunInfo

func (*RunRegistry) Remove

func (r *RunRegistry) Remove(runID string) *RunInfo

func (*RunRegistry) Store

func (r *RunRegistry) Store(info *RunInfo) error

type Server

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

func NewServer

func NewServer(opts Options) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) HTTPHandler

func (s *Server) HTTPHandler() http.Handler

func (*Server) RegisteredToolNames

func (s *Server) RegisteredToolNames() []string

func (*Server) Run

func (s *Server) Run() error

func (*Server) RunHTTP

func (s *Server) RunHTTP(addr string) error

Jump to

Keyboard shortcuts

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