Documentation
¶
Overview ¶
Package groupmarkdownuploads implements MCP tools for GitLab group markdown upload operations.
markdown.go provides Markdown formatting functions for group Markdown upload MCP tool output.
register.go wires groupmarkdownuploads MCP tools to the MCP server.
Index ¶
- func DeleteByID(ctx context.Context, client *gitlabclient.Client, input DeleteByIDInput) error
- func DeleteBySecretAndFilename(ctx context.Context, client *gitlabclient.Client, ...) error
- func FormatList(out *ListOutput) string
- func FormatListMarkdownString(o ListOutput) string
- func RegisterMeta(server *mcp.Server, client *gitlabclient.Client)
- func RegisterTools(server *mcp.Server, client *gitlabclient.Client)
- type DeleteByIDInput
- type DeleteBySecretAndFilenameInput
- type ListInput
- type ListOutput
- type UploadItem
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.