← Back to list

gitlab-environments
by Knuckles-Team
GitLab MCP Server and Python API Wrapper
⭐ 9🍴 0📅 Jan 24, 2026
SKILL.md
name: gitlab-environments description: "Manages GitLab environments. Use for creating, updating, deleting, or protecting deployment environments. Triggers: CI/CD environments, deployments."
Overview
Covers environment lifecycle and protection.
Available Tools
get_environments: Retrieve a list of environments for a GitLab project, optionally filtered by name, search, or states or a single environment by id.- Parameters:
project_id(str): Optional. - Project ID or pathenvironment_id(Optional[int]): Optional. - Environment IDname(Optional[str]): Optional. - Filter environments by exact namesearch(Optional[str]): Optional. - Filter environments by search term in namestates(Optional[str]): Optional. - Filter environments by state (e.g., 'available', 'stopped')
- Parameters:
create_environment: Create a new environment in a GitLab project with a specified name and optional external URL.- Parameters:
project_id(str): Optional. - Project ID or pathname(str): Optional. - Name of the environmentexternal_url(Optional[str]): Optional. - External URL for the environmentctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
update_environment: Update an existing environment in a GitLab project with new name or external URL.- Parameters:
project_id(str): Optional. - Project ID or pathenvironment_id(int): Optional. - Environment IDname(Optional[str]): Optional. - New name for the environmentexternal_url(Optional[str]): Optional. - New external URL for the environmentctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
delete_environment: Delete a specific environment in a GitLab project.- Parameters:
project_id(str): Optional. - Project ID or pathenvironment_id(int): Optional. - Environment IDctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
stop_environment: Stop a specific environment in a GitLab project.- Parameters:
project_id(str): Optional. - Project ID or pathenvironment_id(int): Optional. - Environment IDctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
stop_stale_environments: Stop stale environments in a GitLab project, optionally filtered by older_than timestamp.- Parameters:
project_id(str): Optional. - Project ID or patholder_than(Optional[str]): Optional. - Filter environments older than this timestamp (ISO 8601 format)ctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
delete_stopped_environments: Delete stopped review app environments in a GitLab project.- Parameters:
project_id(str): Optional. - Project ID or pathctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
get_protected_environments: Retrieve protected environments in a GitLab project (list or single by name).- Parameters:
project_id(str): Optional. - Project ID or pathname(str): Optional. - Name of the protected environment
- Parameters:
protect_environment: Protect an environment in a GitLab project with optional approval count.- Parameters:
project_id(str): Optional. - Project ID or pathname(str): Optional. - Name of the environment to protectrequired_approval_count(Optional[int]): Optional. - Number of approvals required for deploymentctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
update_protected_environment: Update a protected environment in a GitLab project with new approval count.- Parameters:
project_id(str): Optional. - Project ID or pathname(str): Optional. - Name of the protected environmentrequired_approval_count(Optional[int]): Optional. - New number of approvals required for deploymentctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
unprotect_environment: Unprotect a specific environment in a GitLab project.- Parameters:
project_id(str): Optional. - Project ID or pathname(str): Optional. - Name of the environment to unprotectctx(Optional[Context]): Optional. - MCP context for progress
- Parameters:
Usage Instructions
- Use name and external_url for creation.
- Protection: Set required_approval_count.
Examples
- Create:
create_environmentwith project_id="123", name="prod", external_url="https://prod.example.com". - Protect:
protect_environmentwith project_id="123", name="prod", required_approval_count=2.
Error Handling
- State conflicts: Check status before ops.
Score
Total Score
65/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

