mcp-gitlab 0.21.2__tar.gz → 0.22.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.copier-answers.yml +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/workflows/link-check.yml +1 -1
- mcp_gitlab-0.22.0/.github/workflows/lint.yml +6 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/workflows/publish.yml +3 -3
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/workflows/reconcile.yml +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/workflows/release.yml +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/workflows/tests.yml +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/AGENTS.md +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/CHANGELOG.md +22 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/PKG-INFO +2 -3
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/gemini-extension.json +2 -2
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/llms-full.txt +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/llms.txt +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/pyproject.toml +2 -3
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/ruff.toml +1 -1
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/server.json +2 -2
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/client.py +3 -3
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_client.py +2 -2
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/uv.lock +64 -590
- mcp_gitlab-0.21.2/.github/workflows/lint.yml +0 -6
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.dockerignore +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.env.example +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.github/dependabot.yml +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/.gitignore +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/Dockerfile +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/LICENSE +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/README.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/docs/oauth.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/docs/specs/2026-09-21-test-confidence-and-error-contract.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/evaluations/eval.xml +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/__init__.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/__main__.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/config.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/exceptions.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/local_auth.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/oauth.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/py.typed +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/approval-workflow.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/code-review.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/codeowners.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/conventional-commits.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/git-workflow.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/gitlab-ci.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/mr-hygiene.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/prompts/approve-mr.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/prompts/diagnose-pipeline.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/prompts/prepare-release.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/prompts/review-mr.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/prompts/setup-branch-protection.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/resources/prompts/triage-issues.md +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/servers/__init__.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/servers/_helpers.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/servers/gitlab.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/servers/prompts.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/src/mcp_gitlab/servers/resources.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/__init__.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/conftest.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/test_links.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/__init__.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_cli.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_config.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_exceptions.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_local_auth.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_oauth.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_oauth_http.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_prompts.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_read_only_lock.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_resources.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_server_assembly.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_tool_contract.py +0 -0
- {mcp_gitlab-0.21.2 → mcp_gitlab-0.22.0}/tests/unit/test_tools.py +0 -0
|
@@ -30,7 +30,7 @@ permissions: {}
|
|
|
30
30
|
|
|
31
31
|
jobs:
|
|
32
32
|
prepare:
|
|
33
|
-
uses: vish288/.github/.github/workflows/publish-prepare.yml@
|
|
33
|
+
uses: vish288/.github/.github/workflows/publish-prepare.yml@a95b5336113047c1876fe1fd5a624020d7adc1a0 # v1.3.1
|
|
34
34
|
with:
|
|
35
35
|
dry_run: ${{ inputs.dry_run }}
|
|
36
36
|
permissions:
|
|
@@ -59,7 +59,7 @@ jobs:
|
|
|
59
59
|
if [ "$FAIL_AT" = pypi ] && [ "$GITHUB_EVENT_NAME" = workflow_dispatch ] && [ "${GITHUB_RUN_ATTEMPT:-1}" = 1 ] && [ "$PYPI_STATE" != "done" ]; then
|
|
60
60
|
echo "::error::test hook fail_at=pypi (attempt 1, state=$PYPI_STATE): failing before any write"; exit 1
|
|
61
61
|
fi
|
|
62
|
-
- uses: pypa/gh-action-pypi-publish@
|
|
62
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
63
63
|
continue-on-error: true # publish-finish.yml's Confirm step is the success criterion
|
|
64
64
|
with:
|
|
65
65
|
skip-existing: true
|
|
@@ -68,7 +68,7 @@ jobs:
|
|
|
68
68
|
finish:
|
|
69
69
|
needs: [prepare, pypi]
|
|
70
70
|
if: ${{ !cancelled() && !inputs.dry_run && (needs.prepare.outputs.pypi == 'done' || needs.pypi.result == 'success') }}
|
|
71
|
-
uses: vish288/.github/.github/workflows/publish-finish.yml@
|
|
71
|
+
uses: vish288/.github/.github/workflows/publish-finish.yml@a95b5336113047c1876fe1fd5a624020d7adc1a0 # v1.3.1
|
|
72
72
|
with:
|
|
73
73
|
dry_run: ${{ inputs.dry_run }}
|
|
74
74
|
fail_at: ${{ inputs.fail_at }}
|
|
@@ -9,7 +9,7 @@ on:
|
|
|
9
9
|
workflow_dispatch:
|
|
10
10
|
jobs:
|
|
11
11
|
reconcile:
|
|
12
|
-
uses: vish288/.github/.github/workflows/reconcile.yml@
|
|
12
|
+
uses: vish288/.github/.github/workflows/reconcile.yml@a95b5336113047c1876fe1fd5a624020d7adc1a0 # v1.3.1
|
|
13
13
|
permissions:
|
|
14
14
|
contents: read
|
|
15
15
|
actions: write
|
|
@@ -27,7 +27,7 @@ on:
|
|
|
27
27
|
default: none
|
|
28
28
|
jobs:
|
|
29
29
|
release:
|
|
30
|
-
uses: vish288/.github/.github/workflows/release.yml@
|
|
30
|
+
uses: vish288/.github/.github/workflows/release.yml@a95b5336113047c1876fe1fd5a624020d7adc1a0 # v1.3.1
|
|
31
31
|
with:
|
|
32
32
|
bump: ${{ inputs.bump }}
|
|
33
33
|
version: ${{ inputs.version }}
|
|
@@ -3,6 +3,6 @@ name: Tests
|
|
|
3
3
|
on: [push, pull_request]
|
|
4
4
|
jobs:
|
|
5
5
|
test:
|
|
6
|
-
uses: vish288/.github/.github/workflows/tests.yml@
|
|
6
|
+
uses: vish288/.github/.github/workflows/tests.yml@a95b5336113047c1876fe1fd5a624020d7adc1a0 # v1.3.1
|
|
7
7
|
with:
|
|
8
8
|
coverage_min: 98
|
|
@@ -45,7 +45,7 @@ uv run ruff format --check . # CI runs --check; formatting drift fails the bui
|
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
`pytest` uses `asyncio_mode = "auto"` — async tests need no marker. Ruff config lives in
|
|
48
|
-
`ruff.toml` (line length 100, target
|
|
48
|
+
`ruff.toml` (line length 100, target py311); lint rules include `S` (bandit), `EM`, `N`, `UP`.
|
|
49
49
|
`tests/**` waives `S101`, `S105`, `S106`, `S104`.
|
|
50
50
|
|
|
51
51
|
Docker (no CI job — smoke-check by hand): `docker build -t mcp-gitlab .` then
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.22.0] - 2026-11-06
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
- feat!: drop Python 3.10 (2267115)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
- fix(deps): refresh uv.lock for security advisories (6d878f9)
|
|
10
|
+
|
|
11
|
+
### Chores
|
|
12
|
+
- chore(fleet): template v1.3.0 (4aa295a)
|
|
13
|
+
|
|
14
|
+
### Other
|
|
15
|
+
- ci: pin reusable workflows to v1.3.1 (85945be)
|
|
16
|
+
- ci: pin reusable workflows to the 3.14-matrix release (aea78d3)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## [0.21.3] - 2026-11-04
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
- fix(deps): bump authlib, certifi and dnspython for open security advisories (81afe1d)
|
|
23
|
+
|
|
24
|
+
|
|
3
25
|
## [0.21.2] - 2026-10-22
|
|
4
26
|
|
|
5
27
|
### Bug Fixes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: mcp-gitlab
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.0
|
|
4
4
|
Summary: GitLab MCP server for the MCP 2026-07-28 specification (MCP 2.0): projects, MRs, pipelines, CI/CD, approvals and issues for AI assistants. Runs with writes, or locked read-only via MCP_READ_ONLY
|
|
5
5
|
Project-URL: Homepage, https://github.com/vish288/mcp-gitlab
|
|
6
6
|
Project-URL: Repository, https://github.com/vish288/mcp-gitlab
|
|
@@ -17,7 +17,6 @@ Classifier: Intended Audience :: Developers
|
|
|
17
17
|
Classifier: Intended Audience :: Information Technology
|
|
18
18
|
Classifier: License :: OSI Approved :: MIT License
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -26,7 +25,7 @@ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
|
26
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
26
|
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
28
27
|
Classifier: Typing :: Typed
|
|
29
|
-
Requires-Python: >=3.
|
|
28
|
+
Requires-Python: >=3.11
|
|
30
29
|
Requires-Dist: click<9,>=8.1.7
|
|
31
30
|
Requires-Dist: fastmcp<5,>=4.0.10
|
|
32
31
|
Requires-Dist: httpx<1,>=0.28.0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-gitlab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only",
|
|
5
5
|
"mcpServers": {
|
|
6
6
|
"mcp-gitlab": {
|
|
7
7
|
"command": "uvx",
|
|
8
8
|
"args": [
|
|
9
|
-
"mcp-gitlab"
|
|
9
|
+
"mcp-gitlab@0.22.0"
|
|
10
10
|
]
|
|
11
11
|
}
|
|
12
12
|
},
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
MCP server that wraps the GitLab REST API. Works with GitLab.com and self-hosted instances (CE/EE). No GitLab Duo or Premium required. Built with FastMCP, httpx, and Pydantic.
|
|
6
6
|
|
|
7
7
|
- **Install**: `uvx mcp-gitlab`
|
|
8
|
-
- **Version**: 0.
|
|
8
|
+
- **Version**: 0.22.0
|
|
9
9
|
- **Python**: >=3.10
|
|
10
10
|
- **License**: MIT
|
|
11
11
|
- **Protocol**: MCP 2026-07-28 (MCP 2.0); compatible with 2025-11-25 clients; built on FastMCP 4.x
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
MCP server that wraps the GitLab REST API. Works with GitLab.com and self-hosted instances (CE/EE). No GitLab Duo or Premium required. Built with FastMCP, httpx, and Pydantic.
|
|
6
6
|
|
|
7
7
|
- **Install**: `uvx mcp-gitlab`
|
|
8
|
-
- **Version**: 0.
|
|
8
|
+
- **Version**: 0.22.0
|
|
9
9
|
- **Python**: >=3.10
|
|
10
10
|
- **License**: MIT
|
|
11
11
|
- **Protocol**: MCP 2026-07-28 (MCP 2.0); compatible with 2025-11-25 clients; built on FastMCP 4.x
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mcp-gitlab"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.22.0"
|
|
4
4
|
description = "GitLab MCP server for the MCP 2026-07-28 specification (MCP 2.0): projects, MRs, pipelines, CI/CD, approvals and issues for AI assistants. Runs with writes, or locked read-only via MCP_READ_ONLY"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = {text = "MIT"}
|
|
7
|
-
requires-python = ">=3.
|
|
7
|
+
requires-python = ">=3.11"
|
|
8
8
|
authors = [{name = "vish288"}]
|
|
9
9
|
keywords = [
|
|
10
10
|
"mcp",
|
|
@@ -39,7 +39,6 @@ classifiers = [
|
|
|
39
39
|
"Intended Audience :: Information Technology",
|
|
40
40
|
"License :: OSI Approved :: MIT License",
|
|
41
41
|
"Programming Language :: Python :: 3",
|
|
42
|
-
"Programming Language :: Python :: 3.10",
|
|
43
42
|
"Programming Language :: Python :: 3.11",
|
|
44
43
|
"Programming Language :: Python :: 3.12",
|
|
45
44
|
"Programming Language :: Python :: 3.13",
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/vish288/mcp-gitlab",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.22.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "pypi",
|
|
13
13
|
"identifier": "mcp-gitlab",
|
|
14
|
-
"version": "0.
|
|
14
|
+
"version": "0.22.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
|
@@ -9,7 +9,7 @@ import json
|
|
|
9
9
|
import math
|
|
10
10
|
import random
|
|
11
11
|
import re
|
|
12
|
-
from datetime import
|
|
12
|
+
from datetime import UTC, datetime
|
|
13
13
|
from email.utils import parsedate_to_datetime
|
|
14
14
|
from typing import Any
|
|
15
15
|
from urllib.parse import quote, unquote
|
|
@@ -57,8 +57,8 @@ def _retry_after_seconds(resp: httpx.Response) -> float | None:
|
|
|
57
57
|
if when is None:
|
|
58
58
|
return None
|
|
59
59
|
if when.tzinfo is None:
|
|
60
|
-
when = when.replace(tzinfo=
|
|
61
|
-
seconds = (when - datetime.now(
|
|
60
|
+
when = when.replace(tzinfo=UTC)
|
|
61
|
+
seconds = (when - datetime.now(UTC)).total_seconds()
|
|
62
62
|
if not math.isfinite(seconds):
|
|
63
63
|
return None
|
|
64
64
|
return max(0.0, seconds)
|
|
@@ -5,7 +5,7 @@ from __future__ import annotations
|
|
|
5
5
|
import asyncio
|
|
6
6
|
import ssl
|
|
7
7
|
import time
|
|
8
|
-
from datetime import datetime, timedelta
|
|
8
|
+
from datetime import UTC, datetime, timedelta
|
|
9
9
|
from email.utils import format_datetime
|
|
10
10
|
|
|
11
11
|
import httpx
|
|
@@ -510,7 +510,7 @@ class TestRetryAfterParsing:
|
|
|
510
510
|
assert client_mod._retry_after_seconds(_retry_after_resp("5")) == 5.0
|
|
511
511
|
|
|
512
512
|
def test_http_date(self) -> None:
|
|
513
|
-
when = format_datetime(datetime.now(
|
|
513
|
+
when = format_datetime(datetime.now(UTC) + timedelta(seconds=100))
|
|
514
514
|
secs = client_mod._retry_after_seconds(_retry_after_resp(when))
|
|
515
515
|
assert secs is not None
|
|
516
516
|
assert 80 <= secs <= 100
|