server

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable(ctx context.Context, docker docker.Client, dockerCli command.Cli, serverNames []string, mcpOAuthDcrEnabled bool) error

func Enable

func Enable(ctx context.Context, docker docker.Client, dockerCli command.Cli, serverNames []string, mcpOAuthDcrEnabled bool) error

func Init added in v0.25.0

func Init(_ context.Context, dir string, language string, templateName string) error

Init initializes a new MCP server project in the specified directory

Types

type ConfigStatus added in v0.27.0

type ConfigStatus string
const (
	ConfigStatusNone     ConfigStatus = "none"     // No configuration needed
	ConfigStatusRequired ConfigStatus = "required" // Configuration required but not set
	ConfigStatusPartial  ConfigStatus = "partial"  // Some configuration set but not all
	ConfigStatusDone     ConfigStatus = "done"     // All configuration complete
)

func (ConfigStatus) DisplayString added in v0.27.0

func (cs ConfigStatus) DisplayString() string

DisplayString returns the display string for a ConfigStatus

type Info

type Info struct {
	Tools  []Tool `json:"tools"`
	Readme string `json:"readme"`
}

func Inspect

func Inspect(ctx context.Context, dockerClient docker.Client, serverName string) (Info, error)

func (Info) ToJSON

func (s Info) ToJSON() ([]byte, error)

type ListEntry added in v0.27.0

type ListEntry struct {
	Name        string       `json:"name"`
	Description string       `json:"description"`
	Secrets     ConfigStatus `json:"secrets"`
	Config      ConfigStatus `json:"config"`
	OAuth       ConfigStatus `json:"oauth"`
}

func List

func List(ctx context.Context, docker docker.Client, quiet bool) ([]ListEntry, error)

type Tool added in v0.16.0

type Tool struct {
	Name        string                     `json:"name"`
	Description string                     `json:"description"`
	Arguments   []ToolArgument             `json:"arguments,omitempty"`
	Annotations map[string]json.RawMessage `json:"annotations,omitempty"`
	Enabled     bool                       `json:"enabled"`
}

type ToolArgument added in v0.16.0

type ToolArgument struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Desc string `json:"desc"`
}

Directories

Path Synopsis
templates
basic command

Jump to

Keyboard shortcuts

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