Versions in this module Expand all Collapse all v3 v3.0.0 Sep 10, 2026 Changes in this version + const AllowPrivateInstancesEnv + const DefaultMaxResponseBytes + const DestinationRefusedHint + const GitLabDotComHost + const ScopeAPI + var ErrDestinationRefused = errors.New("outbound destination refused") + var ErrNoResponseCaptured = errors.New("no response was captured") + var ErrResponseTooLarge = errors.New("gitlab response exceeded the maximum size") + var ErrUnboundClient = errors.New(...) + func CheckCallerNamedInstance(rawURL string) error + func DetectScopes(ctx context.Context, client *gl.Client) []string + func HTTPTransport(skipTLSVerify bool) http.RoundTripper + func IsCredentialRejection(err error) bool + func IsGitLabDotComURL(rawURL string) bool + func NarrowToTokenScope(cfg *config.ServerConfig) bool + func ScopeSatisfied(tokenScopes, requiredScopes []string) bool + func WithClient(ctx context.Context, c *Client) context.Context + func WriteCapable(scopes []string) bool + type Client struct + func ClientFrom(ctx context.Context) (*Client, bool) + func NewClient(cfg *config.Config) (*Client, error) + func NewClientWithToken(baseURL, token string, skipTLSVerify bool) (*Client, error) + func NewClientWithTokenRetries(baseURL, token string, skipTLSVerify, disableRetries bool) (*Client, error) + func NewOAuthClientWithToken(baseURL, token string, skipTLSVerify bool) (*Client, error) + func NewUnboundClient(baseURL string) *Client + func (c *Client) CredentialRejected(ctx context.Context) bool + func (c *Client) CurrentUser(ctx context.Context) (*CurrentUserInfo, error) + func (c *Client) CurrentUsername(ctx context.Context) (string, error) + func (c *Client) DetectEnterprise(ctx context.Context, fallback bool) bool + func (c *Client) DetectTier(ctx context.Context) edition.Tier + func (c *Client) EnableLazyInit() + func (c *Client) EnsureInitialized(ctx context.Context) + func (c *Client) For(ctx context.Context) *Client + func (c *Client) GL() *gl.Client + func (c *Client) Initialize(ctx context.Context) (string, error) + func (c *Client) IsEnterprise() bool + func (c *Client) IsGitLabDotCom() bool + func (c *Client) IsInitialized() bool + func (c *Client) IsUnbound() bool + func (c *Client) MarkInitialized() + func (c *Client) MarkInstanceCallerNamed() + func (c *Client) Ping(ctx context.Context) (string, error) + func (c *Client) SetEnterprise(v bool) + func (c *Client) SetMaxResponseBytes(n int64) + func (c *Client) SetOnUnauthorized(fn func()) + func (c *Client) SetTier(t edition.Tier) + func (c *Client) Tier() edition.Tier + type CurrentUserInfo struct + UserID int + Username string + type ResponseCapture struct + func CapturedBody(body []byte) *ResponseCapture + func WithResponseCapture(ctx context.Context) (context.Context, *ResponseCapture) + func (c *ResponseCapture) Decode(v any) error Other modules containing this package github.com/jmrplens/gitlab-mcp-server github.com/jmrplens/gitlab-mcp-server/v2