Versions in this module Expand all Collapse all v3 v3.0.0 Oct 22, 2026 Changes in this version + const BoardDevelopment + const BoardSprint + const BoardUpcoming + const BridgeFailed + const ClientID + const ConflictSHA + const DefaultUser + const DeletedLabelID + const DownstreamFailed + const FakeToken + const GroupLabel + const GroupSub + const GroupTop + const IterationID + const JobAllowed + const JobFailed + const JobManual + const JobPassed + const LogFiller + const MilestoneActive + const MilestoneClosed + const MilestoneGroup + const PipelineFailed + const ProjectAlpha + const ProjectBeta + const ProjectMoved + const ProjectSecret + const ReportFailures + const ReportSuiteError + const SecretLabel + const SnippetAlpha + const SnippetPersonal + const TagPlain + const TagRelease + const TodoAssigned + const TodoDone + const TodoReview + const WikiNested + var Users = []string + type Fault struct + AfterApply bool + Before func() + Body string + Delay time.Duration + Header http.Header + Method string + Pass bool + Path string + Query string + Skip int + StallAfter time.Duration + Status int + Times int + func Application429(path string, retryAfter, times int) Fault + func RackAttack429(path string, retryAfter, times int) Fault + type Options struct + AccessTokenTTL time.Duration + AlphaCommits int + AlphaIssues int + AlphaMergeRequests int + AuthorizeAs string + ClientSecret string + Confidential bool + Enterprise bool + ExternalTracker bool + ExtraProjects int + MoveDropsQuery bool + Now func() time.Time + OffsetCap int + RedirectURIs []string + TotalLimit int + Version string + type Request struct + Authorization string + EscapedPath string + IfUnmodifiedSince string + Method string + RawQuery string + UserAgent string + type Server struct + func New(t testing.TB, opts Options) *Server + func (s *Server) AddBoards(projectPath string, n int) bool + func (s *Server) AddChildPipeline(projectPath string, parent int64, status string) int64 + func (s *Server) AddDraft(projectPath string, iid int64, user string, d gitlab.DraftNote) (int64, bool) + func (s *Server) AddLabelEvents(projectPath, kind string, iid int64, n int) bool + func (s *Server) AddLabelEventsFor(projectPath, kind string, iid int64, n int, label string) bool + func (s *Server) AddMergeRequest(projectPath, title, author string) (int64, bool) + func (s *Server) AddMergeRequestBlocks(projectPath string, blocked int64, blocking ...int64) bool + func (s *Server) AddStateEvent(projectPath, kind string, iid int64, state string, at time.Time) bool + func (s *Server) AddSuggestion(projectPath string, iid int64, author, path string, from, to int, ...) (int64, int64, bool) + func (s *Server) AddTestJob(projectPath string, pipeline int64, name, status string, ...) int64 + func (s *Server) ApplySuggestionAs(user string, id int64) bool + func (s *Server) Approvals(projectPath string, iid int64, user string) (gitlab.Approvals, bool) + func (s *Server) BranchHead(projectPath, branch string) (gitlab.Commit, bool) + func (s *Server) Comment(projectPath, kind string, iid int64, user, body string) (gitlab.Note, bool) + func (s *Server) Discussions(projectPath, kind string, iid int64) []gitlab.Discussion + func (s *Server) Drafts(projectPath string, iid int64) []gitlab.DraftNote + func (s *Server) DropDraft(projectPath string, iid, id int64) bool + func (s *Server) EditDraft(projectPath string, iid, id int64, note string) bool + func (s *Server) EditWikiPage(projectPath, slug, content string) bool + func (s *Server) FileAt(projectPath, branch, path string) (string, bool) + func (s *Server) Inject(f Fault) + func (s *Server) Issue(projectPath string, iid int64) (gitlab.Issue, bool) + func (s *Server) IssueLinks() int + func (s *Server) Job(projectPath string, id int64) (gitlab.Job, bool) + func (s *Server) JobInputsSent() map[string]any + func (s *Server) LockDiscussion(projectPath, kind string, iid int64) bool + func (s *Server) MakeInternal(projectPath, kind string, iid, noteID int64) bool + func (s *Server) MergeRequest(projectPath string, iid int64) (gitlab.MergeRequest, bool) + func (s *Server) MergeRequestBlocks() int + func (s *Server) PendingTodos(user string) []int64 + func (s *Server) Pipeline(projectPath string, id int64) (gitlab.PipelineDetail, bool) + func (s *Server) ProjectID(path string) int64 + func (s *Server) PushFile(projectPath, branch, path, content string) (string, bool) + func (s *Server) PushTo(projectPath, branch string) (string, bool) + func (s *Server) React(projectPath, kind string, iid, noteID int64, user, name string) bool + func (s *Server) Reactions(projectPath, kind string, iid, noteID int64) []string + func (s *Server) Rebase(projectPath string, iid int64) bool + func (s *Server) Rebases() int + func (s *Server) Refreshes() int + func (s *Server) Release(projectPath, tag string) (gitlab.Release, bool) + func (s *Server) Reply(projectPath string, iid int64, discussionID, user, body string) (gitlab.Note, bool) + func (s *Server) Requests() []Request + func (s *Server) ResetRequests() + func (s *Server) ReviewerState(projectPath string, iid int64, user string) string + func (s *Server) Revoke(token string) + func (s *Server) SetAllowCollaboration(projectPath string, iid int64, on bool) bool + func (s *Server) SetAutoMRPipelines(projectPath string, on bool) bool + func (s *Server) SetAutoMerge(projectPath string, iid int64, user string) bool + func (s *Server) SetDraftPosition(projectPath string, iid, id int64, pos *gitlab.Position) bool + func (s *Server) SetGroupPrivate(path string) bool + func (s *Server) SetHeadPipelineStatus(projectPath string, iid int64, status string) bool + func (s *Server) SetIssuesAccess(projectPath, level string) bool + func (s *Server) SetJobLog(projectPath string, id int64, status, log string, archived bool) bool + func (s *Server) SetMRDiffs(projectPath string, iid int64, diffs []gitlab.Diff) bool + func (s *Server) SetMRSourceProject(projectPath string, iid int64, sourcePath string) bool + func (s *Server) SetMRState(projectPath string, iid int64, state string) bool + func (s *Server) SetMediaAuth(projectPath string, on *bool) bool + func (s *Server) SetMemberLevel(projectPath, user string, level int) bool + func (s *Server) SetMergePipelines(projectPath string, on bool) bool + func (s *Server) SetMergeRequestsAccess(projectPath, level string) bool + func (s *Server) SetMergeStatus(projectPath string, iid int64, status string) bool + func (s *Server) SetPipelineStatus(projectPath string, id int64, status string) bool + func (s *Server) SetResetApprovalsOnPush(projectPath string, on bool) bool + func (s *Server) SetSnippetVisibility(id int64, visibility string) bool + func (s *Server) SetSuiteError(projectPath string, job int64, msg string) bool + func (s *Server) SetTestSummaryLags(projectPath string, lags bool) bool + func (s *Server) SnippetFiles(id int64) [][2]string + func (s *Server) SnippetUpdatedAt(id int64) time.Time + func (s *Server) SnippetVisibility(id int64) string + func (s *Server) Subscribed(projectPath, kind string, iid int64, user string) bool + func (s *Server) Suggestion(id int64) (gitlab.Suggestion, bool) + func (s *Server) TodoState(id int64) string + func (s *Server) Token() string + func (s *Server) TokenFor(user string, scopes ...string) string + func (s *Server) TouchNote(projectPath, kind string, iid, noteID int64, at time.Time) bool + func (s *Server) TouchSnippet(id int64, at time.Time) bool + func (s *Server) Uploads(projectPath string) []Upload + func (s *Server) WikiPage(projectPath, slug string) (gitlab.WikiPage, bool) + type Upload struct + ContentType string + Data []byte + Filename string + ID int64 + Project string + Secret string + User string Other modules containing this package github.com/mmedum/gitlab-mcp github.com/mmedum/gitlab-mcp/v2 github.com/mmedum/gitlab-mcp/v4