mcp

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(cfg *config.Config, pSvc *service.PipelineService, jSvc *service.JobService, mrSvc *service.MergeRequestService, version string) *mcp.Server

Types

type CreateMRInput added in v0.4.0

type CreateMRInput struct {
	ProjectID    int    `json:"project_id" jsonschema:"GitLab project ID"`
	SourceBranch string `json:"source_branch" jsonschema:"source branch name"`
	TargetBranch string `json:"target_branch" jsonschema:"target branch name"`
	Title        string `json:"title" jsonschema:"merge request title"`
	Description  string `json:"description,omitempty" jsonschema:"merge request description"`
	Draft        bool   `json:"draft,omitempty" jsonschema:"create as draft MR"`
}

type JobActionInput

type JobActionInput struct {
	ProjectID int `json:"project_id" jsonschema:"GitLab project ID"`
	JobID     int `json:"job_id" jsonschema:"job ID"`
}

type ListBranchesInput added in v0.4.2

type ListBranchesInput struct {
	ProjectID int    `json:"project_id" jsonschema:"GitLab project ID"`
	Search    string `json:"search,omitempty" jsonschema:"filter branches by name"`
}

type ListJobsInput

type ListJobsInput struct {
	ProjectID  int `json:"project_id" jsonschema:"GitLab project ID"`
	PipelineID int `json:"pipeline_id" jsonschema:"pipeline ID"`
}

type ListMergeRequestsInput added in v0.4.0

type ListMergeRequestsInput struct {
	ProjectID int    `json:"project_id" jsonschema:"GitLab project ID"`
	State     string `json:"state,omitempty" jsonschema:"MR state filter (opened/merged/closed)"`
}

type ListPipelineCommitsInput added in v0.4.0

type ListPipelineCommitsInput struct {
	ProjectID int    `json:"project_id" jsonschema:"GitLab project ID"`
	Ref       string `json:"ref" jsonschema:"git ref (branch/tag) to list commits for"`
}

type ListPipelinesInput

type ListPipelinesInput struct {
	Project string `json:"project,omitempty" jsonschema:"project path to filter by"`
	Status  string `json:"status,omitempty" jsonschema:"pipeline status filter (running/pending/success/failed/canceled)"`
	Ref     string `json:"ref,omitempty" jsonschema:"git ref (branch/tag) to filter by"`
	Limit   int    `json:"limit,omitempty" jsonschema:"max number of pipelines to return"`
}

type ListProjectsInput

type ListProjectsInput struct{}

type MRInput added in v0.4.0

type MRInput struct {
	ProjectID int `json:"project_id" jsonschema:"GitLab project ID"`
	MRIID     int `json:"mr_iid" jsonschema:"merge request IID (project-scoped ID)"`
}

type SearchProjectsInput

type SearchProjectsInput struct {
	Query string `json:"query" jsonschema:"search query for project name or path"`
}

Jump to

Keyboard shortcuts

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