Documentation
¶
Overview ¶
Package dockerfiletemplates implements MCP tools for GitLab Dockerfile Templates API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatGetMarkdown ¶
FormatGetMarkdown formats the get output as markdown.
func FormatListMarkdown ¶
func FormatListMarkdown(out ListOutput) string
FormatListMarkdown formats the list output as markdown.
func RegisterTools ¶
func RegisterTools(server *mcp.Server, client *gitlabclient.Client)
RegisterTools registers all Dockerfile template MCP tools.
Types ¶
type GetInput ¶
type GetInput struct {
Key string `json:"key" jsonschema:"Template key,required"`
}
GetInput is the input for getting a Dockerfile template.
type GetOutput ¶
type GetOutput struct {
toolutil.HintableOutput
Name string `json:"name"`
Content string `json:"content"`
}
GetOutput is the output for getting a Dockerfile template.
type ListInput ¶
type ListInput struct {
Page int64 `json:"page,omitempty" jsonschema:"Page number for pagination"`
PerPage int64 `json:"per_page,omitempty" jsonschema:"Items per page"`
}
ListInput is the input for listing Dockerfile templates.
type ListOutput ¶
type ListOutput struct {
toolutil.HintableOutput
Templates []TemplateListItem `json:"templates"`
Pagination toolutil.PaginationOutput `json:"pagination"`
}
ListOutput is the output for listing Dockerfile templates.
func List ¶
func List(ctx context.Context, client *gitlabclient.Client, input ListInput) (ListOutput, error)
List lists all available Dockerfile templates.
type TemplateListItem ¶
TemplateListItem represents a Dockerfile template in a list.
Click to show internal directories.
Click to hide internal directories.