planlimits

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 planlimits implements MCP tools for GitLab Plan Limits API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatChangeMarkdown

func FormatChangeMarkdown(out ChangeOutput) string

FormatChangeMarkdown formats changed plan limits as markdown.

func FormatGetMarkdown

func FormatGetMarkdown(out GetOutput) string

FormatGetMarkdown formats plan limits as markdown.

func RegisterTools

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

RegisterTools registers all Plan Limits MCP tools.

Types

type ChangeInput

type ChangeInput struct {
	PlanName                   string `json:"plan_name" jsonschema:"Plan name to update (e.g. default, free, bronze, silver, gold, premium, ultimate),required"`
	ConanMaxFileSize           *int64 `json:"conan_max_file_size,omitempty" jsonschema:"Maximum Conan package file size in bytes"`
	GenericPackagesMaxFileSize *int64 `json:"generic_packages_max_file_size,omitempty" jsonschema:"Maximum generic package file size in bytes"`
	HelmMaxFileSize            *int64 `json:"helm_max_file_size,omitempty" jsonschema:"Maximum Helm chart file size in bytes"`
	MavenMaxFileSize           *int64 `json:"maven_max_file_size,omitempty" jsonschema:"Maximum Maven package file size in bytes"`
	NPMMaxFileSize             *int64 `json:"npm_max_file_size,omitempty" jsonschema:"Maximum NPM package file size in bytes"`
	NugetMaxFileSize           *int64 `json:"nuget_max_file_size,omitempty" jsonschema:"Maximum NuGet package file size in bytes"`
	PyPiMaxFileSize            *int64 `json:"pypi_max_file_size,omitempty" jsonschema:"Maximum PyPI package file size in bytes"`
	TerraformModuleMaxFileSize *int64 `json:"terraform_module_max_file_size,omitempty" jsonschema:"Maximum Terraform module file size in bytes"`
}

ChangeInput is the input for changing plan limits.

type ChangeOutput

type ChangeOutput struct {
	toolutil.HintableOutput
	PlanLimitItem
}

ChangeOutput is the output for changing plan limits.

func Change

func Change(ctx context.Context, client *gitlabclient.Client, input ChangeInput) (ChangeOutput, error)

Change modifies plan limits.

type GetInput

type GetInput struct {
	PlanName string `json:"plan_name,omitempty" jsonschema:"Plan name to filter (e.g. default, free, bronze, silver, gold, premium, ultimate)"`
}

GetInput is the input for getting current plan limits.

type GetOutput

type GetOutput struct {
	toolutil.HintableOutput
	PlanLimitItem
}

GetOutput is the output for getting current plan limits.

func Get

func Get(ctx context.Context, client *gitlabclient.Client, input GetInput) (GetOutput, error)

Get retrieves current plan limits.

type PlanLimitItem

type PlanLimitItem struct {
	ConanMaxFileSize           int64 `json:"conan_max_file_size"`
	GenericPackagesMaxFileSize int64 `json:"generic_packages_max_file_size"`
	HelmMaxFileSize            int64 `json:"helm_max_file_size"`
	MavenMaxFileSize           int64 `json:"maven_max_file_size"`
	NPMMaxFileSize             int64 `json:"npm_max_file_size"`
	NugetMaxFileSize           int64 `json:"nuget_max_file_size"`
	PyPiMaxFileSize            int64 `json:"pypi_max_file_size"`
	TerraformModuleMaxFileSize int64 `json:"terraform_module_max_file_size"`
}

PlanLimitItem represents GitLab plan limits.

Jump to

Keyboard shortcuts

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