oci

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DockerCatalogURL = "https://desktop.docker.com/mcp/catalog/v2/catalog.yaml"

Variables

This section is empty.

Functions

func BuildDockerImage added in v1.0.10

func BuildDockerImage(ctx context.Context, agentFilePath, dockerImageName string, opts Options) error

func PackageFileAsOCIToStore

func PackageFileAsOCIToStore(filePath, artifactRef string, store *content.Store) (string, error)

PackageFileAsOCIToStore creates an OCI artifact from a file and stores it in the content store

Types

type Catalog added in v1.3.1

type Catalog map[string]MCPServer

type Config added in v1.3.1

type Config struct {
	Labels     map[string]string `json:"Labels"`
	Env        []string          `json:"Env"`
	Entrypoint []string          `json:"Entrypoint"`
	Cmd        []string          `json:"Cmd"`
	WorkingDir string            `json:"WorkingDir"`
	User       string            `json:"User"`
}

type Env added in v1.3.1

type Env struct {
	Name  string `json:"name" yaml:"name"`
	Value string `json:"value" yaml:"value"`
}

type ImageConfig added in v1.3.1

type ImageConfig struct {
	Config Config `json:"config"`
}

type MCPConfig added in v1.3.1

type MCPConfig struct {
	Properties map[string]Property `json:"properties,omitempty" yaml:"properties,omitempty"`
}

type MCPServer added in v1.3.1

type MCPServer struct {
	Image   string      `json:"image,omitempty" yaml:"image,omitempty"`
	Command []string    `json:"command,omitempty" yaml:"command,omitempty"`
	Secrets []Secret    `json:"secrets,omitempty" yaml:"secrets,omitempty"`
	Env     []Env       `json:"env,omitempty" yaml:"env,omitempty"`
	Config  []MCPConfig `json:"config,omitempty" yaml:"config,omitempty"`
	Volumes []string    `json:"volumes,omitempty" yaml:"volumes,omitempty"`
}

type Options added in v1.3.3

type Options struct {
	DryRun  bool
	Push    bool
	NoCache bool
	Pull    bool
}

type Property added in v1.3.1

type Property struct {
	Type string `json:"type" yaml:"type"`
}

type Secret added in v1.3.1

type Secret struct {
	Name string `json:"name" yaml:"name"`
	Env  string `json:"env" yaml:"env"`
}

type Server added in v1.3.1

type Server struct {
	Command string   `json:"command,omitempty"`
	Args    []string `json:"args,omitempty"`
	Env     []string `json:"env,omitempty"`
}

type Servers added in v1.3.1

type Servers struct {
	MCPServers map[string]Server `json:"mcpServers,omitempty"`
}

Jump to

Keyboard shortcuts

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