groupmarkdownuploads

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package groupmarkdownuploads implements MCP tools for GitLab group markdown upload operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteByID

func DeleteByID(ctx context.Context, client *gitlabclient.Client, input DeleteByIDInput) error

DeleteByID deletes a group markdown upload by its ID.

func DeleteBySecretAndFilename

func DeleteBySecretAndFilename(ctx context.Context, client *gitlabclient.Client, input DeleteBySecretAndFilenameInput) error

DeleteBySecretAndFilename deletes a group markdown upload by secret and filename.

func FormatList

func FormatList(out *ListOutput) string

FormatList formats the list of group markdown uploads as markdown.

func FormatListMarkdownString

func FormatListMarkdownString(o ListOutput) string

FormatListMarkdownString renders a list of group markdown uploads.

func RegisterMeta

func RegisterMeta(server *mcp.Server, client *gitlabclient.Client)

RegisterMeta registers the gitlab_group_markdown_upload meta-tool.

func RegisterTools

func RegisterTools(server *mcp.Server, client *gitlabclient.Client)

RegisterTools registers all group markdown upload tools on the MCP server.

Types

type DeleteByIDInput

type DeleteByIDInput struct {
	GroupID  toolutil.StringOrInt `json:"group_id" jsonschema:"The ID or URL-encoded path of the group,required"`
	UploadID int64                `json:"upload_id" jsonschema:"The ID of the upload to delete,required"`
}

DeleteByIDInput represents input for deleting a group markdown upload by ID.

type DeleteBySecretAndFilenameInput

type DeleteBySecretAndFilenameInput struct {
	GroupID  toolutil.StringOrInt `json:"group_id" jsonschema:"The ID or URL-encoded path of the group,required"`
	Secret   string               `json:"secret" jsonschema:"The secret of the upload,required"`
	Filename string               `json:"filename" jsonschema:"The filename of the upload,required"`
}

DeleteBySecretAndFilenameInput represents input for deleting a group markdown upload by secret and filename.

type ListInput

type ListInput struct {
	GroupID toolutil.StringOrInt `json:"group_id" jsonschema:"The ID or URL-encoded path of the group,required"`
	Page    int64                `json:"page,omitempty" jsonschema:"Page number for pagination"`
	PerPage int64                `json:"per_page,omitempty" jsonschema:"Number of items per page"`
}

ListInput represents input for listing group markdown uploads.

type ListOutput

type ListOutput struct {
	Uploads    []UploadItem              `json:"uploads"`
	Pagination toolutil.PaginationOutput `json:"pagination"`
}

ListOutput represents the output of listing group markdown uploads.

func List

func List(ctx context.Context, client *gitlabclient.Client, input ListInput) (*ListOutput, error)

List retrieves group markdown uploads.

type UploadItem

type UploadItem struct {
	ID        int64  `json:"id"`
	Size      int64  `json:"size"`
	Filename  string `json:"filename"`
	CreatedAt string `json:"created_at,omitempty"`
}

UploadItem represents a single markdown upload entry.

Jump to

Keyboard shortcuts

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