mcp

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMCPServer

func RunMCPServer(projectRoot string) error

Types

type AddImageInput

type AddImageInput struct {
	Name              string `json:"name" jsonschema:"name of the image to create"`
	Description       string `json:"description" jsonschema:"description of the image"`
	BaseTag           string `json:"base_tag" jsonschema:"base docker tag (e.g., ubuntu:22.04)"`
	DockerfileContent string `json:"dockerfile_content,omitempty" jsonschema:"optional custom Dockerfile content"`
}

type AddImageOutput

type AddImageOutput struct {
	Message string `json:"message"`
}

type AddImageVariantInput

type AddImageVariantInput struct {
	ImageName   string            `json:"image_name" jsonschema:"name of the image to add variant to"`
	VariantName string            `json:"variant_name" jsonschema:"name of the variant"`
	TagSuffix   string            `json:"tag_suffix" jsonschema:"suffix to append to tags (e.g., -slim)"`
	Versions    map[string]string `json:"versions,omitempty" jsonschema:"version overrides for this variant"`
	BuildArgs   map[string]string `json:"build_args,omitempty" jsonschema:"build args for this variant"`
}

type AddImageVariantOutput

type AddImageVariantOutput struct {
	Message string `json:"message"`
}

type Field

type Field struct {
	Boost float64 `json:"boost"`
}

type GetDependenciesInput

type GetDependenciesInput struct {
	Name      string `json:"name" jsonschema:"name of the image"`
	Direction string `json:"direction" jsonschema:"direction: forward (dependencies) or reverse (dependents)"`
}

type GetDependenciesOutput

type GetDependenciesOutput struct {
	Images []string `json:"images"`
}

type GetDocumentationInput

type GetDocumentationInput struct {
	Path string `json:"path" jsonschema:"path to the documentation page (e.g., index.html, usage/mcp.html)"`
}

type GetDocumentationOutput

type GetDocumentationOutput struct {
	Title   string `json:"title"`
	URL     string `json:"url"`
	Content string `json:"content"`
}

type GetImageInput

type GetImageInput struct {
	Name string `json:"name" jsonschema:"name of the image to get"`
}

type GetImageOutput

type GetImageOutput struct {
	Image *imageDetail `json:"image"`
}

type ListImagesInput

type ListImagesInput struct {
}

type ListImagesOutput

type ListImagesOutput struct {
	Images []imageInfo `json:"images"`
}

type SearchConfig

type SearchConfig struct {
	Lang      []string         `json:"lang"`
	Separator string           `json:"separator"`
	Pipeline  []string         `json:"pipeline"`
	Fields    map[string]Field `json:"fields"`
}

type SearchDoc

type SearchDoc struct {
	Location string   `json:"location"`
	Title    string   `json:"title"`
	Text     string   `json:"text"`
	Tags     []string `json:"tags,omitempty"`
}

type SearchDocumentationInput

type SearchDocumentationInput struct {
	Query string `json:"query" jsonschema:"search query text"`
	Limit int    `json:"limit,omitempty" jsonschema:"max results (default 10)"`
}

type SearchDocumentationOutput

type SearchDocumentationOutput struct {
	Results []SearchResult `json:"results"`
}

type SearchResult

type SearchResult struct {
	Title   string `json:"title"`
	Path    string `json:"path"`
	Excerpt string `json:"excerpt"`
}

Jump to

Keyboard shortcuts

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