Skip to content

Commit 27a4f70

Browse files
jschfflrclaude
andcommitted
refactor: rename package to qodev-gitlab-mcp for public PyPI
- Rename gitlab_mcp → qodev_gitlab_mcp - Rename dependency gitlab-client → qodev-gitlab-api - Update pyproject.toml (name, version 0.1.0, deps, scripts, URLs) - Replace .gitlab-ci.yml with GitHub Actions (CI + publish) - Update all imports, docstrings, and test mock paths - Update Makefile, README, and CHANGELOG Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ab37172 commit 27a4f70

35 files changed

Lines changed: 303 additions & 615 deletions

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
7+
env:
8+
UV_NO_SOURCES: "1"
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: astral-sh/setup-uv@v4
16+
- run: uv sync --all-extras
17+
- run: uv run ruff check .
18+
- run: uv run ruff format --check .
19+
20+
typecheck:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: astral-sh/setup-uv@v4
25+
- run: uv sync --all-extras
26+
- run: uv run mypy qodev_gitlab_mcp/
27+
28+
test:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: astral-sh/setup-uv@v4
33+
- run: uv sync --all-extras
34+
- run: uv run pytest tests/unit --cov=qodev_gitlab_mcp --cov-report=term

.github/workflows/publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags: ["v*"]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
environment: pypi
10+
permissions:
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: astral-sh/setup-uv@v4
15+
- run: uv build
16+
- uses: pypa/gh-action-pypi-publish@release/v1

.gitlab-ci.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,16 @@ All notable changes to the GitLab MCP Server will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
9-
10-
### Added
11-
- **PyPI Registry Publishing** - CI/CD pipelines publish packages to GitLab Package Registry on version tags
12-
- `gitlab-mcp` publishes to its own project registry using `CI_JOB_TOKEN`
13-
- `gitlab-client` cross-publishes to the `mcps/gitlab` registry via deploy token
14-
- End users install with: `uvx --index https://gitlab.qodev.ai/api/v4/projects/<ID>/packages/pypi/simple gitlab-mcp`
15-
- CI resolves `gitlab-client` from registry using `--no-sources --extra-index-url`
16-
- Publish triggered by version tags matching `v*.*.*`
8+
## [0.1.0] - 2026-02-20
179

1810
### Changed
19-
- **Project URLs** - Updated from placeholder GitHub URLs to actual GitLab instance URLs
11+
- **Renamed package** from `gitlab-mcp` to `qodev-gitlab-mcp` for public PyPI
12+
- **Renamed dependency** from `gitlab-client` to `qodev-gitlab-api`
13+
- **Renamed import** from `gitlab_mcp` to `qodev_gitlab_mcp`
14+
- **Renamed console script** from `gitlab-mcp` to `qodev-gitlab-mcp`
15+
- **Moved to GitHub** at `qodevai/gitlab-mcp`
16+
- **Publishing** via GitHub Actions with Trusted Publishers (OIDC) to public PyPI
17+
- **Version reset** to 0.1.0 for initial public release
2018

2119
- **Issue Management Support** - Create, view, update, and comment on GitLab issues
2220
- `get_issues()` method in GitLabClient - List issues with filters (state, labels, assignees, milestone)

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ install-hooks:
1414

1515
# Run all tests
1616
test:
17-
uv run pytest --cov=gitlab_mcp --cov-report=term --cov-report=html
17+
uv run pytest --cov=qodev_gitlab_mcp --cov-report=term --cov-report=html
1818

1919
# Run unit tests only
2020
test-unit:
21-
uv run pytest tests/unit --cov=gitlab_mcp --cov-report=term
21+
uv run pytest tests/unit --cov=qodev_gitlab_mcp --cov-report=term
2222

2323
# Run integration tests only
2424
test-integration:
@@ -45,7 +45,7 @@ format-check:
4545

4646
# Type check
4747
typecheck:
48-
uv run mypy gitlab_mcp.py
48+
uv run mypy qodev_gitlab_mcp/
4949

5050
# Spell check
5151
typos:

0 commit comments

Comments
 (0)