[build-system]
requires = ["setuptools>=57.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "gitlab-mcp"
version = "1.0.0"
description = "A production-ready Model Context Protocol (MCP) server for GitLab that integrates with GitHub Copilot in IntelliJ IDEA"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT"}
authors = [
{name = "Your Name", email = "your.email@example.com"}
]
keywords = [
"gitlab",
"mcp",
"model-context-protocol",
"copilot",
"intellij",
"ci-cd",
"pipeline",
"job-monitoring"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: System :: Monitoring",
]
dependencies = [
"fastmcp>=2.14.0",
"python-gitlab>=4.0.0",
"python-dotenv>=1.0.0",
"GitPython>=3.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"requests-mock>=1.11.0",
]
[project.urls]
Homepage = "https://github.com/your-username/gitlab-mcp"
Repository = "https://github.com/your-username/gitlab-mcp.git"
Issues = "https://github.com/your-username/gitlab-mcp/issues"
Documentation = "https://github.com/your-username/gitlab-mcp#readme"
[project.scripts]
gitlab-mcp = "src.server:main"
[tool.setuptools]
packages = ["src"]
[tool.setuptools.package-data]
src = ["py.typed"]
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-v --strict-markers --tb=short --disable-warnings"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"unit: Unit tests",
"integration: Integration tests with real/mocked services",
"slow: Slow running tests",
]
[tool.isort]
profile = "black"
line_length = 100
skip_gitignore = true
known_first_party = ["src"]
known_third_party = ["fastmcp", "gitlab", "git", "dotenv"]
multi_line_mode = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
[tool.black]
line-length = 100
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
strict_optional = true
ignore_missing_imports = true
[tool.pylint]
max-line-length = 100
disable = [
"C0330", # Wrong hanging indentation before block
"C0326", # Bad whitespace
"C0103", # Invalid name
"W0212", # Protected access
]
[tool.coverage.run]
source = ["src"]
branch = true
omit = [
"*/site-packages/*",
"*/distutils/*",
"*/__main__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@abstractmethod",
]
precision = 2
skip_covered = false
[tool.coverage.html]
directory = "htmlcov"