pyproject.toml•4.3 kB
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "gcp-mcp"
version = "1.0.0"
description = "A Model Context Protocol server for Google Cloud Platform services - integrate GCP with AI assistants"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Jayraj Goyal", email = "jayrajiitr.16@gmail.com" }
]
keywords = ["mcp", "gcp", "google-cloud", "logging", "monitoring"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Logging",
"Topic :: System :: Monitoring",
]
requires-python = ">=3.10"
dependencies = [
"mcp>=1.0.0",
"anyio>=4.0.0",
"httpx>=0.25.0",
"google-cloud-logging>=3.8.0",
"google-cloud-monitoring>=2.16.0",
"google-cloud-error-reporting>=1.9.0",
"google-auth>=2.23.0",
"google-auth-oauthlib>=1.1.0",
"pydantic>=2.0.0",
"structlog>=23.1.0",
"click>=8.1.0",
"python-dateutil>=2.8.0",
"typing-extensions>=4.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
"black>=23.7.0",
"isort>=5.12.0",
"mypy>=1.5.0",
"flake8>=6.0.0",
"bandit[toml]>=1.7.5",
"safety>=2.3.0",
"pre-commit>=3.3.0",
"twine>=4.0.0",
"build>=0.10.0",
]
test = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
]
[project.urls]
Homepage = "https://github.com/JayRajGoyal/gcp-mcp"
Repository = "https://github.com/JayRajGoyal/gcp-mcp"
Issues = "https://github.com/JayRajGoyal/gcp-mcp/issues"
Documentation = "https://github.com/JayRajGoyal/gcp-mcp#readme"
Changelog = "https://github.com/JayRajGoyal/gcp-mcp/blob/main/CHANGELOG.md"
[project.scripts]
gcp-mcp = "gcp_mcp.cli:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["gcp_mcp*"]
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
known_first_party = ["gcp_mcp"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q --strict-markers --strict-config"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.coverage.run]
source = ["gcp_mcp"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.bandit]
exclude_dirs = ["tests", "build", "dist"]
skips = ["B101", "B601"] # Skip assert_used and shell_injection_process for tests
[tool.bandit.any_other_function_with_shell_equals_true]
no_shell = [
"os.execl",
"os.execle",
"os.execlp",
"os.execlpe",
"os.execv",
"os.execve",
"os.execvp",
"os.execvpe",
"os.spawnl",
"os.spawnle",
"os.spawnlp",
"os.spawnlpe",
"os.spawnv",
"os.spawnve",
"os.spawnvp",
"os.spawnvpe",
"os.startfile"
]