mcp

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInternalAppleSpec deprecated added in v0.20.0

func GetInternalAppleSpec() string

Deprecated: Use GetInternalLocalContainerSpec instead

func GetInternalDockerSpec deprecated

func GetInternalDockerSpec() string

Deprecated: Use GetInternalLocalContainerSpec instead

func GetInternalLocalContainerSpec added in v0.20.0

func GetInternalLocalContainerSpec() string

GetInternalLocalContainerSpec returns the embedded local container spec (for scaffold command)

func GetInternalNomadSpec

func GetInternalNomadSpec() string

GetInternalNomadSpec returns the embedded nomad spec (for scaffold command)

func GetInternalPodmanSpec deprecated

func GetInternalPodmanSpec() string

Deprecated: Use GetInternalLocalContainerSpec instead

func InitializeMCPServer

func InitializeMCPServer(routes *http.ServeMux, enableWebEndpoint bool, nativeTools bool) *mcp.Server

func ToolFilter

func ToolFilter(user *model.User) openai.ToolFilter

Types

type Group

type Group struct {
	ID           string `json:"id"`
	Name         string `json:"name"`
	MaxSpaces    uint32 `json:"max_spaces"`
	ComputeUnits uint32 `json:"compute_units"`
	StorageUnits uint32 `json:"storage_units"`
	MaxTunnels   uint32 `json:"max_tunnels"`
}

type GroupList

type GroupList struct {
	Groups []Group `json:"groups"`
}

type SharedWith

type SharedWith struct {
	UserID   string `json:"user_id,omitempty"`
	Username string `json:"username,omitempty"`
	Email    string `json:"email,omitempty"`
}

type SkillInfo added in v0.21.0

type SkillInfo struct {
	Filename    string `json:"filename"`
	Description string `json:"description"`
}

type Space

type Space struct {
	ID           string                   `json:"id"`
	Name         string                   `json:"name"`
	State        string                   `json:"state"`
	Description  string                   `json:"description"`
	Note         string                   `json:"note"`
	Zone         string                   `json:"zone"`
	Platform     string                   `json:"platform"`
	WebPorts     []string                 `json:"web_ports"`
	TCPPorts     []string                 `json:"tcp_ports"`
	SSH          bool                     `json:"ssh"`
	WebTerminal  bool                     `json:"web_terminal"`
	CustomFields []model.SpaceCustomField `json:"custom_fields"`
	SharedWith   SharedWith               `json:"shared_with,omitempty"`
}

type SpaceDefinition

type SpaceDefinition struct {
	UserId       string                       `json:"user_id"`
	TemplateId   string                       `json:"template_id"`
	Name         string                       `json:"name"`
	Description  string                       `json:"description"`
	Shell        string                       `json:"shell"`
	Zone         string                       `json:"zone"`
	AltNames     []string                     `json:"alt_names"`
	IsDeployed   bool                         `json:"is_deployed"`
	IsPending    bool                         `json:"is_pending"`
	IsDeleting   bool                         `json:"is_deleting"`
	StartedAt    time.Time                    `json:"started_at"`
	CreatedAt    time.Time                    `json:"created_at"`
	IconURL      string                       `json:"icon_url"`
	CustomFields []apiclient.CustomFieldValue `json:"custom_fields"`
}

type SpaceList

type SpaceList struct {
	Spaces []Space `json:"spaces"`
}

type Template

type Template struct {
	ID              string                      `json:"id"`
	Name            string                      `json:"name"`
	Description     string                      `json:"description"`
	Platform        string                      `json:"platform"`
	Groups          []TemplateGroup             `json:"groups"`
	ComputeUnits    uint32                      `json:"compute_units"`
	StorageUnits    uint32                      `json:"storage_units"`
	ScheduleEnabled bool                        `json:"schedule_enabled"`
	IsManaged       bool                        `json:"is_managed"`
	Schedule        string                      `json:"schedule"`
	Zones           []string                    `json:"zones"`
	CustomFields    []model.TemplateCustomField `json:"custom_fields"`
	MaxUptime       uint32                      `json:"max_uptime"`
	MaxUptimeUnit   string                      `json:"max_uptime_unit"`
}

type TemplateGroup

type TemplateGroup struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type TemplateList

type TemplateList struct {
	Templates []Template `json:"templates"`
}

type User

type User struct {
	ID       string   `json:"id"`
	Username string   `json:"username"`
	Email    string   `json:"email"`
	Active   bool     `json:"active"`
	Groups   []string `json:"groups"`
}

type UserList

type UserList struct {
	Users []User `json:"users"`
}

Jump to

Keyboard shortcuts

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