mcp

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 11 Imported by: 0

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