GITLAB_API_URL
optional
GitLab API base URL — https://gitlab.com/api/v4 for GitLab.com or your self-managed instance URL.
GITLAB_AUTH_COOKIE_PATH
optional
Optional path to a GitLab auth cookie file for cookie-based authentication.
GITLAB_ALLOWED_PROJECT_IDS
optional
Optional comma-separated list of project IDs the server is allowed to access.
GITLAB_READ_ONLY_MODE
optional
Set to true to expose only read-only tools and block write operations.
USE_GITLAB_WIKI
optional
Set to true to enable wiki tools (legacy flag; prefer GITLAB_TOOLSETS=wiki).
GITLAB_TOOLSETS
optional
Optional comma-separated toolset list such as projects, issues, merge_requests, pipelines, wiki.
GITLAB_TOOLS
optional
Optional comma-separated individual tool names enabled on top of toolsets.
GITLAB_DENIED_TOOLS_REGEX
optional
Optional regex used to hide matching tools from the server.
GITLAB_TOOL_POLICY_APPROVE
optional
Optional comma-separated tool names requiring explicit approval before execution.
GITLAB_TOOL_POLICY_HIDDEN
optional
Optional comma-separated tool names hidden from tools/list.
NODE_TLS_REJECT_UNAUTHORIZED
optional
Set to 0 only when connecting to a GitLab instance with invalid or self-signed TLS certificates.
GITLAB_CA_CERT_PATH
optional
Optional custom CA certificate file path for self-managed GitLab instances.
GITLAB_PERMISSION_MODE
optional
Permission level: readonly, modify (no delete tools), or full.
GITLAB_USE_OAUTH
optional
Set to true to enable the local browser OAuth2 flow.
GITLAB_OAUTH_CLIENT_ID
optional
Client ID of the GitLab OAuth application used for local OAuth.
GITLAB_OAUTH_REDIRECT_URI
optional
Local OAuth callback URL, e.g. http://127.0.0.1:8888/callback.
GITLAB_MCP_OAUTH
optional
Set to true so the server acts as an MCP OAuth proxy for remote clients like Claude.ai.
GITLAB_OAUTH_APP_ID
optional
Client ID of a pre-registered GitLab OAuth application.
GITLAB_OAUTH_CALLBACK_PROXY
optional
Set to true to use the server's fixed /callback URL as the OAuth callback.
GITLAB_OAUTH_SCOPES
optional
Comma-separated OAuth scopes to request; defaults to api,read_api,read_user.
MCP_SERVER_URL
optional
Public HTTPS URL of the MCP server, used for OAuth and Host checks.
STREAMABLE_HTTP
optional
Set to true to enable Streamable HTTP transport.
REMOTE_AUTHORIZATION
optional
Set to true for multi-user remote authorization where each caller supplies their own GitLab token in HTTP headers.
GITLAB_DISABLE_VERSION_CHECK
optional
Set to true to disable the startup new-version notice.
SSE
optional
Set to true to enable SSE transport.