# =============================================================================
# GitLab MCP Server Configuration
# =============================================================================
# Copy this file to .env and fill in your values.
# Do not commit .env to version control.
# -----------------------------------------------------------------------------
# GitLab API Settings (Required)
# -----------------------------------------------------------------------------
# GitLab API base URL
# For GitLab.com use: https://gitlab.com/api/v4
# For self-hosted use: https://your-gitlab-instance.com/api/v4
GITLAB_BASE_URL=https://gitlab.com/api/v4
# GitLab Personal Access Token
# Create at: https://gitlab.com/-/profile/personal_access_tokens
# Required scopes for read-only: read_api, read_repository
# Required scopes for write operations: api, write_repository
GITLAB_TOKEN=your_gitlab_personal_access_token_here
# Default project ID
# Can be numeric ID (12345678) or path with namespace (group/project)
# This is used when project_id is not specified in tool calls
GITLAB_PROJECT_ID=
# -----------------------------------------------------------------------------
# Security Settings
# -----------------------------------------------------------------------------
# Enable safe mode to prevent destructive operations
# When true, operations like merge and delete are blocked
SAFE_MODE=true
# Enable dry run mode to simulate operations without executing
# Useful for testing and debugging
DRY_RUN=false
# Comma-separated list of allowed project IDs
# - Leave empty to DENY all projects (secure by default)
# - Use * to ALLOW all projects
# - List specific projects: project1,group/project2
# Examples:
# ALLOWED_PROJECTS= # Deny all
# ALLOWED_PROJECTS=* # Allow all
# ALLOWED_PROJECTS=myproject # Allow only myproject
ALLOWED_PROJECTS=
# Maximum number of retry attempts for failed operations
MAX_RETRIES=3
# Allow production deployments (extra safety for deploy_to_cloud)
# Set to true only if you really need to deploy to production
ALLOW_PROD_DEPLOY=false
# -----------------------------------------------------------------------------
# Server Settings
# -----------------------------------------------------------------------------
# Host to bind the HTTP server
# Use 127.0.0.1 for local development (more secure)
# Use 0.0.0.0 only when you need external access
HOST=127.0.0.1
# Port for the HTTP server
PORT=8000
# Enable verbose logging
VERBOSE=false
# Log level (DEBUG, INFO, WARNING, ERROR)
LOG_LEVEL=INFO
# -----------------------------------------------------------------------------
# PolyMCP Settings (Optional)
# -----------------------------------------------------------------------------
# LLM provider for polymcp integration
# Options: openai, anthropic, ollama, or leave empty
LLM_PROVIDER=
# Model name for the LLM provider
# Examples: gpt-4, claude-3-opus, llama3:8b
LLM_MODEL=
# LLM temperature (0.0 to 1.0)
LLM_TEMPERATURE=0.1