template

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCatalogRef = "mcp/docker-mcp-catalog"

DefaultCatalogRef is the OCI reference for Docker's default MCP catalog.

Variables

View Source
var Templates = []Template{
	{
		ID:          "ai-coding",
		Title:       "AI coding",
		Description: "Write code faster with Context7 for codebase awareness and Sequential Thinking for structured problem-solving.",
		ServerNames: []string{"context7", "sequentialthinking"},
	},
	{
		ID:          "dev-workflow",
		Title:       "Dev workflow",
		Description: "Automate your development cycle: open issues, write code, and update tickets with GitHub and Atlassian.",
		ServerNames: []string{"github-official", "atlassian-remote"},
	},
	{
		ID:          "terminal-control",
		Title:       "Terminal control",
		Description: "Run commands and scripts, manage files, and control your system directly from your AI client.",
		ServerNames: []string{"desktop-commander", "filesystem"},
	},
}

Templates is the list of built-in starter templates.

Functions

func EnsureCatalogExists

func EnsureCatalogExists(ctx context.Context, dao db.DAO, ociService oci.Service) error

EnsureCatalogExists checks whether the Docker MCP catalog is available locally and pulls it if it is not. This allows template commands to work out of the box without requiring the user to manually pull the catalog first.

func List

func List(format workingset.OutputFormat) error

List prints the available templates in the specified output format.

Types

type Template

type Template struct {
	ID          string   `json:"id" yaml:"id"`
	Title       string   `json:"title" yaml:"title"`
	Description string   `json:"description" yaml:"description"`
	ServerNames []string `json:"server_names" yaml:"server_names"`
}

Template defines a starter profile template that bundles a curated set of MCP servers from the Docker catalog.

func FindByID

func FindByID(id string) *Template

FindByID returns the template with the given ID, or nil if not found.

func (*Template) CatalogServerRef

func (t *Template) CatalogServerRef() string

CatalogServerRef returns the catalog:// URI for use with profile creation. For example: "catalog://mcp/docker-mcp-catalog/context7+sequentialthinking"

Jump to

Keyboard shortcuts

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